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" 37eb25cb99SStephan Linz depends on IDE_GD_ATA || 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" 67f07fb521SKim, Milo help 68f07fb521SKim, Milo This allows LEDs to be controlled by active CPUs. This shows 69f07fb521SKim, Milo the active CPUs across an array of LEDs so you can see which 70f07fb521SKim, Milo CPUs are active on the system at any given moment. 71f07fb521SKim, Milo 72f07fb521SKim, Milo If unsure, say N. 73f07fb521SKim, Milo 747df4f9a9SWilly Tarreauconfig LEDS_TRIGGER_ACTIVITY 757df4f9a9SWilly Tarreau tristate "LED activity Trigger" 767df4f9a9SWilly Tarreau help 77a72d3b5dSGeert Uytterhoeven This allows LEDs to be controlled by an immediate CPU usage. 787df4f9a9SWilly Tarreau The flash frequency and duty cycle varies from faint flashes to 797df4f9a9SWilly Tarreau intense brightness depending on the instant CPU load. 807df4f9a9SWilly Tarreau If unsure, say N. 817df4f9a9SWilly Tarreau 82f07fb521SKim, Miloconfig LEDS_TRIGGER_GPIO 83f07fb521SKim, Milo tristate "LED GPIO Trigger" 8482322741SGeert Uytterhoeven depends on GPIOLIB || COMPILE_TEST 85f07fb521SKim, Milo help 86f07fb521SKim, Milo This allows LEDs to be controlled by gpio events. It's good 87f07fb521SKim, Milo when using gpios as switches and triggering the needed LEDs 88f07fb521SKim, Milo from there. One use case is n810's keypad LEDs that could 89f07fb521SKim, Milo be triggered by this trigger when user slides up to show 90f07fb521SKim, Milo keypad. 91f07fb521SKim, Milo 92f07fb521SKim, Milo If unsure, say N. 93f07fb521SKim, Milo 94f07fb521SKim, Miloconfig LEDS_TRIGGER_DEFAULT_ON 95f07fb521SKim, Milo tristate "LED Default ON Trigger" 96f07fb521SKim, Milo help 97f07fb521SKim, Milo This allows LEDs to be initialised in the ON state. 98f07fb521SKim, Milo If unsure, say Y. 99f07fb521SKim, Milo 100f07fb521SKim, Milocomment "iptables trigger is under Netfilter config (LED target)" 101f07fb521SKim, Milo depends on LEDS_TRIGGERS 102f07fb521SKim, Milo 103f07fb521SKim, Miloconfig LEDS_TRIGGER_TRANSIENT 104f07fb521SKim, Milo tristate "LED Transient Trigger" 105f07fb521SKim, Milo help 106f07fb521SKim, Milo This allows one time activation of a transient state on 107f07fb521SKim, Milo GPIO/PWM based hardware. 108f07fb521SKim, Milo If unsure, say Y. 109f07fb521SKim, Milo 11048a1d032SKim, Miloconfig LEDS_TRIGGER_CAMERA 11148a1d032SKim, Milo tristate "LED Camera Flash/Torch Trigger" 11248a1d032SKim, Milo help 11348a1d032SKim, Milo This allows LEDs to be controlled as a camera flash/torch device. 11448a1d032SKim, Milo This enables direct flash/torch on/off by the driver, kernel space. 11548a1d032SKim, Milo If unsure, say Y. 11648a1d032SKim, Milo 117916fe619SEzequiel Garciaconfig LEDS_TRIGGER_PANIC 118916fe619SEzequiel Garcia bool "LED Panic Trigger" 119916fe619SEzequiel Garcia help 120916fe619SEzequiel Garcia This allows LEDs to be configured to blink on a kernel panic. 121ba93cdceSEzequiel Garcia Enabling this option will allow to mark certain LEDs as panic indicators, 122ba93cdceSEzequiel Garcia allowing to blink them on a kernel panic, even if they are set to 123ba93cdceSEzequiel Garcia a different trigger. 124916fe619SEzequiel Garcia If unsure, say Y. 125916fe619SEzequiel Garcia 12606f502f5SBen Whittenconfig LEDS_TRIGGER_NETDEV 12706f502f5SBen Whitten tristate "LED Netdev Trigger" 1283d74243dSUwe Kleine-König depends on NET 12906f502f5SBen Whitten help 13006f502f5SBen Whitten This allows LEDs to be controlled by network device activity. 13106f502f5SBen Whitten If unsure, say Y. 13206f502f5SBen Whitten 1335fd752b6SBaolin Wangconfig LEDS_TRIGGER_PATTERN 1345fd752b6SBaolin Wang tristate "LED Pattern Trigger" 1355fd752b6SBaolin Wang help 1365fd752b6SBaolin Wang This allows LEDs to be controlled by a software or hardware pattern 1375fd752b6SBaolin Wang which is a series of tuples, of brightness and duration (ms). 1385fd752b6SBaolin Wang If unsure, say N 1395fd752b6SBaolin Wang 140faa2541fSTakashi Iwaiconfig LEDS_TRIGGER_AUDIO 141faa2541fSTakashi Iwai tristate "Audio Mute LED Trigger" 142faa2541fSTakashi Iwai help 143faa2541fSTakashi Iwai This allows LEDs to be controlled by audio drivers for following 144faa2541fSTakashi Iwai the audio mute and mic-mute changes. 145faa2541fSTakashi Iwai If unsure, say N 146faa2541fSTakashi Iwai 147*fd4a641aSUwe Kleine-Königconfig LEDS_TRIGGER_TTY 148*fd4a641aSUwe Kleine-König tristate "LED Trigger for TTY devices" 149*fd4a641aSUwe Kleine-König depends on TTY 150*fd4a641aSUwe Kleine-König help 151*fd4a641aSUwe Kleine-König This allows LEDs to be controlled by activity on ttys which includes 152*fd4a641aSUwe Kleine-König serial devices like /dev/ttyS0. 153*fd4a641aSUwe Kleine-König 154*fd4a641aSUwe Kleine-König When build as a module this driver will be called ledtrig-tty. 155*fd4a641aSUwe Kleine-König 156f07fb521SKim, Miloendif # LEDS_TRIGGERS 157