HOWTO: Disable Suspend and Hibernate – Ubuntu
For some people, such as myself, the suspend/hibernate features in Ubuntu cause trouble, in my case, a lockup, or just general misbehaviour of the system. And in the power menu, it’s all too easy to click one instead of another. So it makes sense to disable the features from the power menu. The idea for this post, and the method for Ubuntu 10.04 comes from this thread over on UF.
Open a Terminal from Applications>Accessories>Terminal. Type in the following, and hit enter. When prompted, provide your password
gksudo gedit /usr/share/polkit-1/actions/org.freedesktop.upower.policy
There are two sections in this file, the first for suspend and the second for hibernate. Near the end of each section will be a line with:
Change this entry from “yes” to “no” to disable hibernate/suspend.
The only difference between the process for 10.04 and 9.10 is the location of the file. Use the following line instead to open the file.
gksudo gedit /usr/share/polkit-1/actions/org.freedesktop.devicekit.power.policy
That’s it! The hibernate and suspend options will no longer be shown in the power menu in Gnome, so no more accidental lockups for you!
Or me… 😉
Filed under: HowTo, Posts, Ubuntu | 19 Comments
Tags: HowTo, Linux, Ubuntu