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.
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
#