I'm using xfce4-battery plugin for my laptop, there are 2 actions and I want the critical action to automaticaly shutdown the system.
I tried directly with the command "shutdown -h now" but nothing happened, thus I tried with sudo (It could be a problem of rights) but the same result
Any idea ?
Thank you for advance
Yes, you'll need to use sudo and make sure that you're allowed to run the command without a password.
username ALL=NOPASSWD:/sbin/shutdown -h now
I had already configured sudo for shutdown. But it works now cause I choose "run command", before it was "run command in terminal"....
Sorry, it was a stupid mistake
What if I would make use of HAL (I'm using Xfce 4.4) to shutdown on critical battery power? What command should I use in the plugin? I've already tried xfsm-shutdown-helper, but with no result (maybe there's some argument to pass to it?).
Do we need a plug in in order to use XFCE on a laptop?
I have xfce installed on an Apple iBook laptop but although the batery seems Ok,I can't use the computer only with battery.