debian: Setup leds via udev

This allows feedbackd to set periodic feedback and makes usable
LED devices identifiable by feedbackd.
This commit is contained in:
Guido Günther
2020-07-05 19:25:44 +00:00
committed by Sebastian Krzyszkowiak
parent b561114800
commit 2f083ea5ae
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
debian/modules-load.d etc/
/usr/bin/
/usr/libexec/
/usr/share/dbus-1/
+3
View File
@@ -6,4 +6,7 @@ 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
SUBSYSTEM=="leds", DEVPATH=="*/phone:*:front", ENV{FEEDBACKD_TYPE}="led", RUN+="/usr/libexec/fbd-ledctrl -p %S%p -t pattern -G video"
LABEL="feedbackd_end"
+1
View File
@@ -0,0 +1 @@
ledtrig-pattern