Wifi not loading and slow when rebooting from Windows

Hello everyone,

A few weeks ago I installed Manjaro KDE and Windows 10 in my laptop and got the dual booting working perfectly. Since then I have had some issues with Manjaro but everything works mostly fine.
Eventhough, I am having two problems with the wifi connection which I have not managed to solve.

The first one is that sometimes when I boot the wifi driver does not load at all, just as if there is no wifi card in the laptop. Once this happens I know no way of getting it back and for the moment it just comes back as mysteriously as it left. Today I managed to get it working when connecting via ethernet to the internet but other times this has not worked. The only hint I have is that it might be related to Windows because it often happens after I boot into Windows but I am not sure this is always the case. When the wifi is working the result of the command inxi -Fazy is the following:

System:
  Kernel: 5.8.6-1-MANJARO x86_64 bits: 64 compiler: N/A 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.8-x86_64 
  root=UUID=79697d44-8f86-4a9c-b9df-ca0ab0aa7df7 rw amdgpu.runpm=0 quiet 
  apparmor=1 security=apparmor 
  resume=UUID=c008fdce-f716-41a4-b909-0b41bcad73d2 udev.log_priority=3 
  Desktop: KDE Plasma 5.19.5 tk: Qt 5.15.0 wm: kwin_x11 dm: SDDM 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: Micro-Star product: Bravo 15 A4DDR v: REV:1.0 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: Micro-Star model: MS-16WK v: REV:1.0 serial: <filter> 
  UEFI: American Megatrends v: E16WKAMS.10D date: 05/19/2020 
Battery:
  ID-1: BAT1 charge: 51.4 Wh condition: 51.4/51.3 Wh (100%) volts: 12.9/11.4 
  model: MSI Corp. MS-16WK type: Li-ion serial: N/A status: Full 
CPU:
  Topology: 8-Core model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64 
  type: MT MCP arch: Zen family: 17 (23) model-id: 60 (96) stepping: 1 
  microcode: 8600102 L2 cache: 4096 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 92657 
  Speed: 1396 MHz min/max: 1400/2900 MHz boost: enabled Core speeds (MHz): 
  1: 1397 2: 1398 3: 1397 4: 1397 5: 1397 6: 1395 7: 1498 8: 1510 9: 1397 
  10: 1397 11: 1400 12: 1395 13: 1396 14: 1397 15: 1397 16: 1397 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, IBRS_FW, 
  STIBP: conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: AMD Navi 14 [Radeon RX 5500/5500M / Pro 5500M] 
  vendor: Micro-Star MSI driver: amdgpu v: kernel bus ID: 03:00.0 
  chip ID: 1002:7340 
  Device-2: AMD Renoir vendor: Micro-Star MSI driver: amdgpu v: kernel 
  bus ID: 07:00.0 chip ID: 1002:1636 
  Device-3: Acer HD Webcam type: USB driver: uvcvideo bus ID: 1-4:2 
  chip ID: 5986:211b 
  Display: x11 server: X.Org 1.20.8 compositor: kwin_x11 driver: amdgpu 
  FAILED: ati unloaded: modesetting,radeon alternate: fbdev,vesa 
  display ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
  s-diag: 582mm (22.9") 
  Monitor-1: eDP res: 1920x1080 hz: 120 dpi: 142 size: 344x193mm (13.5x7.6") 
  diag: 394mm (15.5") 
  OpenGL: renderer: AMD RENOIR (DRM 3.38.0 5.8.6-1-MANJARO LLVM 10.0.1) 
  v: 4.6 Mesa 20.1.7 direct render: Yes 
Audio:
  Device-1: AMD Navi 10 HDMI Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus ID: 03:00.1 chip ID: 1002:ab38 
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor 
  vendor: Micro-Star MSI driver: snd_rn_pci_acp3x v: kernel 
  alternate: snd_pci_acp3x bus ID: 07:00.5 chip ID: 1022:15e2 
  Device-3: AMD Family 17h HD Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus ID: 07:00.6 chip ID: 1022:15e3 
  Sound Server: ALSA v: k5.8.6-1-MANJARO 
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus ID: 04:00.0 
  chip ID: 8086:2723 
  IF: wlp4s0 state: up mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Micro-Star MSI driver: r8168 v: 8.048.03-NAPI modules: r8169 
  port: f000 bus ID: 05:00.0 chip ID: 10ec:8168 
  IF: enp5s0 state: down mac: <filter> 
Drives:
  Local Storage: total: 476.94 GiB used: 83.63 GiB (17.5%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 model: SSSTC CL1-8D512 size: 476.94 GiB block size: 
  physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 serial: <filter> 
  rev: 1.01 scheme: GPT 
Partition:
  ID-1: / raw size: 333.73 GiB size: 327.49 GiB (98.13%) 
  used: 83.61 GiB (25.5%) fs: ext4 dev: /dev/nvme0n1p5 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 15.63 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/nvme0n1p6 
Sensors:
  System Temperatures: cpu: 48.5 C mobo: N/A 
  Fan Speeds (RPM): N/A 
  GPU: device: amdgpu temp: 54 C fan: 65535 device: amdgpu temp: 40 C 
Info:
  Processes: 343 Uptime: 9h 32m Memory: 15.11 GiB used: 4.07 GiB (27.0%) 
  Init: systemd v: 246 Compilers: gcc: 10.2.0 Packages: pacman: 1303 lib: 349 
  flatpak: 0 Shell: Bash v: 5.0.18 running in: konsole inxi: 3.1.05 

When the wifi is not working the result is:

System:
  Kernel: 5.8.6-1-MANJARO x86_64 bits: 64 compiler: N/A 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.8-x86_64 
  root=UUID=79697d44-8f86-4a9c-b9df-ca0ab0aa7df7 rw amdgpu.runpm=0 quiet 
  apparmor=1 security=apparmor 
  resume=UUID=c008fdce-f716-41a4-b909-0b41bcad73d2 udev.log_priority=3 
  Desktop: KDE Plasma 5.19.5 tk: Qt 5.15.0 wm: kwin_x11 dm: SDDM 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: Micro-Star product: Bravo 15 A4DDR v: REV:1.0 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: Micro-Star model: MS-16WK v: REV:1.0 serial: <filter> 
  UEFI: American Megatrends v: E16WKAMS.10D date: 05/19/2020 
Battery:
  ID-1: BAT1 charge: 51.1 Wh condition: 52.5/51.3 Wh (102%) volts: 12.5/11.4 
  model: MSI Corp. MS-16WK type: Li-ion serial: N/A status: Discharging 
CPU:
  Topology: 8-Core model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64 
  type: MT MCP arch: Zen family: 17 (23) model-id: 60 (96) stepping: 1 
  microcode: 8600102 L2 cache: 4096 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 92662 
  Speed: 1501 MHz min/max: 1400/2900 MHz boost: enabled Core speeds (MHz): 
  1: 2392 2: 2197 3: 1397 4: 1397 5: 1397 6: 1396 7: 1397 8: 1396 9: 1278 
  10: 1324 11: 1282 12: 1328 13: 1277 14: 1284 15: 1397 16: 1397 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, IBRS_FW, 
  STIBP: conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: AMD Navi 14 [Radeon RX 5500/5500M / Pro 5500M] 
  vendor: Micro-Star MSI driver: amdgpu v: kernel bus ID: 03:00.0 
  chip ID: 1002:7340 
  Device-2: AMD Renoir vendor: Micro-Star MSI driver: amdgpu v: kernel 
  bus ID: 07:00.0 chip ID: 1002:1636 
  Device-3: Acer HD Webcam type: USB driver: uvcvideo bus ID: 1-4:3 
  chip ID: 5986:211b 
  Display: x11 server: X.Org 1.20.8 compositor: kwin_x11 driver: amdgpu 
  FAILED: ati unloaded: modesetting,radeon alternate: fbdev,vesa 
  display ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
  s-diag: 582mm (22.9") 
  Monitor-1: eDP res: 1920x1080 hz: 120 dpi: 142 size: 344x193mm (13.5x7.6") 
  diag: 394mm (15.5") 
  OpenGL: renderer: AMD RENOIR (DRM 3.38.0 5.8.6-1-MANJARO LLVM 10.0.1) 
  v: 4.6 Mesa 20.1.7 direct render: Yes 
Audio:
  Device-1: AMD Navi 10 HDMI Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus ID: 03:00.1 chip ID: 1002:ab38 
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor 
  vendor: Micro-Star MSI driver: snd_rn_pci_acp3x v: kernel 
  alternate: snd_pci_acp3x bus ID: 07:00.5 chip ID: 1022:15e2 
  Device-3: AMD Family 17h HD Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus ID: 07:00.6 chip ID: 1022:15e3 
  Sound Server: ALSA v: k5.8.6-1-MANJARO 
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: N/A modules: iwlwifi bus ID: 04:00.0 
  chip ID: 8086:2723 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Micro-Star MSI driver: r8168 v: 8.048.03-NAPI modules: r8169 
  port: f000 bus ID: 05:00.0 chip ID: 10ec:8168 
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:
  Local Storage: total: 476.94 GiB used: 83.63 GiB (17.5%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 model: SSSTC CL1-8D512 size: 476.94 GiB block size: 
  physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 serial: <filter> 
  rev: 1.01 scheme: GPT 
Partition:
  ID-1: / raw size: 333.73 GiB size: 327.49 GiB (98.13%) 
  used: 83.61 GiB (25.5%) fs: ext4 dev: /dev/nvme0n1p5 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 15.63 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/nvme0n1p6 
Sensors:
  System Temperatures: cpu: 40.2 C mobo: N/A 
  Fan Speeds (RPM): N/A 
  GPU: device: amdgpu temp: 42 C device: amdgpu temp: 44 C fan: 65535 
Info:
  Processes: 308 Uptime: 6m Memory: 15.11 GiB used: 2.09 GiB (13.8%) 
  Init: systemd v: 246 Compilers: gcc: 10.2.0 Packages: pacman: 1303 lib: 349 
  flatpak: 0 Shell: Bash v: 5.0.18 running in: yakuake inxi: 3.1.05 

Note that when this problem happens in the network section for the wifi card the driver is listed as N/A (instead of iwlwifi).

The second problem, which might be related, is a slow internet speed getting most of the time 0 bytes per second both for upload and download of data.

Any help will be most welcome.

Thank you very much

1 Like

There can be several reasons for this. Does the failure of your wifi to load follow a pattern? For example, does it routinely work from manjaro session to manjaro session, but fail when you leave a windows session and boot into manjaro? If that’s the case, this is a known issue–sometimes windows doesn’t relinquish its ‘hold’ on the adapter, so the bios still things it’s spoken for. Try removing your battery and pressing the power button for 20 seconds or so, then reinstalling the battery and booting into manjaro. Can you let us know if that works?

I think it must be related to what you are commenting, it has happened twice in a row after booting in windows and before that it didnt happen for a long time while only booting in manjaro. I cannot remove the battery although there is some sort of battery reset button in the PC that I could use. For the moment I think is not necessary because I have also noticed that after leaving the laptop turned off for the whole night the wifi usually comes back in the morning.

Would this explanation relating Windows to the problem also explain why the wifi is so slow?

Is there a fix to this problem then? Could I update the windows drivers or modify some settings in the BIOS?

That is called a “side effect”: the hardware is certified for Windows and there is a bug in the Windows driver or UEFI firmware. The solution to this is to always shut down Windows and then press the power button again to boot into Manjaro (Cold boot) I.E. Do not reboot from Windows and then start Manjaro

Please give us the output of:

 nmcli device wifi list | grep "*"

P.S. It’s also better to ask one question per … well… Question! because it’s easier to find one expert per question than one expert that has an answer to both questions. (as both are networking questions you’re in luck though)

:grin:

The solution to this is to always shut down Windows and then press the power button again to boot into Manjaro (Cold boot) I.E. Do not reboot from Windows and then start Manjaro

I think this is not enough because I always turn off the laptop and boot into a different laptop, I think the key is to wait for a given amount of time (or reset the battery as @mendizale suggested).

Sorry about the two questions I though it would be better to explain all the issues relating the wifi card just in case both are consequences of the same problem. The result of nmcli device wifi list | grep "*" is:
* E2:41:36:9A:AD:68 INTERNET_COMPANY Infra 1 130 Mbit/s 65 ▂▄▆_ WPA2

Please, consistently:

  • Shut Windows down completely
  • Wait for 1 second
  • Turn the machine back on
  • Boot Manjaro

Because there probably is a bug in the Windows driver or UEFI firmware. This is called a Cold boot. I.E. Do not reboot from Windows and then start Manjaro (Warm boot)

That’s good, so that’s not the problem.

Try the following:

  • disable power saving by adding power_save=0 to /etc/modprobe.d/iwlwifi.conf
  • If the above doesn’t help, try the 5.4 LTS kernel (Intel had some issues in the 5.7 kernel, maybe they’re not all gone), keep the parameter above there as well
  • Please provide the full contents of /etc/modprobe.d/iwlwifi.conf

:innocent:

1 Like

Thank you for the feedback. I have no /etc/modprobe.d/iwlwifi.conf file, should I create one with root permissions?

Yes, please.

After some testing I can confirm that both solutions you gave are working, it has been enough to edit the wifi configuration file to improve the speed and letting a few seconds between boots is often enought to ensure the wifi gets loaded.

Thank you for the help!

1 Like

I’ve edited the solution and the title of this conversarion to include all scenarios.
Please verify so the next person that has the same problem as you will find a ready-made solution…

:+1:

1 Like

I recommend turning off “fast startup” in Windows if you have a dual-boot configuration. Maybe your problem is related.

Please confirm that “fast startup” was already disabled? (or wasn’t)

:scream:

Thanks @pobrn: I should have asked that first!

:man_facepalming:

Hi! Yes I already had it disabled as part of the installation of manjaro in dual boot with windows.

Yes, your edit looks perfect to me, thanks for taking the time!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.