Something went wrong. Try again.
Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Something went wrong. Try again.
1.8 kB · 50 lines
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051What: /sys/class/leds/<led>/patternDate: September 2018KernelVersion: 4.20Description: Specify a software pattern for the LED, that supports altering the brightness for the specified duration with one software timer. It can do gradual dimming and step change of brightness.
The pattern is given by a series of tuples, of brightness and duration (ms).
The exact format is described in: Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt
What: /sys/class/leds/<led>/hr_patternDate: April 2024Description: Specify a software pattern for the LED, that supports altering the brightness for the specified duration with one software timer. It can do gradual dimming and step change of brightness.
Unlike the /sys/class/leds/<led>/pattern, this attribute runs a pattern on high-resolution timer (hrtimer).
What: /sys/class/leds/<led>/hw_patternDate: September 2018KernelVersion: 4.20Description: Specify a hardware pattern for the LED, for LED hardware that supports autonomously controlling brightness over time, according to some preprogrammed hardware patterns. It deactivates any active software pattern.
Since different LED hardware can have different semantics of hardware patterns, each driver is expected to provide its own description for the hardware patterns in their documentation file at Documentation/leds/.
What: /sys/class/leds/<led>/repeatDate: September 2018KernelVersion: 4.20Description: Specify a pattern repeat number. -1 means repeat indefinitely, other negative numbers and number 0 are invalid.
This file will always return the originally written repeat number.
It should be noticed that some leds, like EL15203000 may only support indefinitely patterns, so they always store -1.