gjdwebserver-overlay/app-mobilephone/pinephone-meta/files/20-pinephone-led.rules
Gerben Jan Dijkman a7f7a7f86b Version Bump
2021-10-03 17:58:12 +02:00

12 lines
496 B
Plaintext

# SPDX-License-Identifier: LGPL-2.1+
ACTION=="remove", GOTO="pinephone_led_end"
# Setup the front LED for use by feedbackd
SUBSYSTEM=="leds", DEVPATH=="*/*:indicator", ENV{FEEDBACKD_TYPE}="led", RUN+="/usr/libexec/fbd-ledctrl -p %S%p -t pattern -G video"
# Setup the flash LED for use by flashlight
SUBSYSTEM=="leds", KERNEL=="white:flash", RUN+="/bin/chmod g+w /sys%p/brightness /sys%p/flash_strobe", RUN+="/bin/chown :video /sys%p/brightness /sys%p/flash_strobe"
LABEL="pinephone_led_end"