Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334345 - gnome-extra/gnome-power-manager-2.30.1 reports battery critically low due wrong upower information
Summary: gnome-extra/gnome-power-manager-2.30.1 reports battery critically low due wro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Freedesktop bugs
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-24 20:04 UTC by Fr1z2r
Modified: 2011-06-27 19:00 UTC (History)
1 user (show)

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


Attachments
dmesg | grep ACPI (dmesg_ACPI,5.37 KB, text/plain)
2010-08-25 18:27 UTC, Fr1z2r
Details
messages | grep ACPI (messages_ACPI,48.05 KB, text/plain)
2010-08-25 18:28 UTC, Fr1z2r
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fr1z2r 2010-08-24 20:04:27 UTC
After update gnome-power-manager to 2.30, g-p-m reports battery critically low, when I unplug AC adapter. With 2.28 all worked fine.
I use MSI WIND u90 with g-p-m 2.30.1 and upower 0.9.4.

Reproducible: Always

Steps to Reproduce:
1. Unplug AC adapter
2. Get message "Battery critically low"
3. Wait while your laptop goes to hibernation
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-08-25 07:52:01 UTC
is the problem happening with a freshly created user as well ? You might want to check if there is no kernel upgrade you could do (emerge --info would be nice btw) and check if there is no suspicious message in the kernel log about ACPI stuff for example.
Comment 2 Fr1z2r 2010-08-25 18:27:48 UTC
Created attachment 244597 [details]
dmesg | grep ACPI
Comment 3 Fr1z2r 2010-08-25 18:28:40 UTC
Created attachment 244599 [details]
messages | grep ACPI
Comment 4 Fr1z2r 2010-08-25 18:29:16 UTC
Portage 2.1.8.3 (default/linux/x86/10.0/desktop/gnome, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-1.12.13
Timestamp of tree: Tue, 24 Aug 2010 18:45:03 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -mssse3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -mssse3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en"
MAKEOPTS="-j2"
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"
SYNC="rsync://rsync.ru.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb branding bzip2 cairo cli consolekit cracklib crypt cups cxx dbus djvu dri dts dvdr eds emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gdu gif gnome gnome-keyring gpm gstreamer gtk hal iconv icq intel ipv6 jabber jpeg lame lcms ldap libnotify mad matroska mikmod mmx mng modules mp3 mp4 mpeg mplayer mudflap nautilus ncurses networkmanager nls nptl nptlonly ogg openal opengl openmp pam pango pcre pda pdf perl png policykit ppds pppd python qt3support qt4 readline reflection sdl session smp spell spl sqlite sse sse2 ssl ssse3 startup-notification svg sysfs tcpd tiff truetype unicode usb utf8 v4l2 vorbis wifi x264 x86 xcb xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda-intel loopback virmidi" 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 cgi cgid 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 5 Fr1z2r 2010-08-25 18:43:50 UTC
(In reply to comment #1)
> is the problem happening with a freshly created user as well ? You might want
> to check if there is no kernel upgrade you could do (emerge --info would be
> nice btw) and check if there is no suspicious message in the kernel log about
> ACPI stuff for example.
> 
No, this problem is happening with old user, which have been created at begining.
I'm using latest kernel and other software. I attached dmesg and messages with grep ACPI. No other warnings and errors in these files.
Comment 6 Pacho Ramos gentoo-dev 2010-08-26 09:16:32 UTC
(In reply to comment #5)
> No, this problem is happening with old user, which have been created at
> begining.
> I'm using latest kernel and other software. I attached dmesg and messages with
> grep ACPI. No other warnings and errors in these files.
> 

And, have you tried to create a new user account and see if it's also failing? If also failing, could you try to install sys-apps/devicekit-power instead of sys-power/upower ?
Comment 7 Fr1z2r 2010-08-26 18:16:53 UTC
(In reply to comment #6)
> And, have you tried to create a new user account and see if it's also failing?
> If also failing, could you try to install sys-apps/devicekit-power instead of
> sys-power/upower ?

I create a new user account and it's also go to suspend. With root account the same. I install sys-power/upower, when tried to solve this problem. Before this I had sys-apps/devicekit-power. But I didn't see any changes in my problem when I install sys-apps/upower.  
Comment 8 Fr1z2r 2010-08-28 21:15:46 UTC
This command helps me:
gconftool-2 --type bool --set /apps/gnome-power-manager/general/use_time_for_policy false
But g-p-m still writes that 1 minute of battery power remaining (100%). After several seconds it shows right time.
Comment 9 Pacho Ramos gentoo-dev 2010-08-31 15:38:18 UTC
Maybe an udev issue (but not sure since I don't remember how g-p-m gets that information :-/)
Comment 10 Fr1z2r 2010-09-01 18:04:15 UTC
I noticed, that upower shows large energy-rate, when I plug or unplug AC-adapter:
  History (rate):
    1283363905	10.656	charging
    1283363903	726.839	charging
    1283363901	11.100	discharging
    1283363900	12.865	discharging
    1283363898	716.771	discharging
    1283363879	10.667	charging
What can be with udev?
Comment 11 Pacho Ramos gentoo-dev 2010-09-03 19:42:01 UTC
(In reply to comment #10)
> I noticed, that upower shows large energy-rate, when I plug or unplug
> AC-adapter:
>   History (rate):
>     1283363905  10.656  charging
>     1283363903  726.839 charging
>     1283363901  11.100  discharging
>     1283363900  12.865  discharging
>     1283363898  716.771 discharging
>     1283363879  10.667  charging
> What can be with udev?
> 

If I don't misremember, upower gets information from udev via the system message bus, but maybe I'm wrong :-|
Comment 12 Pacho Ramos gentoo-dev 2010-12-16 18:26:17 UTC
Do you get the same with 2.32, a more updated upower and a newer udev version?
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-12-17 23:13:07 UTC
Please get back to us.
Comment 14 Thomas Orgis 2010-12-25 18:40:51 UTC
(In reply to comment #13)
> Please get back to us.

Please consider the upstream bug report: https://bugs.freedesktop.org/show_bug.cgi?id=27399
Comment 15 Fr1z2r 2010-12-27 20:46:48 UTC
(In reply to comment #13)
> Please get back to us.
> 

I don't try it with g-p-m 2.32, but when X.org was compiled with "-hal" g-p-m reports unknown time. But in battery tab of g-p-m it's usually says right time.
Comment 16 Pacho Ramos gentoo-dev 2010-12-28 18:33:44 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > Please get back to us.
> 
> Please consider the upstream bug report:
> https://bugs.freedesktop.org/show_bug.cgi?id=27399
> 

Thanks for pointing to the problem
Comment 17 Tobias Johansson 2011-03-09 09:27:33 UTC
I had a similar problem where the tray icon always showed the battery as fully charged. Updating to latest Upower in portage seems to have solved the problem for me
Comment 18 Pacho Ramos gentoo-dev 2011-06-27 19:00:53 UTC
upower-0.9.9 should solve this