Linux Power Management development
 help / color / mirror / Atom feed
From: "Ognjen Galić" <smclt30p@gmail.com>
To: Sebastian Reichel <sre@kernel.org>
Cc: "Henrique de Moraes Holschuh" <hmh@hmh.eng.br>,
	"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>,
	"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: Sat, 10 Feb 2018 09:47:44 +0100	[thread overview]
Message-ID: <20180210084744.ykzejcr66ae7kflj@thinkpad> (raw)
In-Reply-To: <20180209132641.6vkwasa4b5pygjkr@earth.universe>

On Fri, Feb 09, 2018 at 02:26:41PM +0100, Sebastian Reichel wrote:
> Hi,
> 
> On Fri, Feb 09, 2018 at 08:45:30AM -0200, Henrique de Moraes Holschuh wrote:
> > 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.
> 
> I agree, that "Idle" is a better term than "Not Charging", but
> the power supply property exists with this name since it has
> been introduced. This is exposed to userspace and cannot be
> changed easily.

I agree. There is no need to add new definitions to the generic 
power supply API for "Idle", as basically "Not Charging" can also
describe that condition. That's what Microsoft Windows does, since XP.

> 
> -- Sebastian

      reply	other threads:[~2018-02-10  8:47 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
2018-02-09 13:26   ` Sebastian Reichel
2018-02-10  8:47     ` Ognjen Galić [this message]

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=20180210084744.ykzejcr66ae7kflj@thinkpad \
    --to=smclt30p@gmail.com \
    --cc=andy.shevchenko@gmail.com \
    --cc=andy@infradead.org \
    --cc=christoph@boehmwalder.at \
    --cc=devel@acpica.org \
    --cc=dvhart@infradead.org \
    --cc=hmh@hmh.eng.br \
    --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=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