From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?J=E9r=E9my_Compostella?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] battery.el Retrieve more information from sysfs Date: Thu, 22 Dec 2011 11:18:11 +0100 Message-ID: References: <87r50190eb.fsf@Apollo.jerryland.fr> <87liq5rad1.fsf@kwarm.red-bean.com> <87ehvxpixd.fsf@isil.kanru.info> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04389439694e8b04b4ab9fd1 X-Trace: dough.gmane.org 1324549131 773 80.91.229.12 (22 Dec 2011 10:18:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Dec 2011 10:18:51 +0000 (UTC) Cc: Karl Fogel , emacs-devel@gnu.org To: Kan-Ru Chen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 22 11:18:47 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rdfja-0002mf-OP for ged-emacs-devel@m.gmane.org; Thu, 22 Dec 2011 11:18:47 +0100 Original-Received: from localhost ([::1]:48850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rdfja-00078N-8M for ged-emacs-devel@m.gmane.org; Thu, 22 Dec 2011 05:18:46 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:40794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdfjU-000787-R0 for emacs-devel@gnu.org; Thu, 22 Dec 2011 05:18:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RdfjO-0003Wa-Ru for emacs-devel@gnu.org; Thu, 22 Dec 2011 05:18:40 -0500 Original-Received: from mail-vx0-f169.google.com ([209.85.220.169]:45595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdfjO-0003RJ-OR for emacs-devel@gnu.org; Thu, 22 Dec 2011 05:18:34 -0500 Original-Received: by vcge1 with SMTP id e1so6650707vcg.0 for ; Thu, 22 Dec 2011 02:18:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=iPZGBc9S4BQSXpYQ3sa1nT6yl9Rk3EOn4+DAu63YiU4=; b=igsvZKP9Oj/sDNst8Sj1FrOZkdm+6Fk4OatzQKGp+iXPYXuZDJ+abBgOk8FCZ9rZTx YN5IEufpAH1EBDt0YDt4d5AV0Sk0/myllm9e7tXfE2TwiFmLevB4sxFmW3xynkspyux+ kqizHOGwApkF8ue4ThBgr1MM6ZVRJ41s6GC74= Original-Received: by 10.220.155.142 with SMTP id s14mr6630309vcw.1.1324549113728; Thu, 22 Dec 2011 02:18:33 -0800 (PST) Original-Received: by 10.52.114.3 with HTTP; Thu, 22 Dec 2011 02:18:11 -0800 (PST) In-Reply-To: <87ehvxpixd.fsf@isil.kanru.info> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.220.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146917 Archived-At: --f46d04389439694e8b04b4ab9fd1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2011/12/22 Kan-Ru Chen > Karl Fogel writes: > > > J=E9r=E9my Compostella writes: > >>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 ... > > > > J=E9r=E9my, thanks for the patch. I think it's just #3: everyone is bu= sy. > > Sometimes it can take a while. In some cases, if the feature is not > > compelling enough to others, there may be no useful response at all. > > This doesn't mean it's a bad idea, it just means no one's convinced it'= s > > needed. > > > > Most people see battery status in an icon on their GUI toolbar, I > > think. Can you describe the use case(s) for battery.el? Is it easier > > for the visually impaired, for example? Maybe for people who are > > running their machine in text-console mode? > > FYI, I have a script > > --8<---------------cut here---------------start------------->8--- > #!/bin/sh > > if [ -S "/tmp/emacs`id -u`/server" ]; then > emacsclient -n --eval '(battery)' > else > echo "Cannot find emacs server socket"; > fi > --8<---------------cut here---------------end--------------->8--- > > that I always use it to get the battery info. I'm using a minimalism > window manager that doesn't have battery widget by default. > > -- > Kanru > On my side, I used to be as independent as possible with the Window Manager I use. Indeed, I run Emacs in real fullscreen mode doing almost everything with it (code editing, compilation, debugging, jabber, web, mail, ...). So, I do not have visibility on the potential battery widget. Moreover, for this laptop, I really do care about the instantaneous consumption and this information is not retrieved from sysfs for now. Only from the /proc/acpi part I do not have. Even with a fresh 3.2.0-rc6 freshly compiled, patched and optimized for my power consumption needs. Thanks, Jeremy --=20 One Emacs to rule them all --f46d04389439694e8b04b4ab9fd1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
2011/12/22 Kan-Ru Chen <kanru@kanru.info>
Karl Fogel <kfo= gel@red-bean.com> writes:

> J=E9r=E9my Compostella <jeremy.compostella@gmail.com> writes:
>>I did not received any answers so I'm answering myself about :<= br> >>- Do I miss something in the "submit" process,
>>- Is this patch is a mess ?
>>- Or maybe everybody is busy ...
>
> J=E9r=E9my, thanks for the patch. =A0I think it's just #3: everyon= e is busy.
> Sometimes it can take a while. =A0In some cases, if the feature is not=
> compelling enough to others, there may be no useful response at all. > This doesn't mean it's a bad idea, it just means no one's = convinced it's
> needed.
>
> Most people see battery status in an icon on their GUI toolbar, I
> think. =A0Can you describe the use case(s) for battery.el? =A0Is it ea= sier
> for the visually impaired, for example? =A0Maybe for people who are > running their machine in text-console mode?

FYI, I have a script

--8<---------------cut here---------------start------------->8---
#!/bin/sh

if [ -S "/tmp/emacs`id -u`/server" ]; then
=A0 =A0emacsclient -n --eval '(battery)'
else
=A0 =A0echo "Cannot find emacs server socket";
fi
--8<---------------cut here---------------end--------------->8---

that I always use it to get the battery info. I'm using a minimalism window manager that doesn't have battery widget by default.

--
Kanru

On my side, I used to be as independen= t as possible with the Window
Manager I use. Indeed, I run Emacs in real= fullscreen mode doing almost
everything with it (code editing, compilat= ion, debugging, jabber, web,
mail, ...). So, I do not have visibility on the potential battery
widget= .

Moreover, for this laptop, I really do care about the instantaneou= s
consumption and this information is not retrieved from sysfs for
now. Only from the /proc/acpi part I do not have. Even with a fresh
3.2.= 0-rc6 freshly compiled, patched and optimized for my power
consumption n= eeds.

Thanks,

Jeremy
--
One Emacs to rule them all
--f46d04389439694e8b04b4ab9fd1--