lg-laptop: model recognition improvements, common battery charge limit location
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | lg-laptop: Recognize more models correctlydrivers/ | +12 | 1 reply | |
| 2/2 | lg-laptop: Move setting of battery charge limit to common locationDocumentation/ Documentation/ drivers/ | +51 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] lg-laptop: model recognition improvements, common battery charge limit location
Correctly recognize 2021 and 2022 models in a way that will hopefully be more future proof by excluding 2016 model strings, instead of including each year ofter 2019.
Use /sys/class/power_supply/CMB0/charge_control_end_threshold to set battery charge limit to 80% (or reset to 100%).
Leave a shadow of the file in the old location /sys/devices/platform/lg-laptop/battery_care_limit and warn about it being deprecated in the documentation.
Matan Ziv-Av (2):
lg-laptop: Recognize more models correctly
lg-laptop: Move setting of battery charge limit to common location
.../ABI/testing/sysfs-platform-lg-laptop | 2 +- .../admin-guide/laptops/lg-laptop.rst | 2 +- drivers/platform/x86/lg-laptop.c | 69 ++++++++++++++++--- 3 files changed, 63 insertions(+), 10 deletions(-)
Signature · 1 line
Matan.