sysfs-class-chromeos-driver-cros-ec-lightbar 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. What: /sys/class/chromeos/<ec-device-name>/lightbar/brightness
  2. Date: August 2015
  3. KernelVersion: 4.2
  4. Description:
  5. Writing to this file adjusts the overall brightness of
  6. the lightbar, separate from any color intensity. The
  7. valid range is 0 (off) to 255 (maximum brightness).
  8. What: /sys/class/chromeos/<ec-device-name>/lightbar/interval_msec
  9. Date: August 2015
  10. KernelVersion: 4.2
  11. Description:
  12. The lightbar is controlled by an embedded controller (EC),
  13. which also manages the keyboard, battery charging, fans,
  14. and other system hardware. To prevent unprivileged users
  15. from interfering with the other EC functions, the rate at
  16. which the lightbar control files can be read or written is
  17. limited.
  18. Reading this file will return the number of milliseconds
  19. that must elapse between accessing any of the lightbar
  20. functions through this interface. Going faster will simply
  21. block until the necessary interval has lapsed. The interval
  22. applies uniformly to all accesses of any kind by any user.
  23. What: /sys/class/chromeos/<ec-device-name>/lightbar/led_rgb
  24. Date: August 2015
  25. KernelVersion: 4.2
  26. Description:
  27. This allows you to control each LED segment. If the
  28. lightbar is already running one of the automatic
  29. sequences, you probably won’t see anything change because
  30. your color setting will be almost immediately replaced.
  31. To get useful results, you should stop the lightbar
  32. sequence first.
  33. The values written to this file are sets of four integers,
  34. indicating LED, RED, GREEN, BLUE. The LED number is 0 to 3
  35. to select a single segment, or 4 to set all four segments
  36. to the same value at once. The RED, GREEN, and BLUE
  37. numbers should be in the range 0 (off) to 255 (maximum).
  38. You can update more than one segment at a time by writing
  39. more than one set of four integers.
  40. What: /sys/class/chromeos/<ec-device-name>/lightbar/program
  41. Date: August 2015
  42. KernelVersion: 4.2
  43. Description:
  44. This allows you to upload and run custom lightbar sequences.
  45. What: /sys/class/chromeos/<ec-device-name>/lightbar/sequence
  46. Date: August 2015
  47. KernelVersion: 4.2
  48. Description:
  49. The Pixel lightbar has a number of built-in sequences
  50. that it displays under various conditions, such as at
  51. power on, shut down, or while running. Reading from this
  52. file displays the current sequence that the lightbar is
  53. displaying. Writing to this file allows you to change the
  54. sequence.
  55. What: /sys/class/chromeos/<ec-device-name>/lightbar/userspace_control
  56. Date: August 2015
  57. KernelVersion: 4.2
  58. Description:
  59. This allows you to take the control of the lightbar. This
  60. prevents the kernel from going through its normal
  61. sequences.
  62. What: /sys/class/chromeos/<ec-device-name>/lightbar/version
  63. Date: August 2015
  64. KernelVersion: 4.2
  65. Description:
  66. Show the information about the lightbar version.