[PATCH 0/2] lg-laptop: model recognition improvements, common battery charge limit location

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

-- 
Matan.




[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux