examples: Add example udev rule for Framework 13 Laptop

Signed-off-by: Guido Günther <agx@sigxcpu.org>
This commit is contained in:
Guido Günther
2025-04-30 08:50:14 +00:00
parent a3fdc4852b
commit bbd45b7f6a
@@ -0,0 +1,18 @@
# SPDX-License-Identifier: LGPL-2.1+
#
# Example to use the Framework Laptop 13's power button LED as
# status LED for feedbackd.
#
# To use:
#
# ```
# cp 90-framework-laptop-feedbackd.rules /etc/udev/rules.d/90-framework-laptop-feedbackd.rules
# sudo udevadm trigger --subsystem-match=leds --action=change
# killall feedbackd
# ```
ACTION=="remove", GOTO="fbd_fw_end"
SUBSYSTEM=="leds", DEVPATH=="*/chromeos:white:power", ENV{FEEDBACKD_TYPE}="led", RUN{builtin}+="kmod load ledtrig-pattern", RUN+="/usr/libexec/fbd-ledctrl -p %S%p -t pattern -G feedbackd"
LABEL="fbd_fw_end"