Power management settings

  • Thread starter Thread starter Elisa
  • Start date Start date
E

Elisa

Hi,

Does anyone know if you can set any of the following programmatically:

- On battery power, turn off device if not used for XX minutes.
- On battery power, turn off backlight if device is not used for XX minutes.
- On external power, turn off device if not used for XX minutes.
- On external power, turn off backlight if device is not used for XX
minutes.


Regards,

Elisa
 
Hi

You can use SystemParametersInfo

http://msdn.microsoft.com/library/d...-us/wceui40/html/cerefSystemParametersInfo.as

Or you can change the values in the registry. For example, I set the 'Turn off device if not used for XX minutes' by using the registry key 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\Timeouts' and setting the value of BattSuspendTimeout to 0. That way the device will not turn off. When you set the value it's in seconds

hope this help
 
Hi,

The registry keys indeed solve two out of the four items, but sadly I
can't find any registry keys that set the timeouts for the backlight...


Regards,

Elisa
 
Hi,

It looks as if there is no standard way to set the backlight timeouts,
every manufacturer has is own way of doing it. Too bad!


Regards,

Elisa
 
Back
Top