20090630 removing the suspend button from the gnome panel - plembo/onemoretech GitHub Wiki

title: Removing the Suspend button from the Gnome panel link: https://onemoretech.wordpress.com/2009/06/30/removing-the-suspend-button-from-the-gnome-panel/ author: lembobro description: post_id: 292 created: 2009/06/30 13:31:22 created_gmt: 2009/06/30 13:31:22 comment_status: open post_name: removing-the-suspend-button-from-the-gnome-panel status: publish post_type: post

Removing the Suspend button from the Gnome panel

From Red Hat Magazine, Tips and tricks: How do I remove the suspend/hibernate entries from the system menu in the Gnome panel?.

Suspend and hibernate notoriously don’t work too good on Linux, or, for that matter, Windows due to vendor hardware specs being all over the map with respect to their implementation of the “standard(s)”. As a result, having that Suspend button hanging around is an invitation to disaster, or at least a time-consuming reboot when the machine refuses to wake up.

The simple answer is to remove the stupid button.

Basically there are two ways of doing this, graphically using gconf-editor or at the command line. But the graphical method will only work with the current user running the editor. Most of us need to do this globally because the other people using our machines are even less Linux-savvy than we are and even more likely to hit Suspend by mistake.

Here’s a screenshot of the gui method in action anyway:

(note that I’ve only unchecked suspend above, to complete the task I’d also clear the hibernate checkbox before saving)

From the article, here’s the magic command line code to do the same thing:

gconftool-2 --type boolean --set /apps/gnome-power-manager/can_suspend false

gconftool-2 --type boolean --set /apps/gnome-power-manager/can_hibernate false

and here’s how to do it globally (as root):

gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type boolean --set /apps/gnome-power-manager/can_hibernate false

gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type boolean --set /apps/gnome-power-manager/can_suspend false

Log out of the desktop and back in again to see the change.

Copyright 2004-2019 Phil Lembo