1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 2f07fb521SKim, Milomenuconfig LEDS_TRIGGERS 3f07fb521SKim, Milo bool "LED Trigger support" 4f07fb521SKim, Milo depends on LEDS_CLASS 5f07fb521SKim, Milo help 6f07fb521SKim, Milo This option enables trigger support for the leds class. 7f07fb521SKim, Milo These triggers allow kernel events to drive the LEDs and can 8f07fb521SKim, Milo be configured via sysfs. If unsure, say Y. 9f07fb521SKim, Milo 10f07fb521SKim, Miloif LEDS_TRIGGERS 11f07fb521SKim, Milo 12f07fb521SKim, Miloconfig LEDS_TRIGGER_TIMER 13f07fb521SKim, Milo tristate "LED Timer Trigger" 14f07fb521SKim, Milo help 15f07fb521SKim, Milo This allows LEDs to be controlled by a programmable timer 16f07fb521SKim, Milo via sysfs. Some LED hardware can be programmed to start 17f07fb521SKim, Milo blinking the LED without any further software interaction. 188dab9197SMauro Carvalho Chehab For more details read Documentation/leds/leds-class.rst. 19f07fb521SKim, Milo 20f07fb521SKim, Milo If unsure, say Y. 21f07fb521SKim, Milo 22f07fb521SKim, Miloconfig LEDS_TRIGGER_ONESHOT 23f07fb521SKim, Milo tristate "LED One-shot Trigger" 24f07fb521SKim, Milo help 25f07fb521SKim, Milo This allows LEDs to blink in one-shot pulses with parameters 26f07fb521SKim, Milo controlled via sysfs. It's useful to notify the user on 27f07fb521SKim, Milo sporadic events, when there are no clear begin and end trap points, 28f07fb521SKim, Milo or on dense events, where this blinks the LED at constant rate if 29f07fb521SKim, Milo rearmed continuously. 30f07fb521SKim, Milo 31f07fb521SKim, Milo It also shows how to use the led_blink_set_oneshot() function. 32f07fb521SKim, Milo 33f07fb521SKim, Milo If unsure, say Y. 34f07fb521SKim, Milo 35eb25cb99SStephan Linzconfig LEDS_TRIGGER_DISK 36eb25cb99SStephan Linz bool "LED Disk Trigger" 375358680eSLukas Bulwahn depends on ATA 38f07fb521SKim, Milo help 39eb25cb99SStephan Linz This allows LEDs to be controlled by disk activity. 40f07fb521SKim, Milo If unsure, say Y. 41f07fb521SKim, Milo 424b721174SEzequiel Garciaconfig LEDS_TRIGGER_MTD 434b721174SEzequiel Garcia bool "LED MTD (NAND/NOR) Trigger" 444b721174SEzequiel Garcia depends on MTD 454b721174SEzequiel Garcia help 464b721174SEzequiel Garcia This allows LEDs to be controlled by MTD activity. 474b721174SEzequiel Garcia If unsure, say N. 484b721174SEzequiel Garcia 49f07fb521SKim, Miloconfig LEDS_TRIGGER_HEARTBEAT 50f07fb521SKim, Milo tristate "LED Heartbeat Trigger" 51f07fb521SKim, Milo help 52f07fb521SKim, Milo This allows LEDs to be controlled by a CPU load average. 53f07fb521SKim, Milo The flash frequency is a hyperbolic function of the 1-minute 54f07fb521SKim, Milo load average. 55f07fb521SKim, Milo If unsure, say Y. 56f07fb521SKim, Milo 57f07fb521SKim, Miloconfig LEDS_TRIGGER_BACKLIGHT 58f07fb521SKim, Milo tristate "LED backlight Trigger" 59f07fb521SKim, Milo help 60f07fb521SKim, Milo This allows LEDs to be controlled as a backlight device: they 61f07fb521SKim, Milo turn off and on when the display is blanked and unblanked. 62f07fb521SKim, Milo 63f07fb521SKim, Milo If unsure, say N. 64f07fb521SKim, Milo 65f07fb521SKim, Miloconfig LEDS_TRIGGER_CPU 66f07fb521SKim, Milo bool "LED CPU Trigger" 6797b31c1fSSebastian Andrzej Siewior depends on !PREEMPT_RT 68f07fb521SKim, Milo help 69f07fb521SKim, Milo This allows LEDs to be controlled by active CPUs. This shows 70f07fb521SKim, Milo the active CPUs across an array of LEDs so you can see which 71f07fb521SKim, Milo CPUs are active on the system at any given moment. 72f07fb521SKim, Milo 73f07fb521SKim, Milo If unsure, say N. 74f07fb521SKim, Milo 757df4f9a9SWilly Tarreauconfig LEDS_TRIGGER_ACTIVITY 767df4f9a9SWilly Tarreau tristate "LED activity Trigger" 777df4f9a9SWilly Tarreau help 78a72d3b5dSGeert Uytterhoeven This allows LEDs to be controlled by an immediate CPU usage. 797df4f9a9SWilly Tarreau The flash frequency and duty cycle varies from faint flashes to 807df4f9a9SWilly Tarreau intense brightness depending on the instant CPU load. 817df4f9a9SWilly Tarreau If unsure, say N. 827df4f9a9SWilly Tarreau 83f07fb521SKim, Miloconfig LEDS_TRIGGER_GPIO 84f07fb521SKim, Milo tristate "LED GPIO Trigger" 8582322741SGeert Uytterhoeven depends on GPIOLIB || COMPILE_TEST 86*8f0adae1SLinus Walleij depends on BROKEN 87f07fb521SKim, Milo help 88f07fb521SKim, Milo This allows LEDs to be controlled by gpio events. It's good 89f07fb521SKim, Milo when using gpios as switches and triggering the needed LEDs 90f07fb521SKim, Milo from there. One use case is n810's keypad LEDs that could 91f07fb521SKim, Milo be triggered by this trigger when user slides up to show 92f07fb521SKim, Milo keypad. 93f07fb521SKim, Milo 94f07fb521SKim, Milo If unsure, say N. 95f07fb521SKim, Milo 96f07fb521SKim, Miloconfig LEDS_TRIGGER_DEFAULT_ON 97f07fb521SKim, Milo tristate "LED Default ON Trigger" 98f07fb521SKim, Milo help 99f07fb521SKim, Milo This allows LEDs to be initialised in the ON state. 100f07fb521SKim, Milo If unsure, say Y. 101f07fb521SKim, Milo 102f07fb521SKim, Milocomment "iptables trigger is under Netfilter config (LED target)" 103f07fb521SKim, Milo depends on LEDS_TRIGGERS 104f07fb521SKim, Milo 105f07fb521SKim, Miloconfig LEDS_TRIGGER_TRANSIENT 106f07fb521SKim, Milo tristate "LED Transient Trigger" 107f07fb521SKim, Milo help 108f07fb521SKim, Milo This allows one time activation of a transient state on 109f07fb521SKim, Milo GPIO/PWM based hardware. 110f07fb521SKim, Milo If unsure, say Y. 111f07fb521SKim, Milo 11248a1d032SKim, Miloconfig LEDS_TRIGGER_CAMERA 11348a1d032SKim, Milo tristate "LED Camera Flash/Torch Trigger" 11448a1d032SKim, Milo help 11548a1d032SKim, Milo This allows LEDs to be controlled as a camera flash/torch device. 11648a1d032SKim, Milo This enables direct flash/torch on/off by the driver, kernel space. 11748a1d032SKim, Milo If unsure, say Y. 11848a1d032SKim, Milo 119916fe619SEzequiel Garciaconfig LEDS_TRIGGER_PANIC 120916fe619SEzequiel Garcia bool "LED Panic Trigger" 121916fe619SEzequiel Garcia help 122916fe619SEzequiel Garcia This allows LEDs to be configured to blink on a kernel panic. 123ba93cdceSEzequiel Garcia Enabling this option will allow to mark certain LEDs as panic indicators, 124ba93cdceSEzequiel Garcia allowing to blink them on a kernel panic, even if they are set to 125ba93cdceSEzequiel Garcia a different trigger. 126916fe619SEzequiel Garcia If unsure, say Y. 127916fe619SEzequiel Garcia 12806f502f5SBen Whittenconfig LEDS_TRIGGER_NETDEV 12906f502f5SBen Whitten tristate "LED Netdev Trigger" 1303d74243dSUwe Kleine-König depends on NET 13106f502f5SBen Whitten help 13206f502f5SBen Whitten This allows LEDs to be controlled by network device activity. 13306f502f5SBen Whitten If unsure, say Y. 13406f502f5SBen Whitten 1355fd752b6SBaolin Wangconfig LEDS_TRIGGER_PATTERN 1365fd752b6SBaolin Wang tristate "LED Pattern Trigger" 1375fd752b6SBaolin Wang help 1385fd752b6SBaolin Wang This allows LEDs to be controlled by a software or hardware pattern 1395fd752b6SBaolin Wang which is a series of tuples, of brightness and duration (ms). 1405fd752b6SBaolin Wang If unsure, say N 1415fd752b6SBaolin Wang 142faa2541fSTakashi Iwaiconfig LEDS_TRIGGER_AUDIO 143faa2541fSTakashi Iwai tristate "Audio Mute LED Trigger" 144faa2541fSTakashi Iwai help 145faa2541fSTakashi Iwai This allows LEDs to be controlled by audio drivers for following 146faa2541fSTakashi Iwai the audio mute and mic-mute changes. 147faa2541fSTakashi Iwai If unsure, say N 148faa2541fSTakashi Iwai 149fd4a641aSUwe Kleine-Königconfig LEDS_TRIGGER_TTY 150fd4a641aSUwe Kleine-König tristate "LED Trigger for TTY devices" 151fd4a641aSUwe Kleine-König depends on TTY 152fd4a641aSUwe Kleine-König help 153fd4a641aSUwe Kleine-König This allows LEDs to be controlled by activity on ttys which includes 154fd4a641aSUwe Kleine-König serial devices like /dev/ttyS0. 155fd4a641aSUwe Kleine-König 156fd4a641aSUwe Kleine-König When build as a module this driver will be called ledtrig-tty. 157fd4a641aSUwe Kleine-König 158f07fb521SKim, Miloendif # LEDS_TRIGGERS 159