diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-01-13 20:30:18 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-15 12:22:26 +0300 |
commit | fd4a641ac88fbbaf8b90e00823397597a287cfcd (patch) | |
tree | 94894d04476fe2db405ccb58a4ae0a15a521c918 /Documentation/ABI/testing/sysfs-class-led-trigger-tty | |
parent | 63e34e707c6248645da340d4aff7714ec27b5fb1 (diff) | |
download | linux-fd4a641ac88fbbaf8b90e00823397597a287cfcd.tar.xz |
leds: trigger: implement a tty trigger
Usage is as follows:
myled=ledname
tty=ttyS0
echo tty > /sys/class/leds/$myled/trigger
echo $tty > /sys/class/leds/$myled/ttyname
. When this new trigger is active it periodically checks the tty's
statistics and when it changed since the last check the led is flashed
once.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20210113173018.bq2fkea2o3yp6rf6@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/ABI/testing/sysfs-class-led-trigger-tty')
-rw-r--r-- | Documentation/ABI/testing/sysfs-class-led-trigger-tty | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-class-led-trigger-tty b/Documentation/ABI/testing/sysfs-class-led-trigger-tty new file mode 100644 index 000000000000..2bf6b24e781b --- /dev/null +++ b/Documentation/ABI/testing/sysfs-class-led-trigger-tty @@ -0,0 +1,6 @@ +What: /sys/class/leds/<led>/ttyname +Date: Dec 2020 +KernelVersion: 5.10 +Contact: linux-leds@vger.kernel.org +Description: + Specifies the tty device name of the triggering tty |