Skip to content

Instantly share code, notes, and snippets.

@moraisaugusto
Last active September 22, 2021 22:05
Show Gist options
  • Save moraisaugusto/2ce971f9b43ff1371a3ba35c7992efd5 to your computer and use it in GitHub Desktop.
Save moraisaugusto/2ce971f9b43ff1371a3ba35c7992efd5 to your computer and use it in GitHub Desktop.
wakeup sleep mode from usb keyboard
# find out your keyboard usb device
$ lsusb
...
Bus 001 Device 007: ID feed:1203 kb68 kb68
...
$ sudo su
$ echo enabled > /sys/bus/usb/devices/usb7/power/wakeup
# make it permanent
$ vim /etc/udev/rules.d/10-wakeup.rules
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="feed", ATTRS{idProduct}=="1203" RUN+="/bin/sh -c 'echo enabled > /sys/bus/usb/devices/usb7/power/wakeup'"
# idVendor = feed
# idProduct = 1203
#Done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment