PDA

View Full Version : [all variants] Suspend Hibernate Button Removal (New Method)



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! :-)

SnickerSnack
May 3rd, 2010, 06:39 AM
Whenever I get a new keyboard for a desktop (I avoid such buttons in the first place, but if I get one that does have them), one of the first things I do is open it up and remove the mechanisms from any shutdown/suspend/sleep/etc buttons....

But, for a laptop, this is a good thing to have.

Thanks for posting it!