Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I set up a keyboard shortcut that I can use instead of clicking this menu item?


I have read about various terminal commands for suspending which I could easily assign to a keyboard shortcut, but all have required the use of sudo. I am looking for a solution that I can use on a system where I do not have administer privileges.

share|improve this question

2 Answers 2

up vote 26 down vote accepted
  1. Install the powermanagement-interface Install powermanagement-interface package first, it provides the pmi command we will use to suspend.
    UPDATE: I looked at the source for pmi and the command it uses to suspend is:

    dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend

    If you can't install pmi, replace pmi action suspend with that command in the next step.

  2. Open up System -> Preferences -> Keyboard Shortcuts, click on Add and put pmi action suspend as the command.

    alt text

  3. Click on the newly created shortcut entry, and set the shortcut keys.

    alt text

share|improve this answer
On Precise I had to apt-get install hal but working nicely now. –  Cas Aug 10 '12 at 22:16
Doesn't work for me in 14.04 –  kermit666 Aug 9 '14 at 12:44

Same as above, but use this command instead:

dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.Suspend" boolean:true

Source: http://forum.ubuntu-fr.org/viewtopic.php?pid=16497311#p16497311

share|improve this answer
This really should be an edit. –  muru Oct 28 '14 at 23:27

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.