You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fwk: implement Battery Charge Limiting battery status
In the ACPI spec _BST(battery status) has a feature 3.9.6 Battery Charge Limiting
follows the spec to implement the behavior.
This way the operating system can tell that the battery is not charging
anymore because it has reached the configured charge state limit.
Windows recognizes this and calls it smart charging:
https://support.microsoft.com/en-us/windows/use-smart-charging-in-windows-2ac1b4ba-6027-410a-b80e-f6767d867002
Linux has also added support:
torvalds/linux@526294e
Previously our ACPI code would mask off this bit, so to use this EC
change, the BIOS has to be updated not to mask this bit.
BRANCH=fwk-main
BUG=https://app.clickup.com/t/86et2u0ve (Question 3)
TEST= test on azalea, setting charger limit to 80% and Limiting has reached the steady state
(CHG state = idle), check namespec 0x4c Bit7(Limit active) is 1,
bit2(discharging) and bit3(charging) is 0.
TEST= test on azalea, setting charger limit to 80% and battery has discharging(higher than 80%)
check namespec 0x4c Bit7(Limit active) and bit2(discharging is 1, and bit3(charging) is 0.
TEST= test on azalea, setting charger limit to 80% and battery has charging(lower than 80%)
check namespec 0x4c Bit7(Limit active) and bit3(charging is 1, and bit2(discharging) is 0.
TEST= test on azalea, disable charger limit and batt extender,
check namespec 0x4c Bit7(Limit active) is 0.
Signed-off-by: LeoCX_Tsai <[email protected]>
(cherry picked from commit f82e3ffef8bcb5b233f17170f348981289fffc23)
0 commit comments