]> www.infradead.org Git - users/jedix/linux-maple.git/commit
leds: trigger: Add new LED Input events trigger
authorHans de Goede <hdegoede@redhat.com>
Fri, 31 May 2024 13:59:10 +0000 (15:59 +0200)
committerLee Jones <lee@kernel.org>
Fri, 21 Jun 2024 10:57:17 +0000 (11:57 +0100)
commit6f963a20eed72b9abb54754cc935ce546b66b451
tree880f589a29171ee03287e48c50ca82c5fe4ab95c
parentce068e83976140badb19c7f1307926b4b562fac4
leds: trigger: Add new LED Input events trigger

Add a new trigger which turns LEDs on when there is input
(/dev/input/event*) activity and turns them back off again after there has
been no activity for 5 seconds.

This is primarily intended to control LED devices which are a backlight for
capacitive touch-buttons, such as e.g. the menu / home / back buttons found
on the bottom bezel of many somewhat older smartphones and tablets.

This can also be used to turn on the keyboard backlight LED on input
events and turn the keyboard backlight off again when idle.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20240531135910.168965-2-hdegoede@redhat.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/trigger/Kconfig
drivers/leds/trigger/Makefile
drivers/leds/trigger/ledtrig-input-events.c [new file with mode: 0644]