Linux Audio

Check our new training course

Loading...
v6.2
  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_TRIGGER_TIMER
 13	tristate "LED Timer Trigger"
 
 14	help
 15	  This allows LEDs to be controlled by a programmable timer
 16	  via sysfs. Some LED hardware can be programmed to start
 17	  blinking the LED without any further software interaction.
 18	  For more details read Documentation/leds/leds-class.rst.
 19
 20	  If unsure, say Y.
 21
 22config LEDS_TRIGGER_ONESHOT
 23	tristate "LED One-shot Trigger"
 
 24	help
 25	  This allows LEDs to blink in one-shot pulses with parameters
 26	  controlled via sysfs.  It's useful to notify the user on
 27	  sporadic events, when there are no clear begin and end trap points,
 28	  or on dense events, where this blinks the LED at constant rate if
 29	  rearmed continuously.
 30
 31	  It also shows how to use the led_blink_set_oneshot() function.
 32
 33	  If unsure, say Y.
 34
 35config LEDS_TRIGGER_DISK
 36	bool "LED Disk Trigger"
 37	depends on ATA
 
 38	help
 39	  This allows LEDs to be controlled by disk activity.
 40	  If unsure, say Y.
 41
 42config LEDS_TRIGGER_MTD
 43	bool "LED MTD (NAND/NOR) Trigger"
 44	depends on MTD
 45	help
 46	  This allows LEDs to be controlled by MTD activity.
 47	  If unsure, say N.
 48
 49config LEDS_TRIGGER_HEARTBEAT
 50	tristate "LED Heartbeat Trigger"
 
 51	help
 52	  This allows LEDs to be controlled by a CPU load average.
 53	  The flash frequency is a hyperbolic function of the 1-minute
 54	  load average.
 55	  If unsure, say Y.
 56
 57config LEDS_TRIGGER_BACKLIGHT
 58	tristate "LED backlight Trigger"
 
 59	help
 60	  This allows LEDs to be controlled as a backlight device: they
 61	  turn off and on when the display is blanked and unblanked.
 62
 63	  If unsure, say N.
 64
 65config LEDS_TRIGGER_CPU
 66	bool "LED CPU Trigger"
 67	depends on !PREEMPT_RT
 68	help
 69	  This allows LEDs to be controlled by active CPUs. This shows
 70	  the active CPUs across an array of LEDs so you can see which
 71	  CPUs are active on the system at any given moment.
 72
 73	  If unsure, say N.
 74
 75config LEDS_TRIGGER_ACTIVITY
 76	tristate "LED activity Trigger"
 77	help
 78	  This allows LEDs to be controlled by an immediate CPU usage.
 79	  The flash frequency and duty cycle varies from faint flashes to
 80	  intense brightness depending on the instant CPU load.
 81	  If unsure, say N.
 82
 83config LEDS_TRIGGER_GPIO
 84	tristate "LED GPIO Trigger"
 85	depends on GPIOLIB || COMPILE_TEST
 
 86	help
 87	  This allows LEDs to be controlled by gpio events. It's good
 88	  when using gpios as switches and triggering the needed LEDs
 89	  from there. One use case is n810's keypad LEDs that could
 90	  be triggered by this trigger when user slides up to show
 91	  keypad.
 92
 93	  If unsure, say N.
 94
 95config LEDS_TRIGGER_DEFAULT_ON
 96	tristate "LED Default ON Trigger"
 
 97	help
 98	  This allows LEDs to be initialised in the ON state.
 99	  If unsure, say Y.
100
101comment "iptables trigger is under Netfilter config (LED target)"
102	depends on LEDS_TRIGGERS
103
104config LEDS_TRIGGER_TRANSIENT
105	tristate "LED Transient Trigger"
 
106	help
107	  This allows one time activation of a transient state on
108	  GPIO/PWM based hardware.
109	  If unsure, say Y.
110
111config LEDS_TRIGGER_CAMERA
112	tristate "LED Camera Flash/Torch Trigger"
 
113	help
114	  This allows LEDs to be controlled as a camera flash/torch device.
115	  This enables direct flash/torch on/off by the driver, kernel space.
116	  If unsure, say Y.
117
118config LEDS_TRIGGER_PANIC
119	bool "LED Panic Trigger"
120	help
121	  This allows LEDs to be configured to blink on a kernel panic.
122	  Enabling this option will allow to mark certain LEDs as panic indicators,
123	  allowing to blink them on a kernel panic, even if they are set to
124	  a different trigger.
125	  If unsure, say Y.
126
127config LEDS_TRIGGER_NETDEV
128	tristate "LED Netdev Trigger"
129	depends on NET
130	help
131	  This allows LEDs to be controlled by network device activity.
132	  If unsure, say Y.
133
134config LEDS_TRIGGER_PATTERN
135	tristate "LED Pattern Trigger"
136	help
137	  This allows LEDs to be controlled by a software or hardware pattern
138	  which is a series of tuples, of brightness and duration (ms).
139	  If unsure, say N
140
141config LEDS_TRIGGER_AUDIO
142	tristate "Audio Mute LED Trigger"
143	help
144	  This allows LEDs to be controlled by audio drivers for following
145	  the audio mute and mic-mute changes.
146	  If unsure, say N
147
148config LEDS_TRIGGER_TTY
149	tristate "LED Trigger for TTY devices"
150	depends on TTY
151	help
152	  This allows LEDs to be controlled by activity on ttys which includes
153	  serial devices like /dev/ttyS0.
154
155	  When build as a module this driver will be called ledtrig-tty.
156
157endif # LEDS_TRIGGERS
v3.15
 
  1menuconfig LEDS_TRIGGERS
  2	bool "LED Trigger support"
  3	depends on LEDS_CLASS
  4	help
  5	  This option enables trigger support for the leds class.
  6	  These triggers allow kernel events to drive the LEDs and can
  7	  be configured via sysfs. If unsure, say Y.
  8
  9if LEDS_TRIGGERS
 10
 11config LEDS_TRIGGER_TIMER
 12	tristate "LED Timer Trigger"
 13	depends on LEDS_TRIGGERS
 14	help
 15	  This allows LEDs to be controlled by a programmable timer
 16	  via sysfs. Some LED hardware can be programmed to start
 17	  blinking the LED without any further software interaction.
 18	  For more details read Documentation/leds/leds-class.txt.
 19
 20	  If unsure, say Y.
 21
 22config LEDS_TRIGGER_ONESHOT
 23	tristate "LED One-shot Trigger"
 24	depends on LEDS_TRIGGERS
 25	help
 26	  This allows LEDs to blink in one-shot pulses with parameters
 27	  controlled via sysfs.  It's useful to notify the user on
 28	  sporadic events, when there are no clear begin and end trap points,
 29	  or on dense events, where this blinks the LED at constant rate if
 30	  rearmed continuously.
 31
 32	  It also shows how to use the led_blink_set_oneshot() function.
 33
 34	  If unsure, say Y.
 35
 36config LEDS_TRIGGER_IDE_DISK
 37	bool "LED IDE Disk Trigger"
 38	depends on IDE_GD_ATA
 39	depends on LEDS_TRIGGERS
 40	help
 41	  This allows LEDs to be controlled by IDE disk activity.
 42	  If unsure, say Y.
 43
 
 
 
 
 
 
 
 44config LEDS_TRIGGER_HEARTBEAT
 45	tristate "LED Heartbeat Trigger"
 46	depends on LEDS_TRIGGERS
 47	help
 48	  This allows LEDs to be controlled by a CPU load average.
 49	  The flash frequency is a hyperbolic function of the 1-minute
 50	  load average.
 51	  If unsure, say Y.
 52
 53config LEDS_TRIGGER_BACKLIGHT
 54	tristate "LED backlight Trigger"
 55	depends on LEDS_TRIGGERS
 56	help
 57	  This allows LEDs to be controlled as a backlight device: they
 58	  turn off and on when the display is blanked and unblanked.
 59
 60	  If unsure, say N.
 61
 62config LEDS_TRIGGER_CPU
 63	bool "LED CPU Trigger"
 64	depends on LEDS_TRIGGERS
 65	help
 66	  This allows LEDs to be controlled by active CPUs. This shows
 67	  the active CPUs across an array of LEDs so you can see which
 68	  CPUs are active on the system at any given moment.
 69
 70	  If unsure, say N.
 71
 
 
 
 
 
 
 
 
 72config LEDS_TRIGGER_GPIO
 73	tristate "LED GPIO Trigger"
 74	depends on LEDS_TRIGGERS
 75	depends on GPIOLIB
 76	help
 77	  This allows LEDs to be controlled by gpio events. It's good
 78	  when using gpios as switches and triggering the needed LEDs
 79	  from there. One use case is n810's keypad LEDs that could
 80	  be triggered by this trigger when user slides up to show
 81	  keypad.
 82
 83	  If unsure, say N.
 84
 85config LEDS_TRIGGER_DEFAULT_ON
 86	tristate "LED Default ON Trigger"
 87	depends on LEDS_TRIGGERS
 88	help
 89	  This allows LEDs to be initialised in the ON state.
 90	  If unsure, say Y.
 91
 92comment "iptables trigger is under Netfilter config (LED target)"
 93	depends on LEDS_TRIGGERS
 94
 95config LEDS_TRIGGER_TRANSIENT
 96	tristate "LED Transient Trigger"
 97	depends on LEDS_TRIGGERS
 98	help
 99	  This allows one time activation of a transient state on
100	  GPIO/PWM based hardware.
101	  If unsure, say Y.
102
103config LEDS_TRIGGER_CAMERA
104	tristate "LED Camera Flash/Torch Trigger"
105	depends on LEDS_TRIGGERS
106	help
107	  This allows LEDs to be controlled as a camera flash/torch device.
108	  This enables direct flash/torch on/off by the driver, kernel space.
109	  If unsure, say Y.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
111endif # LEDS_TRIGGERS