Windows CE Registry Setting - Never Power Off
-
03-07-2019 - |
Question
I have a unique industrial application where I do not want the Windows CE device to ever power off (powering off cuts the wireless connection, resulting in a looooong delay re-establishing a link to the server). The issue: a hard reset removes the "never turn off" setting of the device, allowing it to sleep. Avoiding a hard reset is not an option, as the devices sometimes require them.
What is the registry key that controls this? The idea is, with a registry file, the device will merge the key into the system at boot, negating the need for manually setting this.
To save time, the answer was in a comment below, so I've re-pasted it here for reference:
The registry entry is: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\Timeouts] "BattSuspendTimeout" = dword:00000000
Solution
What is the device?
With Symbol brand scanners running CE you have to use a special program (available for free) from symbol that basicly takes a snap shot of the device - then you set your settings for what you want and it takes another snapshot - it then writes the code to reset all the registry settings for you in case of a cold boot.
With more info on the device I may be able to help more.
OTHER TIPS
Try this code:
REGEDIT4
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\Timeouts]
"BattSuspendTimeout"=dword:0