mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-01 12:52:26 +00:00
3ac281f270790ab0e333ef557e4faacf12412c6b
Veyron only has one bicolor led (green and orange) near the AC connector. I dedicated the green channel for displaying power status: * Power on: Green * Suspend: Green in breeze mode ( 1 sec on/ 3 sec off) * Power off: OFF Charging is now displayed only on the orange channel: * Fully charged / idle: Off * Under charging: Orange * Battery low (10%): Orange in breeze mode (1 sec on, 3 sec off) * Battery critical low (less than 3%) or abnormal battery situation: Orange in blinking mode (1 sec on, 1 sec off) * Using battery or not connected to AC power: OFF The unfortunate side effect is that they have to share. So while the laptop is charging in standby the led will blink orange(1s)-yellow(3s). While it's a little ugly (it would have been nice to have 2 separate leds), it still provides more information than how it was done before (where there was no indication of power state). BUG=None TEST=Go through the various states (charging on/off/low and power on/off/ /suspend (warning: kernel doesn't report suspend to the EC properly yet, one can still test this by reverting c/209668 "veyron: fixed SUSPEND_L line")) BRANCH=None Change-Id: I8ca0fb0909da1a186e4e5c451d8868e977b3ca1b Signed-off-by: Alexandru M Stan <amstan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/209911 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Chris Zhong <zyw@rock-chips.com> Commit-Queue: Doug Anderson <dianders@chromium.org>
For an overview of the Embedded Controller firmware, refer to http://www.chromium.org/chromium-os/2014-firmware-summit
Description
Languages
C
64.7%
Lasso
20.7%
ASL
3.6%
JavaScript
3.2%
C#
2.9%
Other
4.6%