Ubuntu 20.04 wi-fi not working
Diagnosis
Please post the output of
$ lspci -nnk | grep -i -A2 net
$ ip a
$ sudo ip link set wlp2s0 up
$ ethtool -i wlp2s0
$ service network-manager status
$ uname -a
$ ls -al /etc/modprobe.d
$ cat /etc/modprobe.d/modprobe.conf
$ cat /etc/modprobe.d/iwlwifi.conf
$ cat /proc/cmdline
$ modinfo iwlwifi
$ ls -al $(locate rfkill | grep service)
EDIT
$ dmesg | grep phy0
Plus, you can install hardinfo
and inspect Computer -> Kernel Modules, Devices -> PCI Devices, Network -> Interfaces -> wlp2s0.
I wouldn't think this relates to the kernel version, as some reported in old posts.
Possible solutions
Try:
- Disabling Secure Boot/Fast Boot in BIOS (source) and Fast Startup in Win 10 if possible (source).
-
sudo rfkill unblock all
(source).
EDIT
-
This and this show options to be placed in a suitable
/etc/modprobe.d/
file, mayberfkill.conf
. I am not sure which apply toiwlwifi
. I would try addingoptions rfkill master_switch_mode=1 options rfkill default_state=0
to file
/etc/modprobe.d/rfkill.conf
and rebooting. -
This post in an old thread for slackware shows a solution to a somewhat similar problem. You might try checking the whole thread and find possible analogies with your current Ubuntu. Posting whatever partial conclusions also helps.
-
This post and this in old threads for archlinux show a solution to another somewhat similar problem, blacklisting some driver. A similar solution for archlinux is shown here for a soft blocking. So you might try
echo "blacklist asus_wmi" | sudo tee /etc/modprobe.d/asus_wmi.conf
(used e.g. here, one of the threads where chilli555 took part) and further like here for full blacklisting dependencies. I am not certain
asus_wmi
is the right module to blacklist. Reboot and runsudo rfkill unblock all
I guess you might try finding the proper config file where to remove the driver, unblock, and then reload the driver. This seems to do that, but at the command line and for a soft blocking, not the same as your case.
I will wait until you post feedback.
Related
- https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1875921 ?
- I have to issue "rfkill unblock wifi" at every boot
- https://classicforum.manjaro.org/index.php?topic=11918.0
- https://manpages.ubuntu.com/manpages/focal/man8/systemd-rfkill.service.8.html
- Why Wifi is not working in this Asus laptop of Ubuntu 16.04?
- WiFi not showing on Ubuntu 16.04 - Asus ROG GL502VMK
- https://forums.linuxmint.com/viewtopic.php?t=275294
- How to blacklist kernel modules?
- How to unblock something listed in rfkill?