From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: "T.V Raman" <raman@google.com>
Cc: emacs-devel@gnu.org
Subject: Re: battery.el broken?
Date: Sat, 05 Jun 2021 23:21:12 +0100 [thread overview]
Message-ID: <87lf7oj6lj.fsf@tcd.ie> (raw)
In-Reply-To: <20210605135544.0203EC207FB@raman-glaptop.localdomain> (T.V Raman's message of "Sat, 5 Jun 2021 06:55:43 -0700 (PDT)")
"T.V Raman" <raman@google.com> writes:
> Used to display battery percentage and time left; now says
>
> Power on-line, battery discharging (93% load, remaining time 0:00)
The default output format of 'M-x battery' has barely changed across
several Emacs versions (though different battery-status-function
backends call things by different names, e.g. AC vs on-line).
So I'm guessing the "broken" part is the contradiction between on-line
and discharging, and the zero remaining time to full/empty.
If so, please say which Emacs version you're running and what your value
of battery-status-function is.
If you're on Emacs 28 with battery-upower, you can see all the
information returned by the system UPower daemon by evaluating:
(mapcar #'battery--upower-device-properties
(battery--upower-devices))
The returned alists will include relevant keys such as Online, State,
TimeToEmpty, and TimeToFull, all of which are documented at
https://upower.freedesktop.org/docs/Device.html.
If the returned alists are internally inconsistent, then it's not Emacs'
fault.
If they look fine but the result of the battery-upower function
disagrees with them, then there's an Emacs bug in the translation,
indeed.
Feel free to post the relevant data here for help with deciphering it.
(Excluding the Vendor, Model, and Serial properties I guess, in case
they're considered sensitive? I have no idea.)
HTH,
--
Basil
next prev parent reply other threads:[~2021-06-05 22:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-05 13:55 battery.el broken? T.V Raman
2021-06-05 22:21 ` Basil L. Contovounesios [this message]
2021-06-05 22:23 ` Stefan Monnier
2021-06-06 1:52 ` T.V Raman
2021-06-11 10:51 ` Basil L. Contovounesios
2021-06-11 14:30 ` T.V Raman
2021-06-06 1:58 ` T.V Raman
2021-06-26 2:01 ` T.V Raman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lf7oj6lj.fsf@tcd.ie \
--to=contovob@tcd.ie \
--cc=emacs-devel@gnu.org \
--cc=raman@google.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).