Showing posts with label Windows CE Power Manager. Show all posts
Showing posts with label Windows CE Power Manager. Show all posts

Tuesday, November 1, 2011

Customizing Power Manager for SetSystemPowerState()

Changing the system state can be as simple as a cup of tea! by calling SetSystemPowerstate() API. But not all power states can be allowed to set through this API in the default cases. For example setting to “SystemIdle” using this API will be failed.
There are some use cases, we may need to set “systemIdle” through our application/driver or we may need to deny the application/driver to set some power states.  Sometimes, we would like to have our own power state created and it may be allowed to set from the application/driver.  To do this, we have to customize the Windows CE power manager.

Reload the Power Manager activity timeout upon every booting in Hive based Registry

Power management is an important aspect of the modern embedded devices. Flexibility in the OS Power Manager is the key driver to meet the requirements of myriad of devices. Windows CE offers this flexibility, though developer has to do a quick tweak to use it effectively. This blog describes the power manager in Windows CE, problem faced and how to overcome it.
http://www.e-consystems.com/blog/windowsce/?p=112