Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No wireless after hibernating
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
bpoi
n00b
n00b


Joined: 14 Jan 2003
Posts: 23

PostPosted: Sun Jul 02, 2017 8:51 pm    Post subject: No wireless after hibernating Reply with quote

Hi,

I'm using Gentoo on an MS Surface Pro. When I reboot the machine, wireless networking works fine. After I hit the power button to hibernate and then press it again to wake the machine back up, the wireless network no longer works. Trying to restart, e.g., dhcpd or wpa_supplicant reports that mlan0 doesn't exist.

I've install the standard pm-utils, and I'm using XFCE. Whether I configure the power button to hibernate or suspend results in the same issue -- the machine wakes up and everything is fine except for the lack of networking.

Here is my /var/log/messages right after I press the power button to hibernate and then when I wake it back up:

Code:

Jul  2 16:22:41 dusty kernel: [   85.646455] PM: Syncing filesystems ... done.
Jul  2 16:22:41 dusty kernel: [   85.649666] Freezing user space processes ... (elapsed 0.001 seconds) done.
Jul  2 16:22:41 dusty kernel: [   85.650954] Freezing remaining freezable tasks ... (elapsed 0.000 seconds) done.
Jul  2 16:22:41 dusty kernel: [   85.651968] Suspending console(s) (use no_console_suspend to debug)
Jul  2 16:22:41 dusty kernel: [   85.652231] sd 0:0:0:0: [sda] Synchronizing SCSI cache
Jul  2 16:22:41 dusty kernel: [   85.652288] sd 0:0:0:0: [sda] Stopping disk
Jul  2 16:22:41 dusty kernel: [   85.652454] ACPI : EC: event blocked
Jul  2 16:22:41 dusty kernel: [   85.655474] usb 2-1.3: info: successfully disconnected from 10:c3:7b:e2:41:94: reason code 3
Jul  2 16:22:41 dusty kernel: [   85.655820] usb 2-1.3: CMD_RESP: cmd 0x10f error, result=0x2
Jul  2 16:22:41 dusty kernel: [   85.658102] usb 2-1.3: None of the WOWLAN triggers enabled
Jul  2 16:22:41 dusty kernel: [   86.153574] PM: suspend of devices complete after 501.441 msecs
Jul  2 16:22:41 dusty kernel: [   86.165980] PM: late suspend of devices complete after 12.401 msecs
Jul  2 16:22:41 dusty kernel: [   86.166343] ACPI : EC: interrupt blocked
Jul  2 16:22:41 dusty kernel: [   86.166513] ehci-pci 0000:00:1d.0: System wakeup enabled by ACPI
Jul  2 16:22:41 dusty kernel: [   86.166552] ehci-pci 0000:00:1a.0: System wakeup enabled by ACPI
Jul  2 16:22:41 dusty kernel: [   86.177935] PM: noirq suspend of devices complete after 11.951 msecs
Jul  2 16:22:41 dusty kernel: [   86.178265] ACPI: Preparing to enter system sleep state S3
Jul  2 16:22:41 dusty kernel: [   86.178507] ACPI : EC: EC stopped
Jul  2 16:22:41 dusty kernel: [   86.178508] PM: Saving platform NVS memory
Jul  2 16:22:41 dusty kernel: [   86.178558] Disabling non-boot CPUs ...
Jul  2 16:22:41 dusty kernel: [   86.180128] smpboot: CPU 1 is now offline
Jul  2 16:22:41 dusty kernel: [   86.191594] smpboot: CPU 2 is now offline
Jul  2 16:22:41 dusty kernel: [   86.201551] smpboot: CPU 3 is now offline
Jul  2 16:22:41 dusty kernel: [   86.205729] ACPI: Low-level resume complete
Jul  2 16:22:41 dusty kernel: [   86.205790] ACPI : EC: EC started
Jul  2 16:22:41 dusty kernel: [   86.205791] PM: Restoring platform NVS memory
Jul  2 16:22:41 dusty kernel: [   86.206151] Suspended for 42.462 seconds
Jul  2 16:22:41 dusty kernel: [   86.206215] Enabling non-boot CPUs ...
Jul  2 16:22:41 dusty kernel: [   86.208947] x86: Booting SMP configuration:
Jul  2 16:22:41 dusty kernel: [   86.208949] smpboot: Booting Node 0 Processor 1 APIC 0x2
Jul  2 16:22:41 dusty kernel: [   86.211558]  cache: parent cpu1 should not be sleeping
Jul  2 16:22:41 dusty kernel: [   86.212295] CPU1 is up
Jul  2 16:22:41 dusty kernel: [   86.215994] smpboot: Booting Node 0 Processor 2 APIC 0x1
Jul  2 16:22:41 dusty kernel: [   86.218686]  cache: parent cpu2 should not be sleeping
Jul  2 16:22:41 dusty kernel: [   86.219247] CPU2 is up
Jul  2 16:22:41 dusty kernel: [   86.224952] smpboot: Booting Node 0 Processor 3 APIC 0x3
Jul  2 16:22:41 dusty kernel: [   86.227468]  cache: parent cpu3 should not be sleeping
Jul  2 16:22:41 dusty kernel: [   86.228020] CPU3 is up
Jul  2 16:22:41 dusty kernel: [   86.231921] ACPI: Waking up from system sleep state S3
Jul  2 16:22:41 dusty kernel: [   86.651089] ACPI : EC: interrupt unblocked
Jul  2 16:22:41 dusty kernel: [   86.662969] ehci-pci 0000:00:1a.0: System wakeup disabled by ACPI
Jul  2 16:22:41 dusty kernel: [   86.663004] ehci-pci 0000:00:1d.0: System wakeup disabled by ACPI
Jul  2 16:22:41 dusty kernel: [   86.666793] PM: noirq resume of devices complete after 15.806 msecs
Jul  2 16:22:41 dusty kernel: [   86.667125] PM: early resume of devices complete after 0.316 msecs
Jul  2 16:22:41 dusty kernel: [   86.667221] ACPI : button: The lid device is not compliant to SW_LID.
Jul  2 16:22:41 dusty kernel: [   86.667225] ACPI : EC: event unblocked
Jul  2 16:22:41 dusty kernel: [   86.667735] sd 0:0:0:0: [sda] Starting disk
Jul  2 16:22:41 dusty kernel: [   86.668428] rtc_cmos 00:02: System wakeup disabled by ACPI
Jul  2 16:22:41 dusty kernel: [   86.890757] usb 2-1.6: reset full-speed USB device number 5 using ehci-pci
Jul  2 16:22:41 dusty kernel: [   86.976477] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Jul  2 16:22:41 dusty kernel: [   86.977527] ata1.00: configured for UDMA/100
Jul  2 16:22:41 dusty kernel: [   89.028823] PM: resume of devices complete after 2361.574 msecs
Jul  2 16:22:41 dusty kernel: [   89.029060] Restarting tasks ...
Jul  2 16:22:41 dusty kernel: [   89.029205] usb 2-1.3: USB disconnect, device number 7
Jul  2 16:22:41 dusty kernel: [   89.029564] usb 2-1.3: mwifiex_usb_disconnect: removing card
Jul  2 16:22:41 dusty kernel: [   89.029698] usb 2-1.3: info: shutdown mwifiex...
Jul  2 16:22:41 dusty kernel: [   89.030541] done.
Jul  2 16:22:41 dusty kernel: [   89.032646] usb 2-1.3: PREP_CMD: device in suspended state
Jul  2 16:22:41 dusty kernel: [   89.032656] usb 2-1.3: PREP_CMD: device in suspended state
Jul  2 16:22:41 dusty root: ACPI event unhandled: processor LNXCPU:00 00000081 00000000
Jul  2 16:22:41 dusty root: ACPI event unhandled: processor LNXCPU:01 00000081 00000000
Jul  2 16:22:41 dusty root: ACPI event unhandled: processor LNXCPU:02 00000081 00000000
Jul  2 16:22:41 dusty root: ACPI event unhandled: processor LNXCPU:03 00000081 00000000


Here is my pm-suspend.log:

Code:

Initial commandline parameters:
Blacklisting 01grub.
Blacklisting 90clock.
Sun Jul  2 16:21:55 EDT 2017: Running hooks for suspend.
Running hook /usr/lib64/pm-utils/sleep.d/00logging suspend suspend:
Linux dusty 4.9.16-gentoo #7 SMP Sat Jun 10 16:43:07 EDT 2017 x86_64 Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz GenuineIntel GNU/Linux
Module                  Size  Used by
iwlwifi               175618  0
iwl4965                88224  0
hid_multitouch         10824  0
iwlegacy               45185  1 iwl4965
ipw2200               120230  0
libipw                 26398  1 ipw2200
lib80211                3378  1 libipw
x86_pkg_temp_thermal     5445  0
mwifiex_usb            11225  0
mwifiex               254524  1 mwifiex_usb
usbhid                 35756  0
efivarfs                5343  1
              total        used        free      shared  buff/cache   available
Mem:        3927756      131264     3607536       49316      188956     3695832
Swap:        524284           0      524284
/usr/lib64/pm-utils/sleep.d/00logging suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/00powersave suspend suspend:
Blacklisting 01grub.
Blacklisting 90clock.
/usr/lib64/pm-utils/sleep.d/00powersave suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/01grub suspend suspend:
/usr/lib64/pm-utils/sleep.d/01grub suspend suspend: disabled.

Running hook /usr/lib64/pm-utils/sleep.d/50unload_alx suspend suspend:
/usr/lib64/pm-utils/sleep.d/50unload_alx suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/75modules suspend suspend:
/usr/lib64/pm-utils/sleep.d/75modules suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/90clock suspend suspend:
/usr/lib64/pm-utils/sleep.d/90clock suspend suspend: disabled.

Running hook /usr/lib64/pm-utils/sleep.d/94cpufreq suspend suspend:
/usr/lib64/pm-utils/sleep.d/94cpufreq suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/95led suspend suspend:
/usr/lib64/pm-utils/sleep.d/95led suspend suspend: not applicable.

Running hook /usr/lib64/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:
Kernel modesetting video driver detected, not using quirks.
/usr/lib64/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/99video suspend suspend:
kernel.acpi_video_flags = 0
/usr/lib64/pm-utils/sleep.d/99video suspend suspend: success.

Sun Jul  2 16:21:55 EDT 2017: performing suspend
Sun Jul  2 16:22:41 EDT 2017: Awake.
Sun Jul  2 16:22:41 EDT 2017: Running hooks for resume
Running hook /usr/lib64/pm-utils/sleep.d/99video resume suspend:
/usr/lib64/pm-utils/sleep.d/99video resume suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/98video-quirk-db-handler resume suspend:
/usr/lib64/pm-utils/sleep.d/98video-quirk-db-handler resume suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/95led resume suspend:
/usr/lib64/pm-utils/sleep.d/95led resume suspend: not applicable.

Running hook /usr/lib64/pm-utils/sleep.d/94cpufreq resume suspend:
/usr/lib64/pm-utils/sleep.d/94cpufreq resume suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/90clock resume suspend:
/usr/lib64/pm-utils/sleep.d/90clock resume suspend: disabled.

Running hook /usr/lib64/pm-utils/sleep.d/75modules resume suspend:
Reloaded unloaded modules.
/usr/lib64/pm-utils/sleep.d/75modules resume suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/50unload_alx resume suspend:
/usr/lib64/pm-utils/sleep.d/50unload_alx resume suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/01grub resume suspend:
/usr/lib64/pm-utils/sleep.d/01grub resume suspend: disabled.

Running hook /usr/lib64/pm-utils/sleep.d/00powersave resume suspend:
Blacklisting 01grub.
Blacklisting 90clock.
/usr/lib64/pm-utils/sleep.d/00powersave resume suspend: success.

Running hook /usr/lib64/pm-utils/sleep.d/00logging resume suspend:
/usr/lib64/pm-utils/sleep.d/00logging resume suspend: success.

Sun Jul  2 16:22:42 EDT 2017: Finished.


At about the tenth line from the bottom /var/log/messages seems to indicate that the Wifi "card" is no longer there. I should also mention that lsmod returns identical results before I hibernate and after I hibernate.

Any ideas?

Thanks!
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Sun Jul 02, 2017 9:29 pm    Post subject: Reply with quote

On a completely different machine (a Thinkpad) I had a similar problem, and the way
around it was to unload the wireless module before hibernation and reload afterward.
ISTR there was another module (bluetooth?) I had to treat the same way.

I always meant to automate the process, but I used hibernate so little that I never did.

Will
Back to top
View user's profile Send private message
bpoi
n00b
n00b


Joined: 14 Jan 2003
Posts: 23

PostPosted: Sun Jul 02, 2017 11:11 pm    Post subject: Reply with quote

Thanks.

Before hibernating I did

Code:

rmmod iwlwifi
rmmod iwl4965
rmmod iwlegacy
rmmod ipw2200
rmmod libipw
rmmod lib80211
rmmod mwifiex_usb
rmmod mwifiex


lsmod confirmed I did remove those. I pressed the power button, waited a few seconds, then pressed it again to wake back up. I then typed

Code:

modprobe -a iwlwifi iwl4965 iwlegacy ipw2200 libipw lib80211 mwifiex_usb mwifiex


lsmod indicated they all got reloaded. However, then I tried restarting the wireless and still got an error:

Code:

/etc/init.d/wpa_supplicant restart
* Could not find a wireless interface
* ERROR: wpa_supplicant failed to start


I must say getting this Surface to work with Linux has been a challenge!

Any ideas?
Back to top
View user's profile Send private message
sebB
l33t
l33t


Joined: 02 Mar 2011
Posts: 732
Location: S.O. France

PostPosted: Fri Jul 07, 2017 1:23 pm    Post subject: Reply with quote

Can you post before and after resume
Code:
lsmod, iwconfig, ifconfig, rfkill list
Back to top
View user's profile Send private message
bpoi
n00b
n00b


Joined: 14 Jan 2003
Posts: 23

PostPosted: Sat Jul 08, 2017 12:50 am    Post subject: Reply with quote

Thanks for looking into this.

Here's the before:

Code:

[root@dusty]# lsmod > before 2>&1

Module                  Size  Used by
iwlwifi               175618  0
iwl4965                88224  0
hid_multitouch         10824  0
iwlegacy               45185  1 iwl4965
ipw2200               120230  0
libipw                 26398  1 ipw2200
lib80211                3378  1 libipw
mwifiex_usb            11225  0
x86_pkg_temp_thermal     5445  0
mwifiex               254524  1 mwifiex_usb
usbhid                 35756  0
efivarfs                5343  1

[root@dusty]# iwconfig >> before 2>&1

lo        no wireless extensions.

sit0      no wireless extensions.

mlan0     IEEE 802.11  ESSID:"Poiholdings" 
          Mode:Managed  Frequency:5.785 GHz  Access Point: 10:C3:7B:E2:41:94   
          Bit Rate=300 Mb/s   Tx-Power=12 dBm   
          Retry short limit:9   RTS thr=2347 B   Fragment thr=2346 B   
          Encryption key:off
          Power Management:on
          Link Quality=57/70  Signal level=-53 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


[root@dusty]# ifconfig >> before 2>&1

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 56  bytes 3640 (3.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 56  bytes 3640 (3.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

mlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.9  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::62e5:d078:83e1:cec  prefixlen 64  scopeid 0x20<link>
        ether 60:45:bd:de:7f:86  txqueuelen 1000  (Ethernet)
        RX packets 235  bytes 19011 (18.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 22  bytes 1916 (1.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


[root@dusty]# rfkill list >> before 2>&1

0: phy0: Wireless LAN
   Soft blocked: no
   Hard blocked: no


And here's the after:

Code:

[root@dusty]# lsmod > after 2>&1

Module                  Size  Used by
mwifiex_usb            11225  0
mwifiex               254524  1 mwifiex_usb
iwlwifi               175618  0
iwl4965                88224  0
iwlegacy               45185  1 iwl4965
ipw2200               120230  0
libipw                 26398  1 ipw2200
lib80211                3378  1 libipw
hid_multitouch         10824  0
x86_pkg_temp_thermal     5445  0
usbhid                 35756  0
efivarfs                5343  1

[root@dusty]# iwconfig >> after 2>&1

lo        no wireless extensions.

sit0      no wireless extensions.


[root@dusty]# ifconfig >> after 2>&1

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 56  bytes 3640 (3.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 56  bytes 3640 (3.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


[root@dusty]# rfkill list >> after 2>&1


As best I can tell the system completely forgets there's a wireless adapter, but I don't know how to fix it.

Thanks.
Back to top
View user's profile Send private message
Frautoincnam
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2017
Posts: 76

PostPosted: Sat Jul 08, 2017 3:59 am    Post subject: Reply with quote

With a fujitsu laptop, I had exactly the same problem, and I had to add module acer_wmi to my kernel, and unload it and ohci_pci before suspend/hibernate, with :
Code:

# cat /etc/pm/config.d/unload_modules
SUSPEND_MODULES="$SUSPEND_MODULES acer_wmi ohci_pci"


Edit : I believe I had to unload ohci_pci for the mouse.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum