Last active
September 22, 2021 22:05
-
-
Save moraisaugusto/2ce971f9b43ff1371a3ba35c7992efd5 to your computer and use it in GitHub Desktop.
wakeup sleep mode from usb keyboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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