Quote:
Originally Posted by K-Wizzz
Please correct me if I am wrong, but AFAIK pm-utils cannot manage things like 'after 10 minutes of idle time, sleep' or 'if battery is low, hibernate' (if you have a solution for this, let me know!) -- and I have to run them as root. That's the reason why I was using xfce4-power-manager; but whenever you plug in / plug off your AC, xfce4-power-manager creates a little pop-up-window that is annoying independently of my rudeness setting (it just works right with xfce or kde -- balloon messages from systray).
|
I don't have mine set up to go to sleep when idle, and rarely run on battery. I suppose you could set up a simple shell script to use acpi to poll battery level every minute or so, then hibernate when it goes below a certain level. pm-utils is meant to be run as root, but you can set up sudo to allow certain commands without passwords. You can set it up with visudo to allow members of group "users", say, to use any of a list of commands by using the sudo command but without entering a password.
Using visudo I put in this:
Code:
Cmnd_Alias POWER = /sbin/shutdown, /sbin/reboot, /usr/sbin/pm-suspend, /usr/sbin/pm-hibernate
and:
Code:
%users ALL= NOPASSWD: POWER
My ratpoison rudeness setting is 5, which only allows focus stealing by pop-up windows from the current application. I don't currently use anything that creates notifications, but when I have they pop up in the background.