My *nix world

Xfce reboot shutdown suspend disabled

When installing Gentoo with Xfce desktop environment it happens that Restart/Shutdown buttons are greyed when you are logged with a non-root user.

Searching many forums I found many "solutions" that didn't done the trick for me. But I also found the following article on Gentoo Forums: http://forums.gentoo.org/viewtopic-t-889144-start-0.html

By creating a file called /etc/polkit-1/localauthority/50-local.d/power.pkla with the following content:


my Reboot/Shutdown buttons becomes instantly enabled and I was able from that point to restart/shutdown my system safely from desktop (instead from console with "sudo reboot" or something).

A second problem I have encountered was that suspend button shows an error message which said "not authorized". The problem is that we need to define a policy kit rule in the /etc/polkit-1/localauthority/50-local.d/upower.pkla file with the following content:


After that Suspend (to RAM) works like a charm.

Note: you can debug your system suspend/hibernate commands at a lower level by using the /sys/power/* files. Read more here.

Conclusion: first Xfce reboot shutdown suspend disabled now they are enabled 😉

Now, if you think that this article was interesting don't forget to rate it. It shows me that you care and thus I will continue write about these things.

 
The following two tabs change content below.
Xfce reboot shutdown suspend disabled

Eugen Mihailescu

Founder/programmer/one-man-show at Cubique Software
Always looking to learn more about *nix world, about the fundamental concepts of math, physics, electronics. I am also passionate about programming, database and systems administration. 16+ yrs experience in software development, designing enterprise systems, IT support and troubleshooting.

5 thoughts on “Xfce reboot shutdown suspend disabled

  1. Sergey

    Argh, I also did quite a bit of searching on forums, now found your post — but it seems I have to continue my hunt for a solution... Your method didn't work for me.

    1. Eugen Mihailescu Post author

      Xfce is changing periodically and nonetheless the users (like you|me) have virtually infinite possible configurations, therefore the presented solution might work or not. So keep looking, I am absolutely sure somebody met the same symptom (like you) and hopefully he/she found a fix that might help.

Leave a Reply

Your email address will not be published. Required fields are marked *

Follow

Get every new post on this blog delivered to your Inbox.

Join other followers: