From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.bugs Subject: bug#643: Battery update Date: Thu, 07 Aug 2008 20:09:48 +0200 Message-ID: <87ej50g0ib.fsf__532.562277703796$1218133724$gmane$org@gmx.de> References: <87bq04dbqc.fsf@stupidchicken.com> Reply-To: Sven Joachim , 643@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218133668 13349 80.91.229.12 (7 Aug 2008 18:27:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Aug 2008 18:27:48 +0000 (UTC) Cc: 643@emacsbugs.donarmstrong.com, Emre Sahin , emacs-devel@gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 07 20:28:38 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KRADv-0006dg-DS for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Aug 2008 20:28:31 +0200 Original-Received: from localhost ([127.0.0.1]:33322 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRACz-0005C2-QF for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Aug 2008 14:27:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRACt-0005BW-UC for bug-gnu-emacs@gnu.org; Thu, 07 Aug 2008 14:27:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRACt-0005BE-Fr for bug-gnu-emacs@gnu.org; Thu, 07 Aug 2008 14:27:27 -0400 Original-Received: from [199.232.76.173] (port=50487 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRACs-0005Aw-V6 for bug-gnu-emacs@gnu.org; Thu, 07 Aug 2008 14:27:27 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57679) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KRACs-0002B2-Fb for bug-gnu-emacs@gnu.org; Thu, 07 Aug 2008 14:27:26 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m77IRNIv007700; Thu, 7 Aug 2008 11:27:23 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m77IK5fS005082; Thu, 7 Aug 2008 11:20:05 -0700 X-Loop: don@donarmstrong.com Resent-From: Sven Joachim Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 07 Aug 2008 18:20:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 643 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 643-submit@emacsbugs.donarmstrong.com id=B643.12181328223330 (code B ref 643); Thu, 07 Aug 2008 18:20:05 +0000 Original-Received: (at 643) by emacsbugs.donarmstrong.com; 7 Aug 2008 18:13:42 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m77IDcod003324 for <643@emacsbugs.donarmstrong.com>; Thu, 7 Aug 2008 11:13:39 -0700 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 (newer, 3) Resent-Date: Thu, 07 Aug 2008 14:27:27 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19100 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