Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 251224 - sys-power/pm-utils-1.2.3 makes suspend to ram slow and unstable
Summary: sys-power/pm-utils-1.2.3 makes suspend to ram slow and unstable
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Freedesktop bugs
Depends on:
Reported: 2008-12-16 20:01 UTC by Thomas Kahle (RETIRED)
Modified: 2009-02-06 09:18 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Kahle (RETIRED) gentoo-dev 2008-12-16 20:01:04 UTC
I'm using pm-utils via powerdevil in KDE 4. 
Everything was fine with pm-utils- With the current version however:

a) Suspend to Ram takes 10 seconds of doing nothing before actually suspending.

b)   In approximately 20% of the trials suspend fails with either kernel panic (Scroll Lock blinking) while still in X, or after switching to console with blank screen or single cursor blinking.

c) After resume the Wireless blocks IO for a couple of seconds (computer does not respond 5-20 seconds until wicd has established a network connection)

Downgrading restores the correct functionality.

The hardware is a Thinkpad X61s. Kernel is vanilla

Reproducible: Always

tom@denkmatte:~$ emerge --info
Portage 2.2_rc17 (default-linux/x86/2007.0/desktop, gcc-4.3.2, glibc-2.6.1-r0, i686)
System uname: Linux-   
Timestamp of tree: Tue, 16 Dec 2008 07:45:02 +0000                                           
distcc 3.0 i686-pc-linux-gnu [disabled]                                                      
ccache version 2.4 [enabled]                                                                 
app-shells/bash:     3.2_p33                                                                 
dev-java/java-config: 1.3.7-r1, 2.1.6                                                        
dev-lang/python:     2.5.2-r7                                                                
dev-python/pycrypto: 2.0.1-r6                                                                
dev-util/ccache:     2.4-r7                                                                  
dev-util/cmake:      2.6.2                                                                   
sys-apps/baselayout: 2.0.0                                                                   
sys-apps/openrc:     0.3.0-r1                                                                
sys-devel/autoconf:  2.13, 2.61-r2                                                           
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1                            
sys-devel/binutils:  2.18-r3                                                                 
sys-devel/gcc-config: 1.4.0-r4                                                               
sys-devel/libtool:   1.5.26                                                                  
virtual/os-headers:  2.6.23-r3                                                               
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"                                         
CONFIG_PROTECT="/etc /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config"
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/terminfo /etc/texmf/web2c /etc/udev/rules.d"                                                   
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"                                                            
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                                                                                 
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                 
LINGUAS="en en_US de ja es fr it"                                                                                 
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                      
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/sunrise /usr/local/portage/layman/roslin /usr/local/portage/layman/rbu /usr/local/portage/tom-overlay"                                                 
USE="X a52 aac acl acpi alsa anthy apache2 avahi bash-completion berkdb bluetooth bzip2 cairo canna cddb cdparanoia cdr cjk cli cracklib crypt ctype cups curl daap dbus dri dvd dvdr dvdread eds emacs encode esd evo expat fam fbcon ffmpeg firefox flac fortran freewnn ftp gd gdbm gif glut gmp gnome gnome-keyring gphoto2 gpm graphviz gstreamer gtk guile hal hdaps iconv ieee1394 imagemagick imap imlib ipod ipv6 isdnlog java javascript jpeg kde kdeprefix kerberos latex ldap leim libnotify lm_sensors m17n-lib mad midi migemo mikmod mime mmx mp3 mp4 mpeg mplayer mudflapmule musicbrainz mysql mysqli ncurses nepomuk networkmanager nls nptl nptlonly nsplugin obex ocaml ogg oggvorbis openal opengl openmp oss pam pcmcia pcre pdf perl php plasma plotutils png pppd python qt3 qt3support qt4 quicktime readline reflection samba sasl sdl session slang spell spl sqlite3 sse ssl svg tcpd texlive theora tiff tk truetype unicode usb v4l v4l2 vhosts vim vim-syntax visualization vorbis wifi win32codecs wxwindows x86 xcomposite xinexinerama xml xorg xulrunner xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1    emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m       maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" FRITZCAPI_CARDS="fcpcmcia" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US de ja es fr it" USERLAND="GNU" VIDEO_CARDS="intel"
Comment 1 Gilles Dartiguelongue gentoo-dev 2009-01-18 20:05:14 UTC
you might want to disable some hooks.
Comment 2 Pacho Ramos gentoo-dev 2009-01-18 20:21:30 UTC
Maybe you could to locally bump to some pm-utils versions between 1.2.3 and for trying to see what change could cause this, you can check: (in ReleaseNotes section)

for see changes between versions.

For example, you could try to locally bump to, if it works, maybe a change in 1.2 branch is causing your problems, and you could check with first 1.2 branch version

Also, please test simply with "pm-suspend" command instead of invoking it from powerdevil for preventing some other problems (I am not sure about powerdevil at Gentoo but, under Mandriva, it can cause some problem to a few issues)
Comment 3 Gilles Dartiguelongue gentoo-dev 2009-02-04 19:57:45 UTC
you can also try to git bisect on upstream's repo. Anyway current informations can't help us figure out the problem and powersaving stuff is often machine dependent so you'll have to do some tests on your own. Please get back to us with updated status. Thanks in advance.
Comment 4 Thomas Kahle (RETIRED) gentoo-dev 2009-02-06 09:18:17 UTC
Hi, here are some more observations.

Power Management handling seems to be very dependent on the explicit versions of hal, kernel, video-driver, xorg-server, maybe udev.

I use a combination of a mostly stable tree, with some packages from ~x86 where needed to enable "modern" features such as power management, or just want to be on the bleeding edge. 

My general observation, but I cannot back this up by very concrete examples, is that if one uses everything from stable it works well together, or if one uses the latest version of "hal, kernel, video-driver, xorg-server, maybe udev" together it also works fine. Mixing them results in strange, sometimes unreproducible behaviour. I'm very sorry that I cannot be more explicit, also because some of the suspend-crashes only happen after 10 succesfull resumes and uptimes of several days. 

One example maybe that the module blacklist of pm-utils-1.2.3-r1 contains "iwlagn", but not "iwl4965" as the module was called before. I think I maybe was hit by the problem of using the recent pm-utils together with an old kernel such that after updating pm-utils the wireless module was not unloaded anymore.

Summarizing I think that there are some hidden dependencies of these packages that are hard to track down. Updating the above mentioned packages to most recent versions worked well. 

One final remark, I think the power-management guide:
could be improved by adding a section which explains how hald/dbus and other automagic tools work together with the high level window managers. I think creating a battery runlevel which changes screen brightness is not apropriate in the times of kde-4 and modern gnome.

Thanks for your support.
I'm closing this bug.