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: Sun, 14 Jun 2020 09:40:13 -0400
Message-ID: <E1jkSrt-0006OW-31@fencepost.gnu.org>
References: <E1j7A0m-0000vA-1B@fencepost.gnu.org> <87tuzhy49m.fsf@tcd.ie>
 <E1jjxNR-0004Sy-GT@fencepost.gnu.org> <874krfnq47.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="26168"; 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 Sun Jun 14 15:40:50 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 1jkSsQ-0006Zh-85
	for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Jun 2020 15:40:46 +0200
Original-Received: from localhost ([::1]:51790 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 1jkSsP-0001Pu-Ab
	for ged-emacs-devel@m.gmane-mx.org; Sun, 14 Jun 2020 09:40:45 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52690)
 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 1jkSrv-0000hS-2q
 for emacs-devel@gnu.org; Sun, 14 Jun 2020 09:40:15 -0400
Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45315)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <rms@gnu.org>)
 id 1jkSru-0004y0-7r; Sun, 14 Jun 2020 09:40:14 -0400
Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rms@gnu.org>)
 id 1jkSrt-0006OW-31; Sun, 14 Jun 2020 09:40:13 -0400
In-Reply-To: <874krfnq47.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:252228
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/252228>

[[[ 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. ]]]

  >   This can be perceived as a regression
  > on multi-battery systems because battery-upower currently assumes a
  > single battery, whereas the previous defaults of battery-status-function
  > on modern GNU/Linux systems (battery-linux-sysfs and
  > battery-linux-proc-acpi) support multiple batteries.  The patch in [5]
  > adds support for multiple batteries to battery-upower as well, so that
  > it can remain the default backend when applicable.

It sounds like that could make it work again for me.  Would you
please tell me when it is installed, so I can try it?

  > For example, they sum the current energy and energy-when-full of each
  > battery, and divide the former by the latter to get the combined load
  > percentage.

That sounds like the right thing for them to do.

-- 
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)