Skip to content

lg-laptop: model recognition improvements, common battery charge limit location

Matan Ziv-Av platform-driver-x86 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lg-laptop: Recognize more models correctlydrivers/platform/x86/lg-laptop.c+12 -01 reply
2/2lg-laptop: Move setting of battery charge limit to common locationDocumentation/ABI/testing/sysfs-platform-lg-laptop Documentation/admin-guide/laptops/lg-laptop.rst drivers/platform/x86/lg-laptop.c+51 -101 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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.