You are not logged in.

#1 2013-10-31 16:19:07

olvar
Member
Registered: 2009-11-13
Posts: 97

Wifi modules and suspend issues

I can connect to my wireless network by using the usual commands

ifconfig wlan0 up
wpa_supplicant -B -i wlan0 -c wpa_conf
dhcpcd wlan0

But if I do

 systemctl hibernate 

the wlan0 interface is missing after resuming the computer. If I try to ifconfig it up, it fails saying that the interface is missing.

I am using the ath5k kernel module, and I've read that sometimes it is needed to unload the modules before suspending and reloading them after coming back up, but I've found that if I do

rmmod ath5k ath mac80211 cfg80211
modprobe ath5k

although wlan0 is present, dhcpcd has problems leasing an address so I cannot connect to the internet. So, even if I managed to unload the modules before hibernating and then reload them, it seems I would fail to reconnect.

Anyone has any suggestions?

The wifi adapter is recognized as

lspci -nnk
...
02:00.0 Ethernet controller [0200]: Qualcomm Atheros AR242x / AR542x Wireless Network Adapter (PCI-Express) [168c:001c] (rev 01)                                                               
        Subsystem: AMBIT Microsystem Corp. AR5BXB63 802.11bg NIC [1468:0428]
        Kernel driver in use: ath5k
        Kernel modules: ath5k
...

and rfkill before suspending says

rfkill list all
0: acer-wireless: Wireless LAN
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no

but after resuming, it only shows the 0:acer-wireless part.

Thank you very much for your help!

Last edited by olvar (2013-10-31 16:20:34)

Offline

#2 2013-11-03 08:55:55

legolas558
Member
Registered: 2009-09-08
Posts: 97

Re: Wifi modules and suspend issues

I have the same problem, happening with r8712u and suspend.

I need to replug the wifi usb dongle, and to restart the network interface with:

sudo /usr/lib/network/network start netctlProfile

this is stinky, since I also had to change the interface name in the profile! that must not change across suspend/hibernate, not even reboots

something broken here


.-.   ,---,---.--.
| |__  \ \ \ \`//.
`----'`--'`--'`--'

Offline

Board footer

Powered by FluxBB