Just wanted to put this down before I forget... Its niggling me in the back of the head and perhaps it might spark something off for someone else. I'll work on it a bit after I've slept on it.
We've (and by we've, I mean all except 6000 users :-P) gotten apmsleep going and thus the Z should be able to wake when needed. So far only kopi alarms are used as described in another thread.
I was toying with my Z and lamanting a bit how useless really a wireless card + email is on it, since using wireless I get at most 1.5 hours of use out of it. Its simply not possible to walk around the office and have the Z beep me when an email comes in. In fact, apart from updating the Z, I find wireless to be almost totally useless as when I use it I can feel the time ticking away.
Thats when I wondered that maybe there is a way to do it. What would happen is to have the Z suspend for say 5 mintutes, wake up... check emails (say with screen off to further preserve battery), and if nothing, suspend straight away again. This way you leave the wireless CF card in it, and as long as you're near your wireless net, it will act similar to a blackberry.
It would be relatively simply to have a script in wakeup.d that checks if OMPI is open, and if so, give a 5 minute timeout. Then have a script in resume.d that detects this particular event and triggers OMPI (or whatever) to check mail and force a quicker suspend if no event.
On a similar note, I'm proposing a slight change to the wakeup.d scripts, such that they can return a time AND a paramter (say 'kopi' if the kopi event is triggered), such that when a resume script is run it knows which wakeup even got triggered. I hope that makes sense. This means that if kopi was triggered, then a resume script can check to see if KOPI is even loaded, and if not, to also load it up (and thus trigger the alarm). Working this into the plan above, you'd have the 5 minute script pass a parameter of 'mail', and have a resume script detect this parameter and perform the mail check.
Just an idea. I'm thinking this way you get to keep the battery life, be able to have a mobile tool that can check for stuff like emails etc... Maybe there could be other users for peridic wakeup checks?
- Bundabrg