First set the Power Management Settings in your HAL (xxx PC) component settings in TD to Presentation or Always On.
Then you can play with ACPolicy/DCPolicy values at run time:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&c2coff=1&selm=%23gBQXqd5DHA.1504%40TK2MSFTNGP12.phx.gbl
--
Regards,
KM, BSquare Corp.
> Anyone know how to disable the power save at the logon screen. It seems to
> power the monitor off after 15 minutes.
ControlSet001 at offset 0xC0 was already set to 0x00000000. However, the
same registry key at ControlSet002 was not. I set the 4 bytes starting at
offset 0xC0 to 0x00000000 which seems to keep the monitor on.
harrier
First of all, play with CurrentControlSet (not 001 or 002 or etc). this way you make sure to change the current settings.
Also, try to set up the following key (you can set it up on XP Pro and then copy to your XPe runtime):
[HKEY_USERS\.DEFAULT\Control Panel\PowerCfg\CurrentPowerPolicy]
[HKEY_CURRENT_USER\Control Panel\PowerCfg\CurrentPowerPolicy]
If changing the reg.setting directly does not work for you, I'd suggest you to make an API call.
Use WritePwrScheme/SetActivePwrScheme APIs.
Or try to call CallNtPowerInformation( AdministratorPowerPolicy, ..) to set up ADMINISTRATOR_POWER_POLICY structure fields.
Particularly try setting MinVideoTimeout and MaxVideoTimeout parameters to some big value. I tested that on XP Pro and XPe/Minlogon
and worked great for me there.
Check MSDN for more details on the functions.