mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
lirc: use _LIRCUP as key-release suffix instead of _UP
Since diagonal key support was added in kernel 4.7 KEY_LEFT_UP and KEY_RIGHT_UP are valid input symbols. This means we can no longer use _UP as a suffix for transporting release events from lircd to lircd-uinput, lircd-uinput now interprets KEY_LEFT_UP/KEY_RIGHT_UP as a diagnoal key down event instead of left/right key release.
This commit is contained in:
parent
ab5d0de1b2
commit
7305d58ddb
@ -36,7 +36,7 @@ case "$ACTION" in
|
||||
LIRCD_CONFIG="--driver=$DRIVER --device=/dev/$DEVICE"
|
||||
LIRCD_CONFIG="$LIRCD_CONFIG --output=/run/lirc/lircd-$DEVICE"
|
||||
LIRCD_CONFIG="$LIRCD_CONFIG --pidfile=/run/lirc/lircd-$DEVICE.pid"
|
||||
LIRCD_CONFIG="$LIRCD_CONFIG --release=_UP"
|
||||
LIRCD_CONFIG="$LIRCD_CONFIG --release=_LIRCUP"
|
||||
|
||||
if [ -e "/storage/.config/lircd.conf" ]; then
|
||||
LIRCD_CONFIG="$LIRCD_CONFIG /storage/.config/lircd.conf"
|
||||
|
@ -4,7 +4,7 @@ Description=lircd-uinput with %I
|
||||
ConditionPathExists=/storage/.cache/services/lircd.conf
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/lircd-uinput /run/lirc/lircd-%I
|
||||
ExecStart=/usr/sbin/lircd-uinput --release=_LIRCUP /run/lirc/lircd-%I
|
||||
Slice=system-lircd.slice
|
||||
Restart=on-failure
|
||||
RestartSec=2
|
||||
|
Loading…
x
Reference in New Issue
Block a user