From: "Jérémy Compostella" <jeremy.compostella@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: [PATCH] battery.el Retrieve more information from sysfs
Date: Wed, 21 Dec 2011 11:03:47 +0100 [thread overview]
Message-ID: <CA+TATJH98Nvrf7m8qhznbff39NGC2Yk5Dr300w4LVNCi3pmC3g@mail.gmail.com> (raw)
In-Reply-To: <87r50190eb.fsf@Apollo.jerryland.fr>
[-- Attachment #1: Type: text/plain, Size: 1757 bytes --]
All again,
I did not received any answers so I'm answering myself about :
- Do I miss something in the "submit" process,
- Is this patch is a mess ?
- Or maybe everybody is busy ...
So let me know,
Thanks,
Jeremy
2011/12/18 Jérémy Compostella <jeremy.compostella@gmail.com>
> All,
>
> I just bought a new laptop and installed a fresh Debian on it. I used to
> look at my current battery status using Emacs. I like to look at the
> current rate too since this laptop will be used during a long trip and I
> want to take care of the consumption in real time.
>
> The issue is that with the 2.6.32 kernel from Debian for this laptop I
> do not have the /proc/acpi/battery part. However, the sysfs is able to
> report all the data I need. The current Emacs battery module is not able
> to retrieve the information I need from sysfs but it does from
> /proc/acpi/battery. So I made a small evolution to enable the following:
>
> - Get the current rate
> - Get the current temperature (does not work on my laptop but the
> power_supply interface is able to provide it, so I added it too.
> - Do the time remaining estimation using the current voltage, the
> remaining capacity and the current rate. It works on both charging and
> discharging state.
>
> I attached the patch but I warn you that it has been generated using git
> since I was unable to retrieve the bazar repository for the last two
> days (it hangs during the download process). By the way, do you have any
> advice which could help me ?
>
> Please merge it or review it.
>
> Best regards,
>
>
> Jeremy
>
> PS: I signed my Emacs assignment and post it by mail 10 days ago.
> --
> Sent from my Emacs
>
>
--
One Emacs to rule them all
[-- Attachment #2: Type: text/html, Size: 2118 bytes --]
next prev parent reply other threads:[~2011-12-21 10:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-18 18:53 [PATCH] battery.el Retrieve more information from sysfs Jérémy Compostella
2011-12-21 10:03 ` Jérémy Compostella [this message]
2011-12-21 19:30 ` Karl Fogel
2011-12-22 0:08 ` Kan-Ru Chen
2011-12-22 10:18 ` Jérémy Compostella
2011-12-22 11:30 ` Roland Winkler
2011-12-22 22:52 ` Stefan Monnier
2011-12-23 3:59 ` Richard Stallman
2011-12-23 4:38 ` Karl Fogel
2011-12-23 7:10 ` Bastien
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=CA+TATJH98Nvrf7m8qhznbff39NGC2Yk5Dr300w4LVNCi3pmC3g@mail.gmail.com \
--to=jeremy.compostella@gmail.com \
--cc=emacs-devel@gnu.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.
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).