xfce Remove Suspend and Hibernate Menu Options

If xfce Suspend / Hibernate causes problems, the answer may be to remove the options from the menu.

It is common to have Suspend / Hibernate problems, especially on VM Guests which have their own mechanisms. If these features do not work it is somewhat risky to leave the menu options in place, especially given their close proximity to functions in use frequently, such as Reboot and Shutdown.

So, the best solution is to remove the menu options.

  1. Remove the Suspend and Hibernate options from the Log Out option on the main menu.

  2. Remove the Suspend option from the main menu.

1 ... Remove Suspend / Hibernate from the Log Out Menu

This can be achieved via GUI or command line.

Remove using the GUI

From the Application menu select Settings Manger.

Then select Panel.

Settings Manager -> Panel

Then select the Items Tab and the Action Buttons line, and press the 'Edit currently selected item' button in the vertical list on the right.

Panel -> Items Tab -> Action Buttons

Then uncheck the Suspend and Hibernate options. (In some distro setups you will also want to disable the Hybrid Sleep option).

Panel -> Items Tab -> Action Buttons line -> Uncheck Suspend / Hibernate

Remove using the Command Line

Open a terminal and execute this command to remove the Suspend option:-

xconf command to remove the Suspend Option from the Log Out menu

and then do the same for the Hibernate option.

xconf command to remove the Hibernate option from the Log Out menu

If your Distro provides the Hybrid Sleep option, remove it with:-

xconf command to remove the Hybrid Sleep option from the Log Out menu

2 ... Remove the Suspend option from the main menu

From the Application Manager select Settings Manager.

Then select Settings Editor

Settings Manager -> Settings Editor

Then select 'xfce4-session' and under 'shutdown' uncheck 'ShowSuspend', 'ShowHibernate' and potentially 'ShowHybridSleep'.

Settings Editor -> xfce4-session -> shutdown - Uncheck Suspend and Hibernate

and that is it. All changes whether though GUI or command line are immediate, no need to log out first.

My Projects