162306a36Sopenharmony_ciWhat: /sys/class/chromeos/<ec-device-name>/lightbar/brightness 262306a36Sopenharmony_ciDate: August 2015 362306a36Sopenharmony_ciKernelVersion: 4.2 462306a36Sopenharmony_ciDescription: 562306a36Sopenharmony_ci Writing to this file adjusts the overall brightness of 662306a36Sopenharmony_ci the lightbar, separate from any color intensity. The 762306a36Sopenharmony_ci valid range is 0 (off) to 255 (maximum brightness). 862306a36Sopenharmony_ci 962306a36Sopenharmony_ciWhat: /sys/class/chromeos/<ec-device-name>/lightbar/interval_msec 1062306a36Sopenharmony_ciDate: August 2015 1162306a36Sopenharmony_ciKernelVersion: 4.2 1262306a36Sopenharmony_ciDescription: 1362306a36Sopenharmony_ci The lightbar is controlled by an embedded controller (EC), 1462306a36Sopenharmony_ci which also manages the keyboard, battery charging, fans, 1562306a36Sopenharmony_ci and other system hardware. To prevent unprivileged users 1662306a36Sopenharmony_ci from interfering with the other EC functions, the rate at 1762306a36Sopenharmony_ci which the lightbar control files can be read or written is 1862306a36Sopenharmony_ci limited. 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ci Reading this file will return the number of milliseconds 2162306a36Sopenharmony_ci that must elapse between accessing any of the lightbar 2262306a36Sopenharmony_ci functions through this interface. Going faster will simply 2362306a36Sopenharmony_ci block until the necessary interval has lapsed. The interval 2462306a36Sopenharmony_ci applies uniformly to all accesses of any kind by any user. 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ciWhat: /sys/class/chromeos/<ec-device-name>/lightbar/led_rgb 2762306a36Sopenharmony_ciDate: August 2015 2862306a36Sopenharmony_ciKernelVersion: 4.2 2962306a36Sopenharmony_ciDescription: 3062306a36Sopenharmony_ci This allows you to control each LED segment. If the 3162306a36Sopenharmony_ci lightbar is already running one of the automatic 3262306a36Sopenharmony_ci sequences, you probably won’t see anything change because 3362306a36Sopenharmony_ci your color setting will be almost immediately replaced. 3462306a36Sopenharmony_ci To get useful results, you should stop the lightbar 3562306a36Sopenharmony_ci sequence first. 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ci The values written to this file are sets of four integers, 3862306a36Sopenharmony_ci indicating LED, RED, GREEN, BLUE. The LED number is 0 to 3 3962306a36Sopenharmony_ci to select a single segment, or 4 to set all four segments 4062306a36Sopenharmony_ci to the same value at once. The RED, GREEN, and BLUE 4162306a36Sopenharmony_ci numbers should be in the range 0 (off) to 255 (maximum). 4262306a36Sopenharmony_ci You can update more than one segment at a time by writing 4362306a36Sopenharmony_ci more than one set of four integers. 4462306a36Sopenharmony_ci 4562306a36Sopenharmony_ciWhat: /sys/class/chromeos/<ec-device-name>/lightbar/program 4662306a36Sopenharmony_ciDate: August 2015 4762306a36Sopenharmony_ciKernelVersion: 4.2 4862306a36Sopenharmony_ciDescription: 4962306a36Sopenharmony_ci This allows you to upload and run custom lightbar sequences. 5062306a36Sopenharmony_ci 5162306a36Sopenharmony_ciWhat: /sys/class/chromeos/<ec-device-name>/lightbar/sequence 5262306a36Sopenharmony_ciDate: August 2015 5362306a36Sopenharmony_ciKernelVersion: 4.2 5462306a36Sopenharmony_ciDescription: 5562306a36Sopenharmony_ci The Pixel lightbar has a number of built-in sequences 5662306a36Sopenharmony_ci that it displays under various conditions, such as at 5762306a36Sopenharmony_ci power on, shut down, or while running. Reading from this 5862306a36Sopenharmony_ci file displays the current sequence that the lightbar is 5962306a36Sopenharmony_ci displaying. Writing to this file allows you to change the 6062306a36Sopenharmony_ci sequence. 6162306a36Sopenharmony_ci 6262306a36Sopenharmony_ciWhat: /sys/class/chromeos/<ec-device-name>/lightbar/userspace_control 6362306a36Sopenharmony_ciDate: August 2015 6462306a36Sopenharmony_ciKernelVersion: 4.2 6562306a36Sopenharmony_ciDescription: 6662306a36Sopenharmony_ci This allows you to take the control of the lightbar. This 6762306a36Sopenharmony_ci prevents the kernel from going through its normal 6862306a36Sopenharmony_ci sequences. 6962306a36Sopenharmony_ci 7062306a36Sopenharmony_ciWhat: /sys/class/chromeos/<ec-device-name>/lightbar/version 7162306a36Sopenharmony_ciDate: August 2015 7262306a36Sopenharmony_ciKernelVersion: 4.2 7362306a36Sopenharmony_ciDescription: 7462306a36Sopenharmony_ci Show the information about the lightbar version. 75