Linux XBMCBuntu Remote Wakeup
#31
my lsusb is
root@dani-B202:~# lsusb
Bus 001 Device 005: ID 0bda:0158 Realtek Semiconductor Corp. USB 2.0 multicard reader
Bus 002 Device 004: ID 1c4f:0003 SiGma Micro HID controller
Bus 002 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 003 Device 002: ID 0609:0357 SMK Manufacturing, Inc.
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 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 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

root@dani-B202:~# dmesg | grep mceusb
[ 11.381077] usbcore: registered new interface driver mceusb
[ 12.044083] mceusb 3-1:1.0: Registered SMK CORPORATION WMC RECEIVER Emulator Device 2009 with mce emulator interface version 2
[ 12.044094] mceusb 3-1:1.0: 2 tx ports (0x0 cabled) and 2 rx sensors (0x1 active)
[ 12.600924] input: MCE IR Keyboard/Mouse (mceusb) as /devices/virtual/input/input8
[ 12.768700] rc rc0: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor = 0

root@dani-B202:~# cat /proc/acpi/wakeup
Device S-state Status Sysfs node
P0P2 S4 *disabled
P0P1 S4 *disabled pci:0000:00:1e.0
MC97 S4 *disabled
HDAC S4 *disabled pci:0000:00:1b.0
P0P4 S4 *disabled pci:0000:00:1c.0
P0P5 S4 *disabled pci:0000:00:1c.1
P0P7 S4 *disabled
P0P8 S4 *disabled
P0P9 S4 *disabled
USB0 S4 *enabled pci:0000:00:1d.0
USB1 S4 *enabled pci:0000:00:1d.1
USB2 S4 *enabled pci:0000:00:1d.2
USB3 S4 *enabled pci:0000:00:1d.3
EUSB S4 *enabled pci:0000:00:1d.7
P0P6 S4 *disabled pci:0000:00:1c.2

Is there somthing wrong? what am i missing? please help!!!!
Reply
#32
(2013-05-20, 08:27)Dchizza8 Wrote: Bus 003 Device 002: ID 0609:0357 SMK Manufacturing, Inc.

Thats your usb receiver. Now create the UDEV Rule --> http://forum.xbmc.org/showthread.php?tid...pid1203339

0609 is the Vendor ID and 0357 is the Product ID

The usb ports are active for alle suspend states so there should be power in suspend mode.
ASRock Beebox J3160 4GB RAM 120GB SATA SSD - Harmony Elite BT
Intel NUC Kit DN2820FYKH 4GB RAM 120GB SATA SSD - Harmony Smart Control BT
all @ Libreelec Testbuild
HP N54L @ Ubuntu 14.04.4 Minimal Server / MySQL DB
HP N40L @ Ubuntu 14.04.4 Minimal Server
Reply
#33
Sorry i dont understand the udev rule

my /etc/udev/etc/rules.d/95-mceusb.rules is as follows

SUBSYSTEM=="usb", ATTR{idVendor}=="0609", ATTR{idProduct}=="0357", RUN="/etc/udev_mceusb.sh -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'"

is that right?

I'm so stuck! I can't believe I cant get this working? Whatever i do the usb ports dont have power when in suspend mode Sad
Reply
#34
I've noticed that if i unplug the receiver from the usb port while the pc is suspended then the pc resumes??
Reply
#35
sry but did you read my little howto --> http://forum.xbmc.org/showthread.php?tid...pid1203339 Huh

your line:

SUBSYSTEM=="usb", ATTR{idVendor}=="0609", ATTR{idProduct}=="0357", RUN="/etc/udev_mceusb.sh -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'"


my line:

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

different lines Confused...
ASRock Beebox J3160 4GB RAM 120GB SATA SSD - Harmony Elite BT
Intel NUC Kit DN2820FYKH 4GB RAM 120GB SATA SSD - Harmony Smart Control BT
all @ Libreelec Testbuild
HP N54L @ Ubuntu 14.04.4 Minimal Server / MySQL DB
HP N40L @ Ubuntu 14.04.4 Minimal Server
Reply
#36
Well, upgraded to XBMCbuntu 12.2, which has Ubuntu 12.10, and now there's not power to USB. When in suspend, and press remote key, no flashing of the led on the IR sensor.

How to get it working with Ubuntu 12.10? Help.
Media Companion Dev.
Media Companion - Kodi / XBMC - Media Companion
Reply
#37
(2012-10-01, 03:58)john.cord Wrote: http://ubuntuforums.org/showthread.php?t=1968487

Will test this tomorrow...

EDIT:

It is working !!! Rofl

Short guide:

First type:

Code:
sudo lsusb

Look for the vendor and product ID of your USB Receiver
Here is a example:

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

0471 is Vendor and 0815 is Product. They can be different in your case!

Create new file

Code:
$ sudo nano /etc/udev/rules.d/90-mcewakeup.rules

and put this line in it

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

And change Vendor and Product ID with yours!

And dont forget about the GRUB Line

Code:
usbcore.autosuspend=-1

In my case it looks like this

Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"

Finaly

Code:
sudo update-grub

and Reboot !!!

thank you for your commitment to resolve the long standing problem of wakeup.
Maybe I'm wrong some passage. I must add at the end of grub.cfg
the string
GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash usbcore.autosuspend = -1"
is that correct?
Reply
#38
only
Code:
usbcore.autosuspend=-1
as mentioned in my little howto...
ASRock Beebox J3160 4GB RAM 120GB SATA SSD - Harmony Elite BT
Intel NUC Kit DN2820FYKH 4GB RAM 120GB SATA SSD - Harmony Smart Control BT
all @ Libreelec Testbuild
HP N54L @ Ubuntu 14.04.4 Minimal Server / MySQL DB
HP N40L @ Ubuntu 14.04.4 Minimal Server
Reply
#39
(2013-10-01, 12:59)john.cord Wrote: only
Code:
usbcore.autosuspend=-1
as mentioned in my little howto...

Thanks john for your guideAngel
with your help I was able to resume the PC with the remote control
I am a beginner I did not understand how to edit grub.
You have to do (for newbie like meWink)

Code:
sudo nano /etc/default/grub

Replace

Code:
GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash 1"

with

Code:
GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash usbcore.autosuspend = -1"

and finally

Code:
sudo update-grub
Reply
#40
So I've followed all of these and things seem to be in"better" but not quite there ...

after doing everything in the instructions, my receiver now lights up when I push the power button on the remote ... but the computer never turns on and the light on the receiver stays solid (even when I let go of the button)

any pointers would be great, I was running xbmcbuntu "eden" and had everything work (power on with remote) but I redid everything to fix some other problems

I'll post anything thats helpful just let me know ... Thanks
Reply
#41
(2013-12-06, 15:01)anthony.selby Wrote: So I've followed all of these and things seem to be in"better" but not quite there ...

after doing everything in the instructions, my receiver now lights up when I push the power button on the remote ... but the computer never turns on and the light on the receiver stays solid (even when I let go of the button)

any pointers would be great, I was running xbmcbuntu "eden" and had everything work (power on with remote) but I redid everything to fix some other problems

I'll post anything thats helpful just let me know ... Thanks

I followed this guys info, which worked straight off for me. I also enable " wake from USB " in the BIOS

(2012-04-19, 20:10)Devaron Wrote: I had similar problems and manage to fix it (eventually...). I will explain how i did this and hope it will help you fix your problem.

To be sure you are using the correct path in rc.local run then command 'lsusb' and write down the 2nd ID number of your device.

For example, if the output of lsusb is:

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 003 Device 002: ID 413c:2003 Dell Computer Corp. Keyboard
Bus 004 Device 002: ID 1784:0008 TopSeed Technology Corp. eHome Infrared Transceiver
Bus 004 Device 003: ID 046d:c518 Logitech, Inc. MX610 Laser Cordless Mouse

You write down the 2nd ID number in the line of your transceiver. 0008 in this case (I made the number bold).

Now use that number in the next command:

Code:
grep 0008 /sys/bus/usb/devices/*/idProduct

The result looks something like this:

Code:
/sys/bus/usb/devices/4-2/idProduct:0008

Of course your path can be different from the above example. Write this path down and use the cat command to see if wakeup is indeed enabled.

Don't forget to add this path to your rc.local file. In my example the result is "4-2", so just to be sure i added USB4 too. If your result is "3-2" then add USB3 etc. Also add USB1. I read somewhere that this helps "waking up the USB bus" or something. Don't know exactly how or why Big Grin

So using the above examples, i would add the following lines to rc.local:

Code:
echo USB1 > /proc/acpi/wakeup
echo USB4 > /proc/acpi/wakeup
echo enabled > /sys/bus/usb/devices/4-2/power/wakeup

Also make sure rc.local is executable.

Code:
sudo chmod +x /etc/rc.local

Now reboot and try it out. Good luck! Wink
Reply
#42
Sad 
Thanks for the reply ... but I'm still have problems with "frodo".

Here is some info:

Code:
lsusb
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 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 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 004: ID 1241:1603 Belkin Keyboard
Bus 001 Device 005: ID 1784:0008 TopSeed Technology Corp. eHome Infrared Transceiver
Code:
cat /proc/acpi/wakeup
Device    S-state      Status   Sysfs node
BR20      S3    *disabled  
EUSB      S4    *disabled  pci:0000:00:1d.0
USBE      S4    *disabled  pci:0000:00:1a.0
PEX0      S4    *enabled   pci:0000:00:1c.0
PEX1      S4    *disabled  
PEX2      S4    *disabled  
PEX3      S4    *enabled   pci:0000:00:1c.3
PEX4      S4    *enabled   pci:0000:00:1c.4
PEX5      S4    *enabled   pci:0000:00:1c.5
PEX6      S4    *enabled   pci:0000:00:1c.6
PEX7      S4    *enabled   pci:0000:00:1c.7
P0P1      S4    *disabled  pci:0000:00:01.0
P0P2      S4    *disabled  
P0P3      S4    *disabled  
P0P4      S4    *disabled  
PWRB      S3    *enabled
Code:
grep 0008 /sys/bus/usb/devices/*/idProduct

/sys/bus/usb/devices/1-1.6/idProduct:0008

Code:
rc.local

echo USB0 > /proc/acpi/wakeup
echo USB1 > /proc/acpi/wakeup
echo USBE > /proc/acpi/wakeup
echo EUSB > /proc/acpi/wakeup
echo USB2 > /proc/acpi/wakeup
echo PEX0 > /proc/acpi/wakeup
echo PEX1 > /proc/acpi/wakeup
echo PEX2 > /proc/acpi/wakeup
echo PEX3 > /proc/acpi/wakeup
echo PEX4 > /proc/acpi/wakeup
echo PEX5 > /proc/acpi/wakeup
echo PEX6 > /proc/acpi/wakeup
echo PEX7 > /proc/acpi/wakeup
echo POP1 > /proc/acpi/wakeup
echo enabled > /sys/bus/usb/devices/2-4/power/wakeup
echo enabled > /sys/bus/usb/devices/1-1.6/power/wakeup
echo enabled > /sys/bus/usb/devices/usb1/power/wakeup
echo enabled > /sys/bus/usb/devices/usb2/power/wakeup
echo enabled > /sys/bus/usb/devices/usb3/power/wakeup
echo enabled > /sys/bus/usb/devices/usb4/power/wakeup
echo enabled > /sys/bus/usb/devices/usb5/power/wakeup
echo enabled > /sys/bus/usb/devices/usb6/power/wakeup

exit 0

Code:
Grub Config
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend = -1 acpi_enforce_resources=lax"
GRUB_CMDLINE_LINUX=""
Code:
etc/udev/rules.d/90-mcewakeup.rules

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


Code:
chmod +x /etc/rc.local

-rwxr-xr-x   1 root root    1159 Dec  6 08:15 rc.local

I had this same computer / setup working with eden ... now after all of this when I push the power button on the remote the IR receiver just lights up (but it stays solid)


Thanks everyone

Any pointers would be great
Reply
#43
Cant help alot as i'm a novice myself.
But...
What output do you get with
Code:
grep 0008 /sys/bus/usb/devices/*/idProduct
Reply
#44
I added it to the original post but here it is again ...

/sys/bus/usb/devices/1-1.6/idProduct:0008

Thanks again
Reply
#45
Other than adding these 2 to your rc.local
Code:
echo EHC1 > /proc/acpi/wakeup
Code:
echo EHC2 > /proc/acpi/wakeup

and make sure your rc.local is executable
Code:
sudo chmod +x /etc/rc.local
Thats me done.
Reply

Logout Mark Read Team Forum Stats Members Help
XBMCBuntu Remote Wakeup2