WiFi and soft lockup issues in Acer Nitro 5


#41

try this. and do this with nothing connected to the laptop, no wifi/tether/ethernet

sudo systemctl stop NetworkManager
sudo systemctl disable NetworkManager
sudo ip link set wlp3s0 down 
sudo rmmod -f ath10k_core ath10k_pci

wait a few seconds between each command

sudo modprobe ath10k_pci ath10k_core
sudo ip link set wlp3s0 up
sudo rfkill unblock all
check rfkill list all and make sure none are blocked and then
sudo systemctl start NetworkManager
try using nmtui from terminal to select and connect to your wifi network instead of the wifi icon. its a terminal user interface and simple to use.

if no connection also try to suspend and wake again and see if it works.
if this doesnt work, its entirely possible im not giving you the right instruction. @tbg is the forum wifi wizard and is very welcome to jump in at any time if he is not busy hint hint :grinning: . i suspect he is a little tired of networking problems, some more than others. i really dont know what else to do.


#42

Did this , no dice still

[manjaro@manjaro ~]$ sudo ip link set wlp3s0 down 
[manjaro@manjaro ~]$ sudo rmmod -f ath10k_core ath10k_pci
rmmod: ERROR: could not remove 'ath10k_core': Resource temporarily unavailable
rmmod: ERROR: could not remove module ath10k_core: Resource temporarily unavailable
[manjaro@manjaro ~]$ sudo modprobe ath10k_pci ath10k_core
[manjaro@manjaro ~]$ sudo ip link set wlp3s0 up
[manjaro@manjaro ~]$ sudo rfkill unblock all
[manjaro@manjaro ~]$ sudo systemctl start NetworkManager

rfkill list all showed none as blocked
nmtui gives

Could not activate connection:  Activation failed: IP configuration could not be reserved (no available address, timeout, etc.) 

Its pretty late where i am at , hopefully this thread grabs the attention of @tbg and maybe he can help out. Thank you very much @dglt for helping me out so far.


#43

your welcome, sorry i wasnt able to help get you up and running. you may also try unplugging the router for a few and trying again after a fresh boot. for now leave the system powered down if possible until you try again. just dont forget the kernel parameters you need to get the iso to boot properly. good luck, let me know if it magically works when you try again :man_shrugging:

if you do end up trying it now, instead of reboot, shut down completely, remove battery and ac adapter and then hold the power button for 10-15 to drain any static charge. replace battery and see if the wifi works after you boot (again, dont forget the kernel parameters)

if its any constellation, there are others with acer nitro 5 and have it working on manjaro so its entirely possible.


#44

@dglt has done a spectacular job helping you. Are you still about.I’m not tired of wifi issues I’ve just been preoccupied trying to solve a very tough video driver/suspend issue using systemd for days. I just can’t seem to crack it.

I’d be happy to lend a hand as I have a few ideas you didn’t try yet.


#45

i think we lost him for the time being, he mentioned it was late.


#46

Well in case I don’t catch him and you do, I’ll mention a few thing you could try if you hook up with him again.

I would try to use an “rmmod” on “acer_wmi” Do not use “modprobe -r” or things will likely break.

When using “modprobe -r” on the ath10k wifi drivers, the commands must be run in this order:

sudo modprobe -r ath10k_pci

sudo modprobe -r ath10k_core

sudo modprobe ath10k_pci

Also, adding driver options during the modprobe stage may help.

Some options you could try are:

options ath10k_pci nohwcrypt=1
options ath10k_pci skip_otp=y

They can be tested like like this:

sudo modprobe -r ath10k_pci
sudo modprobe -r ath10k_core
sudo modprobe ath10k_pci nohwcrypt=1

They can also be combined like this:

sudo modprobe -r ath10k_pci
sudo modprobe -r ath10k_core
sudo modprobe ath10k_pci nohwcrypt=1 skip_otp=y

Working on wifi drivers in the live environment is very limiting. Generally trying to fix things up on an installation is far more successful.

Anyways, I hope some of that helps.


#47

@s0lidsnake if wifi is not working minutes after booting to the live environment, plug yourself in via ethernet and get it installed, this alone may take care of the problem, or it may not but fiddling with a live environment for this long is kinda nuts.
dont forget, you’ll need to add those kernel parameters the way you did to boot the live usb, except this time after its installed it will be from manjaro grub and again select manjaro (dont hit enter), instead hit E , delete quiet and replace with those 2 parameters i gave you earlier with a space before and after each, then CTRL+X. hope it all works out, let us know either way.


#48

So @dglt I have installed manjaro in dualboot with win10 thanks to the well written guide by @fhdk. I added the kernel parameters and Changed the boot order in Bios. I assume I will have to do the same changes in etc/default/grub as you said before . The WiFi seems broken as before. I can see some WiFi networks but I am sure its not the full list of WiFi around me. I haven’t tried using Ethernet in windows till now but even that seems to be broken here :confused: , showing the same setting network address loop.

Edit - Did the changes adding the two parameters and removing Quiet in etc/default/grub

Heres the rfkill list all and inxi -Fxxxz output

[acer@kde-pc ~]$ rfkill list all
1: acer-wireless: Wireless LAN
        Soft blocked: no
        Hard blocked: no
2: acer-bluetooth: Bluetooth
        Soft blocked: no
        Hard blocked: no
3: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
4: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
[acer@kde-pc ~]$ inxi -Fxxxz
System:    Host: kde-pc Kernel: 4.19.13-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.2.1 Desktop: KDE Plasma 5.14.4 
           tk: Qt 5.12.0 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Laptop System: Acer product: Nitro AN515-42 v: V1.11 serial: <filter> 
           Mobo: RR model: Freed_RRS v: V1.11 serial: <filter> UEFI: Insyde v: 1.11 date: 10/30/2018 
Battery:   ID-1: BAT1 charge: 48.7 Wh condition: 48.7/48.9 Wh (99%) volts: 17.2/15.2 model: LG 41,43,31,34,42,38,4B 
           type: Li-ion serial: <filter> status: Full 
CPU:       Topology: Quad Core model: AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx bits: 64 type: MT MCP arch: Zen 
           L2 cache: 2048 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 31948 
           Speed: 1370 MHz min/max: 1600/2000 MHz Core speeds (MHz): 1: 1369 2: 1432 3: 1371 4: 1372 5: 1371 6: 1374 7: 1502 
           8: 1595 
Graphics:  Device-1: AMD Baffin [Radeon RX 460/560D / Pro 450/455/460/555/555X/560/560X] vendor: Acer Incorporated ALI 
           driver: amdgpu v: kernel bus ID: 01:00.0 chip ID: 1002:67ef 
           Device-2: AMD Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] vendor: Acer Incorporated ALI 
           driver: amdgpu v: kernel bus ID: 04:00.0 chip ID: 1002:15dd 
           Display: x11 server: X.Org 1.20.3 driver: amdgpu,ati unloaded: modesetting alternate: fbdev,vesa 
           compositor: kwin_x11 resolution: 1920x1080~60Hz 
           OpenGL: renderer: AMD RAVEN (DRM 3.27.0 4.19.13-1-MANJARO LLVM 7.0.0) v: 4.5 Mesa 18.3.1 direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel 
           bus ID: 04:00.1 chip ID: 1002:15de 
           Device-2: Advanced Micro Devices [AMD] vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel 
           bus ID: 04:00.6 chip ID: 1022:15e3 
           Sound Server: ALSA v: k4.19.13-1-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Acer Incorporated ALI driver: r8168 
           v: 8.045.08-NAPI port: 2000 bus ID: 02:00.1 chip ID: 10ec:8168 
           IF: enp2s0f1 state: up speed: 100 Mbps duplex: full mac: <filter> 
           Device-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter vendor: Lite-On driver: ath10k_pci v: kernel 
           port: 2000 bus ID: 03:00.0 chip ID: 168c:003e 
           IF: wlp3s0 state: down mac: <filter> 
           IF-ID-1: enp4s0f4u2 state: unknown speed: N/A duplex: N/A mac: <filter> 
Drives:    Local Storage: total: 931.51 GiB used: 6.29 GiB (0.7%) 
           ID-1: /dev/sda vendor: Western Digital model: WD10SPZX-21Z10T0 size: 931.51 GiB speed: 6.0 Gb/s rotation: 5400 rpm 
           serial: <filter> rev: 1A02 scheme: GPT 
Partition: ID-1: / size: 105.18 GiB used: 6.29 GiB (6.0%) fs: ext4 dev: /dev/sda8 
           ID-2: swap-1 size: 4.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda7 
Sensors:   System Temperatures: cpu: 41.5 C mobo: N/A 
           Fan Speeds (RPM): N/A 
           GPU: device: amdgpu temp: 38 C device: amdgpu temp: 51 C 
Info:      Processes: 225 Uptime: 24m Memory: 6.70 GiB used: 1.39 GiB (20.7%) Init: systemd v: 239 Compilers: gcc: 8.2.1 
           Shell: bash v: 4.4.23 running in: konsole inxi: 3.0.28

Should i do the commands that tbg listed ?


#49

ok good, you got it installed. yes you will have to edit /etc/default/grub and add those parameters and update-grub
sudo nano /etc/default/grub
add parameters to following line separated with a space before and after each:
GRUB_CMDLINE_LINUX_DEFAULT="idle=nomwait iommu=soft"
CTRL+X then Y, then ENTER
sudo update-grub
now the kernel parameters are permanent and no longer need to be added at grub.
as for the wifi issues, try unplugging power from router for a minute and plug back in, try again.
if that does not work then do what @tbg suggested a few posts back.


#50

I have added the 2 parameters and removed quiet

I will do the following and report back since turning router on and off and trying to connect through both ethernet and wifi puts it into setting network address loop

sudo modprobe -r ath10k_pci
sudo modprobe -r ath10k_core
sudo modprobe ath10k_pci nohwcrypt=1 skip_otp=y

#51

this part isnt that important, it just hides the boot process output during boot, i prefer it without quiet but thats up to you. anyhow not important right now.


#52

Did the commands , still no dice . Both wifi and ethernet are still in setting network address loop.

sudo modprobe -r ath10k_pci

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for acer: 
[acer@kde-pc ~]$ sudo modprobe -r ath10k_core
[acer@kde-pc ~]$ sudo modprobe ath10k_pci nohwcrypt=1 skip_otp=y
[acer@kde-pc ~]$ inxi -Fxxxz
System:    Host: kde-pc Kernel: 4.19.13-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.2.1 Desktop: KDE Plasma 5.14.4 
           tk: Qt 5.12.0 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Laptop System: Acer product: Nitro AN515-42 v: V1.11 serial: <filter> 
           Mobo: RR model: Freed_RRS v: V1.11 serial: <filter> UEFI: Insyde v: 1.11 date: 10/30/2018 
Battery:   ID-1: BAT1 charge: 48.7 Wh condition: 48.7/48.9 Wh (99%) volts: 17.1/15.2 model: LG 41,43,31,34,42,38,4B 
           type: Li-ion serial: <filter> status: Full 
CPU:       Topology: Quad Core model: AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx bits: 64 type: MT MCP arch: Zen 
           L2 cache: 2048 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 31948 
           Speed: 2185 MHz min/max: 1600/2000 MHz Core speeds (MHz): 1: 1390 2: 1622 3: 1883 4: 2243 5: 1374 6: 1507 7: 1375 
           8: 1380 
Graphics:  Device-1: AMD Baffin [Radeon RX 460/560D / Pro 450/455/460/555/555X/560/560X] vendor: Acer Incorporated ALI 
           driver: amdgpu v: kernel bus ID: 01:00.0 chip ID: 1002:67ef 
           Device-2: AMD Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] vendor: Acer Incorporated ALI 
           driver: amdgpu v: kernel bus ID: 04:00.0 chip ID: 1002:15dd 
           Display: x11 server: X.Org 1.20.3 driver: amdgpu,ati unloaded: modesetting alternate: fbdev,vesa 
           compositor: kwin_x11 resolution: 1920x1080~60Hz 
           OpenGL: renderer: AMD RAVEN (DRM 3.27.0 4.19.13-1-MANJARO LLVM 7.0.0) v: 4.5 Mesa 18.3.1 direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel 
           bus ID: 04:00.1 chip ID: 1002:15de 
           Device-2: Advanced Micro Devices [AMD] vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel 
           bus ID: 04:00.6 chip ID: 1022:15e3 
           Sound Server: ALSA v: k4.19.13-1-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Acer Incorporated ALI driver: r8168 
           v: 8.045.08-NAPI port: 2000 bus ID: 02:00.1 chip ID: 10ec:8168 
           IF: enp2s0f1 state: up speed: 100 Mbps duplex: full mac: <filter> 
           Device-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter vendor: Lite-On driver: ath10k_pci v: kernel 
           port: 2000 bus ID: 03:00.0 chip ID: 168c:003e 
           IF: wlp3s0 state: down mac: <filter> 
           IF-ID-1: enp4s0f4u2 state: unknown speed: N/A duplex: N/A mac: <filter> 
Drives:    Local Storage: total: 931.51 GiB used: 6.41 GiB (0.7%) 
           ID-1: /dev/sda vendor: Western Digital model: WD10SPZX-21Z10T0 size: 931.51 GiB speed: 6.0 Gb/s rotation: 5400 rpm 
           serial: <filter> rev: 1A02 scheme: GPT 
Partition: ID-1: / size: 105.18 GiB used: 6.41 GiB (6.1%) fs: ext4 dev: /dev/sda8 
           ID-2: swap-1 size: 4.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda7 
Sensors:   System Temperatures: cpu: 43.2 C mobo: N/A 
           Fan Speeds (RPM): N/A 
           GPU: device: amdgpu temp: 39 C device: amdgpu temp: 51 C 
Info:      Processes: 232 Uptime: 44m Memory: 6.70 GiB used: 2.12 GiB (31.5%) Init: systemd v: 239 Compilers: gcc: 8.2.1 
           Shell: bash v: 4.4.23 running in: konsole inxi: 3.0.28

#53

dont forget to unplug any unnecessary devices like phone tethering/ethernet/etc before boot to rule out any possible conflict.
ok, lets start by disabling TLP since it has a way of messing with random things such as this.
sudo systemctl stop tlp
sudo systemctl disable tlp
reboot
give kde a good 20 secconds after you login before trying to connect, i have to do this or it wont work, but only on kde.
now check if wifi is working

if not working, do exactly the following
wait a few seconds between each command.

sudo systemctl stop NetworkManager

sudo systemctl disable NetworkManager

sudo ip link set wlp3s0 down 

sudo modprobe -r ath10k_pci

sudo modprobe -r ath10k_core

sudo modprobe ath10k_pci nohwcrypt=1 skip_otp=y

sudo ip link set wlp3s0 up

sudo rfkill unblock all

check rfkill list all and make sure none are blocked and then

sudo systemctl enable NetworkManager

sudo systemctl start NetworkManager

if that doesnt work, repeat the steps and try without nohwcrypt=1 skip_otp=y or just nohwcrypt=1
just do the whole process, and leave a few secconds between each command. also try suspend, wait a minute, wake and check if it will connect. also try rebooting with the a/c power connected and also with it unconnected to see if it makes a difference.


#54

Tried all three variations and suspending , still no luck . No tethering there to interfere. Same setting network address loop.


#55

have you tried both ac/batt one at a time from a cold boot? (completely shutdown, unplug a/c and turn on)

you disabled tlp?
close lid/wait/open lid ?


#56

Did do closelid , wait and open lid . Shows the same setting network address for 20 seconds and then just disconnects . Can’t try with AC or Coldboot for now
I give up for today . :frowning_face: I did disable TLP only at first and then did the set of commands. Any idea why even the Ethernet isn’t working ? The port is fine as it does work in windows.


#57

sorry was busy getting my keyboard backlight to shut off on its own after 15s. sometimes simple isnt so simple, anyhow mission accomplished. now back to yours.
could you try making another manjaro iso of a different desktop environment. i keep getting the feeling this is just another kde/plasma issue. one of the many little quirks it has as i mentioned before it’s temperamental with connecting to wifi for me also. download/write/boot the same as you did for the kde iso. while thats downloading can you post the output of lsmod

@tbg any idea’s if your not busy?


#58

I think the router settings could have something to do with this. I would try setting encryption to AES. Try switching from 20/40 Channel Bandwidth, to just 20. Set one chanell rather than auto selection. Also try setting a static IP address in the router by MAC address association. Also try using 2.4 Ghz and disable 5 Ghz and vice versa.

Here is a guide:

Also now that you have installed your system there ate other things you can now try. You definitely want to test different kernels out for improvement. I would test all these kernels in this order:

4.20
4.14
4.18

I would also temporarily move or rename your version 6 firmware in /lib/firmware. This will load the version 5 or 4 firmware instead when you reboot.


#59
$ lsmod
Module                  Size  Used by
rfcomm                 86016  16
fuse                  118784  3
bnep                   24576  2
nls_iso8859_1          16384  1
nls_cp437              20480  1
vfat                   24576  1
fat                    81920  1 vfat
arc4                   16384  2
uvcvideo              118784  0
amdkfd                229376  2
amd_iommu_v2           20480  1 amdkfd
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
amdgpu               3424256  17
videobuf2_v4l2         28672  1 uvcvideo
videobuf2_common       53248  2 videobuf2_v4l2,uvcvideo
videodev              217088  3 videobuf2_v4l2,uvcvideo,videobuf2_common
edac_mce_amd           28672  0
media                  45056  2 videodev,uvcvideo
joydev                 24576  0
mousedev               24576  0
kvm_amd               106496  0
btusb                  53248  0
dcdbas                 16384  0
btrtl                  16384  1 btusb
ccp                    98304  1 kvm_amd
hid_multitouch         28672  0
btbcm                  16384  1 btusb
chash                  16384  1 amdgpu
dell_wmi_descriptor    16384  0
btintel                24576  1 btusb
hid_generic            16384  0
kvm                   737280  1 kvm_amd
gpu_sched              28672  1 amdgpu
acer_wmi               24576  0
i2c_algo_bit           16384  1 amdgpu
bluetooth             655360  41 btrtl,btintel,btbcm,bnep,btusb,rfcomm
wmi_bmof               16384  0
sparse_keymap          16384  1 acer_wmi
snd_hda_codec_realtek   118784  1
ttm                   126976  1 amdgpu
snd_hda_codec_generic    86016  1 snd_hda_codec_realtek
snd_hda_codec_hdmi     57344  1
snd_hda_intel          45056  4
ath10k_pci             61440  0
ath10k_core           532480  1 ath10k_pci
ecdh_generic           24576  1 bluetooth
ath                    36864  1 ath10k_core
irqbypass              16384  1 kvm
mac80211              929792  1 ath10k_core
drm_kms_helper        208896  1 amdgpu
snd_hda_codec         151552  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
ghash_clmulni_intel    16384  0
pcbc                   16384  0
snd_hda_core           94208  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
cfg80211              778240  3 ath,mac80211,ath10k_core
snd_hwdep              16384  1 snd_hda_codec
drm                   495616  12 gpu_sched,drm_kms_helper,amdgpu,ttm
snd_pcm               131072  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer              36864  1 snd_pcm
snd                    98304  16 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
aesni_intel           200704  0
rtsx_pci_ms            20480  0
soundcore              16384  1 snd
aes_x86_64             20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
tpm_crb                16384  0
cryptd                 28672  3 crypto_simd,ghash_clmulni_intel,aesni_intel
memstick               16384  1 rtsx_pci_ms
agpgart                49152  2 ttm,drm
tpm_tis                16384  0
rfkill                 28672  10 acer_wmi,bluetooth,cfg80211
pcspkr                 16384  0
syscopyarea            16384  1 drm_kms_helper
r8168                 540672  0
tpm_tis_core           20480  1 tpm_tis
glue_helper            16384  1 aesni_intel
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
tpm                    65536  3 tpm_tis,tpm_crb,tpm_tis_core
fb_sys_fops            16384  1 drm_kms_helper
sp5100_tco             16384  0
input_leds             16384  0
evdev                  24576  17
battery                24576  0
ac                     16384  0
rng_core               16384  2 ccp,tpm
i2c_piix4              24576  0
pinctrl_amd            28672  1
i2c_hid                28672  0
mac_hid                16384  0
hid                   139264  3 i2c_hid,hid_multitouch,hid_generic
k10temp                16384  0
wmi                    28672  3 acer_wmi,wmi_bmof,dell_wmi_descriptor
acer_wireless          16384  0
pcc_cpufreq            16384  0
acpi_cpufreq           24576  0
uinput                 20480  0
crypto_user            16384  0
ip_tables              28672  0
x_tables               45056  1 ip_tables
ext4                  733184  1
crc32c_generic         16384  0
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  126976  1 ext4
fscrypto               32768  1 ext4
sd_mod                 61440  4
ahci                   40960  3
serio_raw              16384  0
libahci                40960  1 ahci
atkbd                  32768  0
rtsx_pci_sdmmc         28672  0
mmc_core              176128  1 rtsx_pci_sdmmc
libps2                 16384  1 atkbd
libata                278528  2 libahci,ahci
xhci_pci               16384  0
scsi_mod              253952  2 sd_mod,libata
xhci_hcd              266240  1 xhci_pci
crc32c_intel           24576  2
rtsx_pci               73728  2 rtsx_pci_sdmmc,rtsx_pci_ms
i8042                  32768  1 acer_wmi
serio                  28672  4 serio_raw,atkbd,i8042

will try manjaro deepin. In the meantime i will try 4.20 kernel and have renamed firmware-6.bin to firm.bin as suggested above


#60

Try this:

sudo rmmod acer_wmi
sudo rfkill unblock all
sudo systemctl stop NetworkManager; sleep 3; sudo systemctl start NetworkManager 

Test your wifi connection.