WiFi unable to connect after wake up

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
mirkogrcic

WiFi unable to connect after wake up

Post by mirkogrcic »

Hello,
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
Linux version 3.13.0-24-generic (buildd@batsu) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014

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
----the output says it removed these modules: ath9k, ath9k_common, ath9k_hw, mac80211, cfg80211
#restarting the network manager
-

Code: Select all

sudo restart network-manager
#putting files into /etc/pm/config.d with "SUSPEND_MODULES=ath9k"
#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
-killed wpa_supplicant process or atleast I think it is a process

Code: Select all

case "${1}" in
	resume|thaw)
	killall wpa_supplicant
		;;
esac
-and some others which I dont remember anymore
#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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
mirkogrcic

Re: WiFi unable to connect after wake up

Post by mirkogrcic »

I tried hibernating and so far after I turned it back on it worked well, the ping(google and 192.168.1.1) continued without any timeouts or large pings.
at least hibernation is working well, I hope the sleep problem will be fixed because sometimes I need fast boot but most of the times Hibernation is inuf

if after this you have any idea why sleep is acting that way and need some testing I will be happy to test it :)
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: WiFi unable to connect after wake up

Post by JeremyB »

mirkogrcic wrote:I tried hibernating and so far after I turned it back on it worked well, the ping(google and 192.168.1.1) continued without any timeouts or large pings.
at least hibernation is working well, I hope the sleep problem will be fixed because sometimes I need fast boot but most of the times Hibernation is inuf

if after this you have any idea why sleep is acting that way and need some testing I will be happy to test it :)
I would like you to use Mint Update Manager, click refresh then View/Linux Kernels and install a newer kernel to see if the issue was fixed at the kernel level. I have the same wifi card on a Lenovo with 3.13.0-43 and the wifi survives sleep although I haven't tried hibernation. I do know that bluetooth rarely works after sleep but that it a different issue
mirkogrcic

Re: WiFi unable to connect after wake up

Post by mirkogrcic »

JeremyB wrote:
mirkogrcic wrote:I tried hibernating and so far after I turned it back on it worked well, the ping(google and 192.168.1.1) continued without any timeouts or large pings.
at least hibernation is working well, I hope the sleep problem will be fixed because sometimes I need fast boot but most of the times Hibernation is inuf

if after this you have any idea why sleep is acting that way and need some testing I will be happy to test it :)
I would like you to use Mint Update Manager, click refresh then View/Linux Kernels and install a newer kernel to see if the issue was fixed at the kernel level. I have the same wifi card on a Lenovo with 3.13.0-43 and the wifi survives sleep although I haven't tried hibernation. I do know that bluetooth rarely works after sleep but that it a different issue
Thanks for your reply :)
I had the 3.13.0-24(3.13.9) version installed which is recommended,
I installed your version (3.13.0-43) and restarted linux when it was done,
turned on "ping google.hr" which pinged fine(50-100 ms), I put linux to sleep and woke it up after about 5 seconds, logged in and the ping was 1000-20000
after putting it into hibernation and turning it on the ping was again normal, after again putting the computer into sleep for a longer period (20 secs) and turning it back on,
pings failed "Destination host unreachable", after turning the WiFI card on and off using the hardware switch keys Fn+F3(could probably just reconnect) the ping was 1000-20000 again,
tomorrow I will try it again using the scripts that failed on the last kernel, maybe I'll have luck,

Do you recommend upgrading the kernel more? to 3.16 latest maybe?
nirav82
Level 1
Level 1
Posts: 1
Joined: Sat Dec 27, 2014 1:53 am

Re: WiFi unable to connect after wake up

Post by nirav82 »

I am a new user to Mint. I recently installed the Mint Cinnamon a few days ago. Noticed I have a similiar problem as well, the computer won't connect to wifi after resuming from suspend state. Since I am new to the whole Linux environment not sure what to do. The only work around I am using is to reboot. It's not the best solution, but if someone knows how to fix this? Maybe some sort of update patch? Any help will be great.
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: WiFi unable to connect after wake up

Post by JeremyB »

mirkogrcic wrote:
JeremyB wrote:
mirkogrcic wrote:I tried hibernating and so far after I turned it back on it worked well, the ping(google and 192.168.1.1) continued without any timeouts or large pings.
at least hibernation is working well, I hope the sleep problem will be fixed because sometimes I need fast boot but most of the times Hibernation is inuf

if after this you have any idea why sleep is acting that way and need some testing I will be happy to test it :)
I would like you to use Mint Update Manager, click refresh then View/Linux Kernels and install a newer kernel to see if the issue was fixed at the kernel level. I have the same wifi card on a Lenovo with 3.13.0-43 and the wifi survives sleep although I haven't tried hibernation. I do know that bluetooth rarely works after sleep but that it a different issue
Thanks for your reply :)
I had the 3.13.0-24(3.13.9) version installed which is recommended,
I installed your version (3.13.0-43) and restarted linux when it was done,
turned on "ping google.hr" which pinged fine(50-100 ms), I put linux to sleep and woke it up after about 5 seconds, logged in and the ping was 1000-20000
after putting it into hibernation and turning it on the ping was again normal, after again putting the computer into sleep for a longer period (20 secs) and turning it back on,
pings failed "Destination host unreachable", after turning the WiFI card on and off using the hardware switch keys Fn+F3(could probably just reconnect) the ping was 1000-20000 again,
tomorrow I will try it again using the scripts that failed on the last kernel, maybe I'll have luck,

Do you recommend upgrading the kernel more? to 3.16 latest maybe?
There is a chance that 3.13.0-43 is newer than a 3.16 kernel, as Ubuntu maintains the 3.13-0 kernel by using patches from the latest kernels, one other thing to try

Code: Select all

sudo iwconfig wlan0 power on
If it happens to make it worse you can change back with

Code: Select all

sudo iwconfig wlan0 power off
mirkogrcic

Re: WiFi unable to connect after wake up

Post by mirkogrcic »

JeremyB wrote:There is a chance that 3.13.0-43 is newer than a 3.16 kernel, as Ubuntu maintains the 3.13-0 kernel by using patches from the latest kernels, one other thing to try

Code: Select all

sudo iwconfig wlan0 power on
If it happens to make it worse you can change back with

Code: Select all

sudo iwconfig wlan0 power off
I tried that first command before and after sleep and I got an error

Code: Select all

Error for wireless request "Set Power Management" (8B2C) :
    SET failed on device wlan0 ; Operation not supported.
any ideas?

when I type

Code: Select all

sudo iwconfig wlan0
I get

Code: Select all

wlan0     IEEE 802.11bgn  ESSID:"[NAME]"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: [xx:xx:xx:xx:xx:xx]   
          Bit Rate=1 Mb/s   Tx-Power=16 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=44/70  Signal level=-66 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:375  Invalid misc:1   Missed beacon:0
Another thing that happened to me before trying the code above:
Last night I put linux to hibernation, today I booted linux and the screen was black for 5 minutes, I tried alt+f4 to bring the console and it was empty(console cursor blinking top left), after trying other function keys I couldn't see the console cursor anymore, then I shut it down long pressing the power key and booted it again fine(hibernation memory was lost)
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: WiFi unable to connect after wake up

Post by JeremyB »

Are there any errors in dmesg after sleep

Code: Select all

dmesg | tail -20
mirkogrcic

Re: WiFi unable to connect after wake up

Post by mirkogrcic »

JeremyB wrote:Are there any errors in dmesg after sleep

Code: Select all

dmesg | tail -20
I don't think there is an error(if I understand it good) but the ping is 1000+

Code: Select all

[  237.907339] ata1.00: configured for UDMA/133
[  237.921954] sd 0:0:0:0: [sda] Starting disk
[  238.027057] PM: resume of devices complete after 2836.817 msecs
[  238.027571] PM: Finishing wakeup.
[  238.027575] Restarting tasks ... done.
[  238.067128] cfg80211: World regulatory domain updated:
[  238.067141] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[  238.067147] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  238.067152] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  238.067156] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[  238.067160] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  238.067164] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  238.654220] video LNXVIDEO:00: Restoring backlight state
[  238.907277] wlan0: authenticate with MAC0
[  238.922112] wlan0: send auth to MAC0 (try 1/3)
[  239.930936] wlan0: authenticated
[  239.963061] wlan0: associate with MAC0 (try 1/3)
[  241.116198] wlan0: associate with MAC0 (try 2/3)
[  241.964911] wlan0: RX AssocResp from MAC0 (capab=0x411 status=0 aid=1)
[  241.965429] wlan0: associated
MAC0 is probably my router mac address
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: WiFi unable to connect after wake up

Post by JeremyB »

Might as well see if this trick will fix it

Code: Select all

gksudo gedit /etc/default/grub
Then find the line

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
And change it to

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=linux"
save, exit program, then

Code: Select all

sudo update-grub
Reboot and see
mirkogrcic

Re: WiFi unable to connect after wake up

Post by mirkogrcic »

unfortunately it didn't work :( but I noticed this message in the dmesg log

systemd-hostnamed[3507]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: WiFi unable to connect after wake up

Post by JeremyB »

mirkogrcic wrote:unfortunately it didn't work :( but I noticed this message in the dmesg log

systemd-hostnamed[3507]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!
I think that is fixed with

Code: Select all

sudo apt-get install libnss-myhostname
I am out of ideas on how to get wifi back after suspend and google hasn't been much help finding something specific to your laptop.

Code: Select all

dmesg | grep -i acpi
mirkogrcic

Re: WiFi unable to connect after wake up

Post by mirkogrcic »

JeremyB wrote:I think that is fixed with

Code: Select all

sudo apt-get install libnss-myhostname
I am out of ideas on how to get wifi back after suspend and google hasn't been much help finding something specific to your laptop.

Code: Select all

dmesg | grep -i acpi
Thank you for trying to help me I appreciate it :)

Installing that didn't help, now after wake up it always asks for a password, when it connects after a long time(+-20sec) the ping is still 1000+
will try removing it later today to see if it will still ask for a password

In the ACPI filtered log I found two error lines, maybe they are the problem

Code: Select all

[  281.635266] ACPI Error: [SSZE] Namespace lookup failure, AE_ALREADY_EXISTS (20131115/dsfield-211)
[  281.635281] ACPI Error: Method parse/execution failed [\_SB_.ACAD._PSR] (Node ffff88017e7497f8), AE_ALREADY_EXISTS (20131115/psparse-536)

are the 281... numbers kernel time in seconds?

here is the full log when starting sleep

Code: Select all

[  281.219533] ehci-pci 0000:00:13.2: System wakeup enabled by ACPI
[  281.235077] ohci-pci 0000:00:13.0: System wakeup enabled by ACPI
[  281.235128] ehci-pci 0000:00:12.2: System wakeup enabled by ACPI
[  281.251092] ohci-pci 0000:00:12.0: System wakeup enabled by ACPI
[  281.251241] xhci_hcd 0000:00:10.0: System wakeup enabled by ACPI
[  281.267212] ACPI: Preparing to enter system sleep state S3
[  281.376003] ACPI: Low-level resume complete
[  281.392556] ACPI: Waking up from system sleep state S3
[  281.425372] xhci_hcd 0000:00:10.0: System wakeup disabled by ACPI
[  281.425548] ohci-pci 0000:00:12.0: System wakeup disabled by ACPI
[  281.441355] ehci-pci 0000:00:12.2: System wakeup disabled by ACPI
[  281.441473] ohci-pci 0000:00:13.0: System wakeup disabled by ACPI
[  281.457368] ehci-pci 0000:00:13.2: System wakeup disabled by ACPI
[  281.635266] ACPI Error: [SSZE] Namespace lookup failure, AE_ALREADY_EXISTS (20131115/dsfield-211)
[  281.635281] ACPI Error: Method parse/execution failed [\_SB_.ACAD._PSR] (Node ffff88017e7497f8), AE_ALREADY_EXISTS (20131115/psparse-536)
[  281.635311] <3>[fglrx:firegl_acpi_get_ac_state] *ERROR* Failed to get current AC state
[  281.636047] ACPI: Marking method _PSR as Serialized because of AE_ALREADY_EXISTS error
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: WiFi unable to connect after wake up

Post by JeremyB »

The time in dmesg is seconds after last boot
If you need to get rid of nss-myhostname command is

Code: Select all

sudo apt-get purge libnss-myhostname
Are there any BIOS updates available as the one error
ACPI Error: Method parse/execution failed [\_SB_.ACAD._PSR] (Node ffff88017e7497f8), AE_ALREADY_EXISTS (20131115/psparse-536)
looks to be an error referring to the BIOS ACPI tables

Another thing to try, power down, remove the power cord and battery and hold the power switch for a while before connecting battery and power cord- it has solved issues before
mirkogrcic

Re: WiFi unable to connect after wake up

Post by mirkogrcic »

JeremyB wrote:The time in dmesg is seconds after last boot
If you need to get rid of nss-myhostname command is

Code: Select all

sudo apt-get purge libnss-myhostname
thanks for the command
Are there any BIOS updates available as the one error
ACPI Error: Method parse/execution failed [\_SB_.ACAD._PSR] (Node ffff88017e7497f8), AE_ALREADY_EXISTS (20131115/psparse-536)
looks to be an error referring to the BIOS ACPI tables
I updated the BIOS a year ago because I had problems with black screen(backlight on) after lid was closed and opened, the update didn't fix it but I found a workaround by pressing Win+L to lock the user which got the image back, it's probably the driver
On Acer's website I have 3 latest versions of the BIOS
-1.12 which I have installed
-2.12 which failed, the error said that my hardware doesn't support version 2
-2.12 UEFI failed too with same error
Another thing to try, power down, remove the power cord and battery and hold the power switch for a while before connecting battery and power cord- it has solved issues before
tried it and no change

I tried another thing
-pressing Fn+F3(hardware wifi key) and then putting linux into sleep, after wakeup wifi turned on automaticaly but this didn't fix the problem
-turning of wifi in the network manager and then putting linux into sleep, after wakeup wifi did not turn on atomaticaly so I turned it on but the problem is still here

I will now try the 1.16 kernel and will see if than will fix it
EDIT: no change
mirkogrcic

Re: WiFi unable to connect after wake up

Post by mirkogrcic »

I tried examining S3(sleep) and S4(hibernation) in the syslog and found some interesting stuff

->first connection try
it failed on the 4-way handshake

Code: Select all

Dec 28 17:45:36 mirko-ll wpa_supplicant[798]: wlan0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
it asked me for the password and started connecting again in the second try

->second connection try
this error is probably because the DHCP process wasn't started(just a guess)

Code: Select all

Dec 28 17:45:46 mirko-ll NetworkManager[779]: (nm-device.c:2030):dhcp4_start: runtime check failed: (priv->dhcp4_client == NULL)
it started the process and continued
then the DHCP request failed

Code: Select all

Dec 28 17:45:46 mirko-ll dhclient: Internet Systems Consortium DHCP Client 4.2.4
Dec 28 17:45:46 mirko-ll dhclient: Copyright 2004-2012 Internet Systems Consortium.
Dec 28 17:45:46 mirko-ll dhclient: All rights reserved.
Dec 28 17:45:46 mirko-ll dhclient: For info, please visit https://www.isc.org/software/dhcp/
Dec 28 17:45:46 mirko-ll dhclient: 
Dec 28 17:45:46 mirko-ll NetworkManager[779]: <info> (wlan0): DHCPv4 state changed nbi -> preinit
Dec 28 17:45:46 mirko-ll dhclient: Listening on LPF/wlan0/20:68:9d:b9:c5:e9
Dec 28 17:45:46 mirko-ll dhclient: Sending on   LPF/wlan0/20:68:9d:b9:c5:e9
Dec 28 17:45:46 mirko-ll dhclient: Sending on   Socket/fallback
Dec 28 17:45:46 mirko-ll dhclient: DHCPREQUEST of 192.168.1.25 on wlan0 to 255.255.255.255 port 67 (xid=0x20b74690)
Dec 28 17:45:48 mirko-ll wpa_supplicant[798]: wlan0: CTRL-EVENT-DISCONNECTED bssid=a4:b1:e9:2f:0d:93 reason=4 locally_generated=1
Dec 28 17:45:48 mirko-ll NetworkManager[779]: <warn> Connection disconnected (reason -4)
there are many tries but the last try managed to connect when I turned WiFi off and on using the "Network Settings", but the ping was 1000+

I will attach the S3 and S4 logs so if you have time you can try to find something because my knowledge is low for now
After hibernation(S4) wifi connects the first time and works with normal ping to google 25ms

EDIT: I could not upload the attachment: error: The extension log is not allowed.
what extension can it be?
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: WiFi unable to connect after wake up

Post by JeremyB »

mirkogrcic wrote:I tried examining S3(sleep) and S4(hibernation) in the syslog and found some interesting stuff

->first connection try
it failed on the 4-way handshake

Code: Select all

Dec 28 17:45:36 mirko-ll wpa_supplicant[798]: wlan0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
it asked me for the password and started connecting again in the second try

->second connection try
this error is probably because the DHCP process wasn't started(just a guess)

Code: Select all

Dec 28 17:45:46 mirko-ll NetworkManager[779]: (nm-device.c:2030):dhcp4_start: runtime check failed: (priv->dhcp4_client == NULL)
it started the process and continued
then the DHCP request failed

Code: Select all

Dec 28 17:45:46 mirko-ll dhclient: Internet Systems Consortium DHCP Client 4.2.4
Dec 28 17:45:46 mirko-ll dhclient: Copyright 2004-2012 Internet Systems Consortium.
Dec 28 17:45:46 mirko-ll dhclient: All rights reserved.
Dec 28 17:45:46 mirko-ll dhclient: For info, please visit https://www.isc.org/software/dhcp/
Dec 28 17:45:46 mirko-ll dhclient: 
Dec 28 17:45:46 mirko-ll NetworkManager[779]: <info> (wlan0): DHCPv4 state changed nbi -> preinit
Dec 28 17:45:46 mirko-ll dhclient: Listening on LPF/wlan0/20:68:9d:b9:c5:e9
Dec 28 17:45:46 mirko-ll dhclient: Sending on   LPF/wlan0/20:68:9d:b9:c5:e9
Dec 28 17:45:46 mirko-ll dhclient: Sending on   Socket/fallback
Dec 28 17:45:46 mirko-ll dhclient: DHCPREQUEST of 192.168.1.25 on wlan0 to 255.255.255.255 port 67 (xid=0x20b74690)
Dec 28 17:45:48 mirko-ll wpa_supplicant[798]: wlan0: CTRL-EVENT-DISCONNECTED bssid=a4:b1:e9:2f:0d:93 reason=4 locally_generated=1
Dec 28 17:45:48 mirko-ll NetworkManager[779]: <warn> Connection disconnected (reason -4)
there are many tries but the last try managed to connect when I turned WiFi off and on using the "Network Settings", but the ping was 1000+

I will attach the S3 and S4 logs so if you have time you can try to find something because my knowledge is low for now
After hibernation(S4) wifi connects the first time and works with normal ping to google 25ms

EDIT: I could not upload the attachment: error: The extension log is not allowed.
what extension can it be?
Might be easier to use paste.ubuntu.com to upload log files, you can copy the contents of the file and paste it at paste.ubuntu.com or use pastebin

Code: Select all

sudo apt-get install pastebinit
then in terminal command is

Code: Select all

pastebinit
followed by filename if it is in your /home folder
mirkogrcic

Re: WiFi unable to connect after wake up

Post by mirkogrcic »

here are the logs

S3 syslog cut 19:24: http://paste.ubuntu.com/9636678/
S4 syslog cut 17:51: http://paste.ubuntu.com/9636705/
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: WiFi unable to connect after wake up

Post by JeremyB »

Can you change the router settings to WPA2-AES only with no WEP or TKIP, I am not totally sure it is related but TKIP causes issues quite often
This is from your S3 syslog

Code: Select all

[PTK=CCMP GTK=TKIP]
I would bet the results from

Code: Select all

iwlist scan
would show your access point with mixed mode encryption instead of what I see on mine

Code: Select all

IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP  
                        Authentication Suites (1) : PSK
I would venture to say your result for group cipher is different
mirkogrcic

Re: WiFi unable to connect after wake up

Post by mirkogrcic »

my is

Code: Select all

IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
on my router configuration I can only select Disabled, WEP, WPA-PSK encryption

under version: WPA, WPA2, WPA+WPA2

I have a custom ISP router which is bad and I hate them for that

router: THOMSON TG782

can I force linux to use AES?(if my router even supports it)

EDIT:
I tried AES in widnows 7 and it worked so my router supports it(previously it was TKIP), I can choose the encription in windows 7 so linux should have it
Last edited by mirkogrcic on Sun Dec 28, 2014 6:17 pm, edited 1 time in total.
Locked

Return to “Networking”