Kodibuntu / Kodi wakeup from Windows Media Center (MCE) RC6 Remote

InsaneNutter

Resident Nutter
Joined
Jun 1, 2007
Messages
11,874
Location
UK
I have an XBMCbuntu / Kodi Buntu install on an Acer Aspire Revo R3600 nettop that by default would never wake up from sleep by pressing the power button on the Windows Media Center remote control. This is quite an easy fix to allow certain USB devices to wakeup XBMC / Kodi buntu, i will show you how to do this.

First ssh is in your XBMCbuntu install, then type the following command:

sudo su root

Now type the following to gain a list of all devices authorized to wakeup XBMCbuntu from sleep

cat /proc/acpi/wakeup

You should see something like this:

Device S-state Status Sysfs nodeSMB0 S4 *disabled pci:0000:00:03.2
USB0 S4 *enabled pci:0000:00:04.0
USB2 S4 *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

We need USB0 and USB2 devices tobe able to wake the device up, if they are not enabled, type the following:

echo USB0 > /proc/acpi/wakeup
echo USB2 > /proc/acpi/wakeup

Next we want a list of all the USB devices connected to the computer, so type:


You should see something like this displayed:

Bus 001 Device 005: ID 0781:a7a8 SanDisk Corp.
Bus 002 Device 002: ID 04f2:0402 Chicony Electronics Co., Ltd Genius LuxeMate i200 Keyboard
Bus 002 Device 003: ID 045e:0047 Microsoft Corp. IntelliMouse Explorer 3.0
Bus 002 Device 004: ID 0471:0815 Philips (or NXP) eHome Infrared Receiver
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

Here we can see the ID's of the USB IR receiver for the Windows Media Center remote, i have highlighted these in red. Please make a note of them:

Bus 002 Device 004: ID 0471:0815 Philips (or NXP) eHome Infrared Receiver

You can create a new wakeup rule by doing the following:

sudo nano /etc/udev/rules.d/90-keyboardwakeup.rules

Here you want to paste the following:

SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", ATTRS{idProduct}=="0815" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'"

Please note where ID's 0471 and 0815 are, if your ID's were different you must change them:

SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", ATTRS{idProduct}=="0815" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'"

Hopefully everything should now work now, simply re start your computer and the Windows Media Center Remote should be able to put XBMC / Kodi to sleep, and wake XBMC / Kodi / your computer up by simply pressing the power button on the remote control.
 
Thank you

Thanks for the excellent post, this config change solved my issue with getting my HP remote and HP IR reciever (via USB port) going.

John
 

About Digiex

Digiex is a technology and gaming forum, founded in 2004 by InsaneNutter and Nimrod. Digiex has served the internet community with breaking news, detailed guides, exclusive downloads and a popular discussion forum. A small, friendly community of like‑minded people has developed over the years. People are encouraged to register and participate in on‑going discussions.

Get Social

Back
Top Bottom