I want to make an arrangement in my application such that when a key is pressed palm 
goes in sleep mode.
System uses syssleep.but i found no documentation on it.
do any body know how it can be achieved?

On Tue, 05 Feb 2002 Jim Schram wrote :
> At 1:47 PM -0800 2002/02/04, Michael Zapeda wrote:
> >Thanks for the info, Jim. However, what if I want to 
> modify the auto-off
> >timer from *outside* my app.
> 
> What code would you have running outside of your app?
> 
> 
> >For instance, in my app, set the auto off for
> >lets say, 30 minutes. I want that 30 minute auto-off 
> value to persist
> >globally, even if my app isn't running.
> 
> Well, that's what the system preference is -- a global 
> auto-off delay -- so you'd set the system preference 
> for 30 minutes (by calling SysSetAutoOffTime and 
> optionally by changing the auto-off delay default 
> system preference) rather than periodically resetting 
> the timer. Your original question seemed to be asking 
> how to prevent the device from falling asleep while 
> your app is running. It's generally not desirable to 
> lock the device on when it's not in-use or when it's 
> not plugged-in (except in specific vertical 
> applications, of course).
> 
> The issue with changing the system-wide auto-off delay 
> is that the user should be in control of, and informed 
> of, any changes your app makes to this setting. So for 
> example, you wouldn't change the system-wide setting 
> just to prevent the device from falling asleep while 
> your app is performing a lengthy operation... for that 
> you'd reset the auto-off timer periodically from within 
> your app while it's running.
> 
> Hope that helps clear up any confusion!
> 
> Regards,
> 
> Jim Schram
> PalmSource Inc.
> Partner Engineering
> 
> -- 
> For information on using the Palm Developer Forums, or 
> to unsubscribe, please see http://www.palmos.com/dev/tec-
> h/support/forums/
 


--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to