You are not logged in.

#1 2017-11-03 18:26:14

alcros33
Member
Registered: 2017-11-03
Posts: 20

[SOLVED] Wi-FI Stops Working after I suspend.

So, I'm new at arch, came from ubuntu, pretty much a no0b. Just installed it (with the wiki guide) dual boot with windows on my laptop (Alienware 15R2).

(BTW I'm Using 4.9.59-1-lts kernell)

Everything seem to be fine until I closed it and suspended it, when i come back I realised Wi-Fi was NOT working... I reboot and Wi-Fi as allright again, I tried reproducing the error and it keeps happening,
This is my

iw dev

output normally:

phy#0
        Unnamed/non-netdev interface
                wdev 0x2
                addr 9c:b6:d0:07:51:6d
                type P2P-device
                txpower 0.00 dBm
        Interface wlp60s0
                ifindex 3
                wdev 0x1
                addr 9c:b6:d0:07:51:6d
                type managed
                channel 5 (2432 MHz), width: 20 MHz, center1: 2432 MHz
                txpower 20.00 dBm

After suspend/restore 

iw dev

Returns no output
This is my output from

lspci | grep "Network"
3c:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)

After suspend/restore 

lspci | grep "Network"

Returns no Output

MAYBE:

The problem I presume is not on NetworkManager for I tried restarting it a couple of times, but on the Wi-Fi drivers, which always display an error on boot :

ath10k_pci 0000:3c:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-5.bin': -2

The Wikia has a section "covering" this : https://wiki.archlinux.org/index.php/Al … Networking
I tried doing it, but those links are 404 not found...
Tried updating the firmware of wi-fi adapter and searched A LOT of other forums, no solution seems to remove that error from boot log. SO I thought I would leave it be since I got Internet functioning.

Last edited by alcros33 (2017-11-15 02:30:07)

Offline

#2 2017-11-03 19:15:48

lo1
Member
Registered: 2017-09-25
Posts: 584

Re: [SOLVED] Wi-FI Stops Working after I suspend.

modinfo ath10k_pci

?

Offline

#3 2017-11-03 19:37:26

alcros33
Member
Registered: 2017-11-03
Posts: 20

Re: [SOLVED] Wi-FI Stops Working after I suspend.

lo1 wrote:
modinfo ath10k_pci

?

wi-fi Working

modinfo ath10k_pci
filename:       /lib/modules/4.9.59-1-lts/kernel/drivers/net/wireless/ath/ath10k/ath10k_pci.ko.gz
firmware:       ath10k/QCA9377/hw1.0/board.bin
firmware:       ath10k/QCA9377/hw1.0/firmware-5.bin
firmware:       ath10k/QCA6174/hw3.0/board-2.bin
firmware:       ath10k/QCA6174/hw3.0/board.bin
firmware:       ath10k/QCA6174/hw3.0/firmware-5.bin
firmware:       ath10k/QCA6174/hw3.0/firmware-4.bin
firmware:       ath10k/QCA6174/hw2.1/board-2.bin
firmware:       ath10k/QCA6174/hw2.1/board.bin
firmware:       ath10k/QCA6174/hw2.1/firmware-5.bin
firmware:       ath10k/QCA6174/hw2.1/firmware-4.bin
firmware:       ath10k/QCA9887/hw1.0/board-2.bin
firmware:       ath10k/QCA9887/hw1.0/board.bin
firmware:       ath10k/QCA9887/hw1.0/firmware-5.bin
firmware:       ath10k/QCA988X/hw2.0/board-2.bin
firmware:       ath10k/QCA988X/hw2.0/board.bin
firmware:       ath10k/QCA988X/hw2.0/firmware-5.bin
firmware:       ath10k/QCA988X/hw2.0/firmware-4.bin
firmware:       ath10k/QCA988X/hw2.0/firmware-3.bin
firmware:       ath10k/QCA988X/hw2.0/firmware-2.bin
license:        Dual BSD/GPL
description:    Driver support for Qualcomm Atheros 802.11ac WLAN PCIe/AHB devices
author:         Qualcomm Atheros
alias:          pci:v0000168Cd00000050sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000042sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000046sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000056sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000040sv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000003Esv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000041sv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000003Csv*sd*bc*sc*i*
depends:        ath10k_core
intree:         Y
vermagic:       4.9.59-1-lts SMP mod_unload modversions
parm:           irq_mode:0: auto, 1: legacy, 2: msi (default: 0) (uint)
parm:           reset_mode:0: auto, 1: warm only (default: 0) (uint)

Wi-Fi not working after suspend:

modinfo ath10k_pci
filename:       /lib/modules/4.9.59-1-lts/kernel/drivers/net/wireless/ath/ath10k/ath10k_pci.ko.gz
firmware:       ath10k/QCA9377/hw1.0/board.bin
firmware:       ath10k/QCA9377/hw1.0/firmware-5.bin
firmware:       ath10k/QCA6174/hw3.0/board-2.bin
firmware:       ath10k/QCA6174/hw3.0/board.bin
firmware:       ath10k/QCA6174/hw3.0/firmware-5.bin
firmware:       ath10k/QCA6174/hw3.0/firmware-4.bin
firmware:       ath10k/QCA6174/hw2.1/board-2.bin
firmware:       ath10k/QCA6174/hw2.1/board.bin
firmware:       ath10k/QCA6174/hw2.1/firmware-5.bin
firmware:       ath10k/QCA6174/hw2.1/firmware-4.bin
firmware:       ath10k/QCA9887/hw1.0/board-2.bin
firmware:       ath10k/QCA9887/hw1.0/board.bin
firmware:       ath10k/QCA9887/hw1.0/firmware-5.bin
firmware:       ath10k/QCA988X/hw2.0/board-2.bin
firmware:       ath10k/QCA988X/hw2.0/board.bin
firmware:       ath10k/QCA988X/hw2.0/firmware-5.bin
firmware:       ath10k/QCA988X/hw2.0/firmware-4.bin
firmware:       ath10k/QCA988X/hw2.0/firmware-3.bin
firmware:       ath10k/QCA988X/hw2.0/firmware-2.bin
license:        Dual BSD/GPL
description:    Driver support for Qualcomm Atheros 802.11ac WLAN PCIe/AHB devices
author:         Qualcomm Atheros
alias:          pci:v0000168Cd00000050sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000042sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000046sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000056sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000040sv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000003Esv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000041sv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000003Csv*sd*bc*sc*i*
depends:        ath10k_core
intree:         Y
vermagic:       4.9.59-1-lts SMP mod_unload modversions
parm:           irq_mode:0: auto, 1: legacy, 2: msi (default: 0) (uint)
parm:           reset_mode:0: auto, 1: warm only (default: 0) (uint)

Seems to be the same

Last edited by alcros33 (2017-11-03 19:38:01)

Offline

#4 2017-11-03 19:44:39

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED] Wi-FI Stops Working after I suspend.

Have you tried the regular arch kernel?  It should have newer drivers with it and may work better with your wifi.

Offline

#5 2017-11-03 20:22:37

lo1
Member
Registered: 2017-09-25
Posts: 584

Re: [SOLVED] Wi-FI Stops Working after I suspend.

Damn, i was hoping to find some powersaving options. @circleface, the OP said he tried to download the latest drivers so updating the kernel may not work.
By the way, @alcros33, how did you replace the older drivers?

Edited: some rewriting...

Last edited by lo1 (2017-11-03 20:26:05)

Offline

#6 2017-11-03 22:05:20

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED] Wi-FI Stops Working after I suspend.

@circleface, the OP said he tried to download the latest drivers

True, but he also said the links were 404, so I wasn't sure if the new drivers were 404 or something else.

Offline

#7 2017-11-04 07:36:49

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [SOLVED] Wi-FI Stops Working after I suspend.

The firmware revision is skipped because there're only -4 and -6.
check "lsmod | grep ath10k" before and after the S3 cycle; in doubt try to un- and reload it.

@lo1, Features are also in ath10k_core, but that's only hw/sw encryption (and PM failures would probably not loose the pci device detection)

@alcros33, nevertheless: do you have laptop-tools or TLP installed?

Offline

#8 2017-11-05 16:47:43

alcros33
Member
Registered: 2017-11-03
Posts: 20

Re: [SOLVED] Wi-FI Stops Working after I suspend.

Okay okay, sorry for the delay... So... just tried the latest kernel... The error

ath10k_pci 0000:3c:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-5.bin': -2

Didn't showed up on boot log, but still when I suspended/reopened it, the Wi-FI stopped working.
Tried this:

lsmod | grep ath10k
ath10k_pci             45056  0
ath10k_core           286720  1 ath10k_pci
ath                    28672  1 ath10k_core
mac80211              679936  1 ath10k_core
cfg80211              507904  3 mac80211,ath,ath10k_core

The output seems to be the same before and after the suspend thing...

I think I first downloaded the drivers from the linuk-firmware packages... then Tried from here:
https://github.com/FireWalkerX/ath10k-f … 30/QCA6174

And from here:
https://github.com/kvalo/ath10k-firmwar … er/QCA6174

And here:
https://git.kernel.org/pub/scm/linux/ke … k/QCA6174/


according to

pacman -Q

I dont have laptop-tools nor TLP installed

Last edited by alcros33 (2017-11-05 16:58:02)

Offline

#9 2017-11-05 19:51:03

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [SOLVED] Wi-FI Stops Working after I suspend.

Did you try to reload the module?

Offline

#10 2017-11-05 23:21:35

alcros33
Member
Registered: 2017-11-03
Posts: 20

Re: [SOLVED] Wi-FI Stops Working after I suspend.

I don't know how to do that

Offline

#11 2017-11-06 07:57:40

seth
Member
Registered: 2012-09-03
Posts: 51,213

Offline

#12 2017-11-07 00:23:47

alcros33
Member
Registered: 2017-11-03
Posts: 20

Re: [SOLVED] Wi-FI Stops Working after I suspend.

Just tried that... form some reason got this message :

modprobe ath
libkmod: kmod_config_parse: /etc/modprobe.d/alsa-base.conf line 1: ignoring bad line starting with ''options'

Last edited by alcros33 (2017-11-07 00:24:12)

Offline

#13 2017-11-07 07:23:11

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [SOLVED] Wi-FI Stops Working after I suspend.

"ath10k_pci"

The error mesage says there's some nonsense in /etc/modprobe.d/alsa-base.conf - this is unrelated, but you can open another thread about this if it's not clear what the bad syntax is.

Offline

#14 2017-11-09 00:34:26

alcros33
Member
Registered: 2017-11-03
Posts: 20

Re: [SOLVED] Wi-FI Stops Working after I suspend.

Just tried that, It seems it didn't do anything

Offline

#15 2017-11-09 07:30:46

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [SOLVED] Wi-FI Stops Working after I suspend.

"modprobe -v" ..
You can run "lsmod" to check whether your actions had an impact and, to be sure, you first need to unload the module using "modprobe -r", otherwise you're not doing anything .... .... ....

Offline

#16 2017-11-09 17:59:45

alcros33
Member
Registered: 2017-11-03
Posts: 20

Re: [SOLVED] Wi-FI Stops Working after I suspend.

Just tried that, unloaded it first using "modprobe -r"... then checked lsmod | grep ath10k_pci.... no output, then "modprove -v ath10k_pci" , nothing happended, then checked "lsmod", regular output...

Offline

#17 2017-11-09 18:41:33

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [SOLVED] Wi-FI Stops Working after I suspend.

The $60.000 question is whether that revived the device.

Offline

#18 2017-11-09 19:21:53

alcros33
Member
Registered: 2017-11-03
Posts: 20

Re: [SOLVED] Wi-FI Stops Working after I suspend.

When I said "nothing" happened I meant that the Wi-Fi still was not working

Offline

#19 2017-11-10 00:20:55

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: [SOLVED] Wi-FI Stops Working after I suspend.

Did you restart the network manager after making sure the module was reloaded? If 'is reloaded' is what you meant by 'regular output'.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#20 2017-11-10 00:43:36

alcros33
Member
Registered: 2017-11-03
Posts: 20

Re: [SOLVED] Wi-FI Stops Working after I suspend.

Just tried restarting NetworkManager after reloading the module... Nothing. By regular output I meant the one from

lsmod |grep ath

that is a few repplies up and does NOT change after the Wi-Fi stops working

Last edited by alcros33 (2017-11-10 00:49:21)

Offline

#21 2017-11-10 08:20:06

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [SOLVED] Wi-FI Stops Working after I suspend.

Other approach: output of "sudo rfkill list" (before and after S3)?

Offline

#22 2017-11-14 02:08:37

alcros33
Member
Registered: 2017-11-03
Posts: 20

Re: [SOLVED] Wi-FI Stops Working after I suspend.

Okay so before :

sudo 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

After

 sudo rfkill list
0: dell-rbtn: Wireless LAN
        Soft blocked: no
        Hard blocked: no
3: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
 

Offline

#23 2017-11-14 07:41:54

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [SOLVED] Wi-FI Stops Working after I suspend.

Nope. The device seems completely gone (comparative *complete* lspci? We know it's not detected as network device)
Does 

echo 1  | sudo tee /sys/bus/pci/rescan

change anything?

Offline

#24 2017-11-14 18:59:43

alcros33
Member
Registered: 2017-11-03
Posts: 20

Re: [SOLVED] Wi-FI Stops Working after I suspend.

Cool!!! That worked and fixed my conection after the issue may I ask what is that? and how can I make a config for it to trigger when restore my computer after suspend?

Offline

#25 2017-11-14 19:42:39

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [SOLVED] Wi-FI Stops Working after I suspend.

It triggers a full rescan of the PCI bus.
https://wiki.archlinux.org/index.php/Po … stem-sleep

Edit: obviously you don't have to do the sudo/tee dance and can just directly echo into the file - the hooks run as root anyway.

Last edited by seth (2017-11-14 19:44:32)

Offline

Board footer

Powered by FluxBB