How to get a seamless remote experience
#84
(2011-07-10, 13:46)teeedubb Wrote: One thing worth mentioning is that to resume from the remote with newer kernels you need to enable wake up on the actual receiver device aswell as the usb port.

lsusb will list your attached usb devices:
Code:
$ lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[b]Bus 004 Device 002: ID 1934:[u]5168[/u] Feature Integration Technology Inc. (Fintek) F71610A or F71612A Consumer Infrared Receiver/Transceiver[/b]
Bus 004 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 002 Device 006: ID 0b38:0010 Gear Head 107-Key Keyboard
Bus 002 Device 005: ID 046d:c049 Logitech, Inc. G5 Laser Mouse
Bus 002 Device 003: ID 0bda:0151 Realtek Semiconductor Corp. Mass Storage Device (Multicard Reader)
Bus 002 Device 002: ID 1a40:0101 TERMINUS TECHNOLOGY INC. USB-2.0 4-Port HUB
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The bold line of text is my usb mce ir receiver. Use the device id (5168 in my case) with the following command to find your device in /sys/bus/usb/devices
Code:
$ grep 5168 /sys/bus/usb/devices/*/idProduct
/sys/bus/usb/devices/4-2/idProduct:5168

Now use that location to check if wakeup from the device is enabled with:
Code:
$ cat /sys/bus/usb/devices/4-2/power/wakeup
disabled

The following command will change this setting to enabled:
Code:
$ sudo sh -c 'echo "enabled" > /sys/bus/usb/devices/4-2/power/wakeup'

This setting will be reset on boot so to enable it on every boot I added the following line to my /etc/rc.local file (the first line is to enable wake up on the usb port, as per this wiki article.)
Code:
echo USB1 > /proc/acpi/wakeup
echo enabled > /sys/bus/usb/devices/4-2/power/wakeup

Make sure /etc/rc.local is executable with the command
Code:
sudo chmod +x /etc/rc.local

This got wake from the remote working for me, and after some testing it seems to work more reliably than on lucid...
Thanks for this, but it's not quite working for me.

I have an Acer Revo AR3610 HTPC with XBMCbuntu and a Windows MCE IR remote + USB sensor. The remote worked great out of the box (although I did have to fix the LIRC config at one point, as it got an apt-get update at one point that made it start expecting the wrong device name or something), except that it won't wake the HTPC from suspend/sleep.

I followed your guide, and it did make the LED on the USB IR work when the HTPC is asleep, but the HTPC still doesn't wake up when I press the power button (or any other button) on the MCE remote.

I tried running with the BIOS set to S1 and then with S3, with no success. All "wake on X" options are enabled except for "wake on RTC" (which lets you choose a time to wake up), including "wake on USB keyboard/mouse".


Here is my setup:
Code:
xbmc@htpc:~$ 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 002 Device 002: ID 0471:0815 Philips (or NXP) eHome Infrared Receiver
Bus 002 Device 003: ID 04f2:0963 Chicony Electronics Co., Ltd

xbmc@htpc:~$ grep 0815 /sys/bus/usb/devices/*/idProduct
/sys/bus/usb/devices/2-3/idProduct:0815

xbmc@htpc:~$ cat /etc/rc.local
#!/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 USB2 > /proc/acpi/wakeup
echo enabled > /sys/bus/usb/devices/2-3/power/wakeup

exit 0

xbmc@htpc:~$ cat /proc/acpi/wakeup
Device  S-state   Status   Sysfs node
SMB0      S4    *disabled  pci:0000:00:03.2
USB0      S3    *disabled  pci:0000:00:04.0
USB2      S3    *enabled   pci:0000:00:04.1
NMAC      S5    *enabled   pci:0000:00:0a.0
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  pci:0000:00:16.0
P0P8      S4    *disabled  pci:0000:00:17.0
P0P9      S4    *disabled  pci:0000:00:18.0

xbmc@htpc:~$ cat /sys/bus/usb/devices/2-3/power/wakeup
enabled

As you can see, everything is configured correctly per your guide.

EDIT: Never mind! It turns out I needed to set wakeup enabled on USB0 instead of USB2. Works great now!
Reply


Messages In This Thread
[No subject] - by darkscout - 2011-06-29, 20:11
[No subject] - by LB06 - 2011-06-29, 20:27
[No subject] - by gazrat - 2011-06-30, 00:09
[No subject] - by Anastrophe - 2011-06-30, 16:48
[No subject] - by gazrat - 2011-06-30, 21:48
[No subject] - by LB06 - 2011-06-30, 22:34
[No subject] - by gazrat - 2011-07-04, 18:28
[No subject] - by LB06 - 2011-07-04, 18:59
[No subject] - by gazrat - 2011-07-04, 23:52
[No subject] - by LB06 - 2011-07-04, 23:58
[No subject] - by gazrat - 2011-07-05, 00:28
[No subject] - by LB06 - 2011-07-05, 01:17
[No subject] - by wsnipex - 2011-07-05, 09:37
[No subject] - by darkscout - 2011-07-05, 10:23
[No subject] - by LB06 - 2011-07-05, 10:37
[No subject] - by gazrat - 2011-07-05, 20:45
[No subject] - by LB06 - 2011-07-05, 22:11
[No subject] - by gazrat - 2011-07-05, 22:31
[No subject] - by LB06 - 2011-07-05, 23:10
[No subject] - by gazrat - 2011-07-05, 23:16
[No subject] - by SirHc - 2011-07-07, 22:07
Nesting actions? - by konti - 2011-07-08, 12:19
[No subject] - by SirHc - 2011-07-08, 12:45
[No subject] - by LB06 - 2011-07-08, 13:30
[No subject] - by LB06 - 2011-07-08, 13:33
[No subject] - by mason - 2011-07-08, 13:51
[No subject] - by SirHc - 2011-07-08, 20:22
[No subject] - by teeedubb - 2011-07-10, 11:47
[No subject] - by LB06 - 2011-07-10, 13:02
RE: [Linux] How-to get a seamless remote experience - by HunterZ - 2012-09-26, 05:26
[No subject] - by LB06 - 2011-07-10, 13:55
[No subject] - by teeedubb - 2011-07-10, 14:10
[No subject] - by LB06 - 2011-07-10, 14:56
[No subject] - by gazrat - 2011-07-12, 19:40
[No subject] - by LB06 - 2011-07-12, 22:20
[No subject] - by blubyu - 2011-07-13, 03:03
[No subject] - by teeedubb - 2011-07-14, 05:21
[No subject] - by toliman - 2011-07-27, 14:58
[No subject] - by LB06 - 2011-07-27, 16:16
[No subject] - by Jayphen - 2011-08-24, 06:27
[No subject] - by recluce - 2011-08-24, 19:16
[No subject] - by LB06 - 2011-08-24, 19:19
[No subject] - by Jayphen - 2011-08-25, 00:42
[No subject] - by LB06 - 2011-08-25, 00:57
[No subject] - by Jayphen - 2011-08-25, 01:18
[No subject] - by recluce - 2011-08-25, 01:21
[No subject] - by LB06 - 2011-08-25, 01:27
[No subject] - by LB06 - 2011-08-25, 01:29
[No subject] - by Jayphen - 2011-08-25, 01:30
[No subject] - by LB06 - 2011-08-25, 01:31
[No subject] - by Jayphen - 2011-08-25, 01:33
[No subject] - by LB06 - 2011-08-25, 01:52
[No subject] - by recluce - 2011-08-25, 01:57
[No subject] - by Jayphen - 2011-08-25, 02:10
[No subject] - by LB06 - 2011-08-25, 10:25
[No subject] - by koekiemonster - 2011-09-15, 23:29
RE: - by GreatEmerald - 2013-03-11, 20:57
[No subject] - by stefanwa - 2011-09-20, 16:50
Logout Mark Read Team Forum Stats Members Help
How to get a seamless remote experience9