Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I'm using an external keyboard for my laptop. The keyboard (USB) does not have a suspend button. This means that I have to keep opening my laptop's lid (I don't want to do that very often as I'm also using an external monitor) in order to wake the laptop up from the suspended state.

Can I map some key combination to wake the laptop up from the suspended state?

Note that it may not be as trivial as it seems, as it has to work for waking the laptop up and likely Gnome shortcuts and similar things will not work. Likely it has to be some lower level thing, but what (if at all possible)?

PS: I'm using Ubuntu 11.04 64 bit

share|improve this question
up vote 1 down vote accepted

When the computer suspends, Ubuntu is no longer running until you resume, so there is no way for Ubuntu to set a keyboard shortcut that will work while the computer is suspended.

Many PC's have an option in the BIOS to trigger a resume from suspend if any key is pressed. That may be your best bet, combined with setting a specific shortcut inside Ubuntu for suspending.

share|improve this answer
I understand. So I assume external keyboards that have a suspend button on them are sending a "hardcoded" signal that the hardware in a laptop can understand (so no involvment from the software/OS). – user12681 May 6 '11 at 4:14
It doesn't matter whether the keyboard is external or not. I've never heard of any feature that maps specific keys while a computer is suspended. The only feature I've seen is what I've described above: wake-up on any key press. – Ryan Thompson May 6 '11 at 6:30

Your Answer


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