when I put my laptop( Acer Aspire E1-521) to sleep and wake it up(no matter how much time it was in sleep) wifi cannot connect, it just says connecting and sometimes it asks me for a password 5 times with a delay about 20-30 seconds
OS:
Code: Select all
cat /proc/version
OS: system settings->system info
Linux Mint 17 Cinnamon 64 bit
All updates are installed
I tried:
#restarting the wifi kernel module
-
Code: Select all
sudo modprobe -rv ath9k
#restarting the network manager
-
Code: Select all
sudo restart network-manager
#putting batch scripts into /etc/pm/sleep.d which did all kinds of stuff, not all at once, tested it in plenty of conbinations
-restore network manager from sleep, this wasnt the problem because "nmcli nm" showed disconnected or connecting
Code: Select all
case "${1}" in
resume|thaw)
nmcli nm sleep false
;;
esac
Code: Select all
case "${1}" in
resume|thaw)
killall wpa_supplicant
;;
esac
#tried downloading the backward compatible drivers/modules from kernel.org but "sudo make" failed to compile(some header problem), I newer compiled anything open source so I dont understand how it works for now
After some time the connection suceeds but it's acting wierd, huge ping values:
---google.hr/192.168.1.1
---Normal Win7/Linux: 20/1
---Huge after wakeup: 5000-100000/200-6000
and google.hr ping sometimes is rising with every new ping, example:2000,4000,5000,12000
and after some time it disconnects again
Restarting the PC fixes the problem but no use of sleep then
---lspci -v #only WiFi device, if you need all I will give them
07:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
Subsystem: Lite-On Communications Inc Device 6617
Flags: bus master, fast devsel, latency 0, IRQ 18
Memory at f0100000 (64-bit, non-prefetchable)
Expansion ROM at f0500000 [disabled]
Capabilities: [40] Power Management version 2
Capabilities: [50] MSI: Enable- Count=1/4 Maskable+ 64bit+
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
Kernel driver in use: ath9k
---lsmod
Module Size Used by
acer_wmi 32522 0
sparse_keymap 13948 1 acer_wmi
kvm_amd 59987 0
arc4 12608 2
snd_hda_codec_realtek 61438 1
kvm 451511 1 kvm_amd
bnep 19624 2
ath9k 164164 0
rfcomm 69160 0
snd_hda_codec_hdmi 46207 1
uvcvideo 80885 0
ath9k_common 13551 1 ath9k
bluetooth 395423 10 bnep,rfcomm
ath9k_hw 453856 2 ath9k_common,ath9k
videobuf2_vmalloc 13216 1 uvcvideo
snd_hda_intel 52355 5
videobuf2_memops 13362 1 videobuf2_vmalloc
videobuf2_core 40664 1 uvcvideo
ath 28698 3 ath9k_common,ath9k,ath9k_hw
snd_seq_midi 13324 0
snd_hda_codec 192906 3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_seq_midi_event 14899 1 snd_seq_midi
snd_hwdep 13602 1 snd_hda_codec
videodev 134688 2 uvcvideo,videobuf2_core
mac80211 626489 1 ath9k
joydev 17381 0
dm_multipath 22873 0
snd_rawmidi 30144 1 snd_seq_midi
scsi_dh 14882 1 dm_multipath
serio_raw 13462 0
snd_pcm 102099 3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
k10temp 13126 0
fglrx 8085343 123
rtsx_pci_ms 18151 0
cfg80211 484040 3 ath,ath9k,mac80211
snd_seq 61560 2 snd_seq_midi_event,snd_seq_midi
memstick 16966 1 rtsx_pci_ms
snd_page_alloc 18710 2 snd_pcm,snd_hda_intel
binfmt_misc 17468 1
snd_seq_device 14497 3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer 29482 2 snd_pcm,snd_seq
i2c_piix4 22155 0
snd 69238 21 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_seq_midi
amd_iommu_v2 19054 1 fglrx
soundcore 12680 1 snd
mac_hid 13205 0
parport_pc 32701 0
ppdev 17671 0
lp 17759 0
parport 42348 3 lp,ppdev,parport_pc
dm_mirror 22135 0
dm_region_hash 20862 1 dm_mirror
dm_log 18411 2 dm_region_hash,dm_mirror
rtsx_pci_sdmmc 23274 0
psmouse 102222 0
rtsx_pci 45956 2 rtsx_pci_ms,rtsx_pci_sdmmc
atl1c 46086 0
ahci 25819 2
wmi 19177 1 acer_wmi
libahci 32168 1 ahci
video 19476 1 acer_wmi
On windows 7 I dont have networking problems after wakeup, only problem in win7 that I managed to workaround is that after some random time the network does not work, it says it's connected but pinging google.hr or 192.168.1.1 shows an error, I solved this by running a python script that disconnects and connects again when router(192.168.1.1) ping errors occurs, it's probably a hardware issue because the same thing occurs on linux but the workaround proved to be good
can you please help me fix the problem after PC sleep, I tried to find the solution all day but no luck
if you need any other info I will be happy to give it
Thanks in advance.
--sudo /usr/lib/linuxmint/mintWifi/mintWifi.py #Before sleep
Code: Select all
-------------------------
* I. scanning WIFI PCI devices...
-- Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
==> PCI ID = 168c:0032 (rev 01)
-------------------------
* II. querying ndiswrapper...
-------------------------
* III. querying iwconfig...
eth0 no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:"Thomson40C321"
Mode:Managed Frequency:2.437 GHz Access Point: A4:B1:E9:2F:0D:93
Bit Rate=48 Mb/s Tx-Power=16 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=41/70 Signal level=-69 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:560 Missed beacon:0
-------------------------
* IV. querying ifconfig...
eth0 Link encap:Ethernet HWaddr b8:88:e3:56:f9:c3
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1875 errors:0 dropped:0 overruns:0 frame:0
TX packets:1875 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:292389 (292.3 KB) TX bytes:292389 (292.3 KB)
wlan0 Link encap:Ethernet HWaddr 20:68:9d:b9:c5:e9
inet addr:192.168.1.25 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2268:9dff:feb9:c5e9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:113299 errors:0 dropped:0 overruns:0 frame:0
TX packets:101677 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:28105346 (28.1 MB) TX bytes:9709846 (9.7 MB)
-------------------------
* V. querying DHCP...
RTNETLINK answers: File exists
-------------------------
* VI. querying nslookup google.com...
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: google.com
Address: 208.117.229.251
Name: google.com
Address: 208.117.229.244
Name: google.com
Address: 208.117.229.245
Name: google.com
Address: 208.117.229.246
Name: google.com
Address: 208.117.229.247
Name: google.com
Address: 208.117.229.248
Name: google.com
Address: 208.117.229.249
Name: google.com
Address: 208.117.229.250
--sudo /usr/lib/linuxmint/mintWifi/mintWifi.py #After sleep
Code: Select all
-------------------------
* I. scanning WIFI PCI devices...
-- Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
==> PCI ID = 168c:0032 (rev 01)
-------------------------
* II. querying ndiswrapper...
-------------------------
* III. querying iwconfig...
eth0 no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=16 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
-------------------------
* IV. querying ifconfig...
eth0 Link encap:Ethernet HWaddr b8:88:e3:56:f9:c3
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1897 errors:0 dropped:0 overruns:0 frame:0
TX packets:1897 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:294587 (294.5 KB) TX bytes:294587 (294.5 KB)
wlan0 Link encap:Ethernet HWaddr 20:68:9d:b9:c5:e9
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
-------------------------
* V. querying DHCP...
-------------------------
* VI. querying nslookup google.com...
;; connection timed out; no servers could be reached