3

Can I resume Ubuntu after suspend by shortcut from keyboard?

I have a docking station with thinkpad and an external monitor. My laptop is always closed, so I need to open it and close again to resume system, it's annoying.

1

If the external keyboard is USB, you probably can, although it depends on your motherboard.

Check /proc/acpi/wakeup it shows all supported wakeup sources and their states. To toggle the state, simply echo the wakeupsource name back to the same file.

Example, to enable/disable wakeup from a usb device on my system, i do:

# cat /proc/acpi/wakeup |grep HC
EHC1      S4    *disabled  pci:0000:00:1d.0
EHC2      S4    *disabled  pci:0000:00:1a.0
XHC   S4    *disabled  pci:0000:00:14.0
# echo XHC > /proc/acpi/wakeup 
# cat /proc/acpi/wakeup |grep HC
EHC1      S4    *disabled  pci:0000:00:1d.0
EHC2      S4    *disabled  pci:0000:00:1a.0
XHC   S4    *enabled   pci:0000:00:14.0
# 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.