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