1# SPDX-License-Identifier: GPL-2.0-only 2menuconfig LEDS_TRIGGERS 3 bool "LED Trigger support" 4 depends on LEDS_CLASS 5 help 6 This option enables trigger support for the leds class. 7 These triggers allow kernel events to drive the LEDs and can 8 be configured via sysfs. If unsure, say Y. 9 10if LEDS_TRIGGERS 11 12config LEDS_TRIGGERS_HW_CHANGED 13 bool "LED hardware-initiated trigger transition support" 14 default LEDS_BRIGHTNESS_HW_CHANGED 15 help 16 This option enables support for hardware initiated hardware control 17 transitions, where the LED hardware autonomously switches between 18 "none" (i.e., no trigger) and its private trigger. 19 20 See Documentation/leds/leds-class.rst for details. 21 22config LEDS_TRIGGER_TIMER 23 tristate "LED Timer Trigger" 24 help 25 This allows LEDs to be controlled by a programmable timer 26 via sysfs. Some LED hardware can be programmed to start 27 blinking the LED without any further software interaction. 28 For more details read Documentation/leds/leds-class.rst. 29 30 If unsure, say Y. 31 32config LEDS_TRIGGER_ONESHOT 33 tristate "LED One-shot Trigger" 34 help 35 This allows LEDs to blink in one-shot pulses with parameters 36 controlled via sysfs. It's useful to notify the user on 37 sporadic events, when there are no clear begin and end trap points, 38 or on dense events, where this blinks the LED at constant rate if 39 rearmed continuously. 40 41 It also shows how to use the led_blink_set_oneshot() function. 42 43 If unsure, say Y. 44 45config LEDS_TRIGGER_DISK 46 bool "LED Disk Trigger" 47 depends on ATA 48 help 49 This allows LEDs to be controlled by disk activity. 50 If unsure, say Y. 51 52config LEDS_TRIGGER_MTD 53 bool "LED MTD (NAND/NOR) Trigger" 54 depends on MTD 55 help 56 This allows LEDs to be controlled by MTD activity. 57 If unsure, say N. 58 59config LEDS_TRIGGER_HEARTBEAT 60 tristate "LED Heartbeat Trigger" 61 help 62 This allows LEDs to be controlled by a CPU load average. 63 The flash frequency is a hyperbolic function of the 1-minute 64 load average. 65 If unsure, say Y. 66 67config LEDS_TRIGGER_BACKLIGHT 68 tristate "LED backlight Trigger" 69 help 70 This allows LEDs to be controlled as a backlight device: they 71 turn off and on when the display is blanked and unblanked. 72 73 If unsure, say N. 74 75config LEDS_TRIGGER_CPU 76 bool "LED CPU Trigger" 77 depends on !PREEMPT_RT 78 help 79 This allows LEDs to be controlled by active CPUs. This shows 80 the active CPUs across an array of LEDs so you can see which 81 CPUs are active on the system at any given moment. 82 83 If unsure, say N. 84 85config LEDS_TRIGGER_ACTIVITY 86 tristate "LED activity Trigger" 87 help 88 This allows LEDs to be controlled by an immediate CPU usage. 89 The flash frequency and duty cycle varies from faint flashes to 90 intense brightness depending on the instant CPU load. 91 If unsure, say N. 92 93config LEDS_TRIGGER_GPIO 94 tristate "LED GPIO Trigger" 95 depends on GPIOLIB || COMPILE_TEST 96 help 97 This allows LEDs to be controlled by gpio events. It's good 98 when using gpios as switches and triggering the needed LEDs 99 from there. Triggers are defined as device properties. 100 101 If unsure, say N. 102 103config LEDS_TRIGGER_DEFAULT_ON 104 tristate "LED Default ON Trigger" 105 help 106 This allows LEDs to be initialised in the ON state. 107 If unsure, say Y. 108 109comment "iptables trigger is under Netfilter config (LED target)" 110 depends on LEDS_TRIGGERS 111 112config LEDS_TRIGGER_TRANSIENT 113 tristate "LED Transient Trigger" 114 help 115 This allows one time activation of a transient state on 116 GPIO/PWM based hardware. 117 If unsure, say Y. 118 119config LEDS_TRIGGER_CAMERA 120 tristate "LED Camera Flash/Torch Trigger" 121 help 122 This allows LEDs to be controlled as a camera flash/torch device. 123 This enables direct flash/torch on/off by the driver, kernel space. 124 If unsure, say Y. 125 126config LEDS_TRIGGER_PANIC 127 bool "LED Panic Trigger" 128 help 129 This allows LEDs to be configured to blink on a kernel panic. 130 Enabling this option will allow to mark certain LEDs as panic indicators, 131 allowing to blink them on a kernel panic, even if they are set to 132 a different trigger. 133 If unsure, say Y. 134 135config LEDS_TRIGGER_NETDEV 136 tristate "LED Netdev Trigger" 137 depends on NET 138 help 139 This allows LEDs to be controlled by network device activity. 140 If unsure, say Y. 141 142config LEDS_TRIGGER_PATTERN 143 tristate "LED Pattern Trigger" 144 help 145 This allows LEDs to be controlled by a software or hardware pattern 146 which is a series of tuples, of brightness and duration (ms). 147 If unsure, say N 148 149config LEDS_TRIGGER_TTY 150 tristate "LED Trigger for TTY devices" 151 depends on TTY 152 help 153 This allows LEDs to be controlled by activity on ttys which includes 154 serial devices like /dev/ttyS0. 155 156 When build as a module this driver will be called ledtrig-tty. 157 158config LEDS_TRIGGER_INPUT_EVENTS 159 tristate "LED Input events trigger" 160 depends on INPUT 161 help 162 Turn LEDs on when there is input (/dev/input/event*) activity and turn 163 them back off again after there has been no activity for 5 seconds. 164 165 This is primarily intended to control LEDs which are a backlight for 166 capacitive touch-buttons, such as e.g. the menu / home / back buttons 167 found on the bottom bezel of many older smartphones and tablets. 168 169 This can also be used to turn on the keyboard backlight LED on 170 input events and turn the keyboard backlight off again when idle. 171 172 When build as a module this driver will be called ledtrig-input-events. 173 174endif # LEDS_TRIGGERS 175