Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On OpenSUSE 12.1 x86_64, Gnome 3.2 . I want to remove the suspend and hibernate options from the Gnome (Shell) menu as

  • suspend makes no sense IMO for a desktop
  • hibernate has a slight tendency to lock up

I've found that I should configure these privileges using polkit. I've dropped a file named 90-disable-suspend.conf ( also tried 90-disable-suspend.pkla ) in /etc/polkit-1/localauthority.conf.d with the following contents:

[Disable Suspend]

However, running pkcheck --action-id org.freedesktop.upower.suspend --process $$ prints nothing and has an exit code of 0 , and the menu entries are still present. AFAICT these are provided by gnome-shell-extension-alt-status-menu package.

How can I remove the suspend and hibernate entries from the Gnome Shell menu and leave only Power Off?

share|improve this question
up vote 2 down vote accepted

The directory /etc/polkit-1/localauthority.conf.d is reserved for configuration files.

You should put your file in a subdirectory of /var/lib/polkit-1/localauthority and with extension .pkla. The directory /etc/polkit-1/localauthority should be ok too, but can be modified by updagraded/installed packages, so better to avoid it.

share|improve this answer

There is a really easy answer to this.

Go to /usr/sbin. Delete symbolic links pm-hibernate, pm-suspend and pm-suspend-hybrid.

Now when either 'Suspend' or 'Hibernate' is selected from the menu it will just do a 'Lock Screen' instead.

If you want to me doubly sure, go to /usr/lib/pm-utils/bin and move pm-action to pm-action.mv as this is the executable that the above symbolic links pointed to.

share|improve this answer
Thanks Mark, but I'd rather not touch files under /usr since they will get restored on an update. – Robert Munteanu Sep 6 '12 at 19:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.