From unknown Fri Aug 15 15:38:15 2025 X-Loop: don@donarmstrong.com Subject: bug#660: mode line does not display battery status Reply-To: Emre Sahin , 660@debbugs.gnu.org Resent-From: Emre Sahin Original-Sender: Emre Sahin Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 06 Aug 2008 20:05:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 660 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121805279319819 (code B ref -1); Wed, 06 Aug 2008 20:05:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.9 required=4.0 tests=BAYES_00,FOURLA,GMAIL, RCVD_IN_DNSWL_LOW autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 6 Aug 2008 19:59:53 +0000 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m76Jxn6v019813 for ; Wed, 6 Aug 2008 12:59:50 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KQpAi-00023Q-K8 for bug-gnu-emacs@gnu.org; Wed, 06 Aug 2008 15:59:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQpAc-0001yW-Rn for bug-gnu-emacs@gnu.org; Wed, 06 Aug 2008 15:59:47 -0400 Received: from [199.232.76.173] (port=57886 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQpAc-0001yI-GI for bug-gnu-emacs@gnu.org; Wed, 06 Aug 2008 15:59:42 -0400 Received: from fg-out-1718.google.com ([72.14.220.155]:41575) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KQpAc-0000kw-0L for bug-gnu-emacs@gnu.org; Wed, 06 Aug 2008 15:59:42 -0400 Received: by fg-out-1718.google.com with SMTP id l26so44073fgb.30 for ; Wed, 06 Aug 2008 12:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:subject:from:user-agent :date:message-id:mime-version:content-type:sender; bh=d8o12Q7iq+ls8pFNIjpPhfUXI+4uvJjHSTfUkZLUu2g=; b=MYDNIcPgkkEk53nOP29SVfIAZPmtQL1NgPB+c75YdlD4X3HakDxKz92CrYSTxI32uU iwAgnGTV8Pn3Hmhl3HOKi/kGTVTdYWlgv8UqDHNmKuQ2E13hkV7sjz1Uf1ZUrcAQh18r f0l/WJqLM0TpkFfF1D6mLU88ZNxlEDnqZLd7Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:from:user-agent:date:message-id:mime-version :content-type:sender; b=gxXDjXgj9ZKzSi5p14gKbYBK+hDVVrD8vHtVehWn6jR9RyeOGDs68DtIlvnm1u1mSa qYrdOf0X2VgI8UfKwpjJ1VTv1IYDert+62p2XGhJh6x3x42uxzzYqZKZoIhLEOIujvxC 3KlsXOuHEtQ3Ay5oQEyLAK2qSick7TCaTToCo= Received: by 10.103.17.13 with SMTP id u13mr1697031mui.90.1218052779628; Wed, 06 Aug 2008 12:59:39 -0700 (PDT) Received: from leonardo.iesahin.net.emresahin.net ( [81.214.248.165]) by mx.google.com with ESMTPS id i5sm34977812mue.2.2008.08.06.12.59.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 06 Aug 2008 12:59:38 -0700 (PDT) To: bug-gnu-emacs@gnu.org From: Emre Sahin User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Date: Wed, 06 Aug 2008 22:59:29 +0300 Message-ID: <87r691ewym.fsf@leonardo.iesahin.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Emre Sahin X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Before upgrading my kernel, display-battery-mode was showing the battery status in my mode line. With current kernel it doesn't show. battery.el requires /proc/acpi/battery to detect acpi support but newer kernels does not have this file and battery-status-function variable becomes nil. I asked this to Debian Testing mailing list and they replied that aforementioned file does not exist in newer kernels and battery.el should be upgraded. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/22.2/etc/DEBUG for instructions. In GNU Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-07-25 on raven, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs22:/etc/emacs:/usr/local/share/emacs/22.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.2/leim' '--with-x=yes' '--with-x-toolkit=athena' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Group Minor modes in effect: gnus-undo-mode: t desktop-save-mode: t display-battery-mode: t display-time-mode: t jabber-activity-mode: t jabber-mode-line-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t Recent input: q g 1 0 0 / o 1 0 0 q q 1 0 0 M-> g C-x k q n q g u q c y 2 0 q M-x r e p o r b Recent messages: Fetching headers for nntp+news.gmane.org:gmane.linux.debian.user.testing...done Scoring...done Generating summary...done (No changes need to be saved) Saving /home/iesahin/.newsrc.eld... Saving file /home/iesahin/.newsrc.eld... Wrote /home/iesahin/.newsrc.eld Saving /home/iesahin/.newsrc.eld...done Making completion list... [2 times] Loading emacsbug...done -- I. Emre Sahin @ Ankara, Turkey Software Developer & Consultant @ http://ydyazilim.com Ph.D. Candidate @ http://cs.bilkent.edu.tr Blogger, Writer, Poet @ http://emresahin.net Maybe hears the phone @ +90 532 261 8985 Maybe gtalk (or jabber) @ i.emre.sahin@gmail.com