Enable Wake on USB
#1
I can't seem to get my zotac out of suspend mode by using the usb port while having a usb keyboard plugged in. I have tried in the past but gave up and decide to kick the tires again but with no such luck.

I have followed the guide posted on the wiki:

http://kodi.wiki/view/Archive:HOW-TO:Ena...for_Ubuntu

Here is a what the lsusb command looks like:
PHP Code:
Bus 001 Device 001ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 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 003 Device 002
ID 04f3:0103 Elan Microelectronics CorpActiveJet K-2024 Multimedia Keyboard
Bus 003 Device 001
ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001
ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001
ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 006 Device 004
ID 20a0:0001 Clay Logic 
Bus 006 Device 002
ID 2109:0811  
Bus 006 Device 001
ID 1d6b:0002 Linux Foundation 2.0 root hub 

Here is the output of the cat /proc/acpi/wakeup command:
PHP Code:
Device    S-state      Status   Sysfs node
P0P1      S4    
*disabled  pci:0000:00:1e.0
P0P4      S4    
*disabled  pci:0000:00:1c.0
P0P5      S4    
*disabled  pci:0000:00:1c.1
P0P6      S4    
*disabled  pci:0000:00:1c.2
P0P7      S4    
*disabled
P0P8      S4    
*disabled
P0P9      S4    
*disabled
USB0      S3    
*enabled   pci:0000:00:1d.0
USB1      S3    
*enabled   pci:0000:00:1d.1
USB2      S3    
*enabled   pci:0000:00:1d.2
USB3      S3    
*enabled   pci:0000:00:1d.3
EUSB      S3    
*enabled   pci:0000:00:1d.7 

All USB devices seem to be enabled but I am not able to resume using FLIRC or even a keyboard.

Any guidance or help would be appreciated.
Reply
#2
I always thought wake-on-USB has to be turned on in the bios?! Did you take a look in the bios settings and enable it there, first?
Reply
#3
(2015-04-04, 18:23)David1977 Wrote: I always thought wake-on-USB has to be turned on in the bios?! Did you take a look in the bios settings and enable it there, first?

Yup it's enable there as well still can't seem to get it going.
Reply
#4
Try this udev rule.

Code:
# /etc/udev/rules.d/10-enable-wake-from-S3-via-keyboard.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="xxxx", ATTRS{idProduct}=="xxxx", RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../../power/wakeup'"

Replace xxxx with vendor and product id for your device.
Reply
#5
(2015-04-04, 23:30)decaturguy Wrote: Try this udev rule.

Code:
# /etc/udev/rules.d/10-enable-wake-from-S3-via-keyboard.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="xxxx", ATTRS{idProduct}=="xxxx", RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../../power/wakeup'"

Replace xxxx with vendor and product id for your device.

I wasn't able to get the udev rule working but it did send me on the right track.

I had to enable sysfs based wakeup

I added the following commands to the rc.local:

echo enabled > /sys/bus/usb/devices/usb1/power/wakeup

Added that command for all usb ports on my zotac 1 through 7 rebooted and I was able to wake up from suspend using my keyboard and also FLIRC.
Reply
#6
I'm glad it all worked out for you. Big Grin
Reply

Logout Mark Read Team Forum Stats Members Help
Enable Wake on USB0