PDA

View Full Version : Is it possible to put the Palm into sleep mode?


MikaelJ
07-03-2004, 07:56 PM
Hi,

Does anyone know if it's possible to put the Palm (CLIE) into lower-power sleep mode programatically?

From http://www.palmos.com/dev/support/docs/palmos/SystemFeatures.html:
"The system calls SysSleep to put itself immediately into low-power sleep mode. Normally, the system puts itself to sleep when there has been no user activity for the minimum auto-off time or when the user presses the power key. "

Is there any way an app can put the Palm to sleep mode (turn it off) ?

Thanks,

Mikael

CWolf
07-04-2004, 08:01 AM
Erm, you can set the power off time in the standard Palm Prefs!

bh77a
07-04-2004, 10:23 AM
There are a couple of free apps that allow you to have greater flexibility over this that are on http://www.freewarepalm.com .

Are you asking if you as a programmer could write an app to do this - well then yes but there are already a couple that handle this...

CliePet
07-05-2004, 12:38 PM
> Does anyone know if it's possible to put the Palm (CLIE) into lower-power sleep mode programatically?
There are plenty of ways of making sure the PDA doesn't turn off too soon.

To make it turn off, look for "EvtSetAutoOffTimer", you can specify an exact timeoff value.
Set a small timeout, and then expect the PDA to turn itself off (unless a background process is keeping it alive). This is a temporary change for your app (there are other APIs and programs to change the permanent device-off timeout, but your program should not touch those)

MikaelJ
07-06-2004, 05:14 PM
Great! This solves my problem. Thanks for the answers :)