From 5ca5d50027987f9791c397926f9899212dfd8259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Sat, 14 Nov 2020 15:32:29 +0100 Subject: [PATCH] udev: Update led maching for the librem5 The names changed in device tree which tickles up into userspace. --- debian/feedbackd.udev | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/feedbackd.udev b/debian/feedbackd.udev index e191c80..b3faf73 100644 --- a/debian/feedbackd.udev +++ b/debian/feedbackd.udev @@ -6,8 +6,10 @@ ACTION=="remove", GOTO="feedbackd_end" SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_INPUT}=="1", ENV{ID_PATH}=="platform-vibrator", TAG+="uaccess", ENV{FEEDBACKD_TYPE}="vibra" -# Front leds of the Librem5 +# Front leds of the Librem5 (pre 5.9) SUBSYSTEM=="leds", DEVPATH=="*/phone:*:front", ENV{FEEDBACKD_TYPE}="led", RUN+="/usr/libexec/fbd-ledctrl -p %S%p -t pattern -G video" +# Front leds of the Librem5 (5.9 and later) +SUBSYSTEM=="leds", DEVPATH=="*/*:status", ENV{FEEDBACKD_TYPE}="led", RUN+="/usr/libexec/fbd-ledctrl -p %S%p -t pattern -G video" # Front leds of the PinePhone SUBSYSTEM=="leds", DEVPATH=="*/*:indicator", ENV{FEEDBACKD_TYPE}="led", RUN+="/usr/libexec/fbd-ledctrl -p %S%p -t pattern -G video"