You are not logged in.

#1 2023-11-14 18:05:43

Fractal-Tess
Member
Registered: 2023-10-25
Posts: 18

[SOLVED] No results in iwctl for station wlan0 on a laptop

Hey there,

I'm unable to get any results for network SSID when scanning for them in iwctl using my wlan0 (laptop-s built-in network adapter).
I checked on Windows (dual booting) to confirm whether or not the network card is dead or not, but it works like normal.
I'm not sure what could cause this, since it was working perfectly fine yesterday. One thing that comes to mind that could have bricked it, is that I entered an installed media to resize my boot drive (allocate more of the SSD towards Windows (grow windows, shrink Linux)).

I'm currently using an external USB antenna and I'm connecting to my router via station wlan1, but I would like to know how I can attempt to debug and fix wlan0 (the laptop's internal network card).

Screenshot of what iwctl looks like when scanning for networks.
https://i.imgur.com/kKxwl9f.png

Here is journalctl -u iwd

-- Boot d494e5da8644410fbf0c321fee0d4e83 --
Nov 02 21:58:32 ArchLinux systemd[1]: Starting Wireless service...
Nov 02 21:58:32 ArchLinux iwd[463]: Wireless daemon version 2.8
Nov 02 21:58:32 ArchLinux systemd[1]: Started Wireless service.
Nov 02 21:58:32 ArchLinux iwd[463]: station: Network configuration is disabled.
Nov 02 21:58:32 ArchLinux iwd[463]: Wiphy: 0, Name: phy0
Nov 02 21:58:32 ArchLinux iwd[463]:         Permanent Address: 94:08:53:3c:6b:03
Nov 02 21:58:32 ArchLinux iwd[463]:         2.4Ghz Band:
Nov 02 21:58:32 ArchLinux iwd[463]:                 Bitrates (non-HT):
Nov 02 21:58:32 ArchLinux iwd[463]:                          1.0 Mbps
Nov 02 21:58:32 ArchLinux iwd[463]:                          2.0 Mbps
Nov 02 21:58:32 ArchLinux iwd[463]:                          5.5 Mbps
Nov 02 21:58:32 ArchLinux iwd[463]:                         11.0 Mbps
Nov 02 21:58:32 ArchLinux iwd[463]:                          6.0 Mbps
Nov 02 21:58:32 ArchLinux iwd[463]:                          9.0 Mbps
Nov 02 21:58:32 ArchLinux iwd[463]:                         12.0 Mbps
Nov 02 21:58:32 ArchLinux iwd[463]:                         18.0 Mbps
Nov 02 21:58:32 ArchLinux iwd[463]:                         24.0 Mbps
Nov 02 21:58:32 ArchLinux iwd[463]:                         36.0 Mbps
Nov 02 21:58:32 ArchLinux iwd[463]:                         48.0 Mbps
Nov 02 21:58:32 ArchLinux iwd[463]:                         54.0 Mbps
Nov 02 21:58:32 ArchLinux iwd[463]:                 HT Capabilities:
...skipping...
Nov 14 21:38:57 ArchLinux iwd[460]:                         48.0 Mbps
Nov 14 21:38:57 ArchLinux iwd[460]:                         54.0 Mbps
Nov 14 21:38:57 ArchLinux iwd[460]:                 HT Capabilities:
Nov 14 21:38:57 ArchLinux iwd[460]:                         HT40
Nov 14 21:38:57 ArchLinux iwd[460]:                         Short GI for 20Mhz
Nov 14 21:38:57 ArchLinux iwd[460]:                         Short GI for 40Mhz
Nov 14 21:38:57 ArchLinux iwd[460]:                 HT RX MCS indexes:
Nov 14 21:38:57 ArchLinux iwd[460]:                         0-15
Nov 14 21:38:57 ArchLinux iwd[460]:                         32
Nov 14 21:38:57 ArchLinux iwd[460]:         5Ghz Band:
Nov 14 21:38:57 ArchLinux iwd[460]:                 Bitrates (non-HT):
Nov 14 21:38:57 ArchLinux iwd[460]:                          6.0 Mbps
Nov 14 21:38:57 ArchLinux iwd[460]:                          9.0 Mbps
Nov 14 21:38:57 ArchLinux iwd[460]:                         12.0 Mbps
Nov 14 21:38:57 ArchLinux iwd[460]:                         18.0 Mbps
Nov 14 21:38:57 ArchLinux iwd[460]:                         24.0 Mbps
Nov 14 21:38:57 ArchLinux iwd[460]:                         36.0 Mbps
Nov 14 21:38:57 ArchLinux iwd[460]:                         48.0 Mbps
Nov 14 21:38:57 ArchLinux iwd[460]:                         54.0 Mbps
Nov 14 21:38:57 ArchLinux iwd[460]:                 HT Capabilities:
Nov 14 21:38:57 ArchLinux iwd[460]:                         HT40
Nov 14 21:38:57 ArchLinux iwd[460]:                         Short GI for 20Mhz
Nov 14 21:38:57 ArchLinux iwd[460]:                         Short GI for 40Mhz
Nov 14 21:38:57 ArchLinux iwd[460]:                 HT RX MCS indexes:
Nov 14 21:38:57 ArchLinux iwd[460]:                         0-15
Nov 14 21:38:57 ArchLinux iwd[460]:                         32
Nov 14 21:38:57 ArchLinux iwd[460]:                 VHT Capabilities:
Nov 14 21:38:57 ArchLinux iwd[460]:                         Short GI for 80Mhz
Nov 14 21:38:57 ArchLinux iwd[460]:                         Max RX MCS: 0-9 for NSS: 2
Nov 14 21:38:57 ArchLinux iwd[460]:                         Max TX MCS: 0-9 for NSS: 2
Nov 14 21:38:57 ArchLinux iwd[460]:         Ciphers: BIP-CMAC-256 BIP-GMAC-256 BIP-GMAC-128 CCMP-256
Nov 14 21:38:57 ArchLinux iwd[460]:                  GCMP-256 GCMP-128 BIP-CMAC-128 CCMP-128
Nov 14 21:38:57 ArchLinux iwd[460]:                  TKIP
Nov 14 21:38:57 ArchLinux iwd[460]:         Supported iftypes: ad-hoc station ap
Nov 14 21:38:57 ArchLinux iwd[460]:         Driver Flags: DefaultInterface
Nov 14 21:38:57 ArchLinux iwd[460]: Wiphy phy0 will only use the default interface
Nov 14 21:38:57 ArchLinux systemd[1]: Started Wireless service.
Nov 14 21:39:51 ArchLinux iwd[460]: D-Bus disconnected, quitting...
Nov 14 21:39:51 ArchLinux iwd[460]: Removing scan context for wdev 1
Nov 14 21:39:51 ArchLinux systemd[1]: Stopping Wireless service...
Nov 14 21:39:52 ArchLinux iwd[460]: Terminate
Nov 14 21:39:52 ArchLinux systemd[1]: iwd.service: Deactivated successfully.
Nov 14 21:39:53 ArchLinux systemd[1]: Stopped Wireless service.

Solved edit:
tl;dr - > After disabling fast start and hybrid mode on windows and doing a few restarts, try to do a cold shutoff (usually holding the power button until the system goes out cold).

Last edited by Fractal-Tess (2023-11-15 00:18:12)

Offline

#2 2023-11-14 20:28:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,065

Re: [SOLVED] No results in iwctl for station wlan0 on a laptop

Please use [code][/code] tags, not "quote" tags. Edit your post in this regard.

I checked on Windows (dual booting)

3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.

Here is journalctl -u iwd
...skipping...

If it's not the dal-boot issue, please post your complete system journal for a boot after trying to use the NIC:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

#3 2023-11-14 21:15:22

Fractal-Tess
Member
Registered: 2023-10-25
Posts: 18

Re: [SOLVED] No results in iwctl for station wlan0 on a laptop

I went ahead and disabled fast start and hibernation with the following command powercfg /H off and proceeded to reboot 2 times - then i also rebooted my Linux 2 times.
After that, I booted into Linux, and started up iwctl to get the same result - station wlan0 get-networks returns an empty list even after issuing a scan.

Here is the sudo journalctl -b - https://0x0.st/HvMP.txt

Last edited by Fractal-Tess (2023-11-14 21:22:59)

Offline

#4 2023-11-14 21:21:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,065

Re: [SOLVED] No results in iwctl for station wlan0 on a laptop

Nov 14 23:06:32 ArchLinux kernel: rtw_8822ce 0000:03:00.0: enabling device (0000 -> 0003)
Nov 14 23:06:32 ArchLinux kernel: rtw_8822ce 0000:03:00.0: Firmware version 9.9.15, H2C version 15
Nov 14 23:06:32 ArchLinux kernel: rtw_8822ce 0000:03:00.0: WOW Firmware version 9.9.4, H2C version 15
Nov 14 23:06:33 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command
Nov 14 23:06:34 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command
Nov 14 23:06:35 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command
Nov 14 23:06:35 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command
Nov 14 23:06:35 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command
Nov 14 23:06:35 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command

Does the LTS kernel still work?

Offline

#5 2023-11-14 21:24:01

Fractal-Tess
Member
Registered: 2023-10-25
Posts: 18

Re: [SOLVED] No results in iwctl for station wlan0 on a laptop

seth wrote:
Nov 14 23:06:32 ArchLinux kernel: rtw_8822ce 0000:03:00.0: enabling device (0000 -> 0003)
Nov 14 23:06:32 ArchLinux kernel: rtw_8822ce 0000:03:00.0: Firmware version 9.9.15, H2C version 15
Nov 14 23:06:32 ArchLinux kernel: rtw_8822ce 0000:03:00.0: WOW Firmware version 9.9.4, H2C version 15
Nov 14 23:06:33 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command
Nov 14 23:06:34 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command
Nov 14 23:06:35 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command
Nov 14 23:06:35 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command
Nov 14 23:06:35 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command
Nov 14 23:06:35 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command

Does the LTS kernel still work?


I am not exactly sure what you mean by that.

Would you like me to use some other kernel version? And if so, how do i go about doing that?

Offline

#6 2023-11-14 21:27:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,065

Re: [SOLVED] No results in iwctl for station wlan0 on a laptop

https://archlinux.org/packages/core/x86_64/linux-lts/
You'll also need https://archlinux.org/packages/extra/x86_64/nvidia-lts/
And depending on your bootloader re-configure that (eg. w/ grub-mkconfig)

Offline

#7 2023-11-14 21:38:25

Fractal-Tess
Member
Registered: 2023-10-25
Posts: 18

Re: [SOLVED] No results in iwctl for station wlan0 on a laptop

seth wrote:

https://archlinux.org/packages/core/x86_64/linux-lts/
You'll also need https://archlinux.org/packages/extra/x86_64/nvidia-lts/
And depending on your bootloader re-configure that (eg. w/ grub-mkconfig)


Im unable to install the linux-lts kernel. Paru fails with the following output:

==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-lts-fallback.img'
zstd: error 70 : Write error : cannot write block : No space left on device 
bsdtar: Write error
bsdtar: Write error
==> ERROR: Image generation FAILED: 'bsdtar (step 1) reported an error'
error: command failed to execute correctly

edit:
I deleted some stuff from /boot - mainly some fallbacks and .tmp files to make room for linux-lts.
After that i did sudo update-grub and rebooted into linux-lts - uname -r - 6.1.62-1-lts.
Using that, i went ahead and tried to use the NIC once again, but again it shows no networks in iwctl.

Here is journal -b - https://0x0.st/HvM_.txt

Last edited by Fractal-Tess (2023-11-14 21:56:30)

Offline

#8 2023-11-14 21:54:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,065

Re: [SOLVED] No results in iwctl for station wlan0 on a laptop

That's the limited space on your boot partition.

You can either replace the kernel (remove linux and nvidia, install linux-lts and nvidia-lts) or try to safe space by possibly removing the nvidia modules from the initramfs (the firmware files blow them up tremendously) or remove the fallback images and also edit the /etc/mkinitcpio.d/linux*.preset files to prevent their generation.

Make sure to have the install iso or some live distro at hand - it's not really complicated or systematically risky to change the kernel, but if you manage to screw this up, you'll have to fix the system offline.

Offline

#9 2023-11-14 22:05:22

Fractal-Tess
Member
Registered: 2023-10-25
Posts: 18

Re: [SOLVED] No results in iwctl for station wlan0 on a laptop

seth wrote:

That's the limited space on your boot partition.

You can either replace the kernel (remove linux and nvidia, install linux-lts and nvidia-lts) or try to safe space by possibly removing the nvidia modules from the initramfs (the firmware files blow them up tremendously) or remove the fallback images and also edit the /etc/mkinitcpio.d/linux*.preset files to prevent their generation.

Make sure to have the install iso or some live distro at hand - it's not really complicated or systematically risky to change the kernel, but if you manage to screw this up, you'll have to fix the system offline.


Check the edit above - I did it slightly before you posted this message.
Also now that I've done a full system update by running paru - equivalent to pacman -Syu and also updating grub with sudo update-grub, i've lost the ability to use my external  USB antenna to connect to the router.
It used to show up before as wlan1, but it is now no longer there. I'm now using usb tethering from my phone to write this message.

edit:
I just found out that if I used the latest kernel 6.6.1-arch1-1, the system is able to recognize the USB antenna and it shows as wlan1 in iwctl.

Last edited by Fractal-Tess (2023-11-14 22:12:46)

Offline

#10 2023-11-14 22:12:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,065

Re: [SOLVED] No results in iwctl for station wlan0 on a laptop

Nov 14 23:50:40 ArchLinux kernel: Linux version 6.1.62-1-lts (linux-lts@archlinux) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.41.0) #1 SMP PREEMPT_DYNAMIC Thu, 09 Nov 2023 17:21:17 +0000
Nov 14 23:50:42 ArchLinux kernel: rtw_8822ce 0000:03:00.0: enabling device (0000 -> 0003)
Nov 14 23:50:42 ArchLinux kernel: rtw_8822ce 0000:03:00.0: Firmware version 9.9.15, H2C version 15
Nov 14 23:50:42 ArchLinux kernel: rtw_8822ce 0000:03:00.0: Firmware version 9.9.4, H2C version 15
Nov 14 23:50:43 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command
Nov 14 23:50:45 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command
Nov 14 23:50:45 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command
Nov 14 23:50:45 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command
Nov 14 23:50:45 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command
Nov 14 23:50:45 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command
Nov 14 23:50:45 ArchLinux kernel: rtw_8822ce 0000:03:00.0: failed to send h2c command

Same condition.

i've lost the ability to use my external  USB antenna to connect to the router

On either kernel?
You're probably using one of https://aur.archlinux.org/packages?O=0&K=rtl8812au for that and certainly lack linux-lts-headers for the DKMS.

Edit:
https://bugzilla.kernel.org/show_bug.cgi?id=215496#c22 seems to have it down to some PM, you could try to add "pcie_aspm=off" to globally disable that and see whether the NIC behaves afterwards. If yes, you can isolate the NIC

modinfo rtw_8822ce

Last edited by seth (2023-11-14 22:17:43)

Offline

#11 2023-11-14 22:13:54

Fractal-Tess
Member
Registered: 2023-10-25
Posts: 18

Re: [SOLVED] No results in iwctl for station wlan0 on a laptop

Should i be able to run

 modinfo rtw_8822ce 

, because it is throwing me this error

modinfo: ERROR: Module rtw_8822ce not found.

Here is lsmod | rg rtw -

rtw88_8822bu           12288  0
rtw88_8822ce           12288  0
rtw88_8822c           495616  1 rtw88_8822ce
rtw88_usb              28672  1 rtw88_8822bu
rtw88_8822b           229376  1 rtw88_8822bu
rtw88_pci              40960  1 rtw88_8822ce
rtw88_core            327680  4 rtw88_pci,rtw88_8822c,rtw88_usb,rtw88_8822b
mac80211             1572864  3 rtw88_pci,rtw88_core,rtw88_usb
cfg80211             1335296  2 rtw88_core,mac80211

Another thing is that after I installed rtl8812au-dkms-git which I blindly assumed is the correct one purely by it's popularity compared to the rest ( please correct me if it's not ), and also linux-its-headers, the USB antenna is still not showing up like it does for the latest kernel.

Also, where exactly should "pcie_aspm=off" to be added to?

Edit:
I think I messed up with playing around with different settings, and after adding this pcie flag to grub cmdline, my xorg no longer wants to start.
https://0x0.st/HvMU.txt
https://0x0.st/HvM5.txt

Last edited by Fractal-Tess (2023-11-14 23:12:17)

Offline

#12 2023-11-14 23:12:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,065

Re: [SOLVED] No results in iwctl for station wlan0 on a laptop

Ah, forgot that the module misrepresents its name.

If you first installed rtl8812au-dkms-git (you need one such package anyway for the dongle?) and then the headers you'll still need to build the module, https://wiki.archlinux.org/title/Dynami … le_Support
But you can ignore that for now - both kernels have the same problem.

Also, where exactly should "pcie_aspm=off" to be added to?

https://wiki.archlinux.org/title/Kernel_parameters

Edit: "pcie_aspm=off" isn't applied in those logs.
Get rid of xf86-video-ati.

Nov 15 01:01:10 ArchLinux kernel: amdgpu 0000:05:00.0: amdgpu: get invalid ip discovery binary signature
Nov 15 01:01:10 ArchLinux kernel: [drm:amdgpu_discovery_set_ip_blocks [amdgpu]] *ERROR* amdgpu_discovery_init failed
Nov 15 01:01:10 ArchLinux kernel: amdgpu 0000:05:00.0: amdgpu: Fatal error during GPU init
Nov 15 01:01:10 ArchLinux kernel: amdgpu 0000:05:00.0: amdgpu: amdgpu: finishing device.
Nov 15 01:01:10 ArchLinux kernel: amdgpu: probe of 0000:05:00.0 failed with error -22

Most likely move amdgpu back into the initramfs.

Last edited by seth (2023-11-14 23:18:15)

Offline

#13 2023-11-14 23:20:22

Fractal-Tess
Member
Registered: 2023-10-25
Posts: 18

Re: [SOLVED] No results in iwctl for station wlan0 on a laptop

seth wrote:

Ah, forgot that the module misrepresents its name.

If you first installed rtl8812au-dkms-git (you need one such package anyway for the dongle?) and then the headers you'll still need to build the module, https://wiki.archlinux.org/title/Dynami … le_Support
But you can ignore that for now - both kernels have the same problem.

Also, where exactly should "pcie_aspm=off" to be added to?

https://wiki.archlinux.org/title/Kernel_parameters

I did add it there, and doing cat on /proc/cmdline shows that the flag is there, however, there is no change in the behaviour of wlan0.

Also like I mentioned before, xorg is now not in a working condition. Any clue why that might be the case from the logs?

Edit :here is a new set of logs
https://0x0.st/Hvur.txt
https://0x0.st/Hvus.txt

Last edited by Fractal-Tess (2023-11-14 23:24:10)

Offline

#14 2023-11-14 23:46:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,065

Re: [SOLVED] No results in iwctl for station wlan0 on a laptop

seth wrote:

Most likely move amdgpu back into the initramfs.

The pattern also showed up in https://bbs.archlinux.org/viewtopic.php … 8#p2043368

Offline

#15 2023-11-14 23:55:46

Fractal-Tess
Member
Registered: 2023-10-25
Posts: 18

Re: [SOLVED] No results in iwctl for station wlan0 on a laptop

seth wrote:
seth wrote:

Most likely move amdgpu back into the initramfs.

The pattern also showed up in https://bbs.archlinux.org/viewtopic.php … 8#p2043368

Yep, i was just about to do that one, but i did i a Windows boot and reboot, into a cold shutoff. Now the system automagically works? I'm failing to comprehend what just happened, but I'm so happy I no longer have to fight with configs and black screens.
Xorg works, wlan0 works... Awesome!

I think the cold shutoff did the trick.
What are your thoughts?

Thank you so much for the help and guidance @seth.

Offline

#16 2023-11-15 00:02:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,065

Re: [SOLVED] No results in iwctl for station wlan0 on a laptop

What are your thoughts?

The only way this works is through residuals of the fast-start condition.
(The hibernating windows breaking your wifi is extremely common, so principally that's no surprise - but I might have to raise the voodoo to three reboots now…)

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

If the issue re-emerges, feel free toremove the tag and bump the thread.

Offline

Board footer

Powered by FluxBB