Kconfig 4.9 KB

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