Since I use wicd (thus before 1.7.1_beta2), I always needed to explicitly reconnect the network (WiFi in my case) after a resume. I saw that /usr/share/wicd/scripts/ are not put in /etc/pm/{power,sleep}.d After manually put them in /etc/pm, the network connection is automatically established. Reproducible: Always Steps to Reproduce: 1. emerge net-misc/wicd 2. missing files in /etc/pm/ 3. manually put files: /etc/pm/power.d/80-wicd-connect.sh /etc/pm/sleep.d/50-wicd-suspend.sh 4. hibernate / resume : network is OK Actual Results: no network (at least WiFi) after hibernation /resume Expected Results: automatic networ restoration after hibernation /resume need to install files from /usr/share/wicd/scripts into /etc/pm/{power,suspend}.d during the merge, when pm-utils USE is active
emerge --info Portage 2.2.0_alpha7 (default/linux/x86/10.0, gcc-4.5.1, glibc-2.12.1-r3, 2.6.36-gentoo-r3 i686) ================================================================= System uname: Linux-2.6.36-gentoo-r3-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.0.1 Timestamp of tree: Tue, 07 Dec 2010 18:15:01 +0000 distcc 3.1 i686-gentoo-linux-gnu [enabled] app-shells/bash: 4.1_p9 dev-lang/python: 2.7.1, 3.1.3 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.6.7 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.5.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) Repositories: gentoo local proaudio pd-overlay ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="@FREE freedist skype-eula AdobeFlash-10.1" CBUILD="i686-gentoo-linux-gnu" CFLAGS="-O2 -pipe -fomit-frame-pointer -march=prescott -mtune=generic" CHOST="i686-gentoo-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=prescott -mtune=generic" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y" FEATURES="assume-digests binpkg-logs candy distcc distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" LANG="fr_BE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed" LINGUAS="fr" MAKEOPTS="-j5" 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" PORTDIR_OVERLAY="/usr/local/portage/overlay /var/lib/layman/pro-audio /var/lib/layman/pd-overlay" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acl acpi alsa amr battery berkdb branding bzip2 cairo cleartype cli consolekit contrib cracklib crypt cups cxx dbus devel dhcp dri dssi dvb emacs encode exif extra extras fat ffmpeg fftw flac fontconfig gallium gdbm gif git glitz gpm gtk gui gzip-el iconv id3tag jack jackmidi jpeg ladspa libnotify matroska mbox mmx modules mp3 mpeg mudflap ncurses nls nptl nptlonly ntfs ogg opengl openmp pam pango pch pcre png policykit portaudio ppds pppd private-headers python qt3support qt4 qtscript raster readline rle samba session slang sound sqlite sse sse2 ssl ssse3 startup-notification subversion svg sysfs tcl tcpd threads tiff tk truetype udev unicode usb v4l v4l2 vorbis wifi wmf x264 x86 xfce xft xml xorg xscreensaver xvid zlib" ALSA_CARDS="hda-intel usb-audio 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-af9015" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XFCE_PLUGINS="trash logout" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS emerge -pv wicd pm-utils These are the packages that would be merged, in order: Calculating dependencies ... done! [ebuild R ] sys-power/pm-utils-1.4.1-r1 USE="alsa -debug -ntp" VIDEO_CARDS="intel -radeon" 0 kB [ebuild R ] net-misc/wicd-1.7.1_beta2 USE="X gtk libnotify ncurses nls pm-utils (-ioctl)" 0 kB Total: 2 packages (2 reinstalls), Size of downloads: 0 kB
(In reply to comment #0) > I saw that /usr/share/wicd/scripts/ are not put in /etc/pm/{power,sleep}.d by design, not likely to change this.
So, what to do? file a bug upstream?
Try this: Remove "--resume=/usr/share/wicd/scripts/ --suspend=/usr/share/wicd/scripts/" from the ebuild and see where the scripts end up installed at. Then present a good case for installing them into /etc even for people that don't use suspend/hibernate. Would a elog message is installed with USE=pm-utils satisfy your issue with the current method?
Created attachment 256772 [details] build.log I changed the ebuild as asked, and I ran "ebuild [...] install" in order to go until the image directory. see build.log : something is installed under acpi, some other things under /usr/lib/pm-utils
Right, neither is right by default. So you *could* ask upstream to change something (they probably won't, to be honest) or you could live with the fact that I set a reasonable default for Gentoo in /usr/share. In reality, I don't know much about these scripts as I don't use any suspend/hibernate features. You are the first person to bring this up since 06 Jan 2009, roughly two years ago - I wonder how much of an issue this really is...
I merged the modified version of the ebuild, with files installed in /etc/acpid. It seems it works, but I need to test a longer hibernate time (enough time so that the WIFI session and DHCP lease would be lost). Will give some feed-back tomorrow, after some hors of sleeping (both of machine and user :p) So apparently, it needs both ACPI and PM-utils. If I have no success, I accpept to be the relay with upstream.
Hello, I hibernated, rebooted the Wifi router, and resumed. No success, it seems wpa_supplicant is not recalled. I will ask more information upstream and let you know.
Hello, Following some bugs at wicd (https://bugs.launchpad.net/wicd/+bug/474484), the network driver must sometimes be reloaded at resume. In my case, it was also my wifi module (ath5k) which didn't resume. I added it in /etc/hibernate/blacklisted-modules and it resumes again. I re-emerged with your defaults and it works. So the bug is not related to wicd, you can mark it as invalid. The answer is "reload your network module in hibernate configurations"