From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Re: Support for multiple batteries Date: Thu, 11 Jun 2020 17:08:05 +0100 Message-ID: <87tuzhy49m.fsf@tcd.ie> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="89000"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 11 18:18:27 2020 Return-path: 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 ) id 1jjPuN-000N0z-7U for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Jun 2020 18:18:27 +0200 Original-Received: from localhost ([::1]:59302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjPuM-0004oX-6h for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Jun 2020 12:18:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjPkT-0003Xd-Tt for emacs-devel@gnu.org; Thu, 11 Jun 2020 12:08:14 -0400 Original-Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:55227) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjPkR-00023i-NV for emacs-devel@gnu.org; Thu, 11 Jun 2020 12:08:13 -0400 Original-Received: by mail-wm1-x32f.google.com with SMTP id g10so5455891wmh.4 for ; Thu, 11 Jun 2020 09:08:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=XE6vQ46IaBCYXL+8F+/82Nr1KOVoHLBUqkAo8orrxIE=; b=yA+YcX5f35gZXVy6CM58lf3IsEAir8C+msDLENg6vbVB6yQIM3S/lDxqVh829VmNMD NHW3Jvl2R9ToE0/jEAlDXRSmSwFdUoCOgHgv9o3u8BJ468LDwytz/notcWsD8Mo14Jqo 8lEnOTozfhGBLpZn49dwvC0a5+SdjMnOx4by60tqhSRPM5Sdj7IMU/r2kdH+5lqcSVee /YbD3jZSHPIRtDhHCQJQK6NYqNwT1qS7hgHtUEvOUmv7oAWLSSWjmKmYJ4ZkFzrmp8aG N2+mIUrOrxS2eH3nOhxppuzwi3QyATF/RYHOlMW8LaMkg22OvoJjM06lIvvtFdVOEQOq DNXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=XE6vQ46IaBCYXL+8F+/82Nr1KOVoHLBUqkAo8orrxIE=; b=oY3qNIz4lXkEc5n+qJy6xpCWTbS+ojQfaodYg5m9ElneSFIe2Zj/BxGJFhX8KnyHWx NL9SPRJOUbvjKpVzMbAtEBOa5RZtGfQDL0wSY0Gkn1VmfPXAGsgI/9aPU7l6iTotKklx yTApOaJe7/LQLsoDthqONCCiMGlHnOv+5Q5UlxERLUshjVC3liSj+y2XfbtE2UWIb6+b VrYQ0xKZVU6E2c2uYQWdeLRYON32pQ1PMshiCKp3JU8IgnuCEEak49oK9TbUg4vBVvdY z8sDT7EdO/xzvb84zBoa9ZMMUgWP3QrRzGqcL6SEyRk7m5YqiVOrzleN1Jqv68305GD9 K7tA== X-Gm-Message-State: AOAM5321J5XU+ZEEd2dWcGYDLu/6WdonVzdA6FJl8zYvCYutTZm8Ydz4 ujy4dRWBZaqQdzcSWnJRBrx9aQ== X-Google-Smtp-Source: ABdhPJzJCDShSsOy7/vJNVgbDixfkR79rgB0qLip7KqqtdRmsXnTemwRqTHDTMcVCeq/zhbBs2fCsQ== X-Received: by 2002:a7b:c0c8:: with SMTP id s8mr9255273wmh.134.1591891688431; Thu, 11 Jun 2020 09:08:08 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:1f68:7ff5:120d:64e]) by smtp.gmail.com with ESMTPSA id y37sm6284391wrd.55.2020.06.11.09.08.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 09:08:07 -0700 (PDT) In-Reply-To: (Richard Stallman's message of "Wed, 26 Feb 2020 22:38:56 -0500") Received-SPF: none client-ip=2a00:1450:4864:20::32f; envelope-from=contovob@tcd.ie; helo=mail-wm1-x32f.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252116 Archived-At: Richard Stallman writes: > Has proper support for multiple batteries in battery.el > been reimplemented yet? I use that case, and I wrote the > old code to handle it. What exactly do you mean by "proper" support? 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. The way they handle multiple batteries is by merging multiple data into a single report. Is this what you mean by "proper" support, or do you envision some other way to report on multiple batteries? My patch in https://debbugs.gnu.org/39491#55 also adds support for multiple power sources to battery-upower, for UPower support. It is possible that the other backends also support multiple batteries if the single source they query is already summarising data from multiple batteries, but I'm not familiar enough with APM, pmset, or MS Windows to say. -- Basil