apmsleep actually works ;-). As mentioned in the other thread, if you use apmsleep from a terminal window (or indeed, directly call 'apm --suspend'), when you resume the pda is very slow and unresponsive till you suspend and resume the normal way.
When you suspend using xset, ie by doing the following: -
xset dpms force off
Then it does something, and calls 'apm --suspend' as its last step. It seems to work fine.
I have already modified /usr/bin/apm to call run-parts on a directory of files when suspending. However if you edit /usr/bin/apm, and instead of getting it to call 'apm.x --suspend' to perform the suspend, you call 'apmsleep +00:01', it will go to sleep, wake up a minute later and it works fine.
SO... what needs to be done is as follows: -
1. Modify /usr/bin/apm to call something else to checks the calender (and perhaps a few other things) for the next event that occurs. Work out how many minutes/seconds away, or work out the absolute time.
2. If no event at all, then call 'apm.x --suspend'.
3. If there is an event, then call '
apmsleep +relative' or
'apmsleep absolute' in /usr/bin/apm
4. The pda will wake up at that time, and the event will trigger the alarm.
5. Probably be good to have some way of when being woken by event (rather than by user) it is re-suspended in a shorter time (say 30 seconds). Havn't worked out a good way of doing that yet since apm doesn't seem to be called on resume.
Anyway, mooch point for me for the moment since for some obscure reason KOPI doesn't actually play audibly any alarms on my C860. If I set the alarm as a procedure alarm that calls a script that calls 'play blah', it plays the sounds, but not otherwise.
- Bundabrg
Any update on this? I really want my Z to have an wake-up/alarm function. This is one of the reasons my Z languishes unused for over long periods. I know people say that their Z is like a mini laptop... and it is fantastic, but I also want it to be pda too.
Oooh, dodgy ground here I think... but the alarm function is a big thing for me. If a crappy little £10 data bank can buzz me, why can't my Z?
Please tell me it can and that I am talking utter drivel.
J
[div align=\"right\"][a href=\"index.php?act=findpost&pid=90437\"][{POST_SNAPBACK}][/a][/div]