sysfs-class-led-trigger-pattern 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. What: /sys/class/leds/<led>/pattern
  2. Date: September 2018
  3. KernelVersion: 4.20
  4. Description:
  5. Specify a software pattern for the LED, that supports altering
  6. the brightness for the specified duration with one software
  7. timer. It can do gradual dimming and step change of brightness.
  8. The pattern is given by a series of tuples, of brightness and
  9. duration (ms).
  10. The exact format is described in:
  11. Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt
  12. What: /sys/class/leds/<led>/hw_pattern
  13. Date: September 2018
  14. KernelVersion: 4.20
  15. Description:
  16. Specify a hardware pattern for the LED, for LED hardware that
  17. supports autonomously controlling brightness over time, according
  18. to some preprogrammed hardware patterns. It deactivates any active
  19. software pattern.
  20. Since different LED hardware can have different semantics of
  21. hardware patterns, each driver is expected to provide its own
  22. description for the hardware patterns in their documentation
  23. file at Documentation/leds/.
  24. What: /sys/class/leds/<led>/repeat
  25. Date: September 2018
  26. KernelVersion: 4.20
  27. Description:
  28. Specify a pattern repeat number. -1 means repeat indefinitely,
  29. other negative numbers and number 0 are invalid.
  30. This file will always return the originally written repeat
  31. number.