I was issued a dell precision 5570 workstation with Ubuntu 22.04 on it. I have noticed that wifi does not work on it until I unload and load the iwlwifi
kernel module. In fact, the device doesn't even list as available under the wifi settings in gnome until I do. Once reloaded, wifi works as expected. However, every time I reboot the workstation, I must redo the iwlwifi
reload.
sudo modprobe -r iwlwifi
sudo modproble iwlwifi
My question is how, or more precisely what would be the best way to persist this change? I had a similar situation on a dell latitude with Alma Linux 8 where this same problem happened and regenerating the initramfs via dracut
after reloading the iwlwifi
kernel module was enough to persist that, but when I try the either of the following commands, that does not seem to work:
sudo update-initramfs -c -k $(uname -r)
sudo update-initramfs -c -k all
For more information, here is what lspci
shows:
$USER@$HOST:~$ lspci -knn | grep Net -A3
00:14.3 Network controller [0280]: Intel Corporation Alder Lake-P PCH CNVi WiFi [8086:51f0] (rev 01)
Subsystem: Intel Corporation Device [8086:4090]
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
lsmod
shows the following:
$USER@$HOST:~$ lsmod | grep iwl
iwlmvm 610304 0
mac80211 1314816 1 iwlmvm
iwlwifi 503808 1 iwlmvm
cfg80211 1044480 3 iwlmvm,iwlwifi,mac80211
And don't know if this will be helpful, but rfkill shows the following before I reload:
$USER@$HOST:~$ rfkill
ID TYPE DEVICE SOFT HARD
0 bluetooth hci0 unblocked unblocked
1 wlan dell-wifi unblocked unblocked
2 bluetooth dell-bluetooth unblocked unblocked
But show's this after the reload of the module:
$USER@$HOST:~$ rfkill
ID TYPE DEVICE SOFT HARD
0 bluetooth hci0 unblocked unblocked
1 wlan dell-wifi unblocked unblocked
2 bluetooth dell-bluetooth unblocked unblocked
3 wlan phy0 unblocked unblocked
For reference as well, I am running the linux-generic-hwe-22.04
kernel, which puts me at 5.19.0-35-generic
.
I've also checked the bios settings to make sure the wlan/wwan device wasn't disabled or that power management wasn't disabling wlan/wwan when it detects a wired connection. I also checked to make sure iwlwifi
wasn't a blacklisted module.
journalctl -b | grep iwl
. If you want to execute a script at startup you can use systemd: https://askubuntu.com/questions/919054/how-do-i-run-a-single-command-at-startup-using-systemd – Khalid Abu Shawarib Mar 11 '23 at 11:00