Commit 37d3e12
committed
fix(armbian-leds): strip brightness only for :link / phy*tpt triggers
Previous version stripped brightness for any non-none trigger, which
regresses board configs that intentionally dim a triggered LED. The
kernel LED ABI treats brightness under an active trigger as a
"ceiling" the trigger may scale to (writing non-zero brightness while
a trigger is active sets the top brightness for the trigger's output).
config/boards/radxa-e52c.conf and radxa-e54c.conf rely on this:
`brightness=1` under `trigger=netdev` produces a dimmed link blink.
Narrow the strip to triggers whose brightness is genuinely an
instantaneous output (link-up/down boolean, tpt blink state):
*:link — netdev link state, the original case from PR #7337
(commit 2960ffa). Showed cable-up while unplugged
after restore from a saved `brightness=1`.
phy*tpt — wifi PHY tx-packet trigger. rtw88 forum case: brightness
flapped 0/1 in /etc/armbian-leds.conf on every shutdown.
Other triggers keep brightness as legitimate config. The token-safe
filter (whole-word match instead of ${PARAMS//brightness/} substring
substitution) stays — required either way to avoid corrupting sibling
files like max_brightness.
Forum thread: https://forum.armbian.com/topic/57284-regular-changes-in-file-etcarmbian-ledsconf-on-odroid-n2/
Assisted-by: Claude:claude-opus-4.71 parent 4aa01fe commit 37d3e12
1 file changed
Lines changed: 39 additions & 6 deletions
Lines changed: 39 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
47 | 80 | | |
48 | 81 | | |
49 | 82 | | |
50 | 83 | | |
51 | | - | |
| 84 | + | |
52 | 85 | | |
53 | 86 | | |
54 | 87 | | |
| |||
0 commit comments