51 lines · plain
1What: /sys/class/leds/<led>/pattern2Date: September 20183KernelVersion: 4.204Description:5 Specify a software pattern for the LED, that supports altering6 the brightness for the specified duration with one software7 timer. It can do gradual dimming and step change of brightness.8 9 The pattern is given by a series of tuples, of brightness and10 duration (ms).11 12 The exact format is described in:13 Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt14 15What: /sys/class/leds/<led>/hr_pattern16Date: April 202417Description:18 Specify a software pattern for the LED, that supports altering19 the brightness for the specified duration with one software20 timer. It can do gradual dimming and step change of brightness.21 22 Unlike the /sys/class/leds/<led>/pattern, this attribute runs23 a pattern on high-resolution timer (hrtimer).24 25What: /sys/class/leds/<led>/hw_pattern26Date: September 201827KernelVersion: 4.2028Description:29 Specify a hardware pattern for the LED, for LED hardware that30 supports autonomously controlling brightness over time, according31 to some preprogrammed hardware patterns. It deactivates any active32 software pattern.33 34 Since different LED hardware can have different semantics of35 hardware patterns, each driver is expected to provide its own36 description for the hardware patterns in their documentation37 file at Documentation/leds/.38 39What: /sys/class/leds/<led>/repeat40Date: September 201841KernelVersion: 4.2042Description:43 Specify a pattern repeat number. -1 means repeat indefinitely,44 other negative numbers and number 0 are invalid.45 46 This file will always return the originally written repeat47 number.48 49 It should be noticed that some leds, like EL15203000 may50 only support indefinitely patterns, so they always store -1.51