All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] lg-laptop: model recognition improvements, common battery charge limit location
@ 2022-02-19 13:55 Matan Ziv-Av
  2021-11-21  7:43 ` [PATCH 1/2] lg-laptop: Recognize more models correctly Matan Ziv-Av
  2022-02-19 13:54 ` [PATCH 2/2] lg-laptop: Move setting of battery charge limit to common location Matan Ziv-Av
  0 siblings, 2 replies; 5+ messages in thread
From: Matan Ziv-Av @ 2022-02-19 13:55 UTC (permalink / raw)
  To: Platform Driver; +Cc: Hans de Goede

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-02-22 18:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-19 13:55 [PATCH 0/2] lg-laptop: model recognition improvements, common battery charge limit location Matan Ziv-Av
2021-11-21  7:43 ` [PATCH 1/2] lg-laptop: Recognize more models correctly Matan Ziv-Av
2022-02-22 17:52   ` Hans de Goede
2022-02-19 13:54 ` [PATCH 2/2] lg-laptop: Move setting of battery charge limit to common location Matan Ziv-Av
2022-02-22 18:42   ` Hans de Goede

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.