Using pm-suspend from sys-power/pm-utils, my laptop suspends fine until about the tenth time, and then it fails to suspend, returning to the system after several tremulous seconds. Reproducible: Sometimes Steps to Reproduce: 1. pm-suspend 2. turn system back on 3. goto 1. until suspend fails Actual Results: System continues to run (apparently fine). Expected Results: System goes into sleep/suspend mode. Portage 2.1.6.8 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.27-gentoo-r9 i686) ================================================================= System uname: Linux-2.6.27-gentoo-r9-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-glibc2.0 Timestamp of tree: Sun, 15 Mar 2009 20:45:01 +0000 distcc 3.1 i686-pc-linux-gnu [enabled] ccache version 2.4 [enabled] app-shells/bash: 4.0_p10-r1 dev-java/java-config: 1.3.7-r1, 2.1.7 dev-lang/python: 2.5.4-r2 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.3-r1 sys-apps/sandbox: 1.6 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.28-r1 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /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/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distcc distlocks fixpackages parallel-fetch prelink protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo " LC_ALL="en_AU.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en_AU en_AU.UTF-8 en_GB en_GB.UTF-8" 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="/home" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="X a52 aac aalib acpi alsa bash-completion berkdb bluetooth branding bzip2 cairo cddb cdr cli cracklib crypt curl dbus dga dirac djvu dri dts dv dvb dvd dvdr dvdread emboss encode expat fam ffmpeg fftw firefox flac fontconfig fortran gdbm gif gnome gnutls gpm graphviz gstreamer gtk hal iconv ieee1394 imagemagick imlib ipv6 isdnlog java java6 javascript jpeg kde kqemu laptop ldap libnotify lirc lzo mad matroska midi mikmod mmap mmx mng mp3 mpeg mplayer mudflap ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl openmp pam pch pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session sharedmem sndfile spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs syslog tcpd theora threads tiff truetype unicode usb vorbis wifi win32codecs wmf wxwindows x86 xcb xcomposite xml xorg xpm xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="intel8x0" 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="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_AU en_AU.UTF-8 en_GB en_GB.UTF-8" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I just tried to attach the dmesg output, but it failed, perhaps due to using the backup server, so I'll wait and try again tomorrow or something. Or I could paste it into a comment, but it's pretty long, ~200 kB.
Created attachment 185282 [details] dmesg
Have you tested with a gentoo-sources-2.6.28-r4
(In reply to comment #3) > Have you tested with a gentoo-sources-2.6.28-r4 > No, but I expect it will be the same result as other 2.6.28 kernels. See bug #257487. I can't test with 2.6.29 yet because x11-drivers/ati-drivers is not compatible with it yet. I just updated to 2.6.27-r10, so I'll see how that goes.
Haven't experienced this bug after a few days of suspending and resuming, so it's looking good! I didn't get around to creating a script to actually keep count, so I'll just wait a few more days before I close this bug.
(In reply to comment #5) > Haven't experienced this bug after a few days of suspending and resuming, so > it's looking good! I didn't get around to creating a script to actually keep > count, so I'll just wait a few more days before I close this bug. > So, Jeremy, how is it going? 2.6.27-r10 did the trick?
(In reply to comment #6) > > So, Jeremy, how is it going? 2.6.27-r10 did the trick? > I _think_ so. I have the vague feeling that it may have happened once since I upgraded to 27-r10, but that's nothing compared to what was happening before. Anyway, I'll close it for now, and reopen it in the future if needs be.
I'm presume that this is the same bug, so I'm reopening it and changing the summary to reflect what I now know. The bad news is that it still exists. The good news is that I think I know why! My laptop has a couple of network fileshares mapped that are shared from my desktop. If my desktop is switched off and the laptop still has the shares mapped, then it is much more likely (though not certain) to fail to suspend. So that's where the problem seems to be, but it's difficult to be certain. I guess my next question is whether that is actually normal behaviour! Should a system suspend if there is a problem with fileshares? Maybe. Anyway, there is clearly a bug in this case, because dmesg is filled with call traces.
Created attachment 213287 [details] Latest dmesg
Jeremy, have you tried the latest development gentoo-sources release (2.6.32-r1)? Does the problem persist there too?
(In reply to comment #10) > Jeremy, > > have you tried the latest development gentoo-sources release (2.6.32-r1)? > Does the problem persist there too? > Yes, I have, same problem. :(
Created attachment 217709 [details] dmesg, 2.6.32, failed suspend
Created attachment 217711 [details] dmesg from 2.6.32, but only 1 task failed to freeze
Can you please add kernel parameters nohz=off highres=off to your grub line for kernel 2.6.32 and test to see if the failure occurs?
Created attachment 220123 [details] 2.6.32-r1, nohz=off, highres=off, dmesg and pm-suspend.log Still crashing. Is this debugging output actually helpful? Are there any other kernel debugging options that I can enable to make it more helpful?
Created attachment 220125 [details] 2.6.32-r1, nohz=off, highres=off, dmesg and pm-suspend.log
This does not appear to be from 2.6.32, can you test with vanilla-sources-2.6.32.8 Linux version 2.6.31-gentoo-r6 (root@nx8220) (gcc version 4.3.4 (Gentoo 4.3.4 p1.0, pie-10.1.5) ) #4 Thu Feb 4 11:06:24 EST 2010 KERNEL supported cpus: Intel GenuineIntel
Whoops. :)
Actually, I 'whoopsed' too soon... a is from .32, but yes, b was accidentally .31.
Ok, try with the latest vanilla, and if that fails, please test with the atest development kernel, which is git-sources-2.6.33_rc8-r3 as of this writing.
Hi Mike, umm, with all due respect, is there any reason why it would actually be different in the next version? As you can see from the history of this bug, when I reported it about 2.6.27 you said "Have you tried 2.6.28?" So although I appreciate that bug reports are most relevant when they pertain to the latest version, I don't have much faith in the bug magically disappearing in 2.6.n+1. So, I will go ahead and test with 2.6.28.8, but is there something more focused that we can do? I can't risk running release candidate kernels, sorry.
PS. Should I keep using nohz=off and highres=off for testing?
Yes, you should take this upstream at http://bugzilla.kernel.org
Finally bothered to find the upstream bug.