I want to get rid of the Hibernate and Suspend options on the top-right menu in Unity. These do not work on my netbook and having them close to "logout" is not useful.
Asked
Active
Viewed 2,942 times
7
-
As this is the first answer from the Google. If your using a later version of Ubuntu (> 13.XX, it seems) try this answer instead https://askubuntu.com/questions/452908/how-to-disable-suspend-in-14-04 – Scott Warren Nov 20 '17 at 21:47
1 Answers
1
I assume you're using a much earlier distro since this post is apparently from 5 months ago. Anyway, I just did the opposite of what you're doing yesterday on Precise. Run the following command to open the file to edit:
sudo gedit /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla
Scroll to the bottom. Check to see if the following information exists, and if not add them:
[Disable hibernate]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=no
[Disable suspend]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend
ResultActive=no
Doing this makes those options do nothing when you click them; they will disappear from the menu after you restart your computer.

Jakob
- 10,579

Larry Price
- 411
- 3
- 13