2015-06-08, 20:35
The post below fixed my Kodibuntu resume issue. This weekend I visited my brother who has an Intel NUC with an HP MCE remote receiver running latest openelec. He also can't power on or resume with remote so I thought I'd try this on openelec. When I open sudo nano /etc/udev/rules.d/99-disable-wakeup.rules, edit it and save I get: error writing sudo /etc/udev/rules.d/99-disable-wakeup.rules: no such file or directory. I know I can ust install kodibuntu but that is quite some work with all settings and addons. Does openelec work differently?
(2015-02-09, 13:37)teeedubb Wrote: kees667 Glad you found that 3+ year old post useful
There is a better way to enable wakeup on a device - using udev. It will enable/disable wakeup even if you change the usb port the device is connect to (something the guide you used will not do).
/etc/udev/rules.d/99-disable-wakeup.rules
Code:#disable devices
#ipazz keyboard
#SUBSYSTEM=="usb", ATTRS{idVendor}=="0c45", ATTRS{idProduct}=="7000", RUN+="/bin/sh -c 'echo disabled > /sys$env{DEVPATH}/../power/wakeup'"
#logitect k400r
SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", RUN+="/bin/sh -c 'echo disabled > /sys$env{DEVPATH}/../power/wakeup'"
#usb bt
SUBSYSTEM=="usb", ATTRS{idVendor}=="0cf3", ATTRS{idProduct}=="3005", RUN+="/bin/sh -c 'echo disabled > /sys$env{DEVPATH}/../power/wakeup'"
#xbox360
SUBSYSTEM=="usb", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="0291", RUN+="/bin/sh -c 'echo disabled > /sys$env{DEVPATH}/../power/wakeup'"
#enable
#cec adapter
SUBSYSTEM=="usb", ATTRS{idVendor}=="1d6b", ATTRS{idProduct}=="0003", RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'"
#harmony/phillips ir
SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", ATTRS{idProduct}=="2093", RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'"
You'll need to configure it for your system/devices, change the idvendor and idproduct string to match the output of lsusb, eg the output for my phillips ir receiver:
Code:Bus 001 Device 005: ID 0471:2093 Philips (or NXP)