我的联想 X1 的 wifi 适配器出了点问题。我刚刚更新到了 Ubuntu 20.04。我之前一直在运行 Ubuntu 18,可以通过运行以下命令解决该问题:
sudo apt update
sudo apt install git build-essential
git clone https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi.git
cd backport-iwlwifi/
make defconfig-iwlwifi-public
sed -i 's/CPTCFG_IWLMVM_VENDOR_CMDS=y/# CPTCFG_IWLMVM_VENDOR_CMDS is not set/' .config
make -j8
sudo make install
sudo modprobe iwlwifi
但这在 20.04 中似乎不起作用。我尝试按照说明操作这里下载 ucode 文件这里并运行:
sudo apt update
sudo apt upgrade
sudo cp ~/Downloads/iwlwifi-cc-46.3cfab8da.0/iwlwifi-cc-a0-46.ucode /lib/firmware/iwlwifi-cc-a0-46.ucode
sudo modprobe -r iwlmvm && sudo modprobe -r iwlwifi && sudo modprobe iwlwifi
我已经重启等,但仍然无法正常工作。我在设置面板中看不到 wifi 选项。按照前面的问题解决方法建议,以下是一些输出:
lspci -knn | grep Net -A3; rfkill list
52:00.0 Network controller [0280]: Intel Corporation Wi-Fi 6 AX200 [8086:2723] (rev 1a)
Subsystem: Intel Corporation Wi-Fi 6 AX200 [8086:0080]
Kernel modules: iwlwifi
53:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader [10ec:525a] (rev 01)
0: tpacpi_bluetooth_sw: Bluetooth
Soft blocked: no
Hard blocked: no
dmesg | grep iwl
[ 3.907244] Loading modules backported from iwlwifi
[ 3.907245] iwlwifi-stack-public:master:8324:9176b151
[ 3.931619] iwlwifi 0000:52:00.0: enabling device (0000 -> 0002)
[ 4.425083] iwlwifi: probe of 0000:52:00.0 failed with error -110