Skip to content

Occasionally wlan0 adapter is not visible at all.

Hello.

As title says there are times that the wireless adapter (wlan0) is not working. It is not even enlisted in the ip a command. It seems like a race condition issue but so far I couldn't solve it. Some times I need to reboot the system 3-4 times. It's really annoying. I don't know if that matters but I'm using the iwctl to connect to WiFi networks.

Following are results of various commands I used to figure out what might be wrong.

  • ip a

​

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: lxcbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 00:16:3e:00:00:00 brd ff:ff:ff:ff:ff:ff
    inet 10.0.3.1/24 brd 10.0.3.255 scope global lxcbr0
       valid_lft forever preferred_lft forever
3: wwan0: <POINTOPOINT,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/none
  • iwctl adapter list

​

                                   Adapters
--------------------------------------------------------------------------------
  Name               Powered   Vendor              Model
--------------------------------------------------------------------------------
  phy0               on        Intel CorporationWi-Fi 6 AX201
  • journalctl -b

https://paste.c-net.org/CeremonySlinky

​

  • lsmod | grep wilwifi

​

93:iwlwifi               356352  1 iwlmvm
112:cfg80211             1085440  3 iwlmvm,iwlwifi,mac80211
  • lspci -v

https://paste.c-net.org/BrettAgreed

​

  • rfkill

​

ID TYPE      DEVICE                   SOFT      HARD
 0 bluetooth tpacpi_bluetooth_sw unblocked unblocked
 1 wwan      tpacpi_wwan_sw      unblocked unblocked
 2 bluetooth hci0                unblocked unblocked
 3 wlan      phy0                unblocked unblocked
  • systemctl list-unit-files --state=enabled

​

UNIT FILE                STATE   PRESET
bluetooth.service        enabled disabled
getty@.service           enabled enabled
iwd.service              enabled disabled
lxc-net.service          enabled disabled
systemd-resolved.service enabled enabled
remote-fs.target         enabled enabled
fstrim.timer             enabled disabled

Can someone help me out on what else to look for? Or am I missing something here?

23 points10 comments
Open on Reddit
About this post
Posted
Archived
Score
23 · 87% up
Kind
Text
ID
yu59tr

Author

50
posts
33
comments
1
media
View profile

11 comments

I've had a lot of problems like this in the past, and it was almost always fixed by reloading the kernel module.

sudo rmmod iwlwifi

then

sudo modprobe iwlwifi

This would often happen to me after suspending the system, is that how it is for you?

9 points

iwd deletes and recreates the wifi interface when it starts. This is probably the cause. Restarting iwd when it happens makes it work for me, but you can also disable it doing that in the first place, but it might cause issues because it does it for a reason.

5 points

Are you dual booting? On my desktop, if I boot did a shutdown from windows it would leave the WiFi chip in a bad power state. When I booted to Arch it would not show up. The solution was to disable power management (I think to stop putting the device to sleep?) of the device through Windows device manager.

2 points

I indeed have dual boot but I turn the windows on only few times in a year. What I describe is happening more often.

1 points

I am dual booting and experience the same with iwlwifi. My sloppy solution is a reboot to either the -zen or -lts kernel (if it's the regular linux kernel where the problem begins).

I see this on planned reboots from Win-to-Arch though and not from a hibernated/suspended state on Windows. . .

1 points

I have the same problem occasionally and randomly; at boot or after resuming from suspend.

No idea why.

Restarting iwd and toggling rfkill does not help. Rebooting fixes it.

2 points

Try the kernel module reload like a comment suggested and if you have a Windows dual boot partition, disable fast boot and delete the contents of C:/Windows/Prefetch folder.

1 points

Just re-happened and did that. And everything worked!

Thanks a lot guyz.

1 points

I once had the issue that my wifi adapter was not visible. Fixed it by installing / upgrading linux-firmware package.

1 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.