mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
eventlircd: add support to enable wakeup from suspend for more (most) remotes
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
2b75c56366
commit
64181ec51c
@ -24,8 +24,20 @@
|
||||
#
|
||||
# runlevels: openelec, textmode
|
||||
|
||||
(
|
||||
. /etc/profile
|
||||
|
||||
progress "starting eventlircd"
|
||||
mkdir -p /var/run/lirc
|
||||
eventlircd --evmap=/etc/eventlircd.d --socket=/var/run/lirc/lircd --release=_UP
|
||||
|
||||
progress "enable remote wakup support" #TODO
|
||||
for i in `ls -d /sys/bus/usb/devices/*`; do
|
||||
if test -e "$i/power/wakeup" ; then
|
||||
STATE=`cat "$i/power/wakeup"`
|
||||
if test "x$STATE" = "xdisabled" ; then
|
||||
echo "enabled" > "$i/power/wakeup"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
)&
|
Loading…
x
Reference in New Issue
Block a user