You are not logged in.

#1 2011-12-09 07:17:10

geeky_sh
Member
Registered: 2011-12-09
Posts: 2

Wireless not working after laptop wakes up from sleep mode

After my laptop wakes up from sleep, the wireless network stops. Even when the wireless is enabled, it is unable to scan the wireless networks. In order to make it working again, I have to restart my laptop. Here are some of the details that might be useful.

%lspci | grep Network
03:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)


%rfkill list all
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
1: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no

%iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated   Tx-Power=14 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

%iwlist wlan0 scan
wlan0             no scan results

%ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
        ether e0:cb:4e:fe:e2:00  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 45 

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

wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500  metric 1
        ether 1c:4b:d6:75:ae:67  txqueuelen 1000  (Ethernet)
        RX packets 22619  bytes 27403217 (26.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 22393  bytes 2574830 (2.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

/var/log/messages.log: (from the point where the laptop goes to sleep and wakes up)
Dec  9 12:28:12 localhost NetworkManager[745]: <info> (wlan0): now unmanaged
Dec  9 12:28:12 localhost NetworkManager[745]: <info> (wlan0): device state change: activated -> unmanaged (reason 'sleeping') [100 10 37]
Dec  9 12:28:12 localhost NetworkManager[745]: <info> (wlan0): deactivating device (reason 'sleeping') [37]
Dec  9 12:28:12 localhost dhcpcd[1927]: wlan0: removing interface
Dec  9 12:28:12 localhost NetworkManager[745]: <info> (wlan0): canceled DHCP transaction, DHCP client pid 1927
Dec  9 12:28:12 localhost NetworkManager[745]: <info> (wlan0): cleaning up...
Dec  9 12:28:12 localhost NetworkManager[745]: <info> (wlan0): taking down device.
Dec  9 12:28:13 localhost NetworkManager[745]: <warn> (pid 1927) unhandled DHCP event for interface wlan0
Dec  9 12:28:25 localhost NetworkManager[745]: <info> (wlan0): now managed
Dec  9 12:28:25 localhost NetworkManager[745]: <info> (wlan0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Dec  9 12:28:25 localhost NetworkManager[745]: <info> (wlan0): bringing up device.
Dec  9 12:28:25 localhost NetworkManager[745]: <info> (wlan0): preparing device.
Dec  9 12:28:25 localhost NetworkManager[745]: <info> (wlan0): deactivating device (reason 'managed') [2]
Dec  9 12:28:25 localhost kernel: [ 3612.851109] ADDRCONF(NETDEV_UP): wlan0: link is not ready
Dec  9 12:28:25 localhost NetworkManager[745]: <info> (wlan0): supplicant interface state: starting -> ready
Dec  9 12:28:25 localhost NetworkManager[745]: <info> (wlan0): device state change: unavailable -> disconnected (reason 'supplicant-available') [20 30 42]
Dec  9 12:28:25 localhost NetworkManager[745]: <info> (wlan0): supplicant interface state: ready -> inactive

%uname -r
3.1.4-1-ARCH
%uname -m
x86_64

I want to know what is going wrong here. Any help/suggestions will be useful. smile

Last edited by geeky_sh (2011-12-09 07:27:37)

Offline

#2 2011-12-09 09:53:48

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: Wireless not working after laptop wakes up from sleep mode

i think you have something similar to this

https://bugs.archlinux.org/task/8307

Offline

#3 2011-12-09 16:25:24

Bhran
Member
From: Santiago, Chile
Registered: 2011-09-29
Posts: 52
Website

Re: Wireless not working after laptop wakes up from sleep mode

If that didn't help try the solutions described No Wireless after suspend with ath5k

Offline

#4 2011-12-10 16:20:49

geeky_sh
Member
Registered: 2011-12-09
Posts: 2

Re: Wireless not working after laptop wakes up from sleep mode

Well, the above two links have the problem similar to mine but not exactly. In first one there is a problem with network manager - that it is unable to restart after coming from sleep mode while that is not a problem in my case and I tried all the solutions provided in the second link, but didn't work.
What I figured is when I execute '#pm-suspend' and then close the lid. Then, after I open the lid I wireless works fine. 'pm-suspend' is not invoked if I close the lid. So I needed to invoke the above command when an acpi event is generated when I close the lid. So here is what I added in the /etc/acpi/handler.sh file

button/lid)
     case "$3" in
           close)
               (sudo /usr/sbin/pm-suspend)  #added
               ;;
           open)
          ...

This works fine for now. Still, I don't know why this solution works - Why executing pm-suspend solves my problem?

Offline

Board footer

Powered by FluxBB