Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26229 - Gnome battery status monitor uses 100% cpu
Summary: Gnome battery status monitor uses 100% cpu
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-08 13:09 UTC by Yuri Schimke
Modified: 2003-10-03 00:09 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Schimke 2003-08-08 13:09:29 UTC
if I run the battery status monitor for a long time, my system suddenly becomes
unresponsive, and is pegged at 100% cpu.

even kill -9 doesn't kill the process immediately.  It eventually dies, but I
can't use anything for a while.

Not sure if this is a fix.  But this patch talk about excess cpu usage.
http://www.its.caltech.edu/~dmoore/battstat/
Comment 1 foser (RETIRED) gentoo-dev 2003-08-10 17:40:34 UTC
what is your 'emerge info' ?

i dont think the webpage is related directly, because you say it only happens after a while for you. Try the patch i'd say and report back.
Comment 2 Yuri Schimke 2003-08-11 01:11:22 UTC
Portage 2.0.48-r7 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.20GHz
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.easynet.nl /mirror/gentoo// http://ftp.easynet.nl/mirror/gentoo// ftp://gentoo.linux.no/pub /gentoo/ http://gentoo.linux.no/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi g /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /opt/tomcat/conf"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad m ikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib  directfb gtkhtml gdbm slang readline aalib nas bonobo svga tcltk java guile rub y X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gnome gtk motif opengl gphoto2 ldap cdr acpi cjk curl dga doc dvd fbcon flash gd gtk2 imagemagick imap jikes junit lcms mozsvg pnp slp usb -apm -arts -kde -qt -berkdb"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-march=pentium3 -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache sandbox userpriv usersandbox"
Comment 3 Yuri Schimke 2003-08-11 01:12:17 UTC
BTW if it doesn't respond to kill -9, does that mean its in the kernel code or something?  I can't understand why kill -9 doesn't work.  It eventually does but it should be fast!
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2003-09-15 05:30:51 UTC
are you using ACPI for your battery levels or APM ?
Comment 5 Yuri Schimke 2003-09-15 05:33:30 UTC
Using ACPI.
Comment 6 Alastair Tse (RETIRED) gentoo-dev 2003-09-24 16:16:34 UTC
http://bugzilla.gnome.org/show_bug.cgi?id=88553

it looks like a valid problem and the patch seems to do the right thing for ACPI. i'm adding this to gnome-applets-2.4.1-r1. please test it to verify it fixes the problem for you. you must have "acpi" in your USE flag for the patch to apply.
Comment 7 Yuri Schimke 2003-10-03 00:09:37 UTC
Finally did an upgrade.  So far so good.  I'll let you know and reopen if
it starts failing.  Its only after a while it happens.

Thanks.