Linux Resume from Suspend Not Working
#1
I'm using Xbmcbuntu 11.0 and can not seem to get my Wireless Keyboard to resume from suspend. I've been reading up as much as I can, and can't seem to figure out what may be wrong Any help would be greatly appreciated. Here's what I done so far.

Code:
$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 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 004 Device 003: ID 099a:7202 Zippy Technology Corp.
Bus 003 Device 002: ID 1784:0011 TopSeed Technology Corp.

The wireless keyboard should the Zippy Technology one.

Code:
$ grep 7202 /sys/bus/usb/devices/*/idProduct
/sys/bus/usb/devices/4-5/idProduct:7202

Code:
$ cat /sys/bus/usb/devices/4-5/power/wakeup
enabled

Code:
$ cat /proc/acpi/wakeup
Device  S-state   Status   Sysfs node
SMB0      S4    *disabled  pci:0000:00:03.2
USB0      S4    *enabled   pci:0000:00:04.0
USB2      S4    *enabled   pci:0000:00:04.1
US15      S4    *disabled  pci:0000:00:06.0
US12      S4    *disabled  pci:0000:00:06.1
PBB0      S4    *disabled  pci:0000:00:09.0
HDAC      S4    *disabled  pci:0000:00:08.0
XVR0      S4    *disabled  pci:0000:00:0c.0
XVR1      S4    *disabled
P0P5      S4    *disabled
P0P6      S4    *disabled  pci:0000:00:15.0
P0P7      S4    *disabled
P0P8      S4    *disabled
P0P9      S4    *disabled
NMAC      S5    *disabled

and in rc.local file I have
Code:
# Enable USB Wake
echo "USB0" > /proc/acpi/wakeup
echo "USB1" > /proc/acpi/wakeup
echo "USB2" > /proc/acpi/wakeup
echo enabled > /sys/bus/usb/devices/4-5/power/wakeup
exit 0

So am I going wrong someplace? What could possibly be causing me not to resume from suspend?
Reply
#2
Usually if using a remote, only one key from the remote wakes up the system, ie pressing play or menu etc, won't wake up the unit, only the power Button.

Possibly the same issue with your wireless key. Probably it's being seen by the system, but isn't a valid key press to wake the unit.

Only a guess here but thought I'd mention in case it pointed you in the right direction.
Media Companion Dev.
Media Companion - Kodi / XBMC - Media Companion
Reply
#3
Sure looks like you have all the right bits sorted. The only thing I have in my notes that a possilbe problem is that there is meant to be a line space between the stuff that was originally in the rc.local file and the additions you've added. There was nothing in my rc.local file to begin with, except commented out stuff, but I thought I'd post mine to show the space

Code:
# By default this script does nothing.

echo US15 > /proc/acpi/wakeup
echo enabled > /sys/bus/usb/devices/4-4/power/wakeup
exit 0

On my logitech wireless keyboard, only the spacebar will kick it up from standby.

You could always try enabling all your USB ports.

Hope this helps.

ZOTAC IONITX-D-E Intel Atom N330 Dual Core 1.6 GHz NVIDIA ION with LIVE on SSD (now updated to Nvidia Shield Pro (P2897)
Reply
#4
I tried enabling all ports with this script, but still will not wake from a suspend. I did that this working in the past on this machine via a full ubuntu install with xmbc.

Code:
#set wake via remote
echo enabled > /sys/bus/usb/devices/3-5/power/wakeup
for i in 0 1 2 3 4 5
do
enabled=`cat /proc/acpi/wakeup | grep "USB$i" | awk {'print $3}'`
echo "$enabled"
if [ "$enabled" = "disabled" ] || [ "$enabled" = "*disabled" ]
then
echo "USB$i" > /proc/acpi/wakeup
fi
done

One thing I "think" that shouldn't matter is that when I first installed XBMCbuntu, I did install a username and password and did not use the defaults.
Reply
#5
I finally got this working!! But all I did was try a different USB port on the side vs back of the machine. I may fiddle some more but at least it works.

And it also resumes from any key press, not just the space bar.
Reply

Logout Mark Read Team Forum Stats Members Help
Resume from Suspend Not Working0