inside X use " xset dpms force off" instead of apm -s
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104630\"][{POST_SNAPBACK}][/a][/div]
Nice. That works at least a few times on my 3100. Would there be a way to bind that to the action of the On/Off button under X (that is, does that button trigger a script)? Okay, at least some of the scripts are in /etc/apm, which is an init.d-like setup, and already includes something that's supposed to be handling the clocks, for instance.
Could it be a timing issue, where these scripts are stepping on each other's toes? It looks like all the little hacks with the hwclock elsewhere that work for some people are just repeating stuff that's already attempted here.
Okay, here's what I'm testing, and so far on short suspends (where were a real problem) it's working fine:
- go to /etc/apm and mv suspend.d suspend.d.back
- mkdir suspend.d
- cd scripts.d and cp template xset
- edit xset to add two lines to the suspend section like this:
suspend() {
sync
xset dpms force off
}
- cd ../suspend.d
- ln -s ../scripts.d/xset 100xset
The result of this is that instead of the four scripts that were invoked on suspend before, now all that's done is the storage is sync'd (perhaps not necessary, but a safety measure) and then of course dpms is forced off.
This is untested over longer periods. But it can be reversed merely by deleting or renaming the new suspend.d subdir and renaming the old one back to itself. I'll check back later if it proves dependable. In short periods it's working fine to turn it off with the On/Off button, and back on with either that or the Home button, and the clock seems okay. Sure beats having to yank the battery after every suspend.