Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261337 - net-misc/networkmanager hibernation via sys-power/pm-utils doesn't work
Summary: net-misc/networkmanager hibernation via sys-power/pm-utils doesn't work
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Steev Klimaszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-05 18:55 UTC by ebuc99
Modified: 2010-03-08 06:45 UTC (History)
2 users (show)

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


Attachments
suspend log (current,22.03 KB, text/plain)
2009-03-11 20:56 UTC, Robert Piasek (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ebuc99 2009-03-05 18:55:33 UTC
Tired of edit the /etc/conf.d/net i emerged networkmanager to have a nice gui tool to do that.
The networkmanager works without problems after emerge, but pm-hibernate (which is using from gnome-power-manager to hibernate) doesn't work (it did not hibernate).
After executing pm-hibernate i got this output on dmesg:
CPU0 attaching NULL sched-domain.
CPU1 attaching NULL sched-domain.
CPU0 attaching sched-domain:
domain 0: span 0-1 level CPU
groups: 0 1
domain 1: span 0-1 level NODE
groups: 0-1
CPU1 attaching sched-domain:
domain 0: span 0-1 level CPU
groups: 1 0
domain 1: span 0-1 level NODE
groups: 0-1

The hibernation via hibernate from the hibernate-script module works without problems.
I use the current stable version of NetworkManager and pm-utils.
I think the dhcp or the dhcdpd, which comes with NetworkManager are the problem.

Reproducible: Always

Steps to Reproduce:
1.emerge NetworkManager
2.pm-hibernate
3. dmesg

Actual Results:  
CPU0 attaching NULL sched-domain.
CPU1 attaching NULL sched-domain.
CPU0 attaching sched-domain:
domain 0: span 0-1 level CPU
groups: 0 1
domain 1: span 0-1 level NODE
groups: 0-1
CPU1 attaching sched-domain:
domain 0: span 0-1 level CPU
groups: 1 0
domain 1: span 0-1 level NODE
groups: 0-1

Expected Results:  
hibernate

nothing
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-05 19:32:05 UTC
Please specify:
 * version of your kernel
 * version of hal
 * version of pm-utils
 * version of networkmanager
 * emerge --info

and search through your logs for informations about networkmanager state.
Also please don't touch Component field, this has nothing to do with gnome.
I'll reassign to bug wranglers since there is not enough information to proceed at this point.
Comment 2 ebuc99 2009-03-05 20:21:23 UTC
Sorry , i forgot this:

kernel: 2.6.27-gentoo-r8
hal: hal-0.5.11-r8
pm-utils: pm-utils-1.2.3-r1
networkmanager: networkmanager-0.6.6
- the package, which comes with networkmanager
    libnl-1.1-r1
    dhcp-3.1.1
    dhcdbd-3.0  
    nm-applet-0.6.6 

emerge --info: 
Portage 2.1.6.7 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-58-with-glibc2.2.5
Timestamp of tree: Thu, 26 Feb 2009 13:15:02 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
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.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo "
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa amd64 avahi berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvb dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gnomecd gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg laptop ldap libnotify mad mdnsresponder-compat midi mikmod mmx mmxext mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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" CAMERAS="canon ptp2" DVB_CARDS="usb-dib0700" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon fglrx vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 3 Robert Buchholz (RETIRED) gentoo-dev 2009-03-06 01:59:32 UTC
ebuc99, does the summary actually describe your problem, or is this bug about not being able to hibernate?
Comment 4 Robert Piasek (RETIRED) gentoo-dev 2009-03-06 10:10:59 UTC
ebuc99,

NetworkManager automatically detects suspend and shuts itself down. When you resume it automatically resumes it's action.

Could you please provide some NM logs (attach to ticket). That should help to diagnose the problem.

Thanks,
Rob
Comment 5 ebuc99 2009-03-06 18:42:30 UTC
(In reply to comment #3)
> ebuc99, does the summary actually describe your problem, or is this bug about
> not being able to hibernate?

The problem is, that hibernate via gnome desktop (pm-utils) doesn't work even when the networkmanager is installed. When i deinstall the networkmanager hibernation via pm-utils works (yes i compiled pm-utils with and without networkmananger use flag, is the same).

(In reply to comment #4)
> ebuc99,
> 
> NetworkManager automatically detects suspend and shuts itself down. When you
> resume it automatically resumes it's action.
> 
> Could you please provide some NM logs (attach to ticket). That should help to
> diagnose the problem.
> 
> Thanks,
> Rob
> 
Yes when i try to hibernate then the networkmanager makes a discconnect and seconds later a reconnect.
But my laptop doesn't hibernate.
I don't know where i can find networkmanager log.
Only i have is the dmesg output (see above). 


Comment 6 ebuc99 2009-03-06 18:51:53 UTC
Here is the /var/log/messages output:

Mar  6 19:48:50 hera gnome-power-manager: (daniel) Rechner wird in den Ruhezustand versetzt. Grund: Ein-/Ausschalter wurde gedrückt.
Mar  6 19:48:50 hera CPU0 attaching NULL sched-domain.
Mar  6 19:48:50 hera CPU1 attaching NULL sched-domain.
Mar  6 19:48:50 hera CPU0 attaching sched-domain:
Mar  6 19:48:50 hera domain 0: span 0-1 level CPU
Mar  6 19:48:50 hera groups: 0 1
Mar  6 19:48:50 hera domain 1: span 0-1 level NODE
Mar  6 19:48:50 hera groups: 0-1
Mar  6 19:48:50 hera CPU1 attaching sched-domain:
Mar  6 19:48:50 hera domain 0: span 0-1 level CPU
Mar  6 19:48:50 hera groups: 1 0
Mar  6 19:48:50 hera domain 1: span 0-1 level NODE
Mar  6 19:48:50 hera groups: 0-1
Mar  6 19:48:51 hera CPU0 attaching NULL sched-domain.
Mar  6 19:48:51 hera CPU1 attaching NULL sched-domain.
Mar  6 19:48:51 hera CPU0 attaching sched-domain:
Mar  6 19:48:51 hera domain 0: span 0-1 level CPU
Mar  6 19:48:51 hera groups: 0 1
Mar  6 19:48:51 hera domain 1: span 0-1 level NODE
Mar  6 19:48:51 hera groups: 0-1
Mar  6 19:48:51 hera CPU1 attaching sched-domain:
Mar  6 19:48:51 hera domain 0: span 0-1 level CPU
Mar  6 19:48:51 hera groups: 1 0
Mar  6 19:48:51 hera domain 1: span 0-1 level NODE
Mar  6 19:48:51 hera groups: 0-1
Mar  6 19:48:51 hera gnome-power-manager: (daniel) Rechner wird aufgeweckt
Comment 7 Robert Piasek (RETIRED) gentoo-dev 2009-03-11 20:56:34 UTC
Created attachment 184743 [details]
suspend log

I've checked suspend-resume using pm-utils. Everything worked ok here. Please check attached log.

On the other hand - I'm using networkmanager-0.7 here. Maybe you would like to give it a try. 0.7.1 should hit the tree in the next couple of days.

Unfortunately it's masked (as it depends on policykit which is currently masked in the tree), but it's much more stable and feature rich than 0.6.6.

Rob
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-04-20 21:19:47 UTC
please get back to us.
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-04-20 21:20:24 UTC
oops, sorry it seems I'm missing part of this bugs mails.
Comment 10 Pacho Ramos gentoo-dev 2009-11-08 14:25:17 UTC
I don't suffer this problem at all with current stable networkmanager and pm-utils
Comment 11 Pacho Ramos gentoo-dev 2010-02-22 19:23:49 UTC
(In reply to comment #10)
> I don't suffer this problem at all with current stable networkmanager and
> pm-utils
> 

I will close this bug next week if no reply is provided. Please try with current stable networkmanager-0.7.2 and a recent kernel (like 2.6.31)

Good luck!
Comment 12 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-03-08 06:45:01 UTC
Please try with a recent networkmanager and kernel and report back, thanks.