MCE Remote wake from standby issues
#1
Hi All,

I have just recently installed XBMCbuntu and am having issues with wake from suspend.

My various output that might be relevant is as follows:

lsusb
Code:
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:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 0471:0815 Philips (or NXP) eHome Infrared Receiver
Bus 002 Device 003: ID 046d:c52e Logitech, Inc.

dmesg | grep mceusb
Code:
[    6.446754] mceusb 1-1.4:1.0: Registered Philips eHome Infrared Transceiver on usb1:3
[    6.446767] usbcore: registered new interface driver mceusb
[    7.135377] rc rc0: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor = 0

I thought the solution would be to edit my rc.local to show the following:
Code:
echo enabled > /sys/bus/usb/devices/1-1.4/power/wakeup
but that didn't seem to work.

cat /proc/acpi/wakeup
Code:
Device  S-state   Status   Sysfs node
PS2K      S3    *enabled   pnp:00:09
PS2M      S3    *disabled  pnp:00:0a
P0P1      S4    *disabled  
USB1      S3    *disabled  
USB2      S3    *disabled  
USB3      S3    *disabled  
USB4      S3    *disabled  
USB5      S3    *disabled  
USB6      S3    *disabled  
USB7      S3    *disabled  
RP01      S4    *disabled  pci:0000:00:1c.0
PXSX      S4    *disabled  
RP02      S4    *disabled  
PXSX      S4    *disabled  
RP03      S4    *disabled  
PXSX      S4    *disabled  
RP04      S4    *disabled  
PXSX      S4    *disabled  
RP05      S4    *disabled  pci:0000:00:1c.4
PXSX      S4    *enabled   pci:0000:03:00.0
RP06      S4    *disabled  
PXSX      S4    *disabled  
RP07      S4    *disabled  
PXSX      S4    *disabled  
RP08      S4    *disabled  
PXSX      S4    *disabled  
PEG0      S4    *disabled  pci:0000:00:01.0
PEGP      S4    *disabled  
PEG1      S4    *disabled  
PEG2      S4    *disabled  
PEG3      S4    *disabled  
GLAN      S4    *disabled  
EHC1      S4    *disabled  pci:0000:00:1d.0
EHC2      S4    *disabled  pci:0000:00:1a.0
XHC       S4    *disabled  pci:0000:00:14.0
HDEF      S4    *disabled  pci:0000:00:1b.0
PWRB      S3    *enabled

Please, any help is appreciated. My system is perfect in every other way.

Thanks,
Luke
Reply
#2
Try:
Code:
echo "USB1" > /proc/acpi/wakeup
and then check again with:
Code:
cat /proc/acpi/wakeup
Reply
#3
Thanks for the reply. I have tried your suggestion and it doesn't seem to change to results in "cat /proc/acpi/wakeup" for the USB devices, but anything else on the list seems to change to enabled. Does this mean its a BIOS related thing that won't let me change it for the USB?


Thanks,
Luke
Reply
#4
Hi!

I have the same problem, but all is disabled:
Code:
Welcome to Ubuntu 11.10 - XBMCbuntu (GNU/Linux 3.0.0-19-generic-pae i686)

# 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:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 099a:7202 Zippy Technology Corp.
Bus 002 Device 003: ID 1784:0008 TopSeed Technology Corp. eHome Infrared Transceiver

# dmesg | grep mceusb
[    5.463204] mceusb 2-1.5:1.0: Registered Topseed Technology Corp. eHome Infrared Transceiver on usb2:3
[    5.463771] usbcore: registered new interface driver mceusb
[    5.516630] rc rc0: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor = 0

# cat /proc/acpi/wakeup
Device  S-state   Status   Sysfs node
P0P1      S4    *disabled
USB1      S3    *disabled
USB2      S3    *disabled
USB3      S3    *disabled
USB4      S3    *disabled
USB5      S3    *disabled
USB6      S3    *disabled
USB7      S3    *disabled
RP01      S4    *disabled  pci:0000:00:1c.0
RP02      S4    *disabled
RP03      S4    *disabled
RP04      S4    *disabled  pci:0000:00:1c.3
RP05      S4    *disabled
RP06      S4    *disabled
RP07      S4    *disabled
RP08      S4    *disabled
PEG0      S4    *disabled  pci:0000:00:01.0
PEGP      S4    *disabled
PEG1      S4    *disabled
PEG2      S4    *disabled
PEG3      S4    *disabled
GLAN      S4    *disabled
EHC1      S4    *disabled  pci:0000:00:1d.0
EHC2      S4    *disabled  pci:0000:00:1a.0
XHC       S4    *disabled  pci:0000:00:14.0
HDEF      S4    *disabled  pci:0000:00:1b.0

Even if I try to do 'echo USBx > /proc/acpi/wakeup' (x from 0 to 7) in command line after a 'sudo bash', no change at all.

Here is my /etc/rc.local (I've tried different positions for echos):
Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
echo USB0 > /proc/acpi/wakeup
echo USB2 > /proc/acpi/wakeup
echo SMB0 > /proc/acpi/wakeup

echo enabled > /sys/bus/usb/devices/2-1.5/power/wakeup
#echo SMB0 > /proc/acpi/wakeup
#echo USB0 > /proc/acpi/wakeup
#echo USB2 > /proc/acpi/wakeup
exit 0

In the BIOS all is configure to authorize wake-on-USB.

I need help... badly Sad

Thanks,
HP
Reply
#5
Hmm... then try the suggestion in this post: http://forum.xbmc.org/showthread.php?tid...pid1150800

Note: If you're using XBMCbuntu, the gedit text editor (shown in the examples in the post) is not installed by default. You can either use nano instead of gedit to edit the files or, if you prefer to use a GUI text editor, you can use Synaptics (located in Start menu > System Tools) to install gedit or leafpad.
Reply
#6
I just set this up yesterday I had to go through all my USBX numbers to get the correct one to work. I followed the instructions here: http://www.mythtv.org/wiki/MCE_Remote#S3...end_To_RAM

In the end, i added this to my /etc/rc.local

echo "US15" > /proc/acpi/wakeup
echo enabled > /sys/bus/usb/devices/4-5/power/wakeup

If you are testing by hand, you need to enable the USB wakeup like so:

sudo sh -c 'echo "USB0" > /proc/acpi/wakeup'

Watch copy/pasting with quotes. Sometimes it doesnt copy properly and the line wont work unless u use proper quotes.


Cheers!
Reply
#7
(2012-08-05, 08:33)artrafael Wrote: Hmm... then try the suggestion in this post: http://forum.xbmc.org/showthread.php?tid...pid1150800

Note: If you're using XBMCbuntu, the gedit text editor (shown in the examples in the post) is not installed by default. You can either use nano instead of gedit to edit the files or, if you prefer to use a GUI text editor, you can use Synaptics (located in Start menu > System Tools) to install gedit or leafpad.

vim works fine Smile
I try the suggestion... Not working either.

(2012-08-05, 17:48)wyild1 Wrote: I just set this up yesterday I had to go through all my USBX numbers to get the correct one to work. I followed the instructions here: http://www.mythtv.org/wiki/MCE_Remote#S3...end_To_RAM

In the end, i added this to my /etc/rc.local

echo "US15" > /proc/acpi/wakeup
echo enabled > /sys/bus/usb/devices/4-5/power/wakeup

If you are testing by hand, you need to enable the USB wakeup like so:

sudo sh -c 'echo "USB0" > /proc/acpi/wakeup'

Watch copy/pasting with quotes. Sometimes it doesnt copy properly and the line wont work unless u use proper quotes.

I don't have any US15 when I do
Code:
cat /proc/acpi/wakeup
And for the echo USB0, I've tried in a root bash (sudo bash). And none becomes enabled. I've only tried USBx entries, not the others. Are they USB too?


A thing I do not mentionned in my previous post is that the red led of the IR receiver shines when I try to wake up and stays in this state until I manually wake up XBCM.
Reply
#8
What's the full output of your cat /proc/acpi/wakeup command?
Reply
#9
You have it in my first post in this thread: you have to scroll down my first code section.
Reply
#10
First, is your motherboard capable of coming out of S3 sleep via USB? Not all are. Second, is that setting enabled in the BIOS? It probably has to be. Then you can try performing the "sudo sh -c 'echo "USBx" > /proc/acpi/wakeup" where x is 1-7 given the output of /proc/acpi/wakeup.

This thing can be a royal PITA. Your motherboard needs to support S3 wake on USB, you have to find the right device in software, and the IR receiver itself has to support it, not all do. Looks like you have an MCE remote and receiver. Are they official or a knockoff? I'm not bashing the knockoffs, but they can sometimes have issues with waking the PC from sleep.
Reply
#11
Guys try this post...

http://forum.xbmc.org/showthread.php?tid...#pid835642

This works for me in ubuntu 11.10 +12.04.
Reply
#12
(2012-08-08, 19:18)pumkinut Wrote: First, is your motherboard capable of coming out of S3 sleep via USB? Not all are.

It's a recent MB with H77 chipset (ASROCK H77M-ITX). It works fine with an USB keyboard ou mouse.

(2012-08-08, 19:18)pumkinut Wrote: Second, is that setting enabled in the BIOS? It probably has to be.

All I can found concerning USB, wake up and Sx sleep is enabled Smile
Sorry, I'm not at home to give more detailled response.

(2012-08-08, 19:18)pumkinut Wrote: Then you can try performing the "sudo sh -c 'echo "USBx" > /proc/acpi/wakeup" where x is 1-7 given the output of /proc/acpi/wakeup.

Already tried, without success Sad

(2012-08-08, 19:18)pumkinut Wrote: This thing can be a royal PITA. Your motherboard needs to support S3 wake on USB, you have to find the right device in software, and the IR receiver itself has to support it, not all do. Looks like you have an MCE remote and receiver. Are they official or a knockoff? I'm not bashing the knockoffs, but they can sometimes have issues with waking the PC from sleep.

I use the IR receiver from this receiver/remote bundle with a logitech Harmony remote. The receiver is plugged onto an external USB port.
It works very well when XBMC is wake up Smile
I have not tried to connect the receiver internaly to the CIR header of the MB as the receiver is near the TV, but the XBMC PC is not visible.

teeedubb > As describe in my post, I've tried these steps, without success Sad
Reply

Logout Mark Read Team Forum Stats Members Help
MCE Remote wake from standby issues0