Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304555 - KDE4 Battery monitor applet shows battery not present
Summary: KDE4 Battery monitor applet shows battery not present
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-11 14:08 UTC by Ondřej Šibřina
Modified: 2011-10-30 23:16 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 Ondřej Šibřina 2010-02-11 14:08:48 UTC
Hi,
I have no idea if this is gentoo problem. But since i upgraded my system (i made in one piece so i can't figure out if problem is in kernel or KDE) I can't see my battery state in battery monitor widget.

It says battery not present.

I'm running KDE 4.3.5, kernel 2.6.32-gentoo-r3 and every acpi and hal information about battery are right. 

Maybe there can be problem with two directories in /proc/acpi/battery/ (BAT0, BAT1) BAT1 is not present.

$cat /proc/acpi/battery/BAT0/state
present:                 yes
capacity state:          ok
charging state:          charged
present rate:            1 mA
remaining capacity:      5200 mAh
present voltage:         12388 mV


# hal-device | grep battery
  input.keymap.data = { 'e001:playpause', 'e002:stopcd', 'e003:previoussong', 'e004:nextsong', 'e005:brightnessdown', 'e006:brightnessup', 'e007:battery', 'e008:wlan', 'e009:ejectclosecd', 'e00a:suspend', 'e00b:switchvideomode', 'e00f:switchvideomode', 'e010:previoussong', 'e011:prog1', 'e012:media', 'e013:f23', 'e015:camera', 'e00c:f23', 'e019:nextsong', 'e01b:switchvideomode', 'e022:playpause', 'e024:stopcd', 'e06d:media' } (string list)
65: udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0'
  battery.type = 'primary'  (string)
  battery.reporting.technology = 'Li-ion'  (string)
  battery.technology = 'lithium-ion'  (string)
  battery.model = 'DELL KY26691'  (string)
  battery.vendor = 'Sanyo'  (string)
  battery.voltage.design = 11100  (0x2b5c)  (int)
  battery.reporting.design = 5200  (0x1450)  (int)
  battery.reporting.unit = 'mAh'  (string)
  battery.voltage.unit = 'mV'  (string)
  battery.present = true  (bool)
  battery.voltage.current = 12388  (0x3064)  (int)
  battery.reporting.rate = 1  (0x1)  (int)
  battery.is_rechargeable = true  (bool)
  battery.rechargeable.is_charging = false  (bool)
  battery.rechargeable.is_discharging = false  (bool)
  battery.reporting.current = 5200  (0x1450)  (int)
  battery.reporting.last_full = 4257  (0x10a1)  (int)
  battery.charge_level.current = 47252  (0xb894)  (int)
  battery.charge_level.last_full = 47252  (0xb894)  (int)
  battery.charge_level.design = 57720  (0xe178)  (int)
  battery.charge_level.rate = 11  (0xb)  (int)
  battery.charge_level.percentage = 100  (0x64)  (int)
  battery.serial = '318'  (string)
  info.udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0'  (string)
  info.category = 'battery'  (string)
  info.capabilities = { 'battery' } (string list)


emerge --info
Portage 2.1.7.17 (default/linux/amd64/10.0/developer, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-r3 x86_64)
=================================================================                                       
System uname: Linux-2.6.32-gentoo-r3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P9500_@_2.53GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 05 Feb 2010 10:45:01 +0000                                                      
app-shells/bash:     4.0_p37                                                                            
dev-java/java-config: 2.1.10                                                                            
dev-lang/python:     2.6.4-r1, 3.1.1-r1                                                                 
dev-util/cmake:      2.8.0-r2                                                                           
sys-apps/baselayout: 2.0.1                                                                              
sys-apps/openrc:     0.6.0-r1                                                                           
sys-apps/sandbox:    2.2                                                                                
sys-devel/autoconf:  2.13, 2.65                                                                         
sys-devel/automake:  1.9.6-r2, 1.10.3, 1.11.1                                                           
sys-devel/binutils:  2.20                                                                               
sys-devel/gcc:       4.4.2                                                                              
sys-devel/gcc-config: 1.4.1                                                                             
sys-devel/libtool:   2.2.6b                                                                             
virtual/os-headers:  2.6.30-r1                                                                          
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                          
ACCEPT_LICENSE="* -@EULA skype-eula sun-bcla-java-vm dlj-1.1"                                           
CBUILD="x86_64-pc-linux-gnu"                                                                            
CFLAGS="-O2 -pipe"                                                                                      
CHOST="x86_64-pc-linux-gnu"                                                                             
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"                              
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"                                                                                                                
CXXFLAGS="-O2 -pipe"                                                                                                  
DISTDIR="/usr/portage/distfiles"                                                                                      
FEATURES="assume-digests collision-protect cvs distlocks fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms sign splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"                  
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://ibiblio.org/pub/Linux/MIRRORS.html"                            
LANG="cs_CZ.utf8"                                                                                                     
LC_ALL="cs_CZ.utf8"                                                                                                   
LDFLAGS="-Wl,-O1"                                                                                                     
LINGUAS="cs en"                                                                                                       
MAKEOPTS="-j3"                                                                                                        
PKGDIR="/usr/portage/packages"                                                                                        
PORTAGE_CONFIGROOT="/"                                                                                                
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/yarik-overlay /usr/local/portage/layman/zugaina /usr/local/portage/layman/wirelay /usr/local/portage/layman/otih /usr/local/portage/layman/php-testing /usr/local/portage/layman/php-experimental /usr/local/portage/manual"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amd64 amrnb amrwb apache2 apm berkdb bindist bl bzip2 cairo cdaudio cddb cdio cdparanoia cdr cli consolekit cpudetection cracklib crypt cups cvs cxx dbus dga dhclient dhcpcd dibi dri drx dts dv dvb dvd dvdnav dvdr dvdread eds emboss encode evo exif fam fbcon ffmpeg firefox flac fortran fpic ftp gdbm geoip gif git gjc glut gnutls gphoto2 gpm gps gstreamer gtk gzip hal hddtemp iconv icq icu ieee1394 imap ipv6 jabber java java6 javascript jbig jingle jpeg jpeg2k kde kontact lame laptop lash latex ldap libnotify live lm_sensors lzo mad matroska matrox mdnsresponder-compat melt mikmod mime mmx mmxext mng modules mozilla mp2 mp3 mp3tunes mp4 mpeg mplayer msn mtp mudflap multilib musepack musicbrainz mysql nas ncurses nemesi nls nptl nptlonly nsplugin nss nvidia ogg openal opengl openmp openvpn oskar oss pam pcmcia pcre pdf perl plasma pmu png pnm ppds pppd pptp pvr python qt3support qt4 quicktime radio rar raw readline reflection resolvconf rss rtc samba schroedinger sdl session smp sndfile snmp sockets source sox speex spell spl sql sse sse2 ssl ssse3 startup-notification subversion svg symblink sysfs syslog sysvipc szip taglib tcpd teletext tga theora threads thunar tiff timidity truetype unicode usb v4l v4l2 vcd videos vorbis wavpack webkit wifi wmf x264 xanim xfk xine xinerama xml xmlrpc xorg xulrunner xv xvid xvmc zlib zoran" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en" NETBEANS_MODULES="apisupport harness ide java nb websvccommon cnd dlight enterprise ergonomics groovy identity mobility php profiler ruby webcommon" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Reproducible: Always
Comment 1 Ondřej Šibřina 2010-02-11 17:32:20 UTC
I solved it. 

I have also problem with k3b and somebody recommended to recompile hal with USE="policykit". Now it works perfectly.
Comment 2 Marijn Schouten (RETIRED) gentoo-dev 2010-08-19 08:26:05 UTC
Due to this bug I was able to solve my own battery-indicator. Unfortunately the description of the policykit use flag doesn't indicate any relation to battery information AFAICS.