Ask Your Question

Is there a keyboard shortcut for system hibernation from Gnome

asked 2013-08-26 13:50:36 -0500

rlaenen gravatar image


Does someone happen to know if there is any keyboard shortcut available for putting the system into hibernate state from within Gnome ?

Tx for yr help.

edit retag flag offensive close merge delete


There isn't a shortcut by default. If you want to hibernate when closing your laptop lid, you can edit /etc/systemd/logind.conf and add HandleLidSwitch=hibernate. You could try creating a custom keyboard shortcut (Settings -- Keyboard -- Shortcuts) but I'm not sure if it's possible to create a shortcut for pm-hibernate as it requires sudo (AFAIK).

jamielinux gravatar imagejamielinux ( 2013-08-26 14:10:28 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-08-26 16:39:05 -0500

yanglifu90 gravatar image


Be sure to test whether your device support hibernation by opening a terminal and run sudo pm-hibernate and resume and see whether the terminal is still there or not.

Read vim manual by man vim

Then run sudo visudo and add those two lines mentioned in the above link

Assign any keyboard shortcuts to run sudo pm-hibernate in settings and restart to take effect.

Search before you ask.

edit flag offensive delete link more


adding these lines to sudo file (i'm a member of the weels group) Cmnd_Alias SHUTDOWN_CMDS = /sbin/shutdown, /sbin/reboot, /sbin/halt, /usr/sbin/pm-suspend-hybrid, /usr/sbin/pm-suspend, /usr/sbin/pm-hibernate, /usr/sbin/pm-powersave %wheel ALL=(ALL) NOPASSWD: ALL and then adding it to control-H shortcut but nothing is happening after restart and press of control-H

rlaenen gravatar imagerlaenen ( 2013-08-28 14:02:42 -0500 )edit

Question Tools


Asked: 2013-08-26 13:50:36 -0500

Seen: 1,650 times

Last updated: Aug 26 '13