From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.devel Subject: Re: Battery update Date: Thu, 07 Aug 2008 20:09:48 +0200 Message-ID: <87ej50g0ib.fsf@gmx.de> References: <87bq04dbqc.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218132840 10348 80.91.229.12 (7 Aug 2008 18:14:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Aug 2008 18:14:00 +0000 (UTC) Cc: 643@emacsbugs.donarmstrong.com, Emre Sahin , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 07 20:14:50 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KRA0a-0000mj-21 for ged-emacs-devel@m.gmane.org; Thu, 07 Aug 2008 20:14:44 +0200 Original-Received: from localhost ([127.0.0.1]:53840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KR9ze-0002fq-4h for ged-emacs-devel@m.gmane.org; Thu, 07 Aug 2008 14:13:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KR9zZ-0002cC-Pd for emacs-devel@gnu.org; Thu, 07 Aug 2008 14:13:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KR9zY-0002Yx-5B for emacs-devel@gnu.org; Thu, 07 Aug 2008 14:13:41 -0400 Original-Received: from [199.232.76.173] (port=46340 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KR9zY-0002Yk-1V for emacs-devel@gnu.org; Thu, 07 Aug 2008 14:13:40 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:36430) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KR9zX-00085R-R6 for emacs-devel@gnu.org; Thu, 07 Aug 2008 14:13:40 -0400 Original-Received: (qmail invoked by alias); 07 Aug 2008 18:13:32 -0000 Original-Received: from p54866F35.dip.t-dialin.net (EHLO debian) [84.134.111.53] by mail.gmx.net (mp019) with SMTP; 07 Aug 2008 20:13:32 +0200 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX19sLB1vm+Rs8GT1ho+m3CKVnReyoh5RKPXPcpC6Dt NHc9d2di3G1NgE In-Reply-To: <87bq04dbqc.fsf@stupidchicken.com> (Chong Yidong's message of "Thu, 07 Aug 2008 12:35:39 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.64 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:102167 Archived-At: On 2008-08-07 18:35 +0200, Chong Yidong wrote: > The Linux kernel developers have deprecated the longstanding /proc/acpi > interface, which breaks battery.el on recent kernels (bug#643 and > bug#660). Now, the battery information is supposed to come through > sysfs. > > Even though it's the feature freeze, I think it's necessary to ensure > that battery.el works at least at a basic level. So, here's a patch > that adds primitive sysfs support for battery.el. It doesn't do as much > as before, because AFAICT the new sysfs interface provides less > information than the old acpi interface (go figure). > > It's lightly tested. Could someone try this out and see if it does the > right thing? The results are funny on my laptop (battery full, online): Power N/A, battery Full at (-34.7% load, remaining time) Sven