LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GUI shutdown from XFCE (Debian) does not work (https://www.linuxquestions.org/questions/linux-newbie-8/gui-shutdown-from-xfce-debian-does-not-work-4175509901/)

JeremyBoden 07-02-2014 03:01 PM

GUI shutdown from XFCE (Debian) does not work
 
Shutdown button (and logout too) ignored on Debian+XFCE on ancient laptop.

Workround of
Code:

gksu init 0
gives a clean shutdown, but other family users would not be able to cope with this.

Germany_chris 07-02-2014 03:01 PM

did you add yourself to the power group?

JeremyBoden 07-02-2014 05:10 PM

I didn't have a power group, so I created one
Code:

groupadd -g 2000 power
(on second thoughts, I'm probably not allowed to choose my own gid).
I added myself with
Code:

usermod -a -G power jeremy
and removed any group password with
Code:

gpasswd -r power
Final result is
Code:

~$ id jeremy
uid=1000(jeremy) gid=1000(jeremy) groups=1000(jeremy),27(sudo),2000(power)

But shutdown etc still doesn't work. :banghead:

norobro 07-02-2014 07:02 PM

Try adding acpi=force as a kernel command line parameter.

link - bottom of page.

JeremyBoden 07-03-2014 08:46 AM

Sad to say, this didn't work.

I altered the GRUB_CMDLINE_LINUX_DEFAULT line in /etc/default/grub from
Code:

GRUB_CMDLINE_LINUX_DEFAULT="quiet"
to
Code:

GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi=force"
and ran update-grub (and rebooted).

acpi appears to be running on the laptop:-
Code:

jeremy@dalek:~$ acpi -V
Battery 0: Charging, 95%, charging at zero rate - will never fully charge.
Battery 0: design capacity 2000 mAh, last full capacity 2000 mAh = 100%
Adapter 0: on-line
Cooling 0: Processor 0 of 0

Perhaps I should just write a suid script?


All times are GMT -5. The time now is 10:02 AM.