Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78316 - Gnome Battery Charge Monitor doesn't update
Summary: Gnome Battery Charge Monitor doesn't update
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-17 00:36 UTC by Horst Gutmann
Modified: 2005-10-03 08:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
acpi-fix.patch (acpi-fix.patch,1.33 KB, patch)
2005-06-15 14:00 UTC, Alessio D'Ascanio
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Horst Gutmann 2005-01-17 00:36:28 UTC
The Battery Charge Monitor applet ( gnome-base/gnome-applets-2.8.2 ) doesn't update automatically but needs /etc/init.d/acpid to be restarted.

acpi -b and gkrellm2 show the correct status.

Also restarting the gnome-panel "updates" the battery status in the applet.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
Applet status stays the same until acpid is restarted the next time.

Expected Results:  
Applet status should reflect the current battery status and not the one from
right after the last acpid restart

intrepid acpi # emerge info
Portage 2.0.51-r12 (default-linux/x86/2004.3, gcc-3.3.4,
glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r5 i686)
=================================================================
System uname: 2.6.10-gentoo-r5 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 15 2005, 22:57:04)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.9.4, 1.6.3, 1.7.9, 1.4_p6, 1.8.5-r2
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -pipe -msse -msse2 -mmmx"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe -msse -msse2 -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.inode.at/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi acpi4linux alsa apm avi berkdb bitmap-fonts bluetooth bzip2 cairo
cdb cdda cddb cdio cdparanoia cdr crypt css cups curl dbus dvd dvdread encode
esd flac font-server foomaticdb freetype gdbm gif gimp gnome gphoto2 gpm
gstreamer gtk gtk2 hal icq imlib2 ipv6 jabber java jpeg mad mp3 mpeg mpeg2 mpeg4
mplayer mysql ncurses network nls oggvorbis opengl pam pcmcia pdf pdflib perl
png python quicktime readline ruby sdl socks5 sox sse sse2 ssl svg svga t1lib
tcpd tetex theora tiff truetype truetype-fonts type1 type1-fonts unicode usb
utf8 vim vorbis x86 xml2 xmms xscreensaver xslt xv zlib"
Unset:  LDFLAGS


I've also tried to compile gnome-applets without apm (without any change)
Comment 1 Craig Duquette 2005-04-14 23:13:15 UTC
I have similar issues. It updates how much of the battery is remaining, but fails to update AC power/discharging...

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.200 50125-r1, 2.6.11-cko4 i686)
=================================================================
System uname: 2.6.11-cko4 i686 Mobile Intel(R) Pentium(R) 4     CPU 3.06GHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 28 2005, 03:37:17)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.6.3, 1.5, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -ftracer -pipe -fomit-frame-pointer -mfpmath=sse -ff ast-math"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1 1/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -ftracer -pipe -fomit-frame-pointer -mfpmath=sse - ffast-math -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://130.207.108.134/pub/gent oo ftp://gentoo.ccccom.com http://open-systems.ufl.edu/mirrors/gentoo http://gen too.ccccom.com"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac alsa avi berkdb bitmap-fonts cdr cups curl dvd emboss encode esd fam flac foomaticdb fortran gdbm gif glx gnome gpm gstreamer gtk gtk2 imlib java  jpeg junit libg++ libwww mad mikmod mozilla moznocompose moznoirc moznomail mp3  mpeg ncurses network nls no_wxgtk1 noantlr nobcel nobeanutils nobsf nobsh nocom monslogging nocommonsnet nojdepend nojsch nojython nolog4j noregexp norhino noxa lan noxerces nptl ogg oggvorbis opengl pam pdflib perl png ppds python quicktime  readline samba sdl slang spell sse sse2 ssl tcpd tiff truetype truetype-fonts t ype1-fonts vorbis win32codecs xine xml2 xprint xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LINGUAS
Comment 2 Christian Schwinn 2005-04-21 16:17:43 UTC
I can report this problem also.

"cat /proc/acpi/ac_adapter/ACAD/state" shows the correct state (on-line/off-line).
"cat /proc/acpi/battery/BAT1/state" shows the correct state (charging/charged/discharging).

Also the acpi events & actions like switching to runlevel battery, turning on laptop_mode and so on are working.

The battstat-applet shows the AC state (on ac/battery) which were present when the X session was started.
A restart of acpid updates the state.

The capacity of the battery works though.
But it looks strange when the applet tells that the battery is discharging, but the capacity is raising.

My system is running without apmd (it's neither started, nor emerged).
I'm also using the USE flag "-apm".

When booting the computer from the Gnoppix CD (0.9.99b1-i386) the battstat-applet works fully.



Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1400MHz
Gentoo Base System version 1.6.11
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 16 2005, 19:23:41)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.5, 1.6.3, 1.4_p6, 1.9.4, 1.7.9-r1
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -pipe -fcaller-saves -falign-jumps -fomit-frame-pointer -msse2 -msse -mmmx -falign-functions=64"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fcaller-saves -falign-jumps -fomit-frame-pointer -msse2 -msse -mmmx -falign-functions=64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.rz.uni-wuerzburg.de/pub/linux/gentoo"
LANG="de_DE"
LC_ALL="de_DE"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/myoverlays /usr/local/overlays/gentoo-de"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X aac aalib acpi alsa apache2 avi bash-completion berkdb bitmap-fonts bmp bonobo calendar cdr crypt cups curl dga directfb divx4linux doc dvd dvdr emboss encode esd ethereal fam fbcon flac flash foomatic foomaticdb fortran ftp gdbm gif gimpprint ginac gnome gnomeprint gpm gstreamer gtk gtk2 gtkhtml guile hal howl iconv imagemagick imap imlib ipv6 ithreads jabber java jpeg junit lcms ldap libg++ libwww live lmtp mad mikmod mmap mmx motif mozilla mp3 mpeg ncurses ncursesnls nls ogg oggvorbis opengl oss pam pcmcia pdflib perl php png postgres ppds python quicktime readline samba sasl sdl shared slang sndfile sox speex spell sse ssh ssl svg tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb videos vorbis wavelan xml xml2 xmms xprint xv xvid zlib video_cards_i810 linguas_de"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 3 Alessio D'Ascanio 2005-06-15 14:00:57 UTC
Created attachment 61301 [details, diff]
acpi-fix.patch

This patch (found at http://bugs.gnome.org/show_bug.cgi?id=163013) solve this
bug on 2.10.0 version of gnome-applets (I've tried only this version, maybe it
works with older version)

Regards
Comment 4 Dave Shanker 2005-10-02 20:27:33 UTC
As gnome-applets 2.8.x is no longer in portage and according to
http://bugs.gnome.org/show_bug.cgi?id=163013, a patch to fix the issue has been
applied upstream to versions > 2.8.x, shouldn't this bug be closed?
Comment 5 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-10-03 08:41:48 UTC
Closing