18c2ecf20Sopenharmony_ciWhat: /sys/class/chromeos/<ec-device-name>/lightbar/brightness 28c2ecf20Sopenharmony_ciDate: August 2015 38c2ecf20Sopenharmony_ciKernelVersion: 4.2 48c2ecf20Sopenharmony_ciDescription: 58c2ecf20Sopenharmony_ci Writing to this file adjusts the overall brightness of 68c2ecf20Sopenharmony_ci the lightbar, separate from any color intensity. The 78c2ecf20Sopenharmony_ci valid range is 0 (off) to 255 (maximum brightness). 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciWhat: /sys/class/chromeos/<ec-device-name>/lightbar/interval_msec 108c2ecf20Sopenharmony_ciDate: August 2015 118c2ecf20Sopenharmony_ciKernelVersion: 4.2 128c2ecf20Sopenharmony_ciDescription: 138c2ecf20Sopenharmony_ci The lightbar is controlled by an embedded controller (EC), 148c2ecf20Sopenharmony_ci which also manages the keyboard, battery charging, fans, 158c2ecf20Sopenharmony_ci and other system hardware. To prevent unprivileged users 168c2ecf20Sopenharmony_ci from interfering with the other EC functions, the rate at 178c2ecf20Sopenharmony_ci which the lightbar control files can be read or written is 188c2ecf20Sopenharmony_ci limited. 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci Reading this file will return the number of milliseconds 218c2ecf20Sopenharmony_ci that must elapse between accessing any of the lightbar 228c2ecf20Sopenharmony_ci functions through this interface. Going faster will simply 238c2ecf20Sopenharmony_ci block until the necessary interval has lapsed. The interval 248c2ecf20Sopenharmony_ci applies uniformly to all accesses of any kind by any user. 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciWhat: /sys/class/chromeos/<ec-device-name>/lightbar/led_rgb 278c2ecf20Sopenharmony_ciDate: August 2015 288c2ecf20Sopenharmony_ciKernelVersion: 4.2 298c2ecf20Sopenharmony_ciDescription: 308c2ecf20Sopenharmony_ci This allows you to control each LED segment. If the 318c2ecf20Sopenharmony_ci lightbar is already running one of the automatic 328c2ecf20Sopenharmony_ci sequences, you probably won’t see anything change because 338c2ecf20Sopenharmony_ci your color setting will be almost immediately replaced. 348c2ecf20Sopenharmony_ci To get useful results, you should stop the lightbar 358c2ecf20Sopenharmony_ci sequence first. 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci The values written to this file are sets of four integers, 388c2ecf20Sopenharmony_ci indicating LED, RED, GREEN, BLUE. The LED number is 0 to 3 398c2ecf20Sopenharmony_ci to select a single segment, or 4 to set all four segments 408c2ecf20Sopenharmony_ci to the same value at once. The RED, GREEN, and BLUE 418c2ecf20Sopenharmony_ci numbers should be in the range 0 (off) to 255 (maximum). 428c2ecf20Sopenharmony_ci You can update more than one segment at a time by writing 438c2ecf20Sopenharmony_ci more than one set of four integers. 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ciWhat: /sys/class/chromeos/<ec-device-name>/lightbar/program 468c2ecf20Sopenharmony_ciDate: August 2015 478c2ecf20Sopenharmony_ciKernelVersion: 4.2 488c2ecf20Sopenharmony_ciDescription: 498c2ecf20Sopenharmony_ci This allows you to upload and run custom lightbar sequences. 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ciWhat: /sys/class/chromeos/<ec-device-name>/lightbar/sequence 528c2ecf20Sopenharmony_ciDate: August 2015 538c2ecf20Sopenharmony_ciKernelVersion: 4.2 548c2ecf20Sopenharmony_ciDescription: 558c2ecf20Sopenharmony_ci The Pixel lightbar has a number of built-in sequences 568c2ecf20Sopenharmony_ci that it displays under various conditions, such as at 578c2ecf20Sopenharmony_ci power on, shut down, or while running. Reading from this 588c2ecf20Sopenharmony_ci file displays the current sequence that the lightbar is 598c2ecf20Sopenharmony_ci displaying. Writing to this file allows you to change the 608c2ecf20Sopenharmony_ci sequence. 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ciWhat: /sys/class/chromeos/<ec-device-name>/lightbar/userspace_control 638c2ecf20Sopenharmony_ciDate: August 2015 648c2ecf20Sopenharmony_ciKernelVersion: 4.2 658c2ecf20Sopenharmony_ciDescription: 668c2ecf20Sopenharmony_ci This allows you to take the control of the lightbar. This 678c2ecf20Sopenharmony_ci prevents the kernel from going through its normal 688c2ecf20Sopenharmony_ci sequences. 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ciWhat: /sys/class/chromeos/<ec-device-name>/lightbar/version 718c2ecf20Sopenharmony_ciDate: August 2015 728c2ecf20Sopenharmony_ciKernelVersion: 4.2 738c2ecf20Sopenharmony_ciDescription: 748c2ecf20Sopenharmony_ci Show the information about the lightbar version. 75