I have pushed my EC changes to this repo for the Embedded Controller of the FW16.
Note: This makes no changes to the EC code for the FW13. I don’t have a FW13 to test with, so cannot help much there, but I think my changes would help the FW13 also.
My changes are on the branch:
fwk-lotus-azalea-19573
“lotus-azalea” is the FW16.
In the output of:
sudo ectool chargecontrol
With PSU connected:
NORMAL == Charge battery if there is spare PSU capacity after powering the CPU/GPU.
IDLE == Don’t try to charge or discharge the battery. Only power the CPU/GPU.
DISCHARGE == Disconnect PSU, discharge even with PSU connected.
With PSU disconnected:
NORMAL == expect to start charging when PSU plugged in.
IDLE == should not see this.
DISCHARGE == should not see this. (after my EC fixes)
sudo ectool battery
in the “Flags” part:
CHARGING == ignoring any charge limits, the battery would like to be charged.
DISCHARGING == extra power is being provided by the battery to the CPU.
If the PSU is connected, and you see ectool battery DISCHARGING, it means the CPU needs more than the PSU can give, and its getting the extra from the battery.
The ectool chargecontrol should still say “IDLE” while power is being used from the PSU and the Battery at the same time.
If the Battery discharges below a threshold, the ectool chargecontrol should change to “NORMAL” so that it starts charging if the CPU/GPU power usage drops again.