Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I put the laptop to sleep from ubuntu gui it takes a very long time, so there is something happening that's not logged. When the computer is resumed again, I've lost the wireless connection and must manually type

nmcli nm sleep false

to wakeup the wireless card.

From the log;

henning-msi NetworkManager[694]: <info> sleep requested (sleeping: no  enabled: yes)
Mar 13 14:53:57 henning-msi NetworkManager[694]: <info> sleeping or disabling...
Mar 13 14:53:57 henning-msi NetworkManager[694]: <info> (wlan0): device state change: activated -> unmanaged (reason 'sleeping') [100 10 37]
Mar 13 14:53:57 henning-msi NetworkManager[694]: <info> (wlan0): deactivating device (reason 'sleeping') [37]
Mar 13 14:53:58 henning-msi NetworkManager[694]: <info> (wlan0): canceled DHCP transaction, DHCP client pid 1012
Mar 13 14:53:58 henning-msi avahi-daemon[689]: Withdrawing address record for fe80::4261:86ff:fe9f:62b7 on wlan0.
Mar 13 14:53:58 henning-msi avahi-daemon[689]: Leaving mDNS multicast group on interface wlan0.IPv6 with address fe80::4261:86ff:fe9f:62b7.
Mar 13 14:53:58 henning-msi avahi-daemon[689]: Interface wlan0.IPv6 no longer relevant for mDNS.
Mar 13 14:53:58 henning-msi kernel: [  444.690647] wlan0: deauthenticating from  84:c9:b2:6a:c0:98 by local choice (reason=3)
Mar 13 14:53:58 henning-msi avahi-daemon[689]: Withdrawing address record for 192.168.0.100 on wlan0.
Mar 13 14:53:58 henning-msi avahi-daemon[689]: Leaving mDNS multicast group on  interface wlan0.IPv4 with address 192.168.0.100.
Mar 13 14:53:58 henning-msi avahi-daemon[689]: Interface wlan0.IPv4 no longer relevant for mDNS.
Mar 13 14:53:58 henning-msi NetworkManager[694]: <warn> DNS: plugin dnsmasq update failed
Mar 13 14:53:58 henning-msi NetworkManager[694]: <info> Removing DNS information from /sbin/resolvconf
Mar 13 14:53:58 henning-msi kernel: [  444.705874] cfg80211: Calling CRDA to update  world regulatory domain
Mar 13 14:53:58 henning-msi dnsmasq[1051]: setting upstream servers from DBus
Mar 13 14:53:58 henning-msi wpa_supplicant[798]: wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3
Mar 13 14:53:58 henning-msi kernel: [  444.726147] cfg80211: World regulatory domain updated:
Mar 13 14:53:58 henning-msi kernel: [  444.726159] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Mar 13 14:53:58 henning-msi kernel: [  444.726168] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Mar 13 14:53:58 henning-msi kernel: [  444.726176] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Mar 13 14:53:58 henning-msi kernel: [  444.726184] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Mar 13 14:53:58 henning-msi kernel: [  444.726191] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Mar 13 14:53:58 henning-msi kernel: [  444.726198] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Mar 13 14:53:58 henning-msi NetworkManager[694]: <info> (wlan0): cleaning up...
 Mar 13 14:53:58 henning-msi NetworkManager[694]: <info> (wlan0): taking down device.
Mar 13 14:53:58 henning-msi whoopsie[1002]: offline
Mar 13 14:53:58 henning-msi NetworkManager[694]: <info> (eth0): device state change:  unavailable -> unmanaged (reason 'sleeping') [20 10 37]
Mar 13 14:53:58 henning-msi NetworkManager[694]: <info> (eth0): cleaning up...
Mar 13 14:53:58 henning-msi dbus[539]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Mar 13 14:53:58 henning-msi NetworkManager[694]: <info> (eth0): taking down device.
Mar 13 14:53:58 henning-msi dbus[539]: [system] Activating service name='org.freedesktop.systemd1' (using servicehelper)
Mar 13 14:53:58 henning-msi dbus[539]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Mar 13 14:53:58 henning-msi dbus[539]: [system] Successfully activated service 'org.freedesktop.systemd1'
Mar 13 14:53:59 henning-msi kernel: [  446.070559] PM: Syncing filesystems ... done.
Mar 13 14:53:59 henning-msi kernel: [  446.164366] PM: Preparing system for mem sleep
Mar 13 14:55:49 henning-msi rtkit-daemon[1406]: The canary thread is apparently starving. Taking action.
Mar 13 14:55:49 henning-msi rtkit-daemon[1406]: Demoting known real-time threads.
Mar 13 14:55:49 henning-msi kernel: [  446.721567] Freezing user space processes ... (elapsed 0.003 seconds) done.
Mar 13 14:55:49 henning-msi kernel: [  446.724893] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Mar 13 14:55:49 henning-msi kernel: [  446.726310] PM: Entering mem sleep
Mar 13 14:55:49 henning-msi kernel: [  446.726354] Suspending console(s) (use no_console_suspend to debug)
Mar 13 14:55:49 henning-msi kernel: [  446.726783] sd 0:0:0:0: [sda] Synchronizing SCSI cache
Mar 13 14:55:49 henning-msi kernel: [  446.727005] sd 0:0:0:0: [sda] Stopping disk
Mar 13 14:55:49 henning-msi kernel: [  446.730201] nuvoton-cir 00:09: disabled
Mar 13 14:55:49 henning-msi kernel: [  543.972121] PM: suspend of devices complete after 97245.560 msecs
Mar 13 14:55:49 henning-msi kernel: [  543.972419] PM: late suspend of devices complete after 0.290 msecs

My wireless network card is ;

01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8191SEvB Wireless LAN Controller (rev 10)
Subsystem: Micro-Star International Co., Ltd. Device 6897
Flags: bus master, fast devsel, latency 0, IRQ 16
I/O ports at b800 [size=256]
Memory at fe8fc000 (32-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: rtl8192se

I'm on ubuntu 13.10, linux kernel 3.11.0-18-generic

modinfo rtl8192se

filename:       /lib/modules/3.11.0-18-       generic/kernel/drivers/net/wireless/rtlwifi/rtl8192se/rtl8192se.ko
firmware:       rtlwifi/rtl8192sefw.bin
description:    Realtek 8192S/8191S 802.11n PCI wireless
license:        GPL
author:         Larry Finger    <Larry.Finger@lwfinger.net>
author:         Realtek WlanFAE <wlanfae@realtek.com>
author:         lizhaoming  <chaoming_li@realsil.com.cn>
srcversion:     BBE7CF1C21ED0CF95992D78
alias:          pci:v000010ECd00008174sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008173sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008172sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008171sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008192sv*sd*bc*sc*i*
depends:        rtlwifi,rtl_pci,mac80211
intree:         Y
vermagic:       3.11.0-18-generic SMP mod_unload modversions 686 
parm:           swenc:Set to 1 for software crypto (default 0)
 (bool)
parm:           ips:Set to 0 to not use link power save (default 1)
 (bool)
 parm:           swlps:Set to 1 to use SW control power save (default 0)
 (bool)
parm:           fwlps:Set to 1 to use FW control power save (default 1)
 (bool)
parm:           debug:Set debug level (0-5) (default 0) (int)

I think this problem is related to network manager vs power save. Because when I type

sudo pw-suspend

the laptop enter suspend ok, and resumes with wireless intact....?

To further investigate this I took a diff on /var/log/pm-suspend.log between suspend from commandline vs gui. When using the gui, I get

'failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory'

Could this somehow stall the proper suspend via gui ?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.