no wifi after suspend

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.
Locked
ori0n

no wifi after suspend

Post by ori0n »

Every time I suspend my laptop, on resuming I am unable to connect, there are no available networks and I need to reboot.

I tried this, this and this, but no one worked.

I hope this info are enough, otherwise please ask me more.

Code: Select all

lspci | egrep -i "network|ethernet"
3b:00.0 Ethernet controller: Qualcomm Atheros Killer E2400 Gigabit Ethernet Controller (rev 10)
3c:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)

Code: Select all

inxi -F
System:    Host: ori0n-mint Kernel: 4.13.0-43-generic x86_64 (64 bit) Desktop: Cinnamon 3.6.7
           Distro: Linux Mint 18.3 Sylvia
Machine:   System: Alienware product: Alienware 15 R2 v: 1.4.4
           Mobo: Alienware model: 0X70NC v: A00 Bios: Alienware v: 1.4.4 date: 01/08/2018
CPU:       Quad core Intel Core i7-6820HK (-HT-MCP-) cache: 8192 KB 
           clock speeds: max: 3600 MHz 1: 900 MHz 2: 900 MHz 3: 900 MHz 4: 900 MHz 5: 900 MHz 6: 900 MHz
           7: 900 MHz 8: 900 MHz
Graphics:  Card-1: Intel Skylake Integrated Graphics
           Card-2: NVIDIA GM204M [GeForce GTX 980M]
           Display Server: X.Org 1.18.4 driver: nvidia Resolution: 1360x768@60.37hz, 1920x1080@60.02hz
           GLX Renderer: GeForce GTX 980M/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA 384.130
Audio:     Card Intel Sunrise Point-H HD Audio driver: snd_hda_intel Sound: ALSA v: k4.13.0-43-generic
Network:   Card-1: Qualcomm Atheros Killer E2400 Gigabit Ethernet Controller driver: alx
           IF: enp59s0 state: down mac: 84:7b:eb:2d:62:30
           Card-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter driver: ath10k_pci
           IF: wlp60s0 state: up mac: 9c:b6:d0:0d:80:a3
           Card-3: Atheros
           IF: null-if-id state: N/A speed: N/A duplex: N/A mac: N/A
Drives:    HDD Total Size: 1128.2GB (1.4% used) ID-1: /dev/sda model: TOSHIBA_THNSNK12 size: 128.0GB
           ID-2: /dev/sdb model: ST1000LM044_HN size: 1000.2GB
Partition: ID-1: / size: 19G used: 8.3G (48%) fs: ext4 dev: /dev/sdb5
           ID-2: /home size: 124G used: 6.4G (6%) fs: ext4 dev: /dev/sdb4
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 64.0C mobo: N/A gpu: 57C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 236 Uptime: 10 min Memory: 1421.9/32034.4MB Client: Shell (bash) inxi: 2.2.35
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.
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: no wifi after suspend

Post by JeremyB »

I would see if

Code: Select all

sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf && systemctl restart network-manager.service
Helps any
ori0n

Re: no wifi after suspend

Post by ori0n »

Nope :(
But thank you for the answer.
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: no wifi after suspend

Post by JeremyB »

Do you have any idea why wifi isn't working after suspend? Check rfkill list; dmesg | egrep -i 'ath|wlp60s0 after coming out of suspend
ori0n

Re: no wifi after suspend

Post by ori0n »

I run your command:
Before suspend:

Code: Select all

 $ rfkill list
 0: dell-rbtn: Wireless LAN
     Soft blocked: no
     Hard blocked: no
 1: hci0: Bluetooth
     Soft blocked: no
     Hard blocked: no
 2: phy0: Wireless LAN
     Soft blocked: no
     Hard blocked: no
 
 $ dmesg | egrep -i 'ath|wlp60s0'
 [    1.056967] alx 0000:3b:00.0 eth0: Qualcomm Atheros AR816x/AR817x Ethernet [84:7b:eb:2d:62:30]
 [    8.790390] Bluetooth: HCI UART protocol ATH3K registered
 [    9.690196] ath10k_pci 0000:3c:00.0: enabling device (0000 -> 0002)
 [    9.690989] ath10k_pci 0000:3c:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
 [   10.537425] ath10k_pci 0000:3c:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1a56:1535
 [   10.537426] ath10k_pci 0000:3c:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
 [   10.537791] ath10k_pci 0000:3c:00.0: firmware ver WLAN.RM.4.4.1-00079-QCARMSWPZ-1 api 6 features wowlan,ignore-otp crc32 fd869beb  [   10.704071] ath10k_pci 0000:3c:00.0: board_file api 2 bmi_id N/A crc32 20d869c3
 [   11.283160] ath10k_pci 0000:3c:00.0: Unknown eventid: 118809
 [   11.286099] ath10k_pci 0000:3c:00.0: Unknown eventid: 90118
 [   11.286735] ath10k_pci 0000:3c:00.0: htt-ver 3.47 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
 [   11.378391] ath: EEPROM regdomain: 0x6c
 [   11.378392] ath: EEPROM indicates we should expect a direct regpair map
 [   11.378393] ath: Country alpha2 being used: 00
 [   11.378394] ath: Regpair used: 0x6c 
 [   11.382181] ath10k_pci 0000:3c:00.0 wlp60s0: renamed from wlan0
 [   20.635755] IPv6: ADDRCONF(NETDEV_UP): wlp60s0: link is not ready
 [   21.359881] ath10k_pci 0000:3c:00.0: Unknown eventid: 118809
 [   21.362849] ath10k_pci 0000:3c:00.0: Unknown eventid: 90118
After suspend:

Code: Select all

 $ rfkill list
 0: dell-rbtn: Wireless LAN 
     Soft blocked: no
     Hard blocked: no
 3: hci0: Bluetooth
     Soft blocked: no
     Hard blocked: no
 
 $ dmsesg | egrep -i 'ath|wlp60s0'
 [    1.056967] alx 0000:3b:00.0 eth0: Qualcomm Atheros AR816x/AR817x Ethernet [84:7b:eb:2d:62:30]
 [    8.790390] Bluetooth: HCI UART protocol ATH3K registered
 [    9.690196] ath10k_pci 0000:3c:00.0: enabling device (0000 -> 0002)
 [    9.690989] ath10k_pci 0000:3c:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
 [   10.537425] ath10k_pci 0000:3c:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1a56:1535
 [   10.537426] ath10k_pci 0000:3c:00.0: kconfig debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
 [   10.537791] ath10k_pci 0000:3c:00.0: firmware ver WLAN.RM.4.4.1-00079-QCARMSWPZ-1 api 6 features wowlan,ignore-otp crc32 fd869beb  [   10.704071] ath10k_pci 0000:3c:00.0: board_file api 2 bmi_id N/A crc32 20d869c3
 [   11.283160] ath10k_pci 0000:3c:00.0: Unknown eventid: 118809
 [   11.286099] ath10k_pci 0000:3c:00.0: Unknown eventid: 90118
 [   11.286735] ath10k_pci 0000:3c:00.0: htt-ver 3.47 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
 [   11.378391] ath: EEPROM regdomain: 0x6c
 [   11.378392] ath: EEPROM indicates we should expect a direct regpair map
 [   11.378393] ath: Country alpha2 being used: 00
 [   11.378394] ath: Regpair used: 0x6c 
 [   11.382181] ath10k_pci 0000:3c:00.0 wlp60s0: renamed from wlan0
 [   20.635755] IPv6: ADDRCONF(NETDEV_UP): wlp60s0: link is not ready
 [   21.359881] ath10k_pci 0000:3c:00.0: Unknown eventid: 118809
 [   21.362849] ath10k_pci 0000:3c:00.0: Unknown eventid: 90118
 [   21.415478] IPv6: ADDRCONF(NETDEV_UP): wlp60s0: link is not ready
 [   21.748824] IPv6: ADDRCONF(NETDEV_UP): wlp60s0: link is not ready
 [   31.439046] wlp60s0: authenticate with 28:6c:07:8f:a2:52 
vimdiff after before:
Image
I see the output is different, but can't interpret these results.
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: no wifi after suspend

Post by JeremyB »

After suspend is the wifi driver even loaded?

Code: Select all

lsmod | grep ath
ori0n

Re: no wifi after suspend

Post by ori0n »

JeremyB wrote: Sat Jun 23, 2018 3:09 pm After suspend is the wifi driver even loaded?

Code: Select all

lsmod | grep ath
I see some 'ath' after suspend:

Code: Select all

$ lsmod | grep ath

ath10k_pci             45056  0
ath10k_core           352256  1 ath10k_pci
ath                    28672  1 ath10k_core
mac80211              782336  1 ath10k_core
cfg80211              614400  3 mac80211,ath,ath10k_core
Locked

Return to “Networking”