Ask Your Question
0

Is there a keyboard shortcut for system hibernation from Gnome

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

rlaenen gravatar image

Hi,

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

Comments

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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

yanglifu90 gravatar image

See http://ubuntuforums.org/showthread.php?t=1857940

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

Comments

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 -0600 )edit

Question Tools

Stats

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

Seen: 1,645 times

Last updated: Aug 26 '13