Power management not disabled

Found a bug? Please report it, but remember to follow the bug reporting guidelines.
Missing a sane feature? Let us know!
But please do NOT request ports to other systems.

Moderator: ZSNES Mods

Post Reply
ninja09
New Member
Posts: 3
Joined: Mon Jul 13, 2009 12:33 am

Power management not disabled

Post by ninja09 »

On my laptop I have it set to disable power management as I use a controller, but my laptop display still turns off after the period of time. Did I miss a setting somewhere for it?
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

OS ?
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
ninja09
New Member
Posts: 3
Joined: Mon Jul 13, 2009 12:33 am

Post by ninja09 »

Vista Enterprise with service pack 1.
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

The option itself doesn't work for Vista.
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
kode54
Zealot
Posts: 1140
Joined: Wed Jul 28, 2004 3:31 am
Contact:

Post by kode54 »

Using SetThreadExecutionState with the ES_DISPLAY_REQUIRED flag should work on any NT OS starting with Windows 2000, and is probably the preferred way of doing things. It should also work from limited accounts, unlike the SystemParametersInfo function.

It should probably also be used with ES_CONTINUOUS flag so the display required state persists until the next call.
Squall_Leonhart
Trooper
Posts: 369
Joined: Tue Jun 10, 2008 6:19 am
Location: Australia
Contact:

Post by Squall_Leonhart »

does the same thing with a game controller on XP if you have the OS ask for a password on resume from screensaver/standby
[img]http://img.photobucket.com/albums/v253/squall_leonhart69r/Final_Fantasy_8/squall_sig1.gif[/img]
[url=http://vba-m.com/]VBA-M Forum[/url], [url=http://www.ngohq.com]NGOHQ[/url]
kode54
Zealot
Posts: 1140
Joined: Wed Jul 28, 2004 3:31 am
Contact:

Post by kode54 »

Squall_Leonhart wrote:does the same thing with a game controller on XP if you have the OS ask for a password on resume from screensaver/standby
Which must mean that the current scheme doesn't work, and that SetThreadExecutionState should be employed for 2000 and newer whenever.
Squall_Leonhart
Trooper
Posts: 369
Joined: Tue Jun 10, 2008 6:19 am
Location: Australia
Contact:

Post by Squall_Leonhart »

kode54 wrote:
Squall_Leonhart wrote:does the same thing with a game controller on XP if you have the OS ask for a password on resume from screensaver/standby
Which must mean that the current scheme doesn't work, and that SetThreadExecutionState should be employed for 2000 and newer whenever.
This will benefit VBA too then :P
[img]http://img.photobucket.com/albums/v253/squall_leonhart69r/Final_Fantasy_8/squall_sig1.gif[/img]
[url=http://vba-m.com/]VBA-M Forum[/url], [url=http://www.ngohq.com]NGOHQ[/url]
Post Reply