Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 202954 - gnome-extra/gnome-power-manager-2.20.0-r1: when battery level is low does nothing.
Summary: gnome-extra/gnome-power-manager-2.20.0-r1: when battery level is low does not...
Status: RESOLVED NEEDINFO
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: 2007-12-21 19:49 UTC by Andrea Brandi
Modified: 2008-05-26 20:23 UTC (History)
0 users

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


Attachments
The output of "gnome-power-bugreport.sh". (gnome-power-bugreport,3.45 KB, text/plain)
2007-12-21 19:53 UTC, Andrea Brandi
Details
Battery info by g-p-m (batterxpsm1330.jpg,6.34 KB, image/jpeg)
2007-12-24 00:50 UTC, Andrea Brandi
Details
lshal of my battery (lshal_battery,2.05 KB, text/plain)
2007-12-28 13:16 UTC, Andrea Brandi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Brandi 2007-12-21 19:49:45 UTC
When battery level is low, nothing appear. No notifies (libnotify is active) and it don't suspend my system (the option is enabled). Simply the system goes down and i lost all my unsaved works! Also at the boot i find Inconsistency in my file systems. The only solution is manually check sometimes the battery level and shutdown the notebook before it halt.

I use more recent suspend2-sources. I've followed the gentoo power management guide at this link: http://www.gentoo.org/doc/en/power-management-guide.xml

My notebook is a Dell XPS M1330.

Reproducible: Always

Steps to Reproduce:
1. boot gentoo linux
2. simply starts gnome with startx
3. when the battery is low the notebook goes down.
Actual Results:  
The system goes down and i lost my work everytime unless i notice that the battery power is low.

Expected Results:  
gnome-power-manager must send me an advice with libnotify, and if power is low automatically go in suspend-to-ram mode.



starise@starbook ~ $ emerge --info
Portage 2.1.3.19 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-suspend2-r2 i686)
=================================================================
System uname: 2.6.22-suspend2-r2 i686 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz
Timestamp of tree: Fri, 21 Dec 2007 13:16:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.unina.it/pub/linux/distributions/gentoo               http://mirror.ing.unibo.it/gentoo/              http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LINGUAS="it"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 acl acpi alsa avahi bash-completion berkdb bitmap-fonts bluetooth cairo cdr cli cracklib crypt cups dbus dell dri dv dvd dvdr dvdread eds emboss encode esd evo exif fam ffmpeg firefox fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv ipv6 ipw3945 isdnlog java jpeg kerberos ldap libnotify lm_sensors logrotate mad midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly nvidia ogg opengl openmp oss pam pcre pdf perl png pppd python qt3support quicktime readline reflection samba sdl session spell spl sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1 type1-fonts unicode v4l2 vorbis win32codecs x86 xml xorg xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Andrea Brandi 2007-12-21 19:53:38 UTC
Created attachment 139055 [details]
The output of "gnome-power-bugreport.sh".
Comment 2 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-12-22 17:45:47 UTC
This works fine for me, for the record.  I'm not sure how to go about debugging this.  power management and suspend is a bit of a black art on Linux.

I guess we'll start with the obvious: does g-p-m correctly show your battery status?  How do you suspend?  If you click on g-p-m, and select suspend, does it suspend?  If you switch the critical power option to shutdown, does it work?
Comment 3 Andrea Brandi 2007-12-24 00:47:04 UTC
> I guess we'll start with the obvious: does g-p-m correctly show your battery 
> status?
Yes, it shows me correctly my battery status.

> How do you suspend?  
with g-p-m icon! In a terminal the command "hibernate-ram --force" work!

> If you click on g-p-m, and select suspend, does it suspend?
Right! It's all ok! But at wake up, it show me an error like "operation is not completed successful". But, however, all (software and drivers) works great!

> If you switch the critical power option to shutdown, does it work?
Now I tried this and: No! Nothing happens, the battery goes down and PC turns off. :(

I tried also to set the normal battery plugin for gnome-panel to show me a message when the battery is critical (5%). So.. this show me the message correctly
Comment 4 Andrea Brandi 2007-12-24 00:50:16 UTC
Created attachment 139226 [details]
Battery info by g-p-m
Comment 5 Andrea Brandi 2007-12-28 13:16:11 UTC
Created attachment 139512 [details]
lshal of my battery
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-04-19 21:28:22 UTC
for the record, this is happening to me as well with latest hal and g-p-m 2.22 and I believe it started with the sysfs power interface. Are you using the /proc or the /sys interface in your kernel settings ?
Comment 7 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-05-26 20:23:29 UTC
Please get back to us and also read bug #203306 to see if you are having a similar issue.