GNU bug report logs - #25800
24.5; battery.el does not consider information directory /sys/class/power_supply/CMB0

Previous Next

Package: emacs;

Reported by: soulawaker <soulawaker <at> gmail.com>

Date: Sun, 19 Feb 2017 21:03:01 UTC

Severity: minor

Tags: patch

Merged with 23216

Found in versions 24.5, 25.1.50

Fixed in version 26.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25800 in the body.
You can then email your comments to 25800 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#25800; Package emacs. (Sun, 19 Feb 2017 21:03:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to soulawaker <soulawaker <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 19 Feb 2017 21:03:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: soulawaker <soulawaker <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.5; battery.el does not consider information directory
 /sys/class/power_supply/CMB0
Date: Mon, 20 Feb 2017 05:32:17 +0900
[Message part 1 (text/plain, inline)]
--------------------------
Hello, emacs maintainers.

My laptop battery informations was placed in 
/sys/class/power_supply/CMB0.
But battery.el try to find only /sys/class/power_supply/BAT% series.
So display-battery-mode does not show any battery informations.
Please consider existing different information directories.

Best Regards,

HyungSuk
--------------------------




In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
of 2016-04-18 on lgw01-04, modified by Debian
Windowing system distributor `The X.Org Foundation', version 
11.0.11804000
System Description:	elementary OS 0.4 Loki

Configured using:
`configure --build x86_64-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/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
--build x86_64-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/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp
--with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
'CFLAGS=-g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time
-D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''

Important settings:
 value of $LC_MONETARY: ko_KR.UTF-8
 value of $LC_NUMERIC: ko_KR.UTF-8
 value of $LC_TIME: ko_KR.UTF-8
 value of $LANG: ko_KR.UTF-8
 value of $XMODIFIERS:
 locale-coding-system: utf-8-unix

Major mode: Org

Minor modes in effect:
 org-indent-mode: t
 override-global-mode: t
 electric-indent-mode: t
 mouse-wheel-mode: t
 file-name-shadow-mode: t
 global-font-lock-mode: t
 font-lock-mode: t
 auto-composition-mode: t
 auto-encryption-mode: t
 auto-compression-mode: t
 column-number-mode: t
 line-number-mode: t
 global-visual-line-mode: t
 visual-line-mode: t
 transient-mark-mode: t

Recent messages:
ESC <mouse-1> is undefined
Entering debugger...
Making completion list... [8 times]
Type "q" in help window to restore its previous buffer.
Making completion list...

Making completion list... [3 times]

Making completion list... [3 times]
call-interactively: End of buffer [4 times]

Load-path shadows:
/usr/share/emacs/24.5/site-lisp/debian-startup hides 
/usr/share/emacs/site-lisp/debian-startup

Features:
(shadow sort mail-extr emacsbug message byte-opt rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils org-element org-indent org-rmail org-mhe org-irc org-info
org-gnus gnus-util org-docview doc-view jka-compr image-mode dired
org-bibtex bibtex org-bbdb org-w3m help-fns help-mode debug battery
edmacro kmacro finder-inf atom-one-dark-theme org org-macro org-footnote
org-pcomplete pcomplete org-list org-faces org-entities noutline outline
org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp
org-src ob-keys ob-comint comint ansi-color ring ob-core ob-eval
org-compat org-macs org-loaddefs format-spec find-func cal-menu easymenu
calendar cal-loaddefs use-package diminish bytecomp byte-compile
cl-extra cconv bind-key easy-mmode cl-loaddefs cl-lib package epg-config
time-date korea-util tooltip electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
gfilenotify dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 218897 16865)
(symbols 48 30731 0)
(miscs 40 153 198)
(strings 32 56492 21566)
(string-bytes 1 1572015)
(vectors 16 23640)
(vector-slots 8 633622 6735)
(floats 8 138 33)
(intervals 56 564 27)
(buffers 960 18)
(heap 1024 41346 1487))

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25800; Package emacs. (Tue, 21 Feb 2017 02:53:02 GMT) Full text and rfc822 format available.

Message #8 received at 25800 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: soulawaker <soulawaker <at> gmail.com>
Cc: 25800 <at> debbugs.gnu.org
Subject: Re: bug#25800: 24.5;
 battery.el does not consider information directory
 /sys/class/power_supply/CMB0
Date: Mon, 20 Feb 2017 21:52:39 -0500
soulawaker wrote:

> My laptop battery informations was placed in
> /sys/class/power_supply/CMB0.
> But battery.el try to find only /sys/class/power_supply/BAT% series.

In the Emacs repo, you can customize the option battery-linux-sysfs-regexp
to match whatever you need. This should appear in 26.1.

See https://debbugs.gnu.org/23216




bug Marked as fixed in versions 26.1. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 21 Feb 2017 02:54:02 GMT) Full text and rfc822 format available.

Forcibly Merged 23216 25800. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 21 Feb 2017 02:54:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#25800; Package emacs. (Tue, 21 Feb 2017 20:10:02 GMT) Full text and rfc822 format available.

Message #15 received at 25800 <at> debbugs.gnu.org (full text, mbox):

From: HyungSuk Ryu <soulawaker <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>, 25800 <at> debbugs.gnu.org
Subject: Re: bug#25800: 24.5; battery.el does not consider information
 directory /sys/class/power_supply/CMB0
Date: Wed, 22 Feb 2017 03:49:05 +0900
[Message part 1 (text/plain, inline)]
Ok. I also find that /sys/class/power_supply/AC/online does not exist in my
laptop and can't find modifiable variable for it.

But never mind. I now decide not to use battery information in mode line.

Thank you!

2017-02-21 11:52 GMT+09:00 Glenn Morris <rgm <at> gnu.org>:

> soulawaker wrote:
>
> > My laptop battery informations was placed in
> > /sys/class/power_supply/CMB0.
> > But battery.el try to find only /sys/class/power_supply/BAT% series.
>
> In the Emacs repo, you can customize the option battery-linux-sysfs-regexp
> to match whatever you need. This should appear in 26.1.
>
> See https://debbugs.gnu.org/23216
>
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 22 Mar 2017 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 93 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.