0001 What: /sys/class/chromeos/<ec-device-name>/lightbar/brightness
0002 Date: August 2015
0003 KernelVersion: 4.2
0004 Description:
0005 Writing to this file adjusts the overall brightness of
0006 the lightbar, separate from any color intensity. The
0007 valid range is 0 (off) to 255 (maximum brightness).
0008
0009 What: /sys/class/chromeos/<ec-device-name>/lightbar/interval_msec
0010 Date: August 2015
0011 KernelVersion: 4.2
0012 Description:
0013 The lightbar is controlled by an embedded controller (EC),
0014 which also manages the keyboard, battery charging, fans,
0015 and other system hardware. To prevent unprivileged users
0016 from interfering with the other EC functions, the rate at
0017 which the lightbar control files can be read or written is
0018 limited.
0019
0020 Reading this file will return the number of milliseconds
0021 that must elapse between accessing any of the lightbar
0022 functions through this interface. Going faster will simply
0023 block until the necessary interval has lapsed. The interval
0024 applies uniformly to all accesses of any kind by any user.
0025
0026 What: /sys/class/chromeos/<ec-device-name>/lightbar/led_rgb
0027 Date: August 2015
0028 KernelVersion: 4.2
0029 Description:
0030 This allows you to control each LED segment. If the
0031 lightbar is already running one of the automatic
0032 sequences, you probably won’t see anything change because
0033 your color setting will be almost immediately replaced.
0034 To get useful results, you should stop the lightbar
0035 sequence first.
0036
0037 The values written to this file are sets of four integers,
0038 indicating LED, RED, GREEN, BLUE. The LED number is 0 to 3
0039 to select a single segment, or 4 to set all four segments
0040 to the same value at once. The RED, GREEN, and BLUE
0041 numbers should be in the range 0 (off) to 255 (maximum).
0042 You can update more than one segment at a time by writing
0043 more than one set of four integers.
0044
0045 What: /sys/class/chromeos/<ec-device-name>/lightbar/program
0046 Date: August 2015
0047 KernelVersion: 4.2
0048 Description:
0049 This allows you to upload and run custom lightbar sequences.
0050
0051 What: /sys/class/chromeos/<ec-device-name>/lightbar/sequence
0052 Date: August 2015
0053 KernelVersion: 4.2
0054 Description:
0055 The Pixel lightbar has a number of built-in sequences
0056 that it displays under various conditions, such as at
0057 power on, shut down, or while running. Reading from this
0058 file displays the current sequence that the lightbar is
0059 displaying. Writing to this file allows you to change the
0060 sequence.
0061
0062 What: /sys/class/chromeos/<ec-device-name>/lightbar/userspace_control
0063 Date: August 2015
0064 KernelVersion: 4.2
0065 Description:
0066 This allows you to take the control of the lightbar. This
0067 prevents the kernel from going through its normal
0068 sequences.
0069
0070 What: /sys/class/chromeos/<ec-device-name>/lightbar/version
0071 Date: August 2015
0072 KernelVersion: 4.2
0073 Description:
0074 Show the information about the lightbar version.