drivers/leds/trigger

Linux LED triggers

A collection of small modules that connect status LEDs on a system to events the kernel already knows about, such as disk activity, network traffic, CPU load, heartbeat, keyboard input, or user-space-defined patterns. They are what makes the activity lights on laptops, servers, and embedded devices like Wi-Fi routers blink in meaningful ways.

keep conf=0.89 last_sold=2025 deploy=high replacement=none subsystem=leds category=infrastructure
89%

recommendation

It should stay because LED triggers are core, generic Linux infrastructure that drives the activity blinkenlights on shipping hardware, from laptops to routers. The subsystem is still actively maintained, with 2025 patches adding new triggers (such as a userspace-controlled trigger) and ongoing fixes, and projects like OpenWrt rely on it for power, Ethernet, USB, and Wi-Fi status LEDs on current devices.

repository signals

19 files
3,532 source lines
77 commits, 5y
+1,293 / −681 lines added / removed, 5y
33 authors, 5y
monthly commits · 2021-04-21 → 2026-04-21 · 77 total · active in 33/61 months
2021 2022 2023 2024 2025 2026 2021-04: 0 commits · +0 −0 2021-05: 1 commit · +1 −1 2021-06: 0 commits · +0 −0 2021-07: 1 commit · +3 −0 2021-08: 1 commit · +1 −1 2021-09: 0 commits · +0 −0 2021-10: 1 commit · +1 −0 2021-11: 0 commits · +0 −0 2021-12: 0 commits · +0 −0 2022-01: 0 commits · +0 −0 2022-02: 0 commits · +0 −0 2022-03: 0 commits · +0 −0 2022-04: 0 commits · +0 −0 2022-05: 0 commits · +0 −0 2022-06: 0 commits · +0 −0 2022-07: 0 commits · +0 −0 2022-08: 0 commits · +0 −0 2022-09: 0 commits · +0 −0 2022-10: 0 commits · +0 −0 2022-11: 0 commits · +0 −0 2022-12: 2 commits · +5 −5 2023-01: 1 commit · +0 −4 2023-02: 0 commits · +0 −0 2023-03: 1 commit · +1 −0 2023-04: 5 commits · +61 −94 2023-05: 10 commits · +132 −38 2023-06: 4 commits · +107 −13 2023-07: 0 commits · +0 −0 2023-08: 5 commits · +20 −23 2023-09: 2 commits · +43 −103 2023-10: 1 commit · +3 −3 2023-11: 9 commits · +256 −57 2023-12: 6 commits · +39 −23 2024-01: 3 commits · +87 −6 2024-02: 1 commit · +2 −2 2024-03: 2 commits · +0 −75 2024-04: 2 commits · +103 −25 2024-05: 1 commit · +250 −0 2024-06: 2 commits · +34 −107 2024-07: 1 commit · +21 −3 2024-08: 0 commits · +0 −0 2024-09: 0 commits · +0 −0 2024-10: 0 commits · +0 −0 2024-11: 1 commit · +1 −1 2024-12: 1 commit · +2 −0 2025-01: 1 commit · +13 −3 2025-02: 1 commit · +2 −2 2025-03: 2 commits · +35 −37 2025-04: 1 commit · +2 −2 2025-05: 1 commit · +5 −5 2025-06: 0 commits · +0 −0 2025-07: 1 commit · +3 −13 2025-08: 0 commits · +0 −0 2025-09: 0 commits · +0 −0 2025-10: 1 commit · +9 −5 2025-11: 1 commit · +1 −1 2025-12: 0 commits · +0 −0 2026-01: 0 commits · +0 −0 2026-02: 2 commits · +20 −20 2026-03: 0 commits · +0 −0 2026-04: 0 commits · +0 −0

sources

  1. lore.kernel.org

    Recent upstream maintenance in 2025 touched this subtree's Kconfig, indicating the trigger family is still actively maintained.

  2. lore.kernel.org

    A 2025 patch series added a new userspace LED trigger, showing the subsystem is still gaining new functionality rather than being phased out.

  3. docs.kernel.org

    Kernel documentation describes LED triggers as a kernel-based source of LED events available to LED class devices, confirming this is generic current kernel functionality rather than a legacy single-device driver.

  4. openwrt.org

    OpenWrt documents LED trigger configuration for power, ethernet, USB, and Wi-Fi indicators on contemporary routers, evidencing ongoing real-world deployments on new embedded hardware.

codex reasoning notes (technical)

`drivers/leds/trigger` contains loadable LED trigger modules (`ledtrig-netdev`, `ledtrig-pattern`, `ledtrig-input-events`, etc.), so it is a real driver-family directory, not a helper library. `lore_file_timeline` on `drivers/leds/trigger/Kconfig` showed steady 2021-2025 activity and produced the cited lore URLs; notable events include a 2025 Kconfig fix and a 2025 new userspace-trigger series, with no removal/deprecation signal visible in that timeline. `web.search_query` returned the kernel LED docs URL and the OpenWrt LED configuration URL; together they show these triggers remain part of current Linux LED infrastructure and are used on shipping embedded/network devices. Because this is generic subsystem functionality with ongoing additions and broad deployment, there is no natural replacement driver and the correct recommendation is to keep it.