From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
To: Ognjen Galic <smclt30p@gmail.com>
Cc: "Andy Shevchenko" <andy.shevchenko@gmail.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
"Len Brown" <lenb@kernel.org>,
"Robert Moore" <robert.moore@intel.com>,
"Lv Zheng" <lv.zheng@intel.com>,
"ACPI Devel Maling List" <linux-acpi@vger.kernel.org>,
devel@acpica.org, "Darren Hart" <dvhart@infradead.org>,
"Andy Shevchenko" <andy@infradead.org>,
"Henrique de Moraes Holschuh" <ibm-acpi@hmh.eng.br>,
"Sebastian Reichel" <sre@kernel.org>,
"Platform Driver" <platform-driver-x86@vger.kernel.org>,
ibm-acpi-devel@lists.sourceforge.net,
"Linux PM" <linux-pm@vger.kernel.org>,
"Christoph Böhmwalder" <christoph@boehmwalder.at>,
"Kevin Locke" <kevin@kevinlocke.name>
Subject: Re: [PATCH v13 4/4] battery: Add the ThinkPad "Not Charging" quirk
Date: Fri, 9 Feb 2018 08:45:30 -0200 [thread overview]
Message-ID: <20180209104530.s5i6lymcpgkqyego@khazad-dum.debian.net> (raw)
In-Reply-To: <20180207145936.ockmmkipxtwkdsot@thinkpad>
On Wed, 07 Feb 2018, Ognjen Galic wrote:
> The EC/ACPI firmware on Lenovo ThinkPads used to report a status
> of "Unknown" when the battery is between the charge start and
> charge stop thresholds. On Windows, it reports "Not Charging"
> so the quirk has been added to also report correctly.
>
> Now the "status" attribute returns "Not Charging" when the
> battery on ThinkPads is not physicaly charging.
>
> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
> Signed-off-by: Ognjen Galic <smclt30p@gmail.com>
AFAIK, This behavior goes back to the initial SBS implementation in the
IBM era ECs of the Thinkpads... We've always called it "idle" in the
linux-thinkpad community. The behavior comes from SBS
(http://smartbattery.org/specs/), the EC was reporting its status
(charging/not charging *THIS* battery) in one bit, and the battery's
status (discharging/not discharging *THIS* battery) in a different bit.
It was rather simple to observe the behavior of those bits in a
two-battery system.
Would that apply to these newer Lenovo models? If so, you might want to
consider using "idle", instead. "not charging" does _not_ imply "neither
charging nor discharging", while "idle" does.
--
Henrique Holschuh
next prev parent reply other threads:[~2018-02-09 10:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-07 14:59 [PATCH v13 4/4] battery: Add the ThinkPad "Not Charging" quirk Ognjen Galic
2018-02-09 10:45 ` Henrique de Moraes Holschuh [this message]
2018-02-09 13:26 ` Sebastian Reichel
2018-02-10 8:47 ` Ognjen Galić
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=20180209104530.s5i6lymcpgkqyego@khazad-dum.debian.net \
--to=hmh@hmh.eng.br \
--cc=andy.shevchenko@gmail.com \
--cc=andy@infradead.org \
--cc=christoph@boehmwalder.at \
--cc=devel@acpica.org \
--cc=dvhart@infradead.org \
--cc=ibm-acpi-devel@lists.sourceforge.net \
--cc=ibm-acpi@hmh.eng.br \
--cc=kevin@kevinlocke.name \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lv.zheng@intel.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=rjw@rjwysocki.net \
--cc=robert.moore@intel.com \
--cc=smclt30p@gmail.com \
--cc=sre@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