USB Wakeup

Further to my earlier post on this, I tried setting up a udev rule so I created the following in /etc/udev/rules.d/90-hid-wakeup-enable.rules

# USB hub
SUBSYSTEM=="usb", ATTRS{idVendor}=="1a40", ATTRS{idProduct}=="0101" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../../power/wakeup'"
SUBSYSTEM=="usb", ATTRS{idVendor}=="8087", ATTRS{idProduct}=="0024" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../../power/wakeup'"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1d6b", ATTRS{idProduct}=="0002" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../../power/wakeup'"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1d6b", ATTRS{idProduct}=="0003" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../../power/wakeup'"
# logitech keyboard
SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../../power/wakeup'"

Which enabled most of the device tree for wake up but for some strange reason when I checked on the status it will still reporting one as disabled:

[root@fedora-pc ~]# find /sys/devices/pci0000\:00/0000\:00\:1a.0/usb1 -iname wakeup -exec cat {} \; 

Ok, so who was the odd one out:

[root@fedora-pc ~]# find /sys/devices/pci0000\:00/0000\:00\:1a.0/usb1 -iname wakeup

A quick enable:

echo enabled > /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6.2/power/wakeup

And the keyboard is once again resuming...


Popular posts from this blog

Windows Server and the Task Scheduler Error Code 0x3

The living wage failure

IDE's and speed