Xfce Forum

Sub domains
 

You are not logged in.

#1 2006-09-05 14:53:12

guymage
Member
Registered: 2006-09-05
Posts: 2
Website

xfce4-battery -> shutdown computer

Hi all,

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 hmm

Any idea ?

Thank you for advance

Offline

#2 2006-09-05 16:37:29

stonecrest
Member
Registered: 2004-09-25
Posts: 32

Re: xfce4-battery -> shutdown computer

Yes, you'll need to use sudo and make sure that you're allowed to run the command without a password.

/etc/sudoers

username ALL=NOPASSWD:/sbin/shutdown -h now

Offline

#3 2006-09-07 19:04:14

guymage
Member
Registered: 2006-09-05
Posts: 2
Website

Re: xfce4-battery -> shutdown computer

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 tongue

thanks.

Offline

#4 2007-10-27 10:34:17

girolamo
Member
Registered: 2007-10-27
Posts: 1

Re: xfce4-battery -> shutdown computer

Hi all.
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?).
Thanks.

Offline

#5 2007-11-04 16:31:23

clyde2
Member
Registered: 2007-11-03
Posts: 2
Website

Re: xfce4-battery -> shutdown computer

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.

Offline

Board footer

Powered by FluxBB