From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail
From: Richard Stallman <rms@gnu.org>
Newsgroups: gmane.emacs.devel
Subject: Re: Support for multiple batteries
Date: Sat, 13 Jun 2020 00:02:41 -0400
Message-ID: <E1jjxNR-0004Sy-GT@fencepost.gnu.org>
References: <E1j7A0m-0000vA-1B@fencepost.gnu.org> <87tuzhy49m.fsf@tcd.ie>
Reply-To: rms@gnu.org
Content-Type: text/plain; charset=Utf-8
Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202";
	logging-data="35492"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: emacs-devel@gnu.org
To: "Basil L. Contovounesios" <contovob@tcd.ie>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 13 06:03:15 2020
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Envelope-to: ged-emacs-devel@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1jjxNz-00098g-SL
	for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Jun 2020 06:03:15 +0200
Original-Received: from localhost ([::1]:43402 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1jjxNy-000149-VT
	for ged-emacs-devel@m.gmane-mx.org; Sat, 13 Jun 2020 00:03:14 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58674)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rms@gnu.org>) id 1jjxNT-0000ds-QF
 for emacs-devel@gnu.org; Sat, 13 Jun 2020 00:02:43 -0400
Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51065)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <rms@gnu.org>)
 id 1jjxNS-0005TH-St; Sat, 13 Jun 2020 00:02:42 -0400
Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rms@gnu.org>)
 id 1jjxNR-0004Sy-GT; Sat, 13 Jun 2020 00:02:41 -0400
In-Reply-To: <87tuzhy49m.fsf@tcd.ie> (contovob@tcd.ie)
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: "Emacs-devel"
 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.devel:252150
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/252150>

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > AFAICT only two battery status backends currently support multiple
  > sources of information: battery-linux-sysfs and battery-linux-proc-acpi,
  > for Linux sysfs and ACPI support, respectively.

Could you clear up for me what "currently" means in this context?  I
don't know what code was changed in January or so -- only that the
change led to incorrect reports, on a Thinkpad T400s with two
batteries inserted.

  > The way they handle multiple batteries is by merging multiple data into
  > a single report.

I am not sure what that means, concretely.

                      Is this what you mean by "proper" support,

Proper support means at least giving a good estimate for how long
before the machine runs out of energy, and a good estimate of the
actual fraction of maximum charge the batteries can hold.  The code
from last October could do that.

When I type M-x battery in the version as of October 2,
it displays something like

  Power BAT, battery Discharging (98.1% load, remaining time 4:04)

where the numbers depend on the energy capacity of each battery and
the current charge of each battery, as well as the actual current or
power.

That is what I think is crucial for M-x battery.

-- 
Dr Richard Stallman
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)