What does it really take to put a device into doze mode? Will
calling EvtGetEvent with a modest value (5, 10, 20) for the timeout
parameter do the trick? Or will it only doze if you pass
evtWaitForever?

The device will doze if there's nothing to do, even if that means dozing for a very short amount of time. There isn't a way to guarantee that it'll doze: a lower priority task might cause it to be busy even if your app doesn't need anything to be going on.


In general you should give the longest timeout parameter possible, and call SysTaskDelay instead of being in a tight loop waiting for the pen to go up or down, etc. This'll usually mean that it dozes... but calling these functions doesn't actively put the system into doze mode: they allow it to doze if nothing else important needs doing.

Sort of an active versus passive situation: you can prevent a device from dozing, if you never call these functions, but you can't force it to doze. (If you don't lead your horse to water, it can't drink...?)

-David Fedor
PalmSource, Inc.



David,


thank you for your answer.

This is exactly what I was looking for (and agrees with what I was assuming was true).

Thanks,

Ted


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

Reply via email to