miércoles, 2 de septiembre de 2015

Enable resume from keyboard after suspend on Unix/Linux systems

Then check you devices vendor and product id's with

Code:
$lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 046d:09a5 Logitech, Inc. Quickcam 3000 For Business
Bus 003 Device 002: ID 046d:c52e Logitech, Inc.

and create a new rule with

Code:
$ sudo gedit /etc/udev/rules.d/90-keyboardwakeup.rules

to insert them in the file. In my case 046d and c52e:

Code:
SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52e" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'"
reboot and try it.