Skip to content

Instantly share code, notes, and snippets.

@lvnilesh
Created March 26, 2025 21:06
Show Gist options
  • Save lvnilesh/a29c613f28c08b386849dc9ad2f2ee07 to your computer and use it in GitHub Desktop.
Save lvnilesh/a29c613f28c08b386849dc9ad2f2ee07 to your computer and use it in GitHub Desktop.
wakeup rules to wake linux up when using keyboard or mouse
# touch /etc/udev/rules.d/10-wakeup.rules
```
lsusb
Bus 001 Device 021: ID 046d:c548 Logitech, Inc. Logi Bolt Receiver
```
046d:c548
```
cat 10-wakeup.rules
# /etc/udev/rules.d/10-wakeup.rules
ACTION=="add", \
SUBSYSTEM=="usb", \
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c548", \
ATTR{power/wakeup}="enabled"
```
https://askubuntu.com/questions/848698/wake-up-from-suspend-using-usb-device/1027058#1027058
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment