What does the various files in /proc/driver/battery/* have to say about the status?
- Bundabrg
[div align=\"right\"][a href=\"index.php?act=findpost&pid=107840\"][{POST_SNAPBACK}][/a][/div]
They don't change, but that makes sense given the below...
I have discovered that loading the matchbox panel causes it to operate correctly - something there is watching for power events and calling apm. I put a debug line in the /usr/bin/apm wrapper script, which shows output each time it is unplugged/plugged in with the panel running, and absolutely nothing without the panel.
It would be a bit pointless to run xfce with the matchbox panel, and I can't figure out how to hide it away. Watch out if testing this because the matchbox panel seems to be a bit finicky and a wrong setting or kill can cause it to stop the apm events too (it takes some fiddling to get it to work again).
I have looked for a bit, but I can't seem to find what is causing the panel to do this - if we could find it, I think that would be the solution.
Also if there is any way of simply running a script at each power event, running 'lightnpower.py --loadandquit' will update the settings fine (as done in the xinitrc).
Thanks for any help
EDIT:
Does xset fit in here anywhere?
The battery monitor applet can run commands when the battery gets low - can it be set up to run a command when changing from AC to battery/vice versa?