Page 1 of 1

Error: Windows power option not deactivated during playback

Posted: 26 Mar 2010 21:25
by GabbO2
Hi.

I have the problem that while watching videos with VLC the windows power options are not deactivated. At least not all (the monitor does not goes to standby). This results my PC going every 30 minutes to sleep. This happens with all versions of VLC i tried (from 0.86 to current).
This happens to reocurr on some Windows (various versions) installations, no idea what is the reason. Sometimes it's OK, sometimes it's present. On the windows installations that are affected, the problem persists in each version, on the ones that aren't affected every build works.

I tried everything to rule out bad settings or installations, tried to delete everything, or just the preferences.

I would be thankful if someone could help.
Please tell me if I could provide any useful info.

Re: Error: Windows power option not deactivated during playb

Posted: 27 Mar 2010 18:32
by VLC_help
You start VLC with admin rights?

Re: Error: Windows power option not deactivated during playb

Posted: 28 Mar 2010 12:25
by Seise
I have this very same problem:
While watching a video, VLC seems to ignore my powersettings and set my computer to suspend-mode after 25-30 mins of watching ( I think It's 30).

What I have tried:
- I've changed the power options from the Windows' control panel, but it doesn't help, this seems to use the one which was set when program was installed.
- Other VLC versions
- Other media player (wmp), there were no problem with it
- Tested to run VLC with (and without) admin rights

My computer (in case of compability issues)
OS: Windows 7, 64bit
Processor: Intel i5
GPU: NVidia 9800+ gtx
Motherboard: Asus P7P55D motherboard

Re: Error: Windows power option not deactivated during playb

Posted: 30 Mar 2010 12:52
by GabbO2
I am logged in with admin rights, UAC disabled.

Just like the poster before me, i tried the same things. Only happens with VLC.
Actually VLC manages to disable the screen saver and monitor off inside the power options, just the computer keeps going to sleep...

Re: Error: Windows power option not deactivated during playb

Posted: 30 Mar 2010 14:28
by stevedee3
Works OK on my Windows 2000 system. Only in full screen mode, if I remember correctly.

Re: Error: Windows power option not deactivated during playb

Posted: 30 Mar 2010 16:52
by VLC_help
GabbO2: you also run Windows 7?

Re: Error: Windows power option not deactivated during playb

Posted: 31 Mar 2010 10:38
by GabbO2
Yes, Win7 Pro x64.

Re: Error: Windows power option not deactivated during playb

Posted: 31 Mar 2010 17:24
by VLC_help
OK. It seems the commands (SPI_GETPOWEROFFTIMEOUT etc.) VLC uses to disable screensavers aren't supported in Windows 7.
http://msdn.microsoft.com/en-us/library ... S.85).aspx http://git.videolan.org/?p=vlc.git;a=bl ... w/common.c
So code changes are needed.

Re: Error: Windows power option not deactivated during playb

Posted: 27 Nov 2010 14:46
by GabbO2
Is there any news on this error? It is quite disturbing having to wobble the mouse every 30min to prevent the PC to go to sleep. Every other software is still working without having this issue. I'm now on VLC 1.1.4

PS: I have bought a new laptop with Win7 X64 Home Prof. installed, and it does NOT have the issue with going to sleep during playback.

Re: Error: Windows power option not deactivated during playb

Posted: 27 Nov 2010 16:19
by VLC_help
I will change the whole screensaver part for Windows builds at some point. After that it should work better.

Re: Error: Windows power option not deactivated during playb

Posted: 22 Sep 2011 07:33
by GabbO2
Still no improvement on this topic?
I just have installed a new copy of Win7 x64 on a new machine, and sadly is still goes to sleep
during full screen video playback with VLC.

Re: Error: Windows power option not deactivated during playb

Posted: 22 Sep 2011 20:05
by VLC_help
I sent patch but it wasn't accepted.

Re: Error: Windows power option not deactivated during playb

Posted: 25 Sep 2011 23:14
by GabbO2
Opened Ticket #5380

Re: Error: Windows power option not deactivated during playb

Posted: 06 Nov 2011 02:33
by fun2bwith
Still no improvement on this topic?
I just have installed a new copy of Win7 x64 on a new machine, and sadly is still goes to sleep
during full screen video playback with VLC.
Apparently still no fix on this issue. I hope a fix comes out soon, as I love to use VLC player.
I'd rather not have to go back to Media Player Classic. :lol:

Re: Error: Windows power option not deactivated during playb

Posted: 07 Nov 2011 01:20
by fun2bwith
Hey VLC_Help ... Are there any info out on a new release on the player, that might have a correction for this issue?

Re: Error: Windows power option not deactivated during playb

Posted: 07 Nov 2011 16:17
by VLC_help
It won't be fixed anytime soon AFAIK. I prolly have to write a new filter module for this since it seems to be only reasonable way to do this.

Re: Error: Windows power option not deactivated during playb

Posted: 08 Jan 2012 14:05
by SithFire
Does the problem still exist with the newest vlc version? - I cannot reproduce this bug using win7-x64 and vlc 1.1.11. I can see within the coding, the probable cause could already be fixed (http://git.videolan.org/?p=vlc.git;a=bl ... w/events.c and http://msdn.microsoft.com/en-us/library ... 85%29.aspx). Look for "SetThreadExecutionState".

Re: Error: Windows power option not deactivated during playb

Posted: 08 Jan 2012 14:55
by VLC_help
Thanks. I will try that during next weekend.
EDIT:
It seems SetThreadExecutionState isn't enough
This function does not stop the screen saver from executing.
http://msdn.microsoft.com/en-us/library ... 85%29.aspx

Re: Error: Windows power option not deactivated during playb

Posted: 09 Jan 2012 19:20
by SithFire
That's right. I guess, It could be a combination of SPI_GET... and SetThreadExecutionState. The SPI_GETSCREENSAVEACTIVE is set in common.c (AFAIK), so it might work fine (because nobody complain about it).

But as I wrote above, I could not reproduce the bug. So, I can only guess. :geek:

Re: Error: Windows power option not deactivated during playb

Posted: 10 Jan 2012 17:14
by VLC_help
Those powersaving thingies are only there to prevent screensaver. So they aren't actually needed for power saving.

Re: Error: Windows power option not deactivated during playb

Posted: 01 Mar 2013 18:29
by Astr0x
Any update on this?

I posted similar problem here viewtopic.php?f=14&t=108160

but i did not get a response i am still having the issue described in this thread and my thread

help please.