From: Matan Ziv-Av <matan@svgalib.org>
To: Platform Driver <platform-driver-x86@vger.kernel.org>
Cc: Hans de Goede <hdegoede@redhat.com>
Subject: [PATCH 0/2] lg-laptop: model recognition improvements, common battery charge limit location
Date: Sat, 19 Feb 2022 15:55:14 +0200 [thread overview]
Message-ID: <cover.1645278914.git.matan@svgalib.org> (raw)
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.
next reply other threads:[~2022-02-19 14:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-19 13:55 Matan Ziv-Av [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1645278914.git.matan@svgalib.org \
--to=matan@svgalib.org \
--cc=hdegoede@redhat.com \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox