mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +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
7d91f2e126
commit
9d81c5d8f9
@ -36,7 +36,7 @@ case "$ACTION" in
|
|||||||
LIRCD_CONFIG="--driver=$DRIVER --device=/dev/$DEVICE"
|
LIRCD_CONFIG="--driver=$DRIVER --device=/dev/$DEVICE"
|
||||||
LIRCD_CONFIG="$LIRCD_CONFIG --output=/run/lirc/lircd-$DEVICE"
|
LIRCD_CONFIG="$LIRCD_CONFIG --output=/run/lirc/lircd-$DEVICE"
|
||||||
LIRCD_CONFIG="$LIRCD_CONFIG --pidfile=/run/lirc/lircd-$DEVICE.pid"
|
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
|
if [ -e "/storage/.config/lircd.conf" ]; then
|
||||||
LIRCD_CONFIG="$LIRCD_CONFIG /storage/.config/lircd.conf"
|
LIRCD_CONFIG="$LIRCD_CONFIG /storage/.config/lircd.conf"
|
||||||
|
@ -4,7 +4,7 @@ Description=lircd-uinput with %I
|
|||||||
ConditionPathExists=/storage/.cache/services/lircd.conf
|
ConditionPathExists=/storage/.cache/services/lircd.conf
|
||||||
|
|
||||||
[Service]
|
[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
|
Slice=system-lircd.slice
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=2
|
RestartSec=2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user