histographik
May 3rd, 2010, 06:28 AM
The old way of doing this in gconf-editor (gnome power settings) is now invalid.
Here is the new way of doing this!
================================================== ==============
First install devicekit-power:
#aptitude install devicekit-power EDIT (aptitude install upower) installed by default on Lucid
Then edit the power policy:
#sudo gedit /usr/share/polkit-1/actions/org.freedesktop.upower.policy
Under the following headings perform the following changes:
<description>Suspend the system</description>
Change the following entries:
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
To:
<allow_inactive>yes</allow_inactive>
<allow_active>no</allow_active><description>Hibernate the system</description>
Change the following entries:
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
To:
<allow_inactive>yes</allow_inactive>
<allow_active>no</allow_active>
All done. Reboot.
Now the Hibernate & Suspend buttons are removed! :-)
Here is the new way of doing this!
================================================== ==============
First install devicekit-power:
#aptitude install devicekit-power EDIT (aptitude install upower) installed by default on Lucid
Then edit the power policy:
#sudo gedit /usr/share/polkit-1/actions/org.freedesktop.upower.policy
Under the following headings perform the following changes:
<description>Suspend the system</description>
Change the following entries:
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
To:
<allow_inactive>yes</allow_inactive>
<allow_active>no</allow_active><description>Hibernate the system</description>
Change the following entries:
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
To:
<allow_inactive>yes</allow_inactive>
<allow_active>no</allow_active>
All done. Reboot.
Now the Hibernate & Suspend buttons are removed! :-)