1 What: /sys/class/leds/<led>/pattern 1 What: /sys/class/leds/<led>/pattern 2 Date: September 2018 2 Date: September 2018 3 KernelVersion: 4.20 3 KernelVersion: 4.20 4 Description: 4 Description: 5 Specify a software pattern for 5 Specify a software pattern for the LED, that supports altering 6 the brightness for the specifi 6 the brightness for the specified duration with one software 7 timer. It can do gradual dimmi 7 timer. It can do gradual dimming and step change of brightness. 8 8 9 The pattern is given by a seri 9 The pattern is given by a series of tuples, of brightness and 10 duration (ms). 10 duration (ms). 11 11 12 The exact format is described 12 The exact format is described in: 13 Documentation/devicetree/bindi 13 Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt 14 14 15 What: /sys/class/leds/<led>/hr_patte 15 What: /sys/class/leds/<led>/hr_pattern 16 Date: April 2024 16 Date: April 2024 17 Description: 17 Description: 18 Specify a software pattern for 18 Specify a software pattern for the LED, that supports altering 19 the brightness for the specifi 19 the brightness for the specified duration with one software 20 timer. It can do gradual dimmi 20 timer. It can do gradual dimming and step change of brightness. 21 21 22 Unlike the /sys/class/leds/<le 22 Unlike the /sys/class/leds/<led>/pattern, this attribute runs 23 a pattern on high-resolution t 23 a pattern on high-resolution timer (hrtimer). 24 24 25 What: /sys/class/leds/<led>/hw_patte 25 What: /sys/class/leds/<led>/hw_pattern 26 Date: September 2018 26 Date: September 2018 27 KernelVersion: 4.20 27 KernelVersion: 4.20 28 Description: 28 Description: 29 Specify a hardware pattern for 29 Specify a hardware pattern for the LED, for LED hardware that 30 supports autonomously controll 30 supports autonomously controlling brightness over time, according 31 to some preprogrammed hardware 31 to some preprogrammed hardware patterns. It deactivates any active 32 software pattern. 32 software pattern. 33 33 34 Since different LED hardware c 34 Since different LED hardware can have different semantics of 35 hardware patterns, each driver 35 hardware patterns, each driver is expected to provide its own 36 description for the hardware p 36 description for the hardware patterns in their documentation 37 file at Documentation/leds/. 37 file at Documentation/leds/. 38 38 39 What: /sys/class/leds/<led>/repeat 39 What: /sys/class/leds/<led>/repeat 40 Date: September 2018 40 Date: September 2018 41 KernelVersion: 4.20 41 KernelVersion: 4.20 42 Description: 42 Description: 43 Specify a pattern repeat numbe 43 Specify a pattern repeat number. -1 means repeat indefinitely, 44 other negative numbers and num 44 other negative numbers and number 0 are invalid. 45 45 46 This file will always return t 46 This file will always return the originally written repeat 47 number. 47 number. 48 48 49 It should be noticed that some 49 It should be noticed that some leds, like EL15203000 may 50 only support indefinitely patt 50 only support indefinitely patterns, so they always store -1.
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.