Let the computer sleep when nothing is playing

Feature requests for VLC.
ssp

Let the computer sleep when nothing is playing

Postby ssp » 08 Jul 2005 14:14

First of all, thanks for the great work. I'm really enjoying VLC a lot. It's doing a much better job than QT player.

This is a small peculiar issue.

VLC has the feature to not let the computer go to sleep or dim the screen while it's running. That's pretty cool (and much more reliable than QT Player's attempts at the same).

It does seem, though, that a consequence of this is that the system will never dim the screen at all while VLC has a video window open. Occasionally I quite like to keep a file open in VLC because I had to stop watching it and want to continue watching at the same position later on. Then I just pause playback and hide the app. But it seems to prevent the computer from going to sleep and dimming the screen.

So my suggestion would be to refine the current behaviour a bit. For example by only preventing sleep while a video window is actually playing.

I don't have the time to try this out myself right now (and don't know much about VLC either), but to me it looks like this can be quite easily achieved by wrapping the UpdateSystemActivity() line in vout's -manage method into a if (playing) ... line.

ssp-web@earthlingsoft.net

carey
New Cone
New Cone
Posts: 1
Joined: 17 Mar 2011 10:49

Re: Let the computer sleep when nothing is playing

Postby carey » 17 Mar 2011 10:54

Yes! I want this too. I don't see any point in stopping a computer from using its' power saving features when a video file is _paused_. If someone (strangely) wants a paused video to stay there then they could just modify their power settings.

This is causing a waste of many killowatts a day all around the globe :P. My housemate always forgets to close VLC and leaves stuff paused when he gets distracted, could be for a day or more and the computer just sits there running. Usually we have 15 minute suspend setting on our PCs to save power :)

If I could code I would do it myself :D

Apart from this not much annoys me abouts VLC :) :) good work guys

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Let the computer sleep when nothing is playing

Postby Jean-Baptiste Kempf » 17 Mar 2011 11:45

This is a misconception in VLC now, that's all.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

rjupiter
New Cone
New Cone
Posts: 3
Joined: 18 Feb 2011 04:46

Re: Let the computer sleep when nothing is playing

Postby rjupiter » 18 May 2011 03:48

This is a misconception in VLC now, that's all.
how is this a misconception if it doesn't work? my monitors will never turn off as along as VLC is running, even paused or stopped. very annoying.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Let the computer sleep when nothing is playing

Postby Jean-Baptiste Kempf » 18 May 2011 14:14

This is a misconception in VLC now, that's all.
how is this a misconception if it doesn't work? my monitors will never turn off as along as VLC is running, even paused or stopped. very annoying.
Pause and stopped are not the same.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

user8337
New Cone
New Cone
Posts: 9
Joined: 16 Jul 2011 07:34

Re: Let the computer sleep when nothing is playing

Postby user8337 » 16 Jul 2011 07:43

This is a misconception in VLC now, that's all.
how is this a misconception if it doesn't work? my monitors will never turn off as along as VLC is running, even paused or stopped. very annoying.
Pause and stopped are not the same.
You did not listen to (read) his question. He said that it would not sleep as-long as VLC is running weather or not it is paused or turned off. He did not ask you what the difference between the two where, just that it doesn't work with either.

To put it bluntly, we want you to change the feature (not remove it) that stops the computer from going into sleep mode. So if the movie is paused or stopped or the playlist has finished, VLC will then stop blocking the computer from entering sleep mode.

If the pc is sitting on a static screen with no movie or music playing and the user has not touched the mouse/keyboard, I cannot see why anyone would not want the pc to enter sleep mode.

Atleast install an option into the settings section of VLC for this please

user8337
New Cone
New Cone
Posts: 9
Joined: 16 Jul 2011 07:34

Re: Let the computer sleep when nothing is playing

Postby user8337 » 16 Jul 2011 20:42

bump

digitalhen
New Cone
New Cone
Posts: 1
Joined: 01 Nov 2011 14:06

Re: Let the computer sleep when nothing is playing

Postby digitalhen » 01 Nov 2011 14:10

Did this go anywhere?

At least on a Mac, when paused, this is holding a connect to the sound device. Verified as follows. With VLC running and paused:-

Code: Select all

pmset -g assertions --removed for clarity-- Listed by owning process: pid 156: [0x0000012c0000009c] PreventUserIdleSystemSleep named: "com.apple.audio.'AppleHDAEngineOutput:1B,0,1,4:1'.noidlesleep"
VLC not running / video window closed:- Not listed.

collinsp
New Cone
New Cone
Posts: 2
Joined: 08 Feb 2013 14:38

Re: Let the computer sleep when nothing is playing

Postby collinsp » 08 Feb 2013 14:41

I see a clear need for computer to 'sleep' even while paused. Seems obvious, why would I want the computer to stay awake long after I have paused and left -- I have computers on many nights because of this problem. Please fix.

andrewdhokie
New Cone
New Cone
Posts: 1
Joined: 20 Aug 2013 21:48

Re: Let the computer sleep when nothing is playing

Postby andrewdhokie » 20 Aug 2013 21:50

I would also love to see this feature added.

At least an option to "allow sleep if player paused" for xx minutes.

Thanks,

spambin1111
New Cone
New Cone
Posts: 1
Joined: 04 Sep 2013 23:20

Re: Let the computer sleep when nothing is playing

Postby spambin1111 » 04 Sep 2013 23:25

It would be great if this could be implemented. Even a crude version would be a great improvement (if windows is configured to sleep after X, and the video has been paused for X, tell windows to sleep now). That logic breaks some other stuff, but it should be straightforward to implement, and I think it'd be much better than nothing. I know it'd save me a lot on my power bill every month. :p

Edit: Maybe this could be achieved more simply (and better) by having an option for VLC to stop rendering video and release audio handles after x minutes of pause; shouldn't that allow windows to take it from there?

mredamon
New Cone
New Cone
Posts: 3
Joined: 19 Feb 2014 06:22

Re: Let the computer sleep when nothing is playing

Postby mredamon » 19 Feb 2014 06:25

BUMP

zsoltt
New Cone
New Cone
Posts: 1
Joined: 01 May 2014 16:48

Re: Let the computer sleep when nothing is playing

Postby zsoltt » 01 May 2014 16:49

Hi, I am using a Mac, is there any hope that this will be fixed? It's a major drawback.

AkshayL
New Cone
New Cone
Posts: 1
Joined: 12 Jun 2014 11:44

Re: Let the computer sleep when nothing is playing

Postby AkshayL » 12 Jun 2014 11:49

I registered just to second this request. Please allow system to sleep when video is paused. Great video player otherwise. Thanks a lot!

Akusho
New Cone
New Cone
Posts: 1
Joined: 25 Jul 2014 11:54

Re: Let the computer sleep when nothing is playing

Postby Akusho » 25 Jul 2014 12:00

I also registered just to ask to fix this issue. It's been what, 3 years? I like this player very much, but this issue is getting annoying. For example a scenario: I paused a video, I left the computer, I expect it to turn off the screen in 3 minutes. I come back hours later and the screen is on, why? Because I forgot VLC. It's really inconvenient and forces me to search for other solutions for watching video. It's not like it is a very complicated coding issue. If it's coded as "never let PC sleep" just add a "unless paused", or "never let PC sleep while playing".

ahrs
New Cone
New Cone
Posts: 1
Joined: 30 Nov 2014 18:33

Re: Let the computer sleep when nothing is playing

Postby ahrs » 30 Nov 2014 18:37

Any plans on fixing this most serious problem wth VLC player? Just to reiterate the issue, VLC should allow computer to sleep if playback is paused or stopped.

Jh1986
New Cone
New Cone
Posts: 1
Joined: 15 Feb 2015 23:36

Re: Let the computer sleep when nothing is playing

Postby Jh1986 » 15 Feb 2015 23:43

Let's not be narrow minded about this... I set VLC to receive a stream from my raspberry pi and then record the stream for archiving. Doing this, means the Mac is unable to sleep. Even if you enabled sleep on pause/stop, this would not help this situation. What would help is an option in preferences to tun off sleep inhibit.

Cyan
Blank Cone
Blank Cone
Posts: 33
Joined: 09 Feb 2015 07:24

Re: Let the computer sleep when nothing is playing

Postby Cyan » 16 Feb 2015 04:30

I'm a fan of this concept!
I wish it was as easy to contribute to the source as it is to brush my teeth.

TigerMoth
New Cone
New Cone
Posts: 1
Joined: 01 Apr 2015 01:18

Re: Let the computer sleep when nothing is playing

Postby TigerMoth » 01 Apr 2015 01:21

Bump++

Please let the computer sleep when VLC is paused/stopped.

pmset -g assertions
2015-04-01 00:17:02 +0100
Assertion status system-wide:
BackgroundTask 0
ApplePushServiceTask 0
UserIsActive 0
PreventUserIdleDisplaySleep 1
PreventSystemSleep 0
ExternalMedia 0
PreventUserIdleSystemSleep 1
NetworkClientActive 0
Listed by owning process:
pid 1659(VLC): [0x00006d000005046b] 00:09:47 NoDisplaySleepAssertion named: "VLC media playback"
pid 269(coreaudiod): [0x00005b66000102fb] 01:24:54 PreventUserIdleSystemSleep named: "com.apple.audio.context419.preventuseridlesleep"
Created for PID: 1659.
Kernel Assertions: 0xc=USB,BT-HID
id=500 level=255 0x4=USB mod=31/03/2015 16:13 description=EHCI owner=AppleUSBEHCI
id=504 level=255 0x4=USB mod=31/03/2015 16:15 description=UHC1 owner=AppleUSBUHCI
id=506 level=255 0x8=BT-HID mod=01/01/1970 01:00 description=com.apple.driver.IOBluetoothHIDDriver owner=BNBTrackpadDevice

iHerky
New Cone
New Cone
Posts: 1
Joined: 31 May 2015 22:27

Re: Let the computer sleep when nothing is playing

Postby iHerky » 31 May 2015 22:29

I also registered specifically for this issue. This is no doubt the worst part of the player, has anyone gotten any sort of resolution for this? It would be nice to be able to leave vlc open on my computer all the time.

hobbes
Blank Cone
Blank Cone
Posts: 38
Joined: 28 Mar 2010 17:19

Re: Let the computer sleep when nothing is playing

Postby hobbes » 01 Jun 2015 09:20

There is a workaround these days: when you open a file that has been played before, VLC asks if you want to resume playback at the place where you stopped last time. So it's no longer necessary to leave a file open and paused.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Let the computer sleep when nothing is playing

Postby Jean-Baptiste Kempf » 10 Jul 2015 15:33

Stop it and will not not sleep.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Jonathan42
Blank Cone
Blank Cone
Posts: 13
Joined: 08 Sep 2015 02:48

Re: Let the computer sleep when nothing is playing

Postby Jonathan42 » 08 Sep 2015 05:05

It seems there is a lot of input on this and while I don't want my screensaver to engage during video playback, I also don't want to wake up in the morning (or middle of the night) to a bright white playlist.

If there was a simple video option that could toggle a screen off feature a certain number of minutes after playback is paused / stopped and any user input or video stream input would automatically re-engage the player. There is a good amount of demand for it and it simply makes sense

Sidenote:
Programmers dream up such wonderful programs like VLC and then make it into reality which is such a wonder! With simple changes between editions adding things that users really want, like this and click/pause, etc, you will garner much more widespread support for VLC as the ONLY player people need. I know that Videolan is a group of volunteers. A few years ago I posted in the forums requesting an Android app and got a very snooty response from a developer who explained very condescendingly that he was an Apple guy and had zero interest in developing anything for Android. Since then Android has vastly overtaken ios and I'm happy to see other people are now on the project who see things in more than one way and I'm glad to see more diversity. Coders love linux, Graphics love apples, average people love PC's and everyone either loves their iphone and tablet or Android version of the same. The beginning of most conflicts starts with the creation of an "Us" and a "Them"...

Jonathan
San Antonio, Texas (Remember the Alamo!)

darthpilsner
New Cone
New Cone
Posts: 1
Joined: 22 Feb 2016 18:14

Re: Let the computer sleep when nothing is playing

Postby darthpilsner » 22 Feb 2016 18:31

First post is from 2005.

They've had over 10 years to fix this issue, they obviously don't care

nrsrymj
New Cone
New Cone
Posts: 1
Joined: 26 Apr 2016 08:45

Re: Let the computer sleep when nothing is playing

Postby nrsrymj » 26 Apr 2016 08:51

VLC PROGRAMMERS

You must fix this issue immediately. It is beyond absurd that you would let a decade go by without a fix for this. If it is not resolved soon, I will have no choice but to leave HARSH NEGATIVE reviews of your product and your responsiveness everywhere I can. Part of being a good program is responding to user feedback, and as the people in the thread make clear, your program is stellar, except for this one issue, which you have inexplicably ignored. Fix this. Or not. The choice is yours.


Return to “VLC media player Feature Requests”

Who is online

Users browsing this forum: Bing [Bot] and 10 guests