ivovka / buildroot-media

GNU General Public License v2.0
0 stars 2 forks source link

Wake on mce #18

Open ivovka opened 11 years ago

ivovka commented 11 years ago

Alternatively you can set up a udev rule to automagically populate /sys on insert of the IR receiver (as well as /proc/acpi/wakeup - be sure to use the correct USBx for your system) Create a new rule /etc/udev/rules.d/90-mcewakeup.rules (ensure that the USB ID matches your receiver)

# enable wake from S3 for MCE USB device 0471:0815
SUBSYSTEM=="usb", ENV{ID_VENDOR_ID}=="0471", ENV{ID_MODEL_ID}=="0815" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/power/wakeup;echo USB0 > /proc/acpi/wakeup'"