今天我在一台全新的电脑上安装了 Ubuntu 18.04 LTS,虽然安装过程很顺利,但我无法通过 WiFi 连接到互联网。首先,我以为这只是手动启用 WiFi 的问题,所以我进入设置并看到一条通知:“未找到 Wi-Fi 适配器”。我进行了一些谷歌搜索,并尝试执行描述的所有步骤这里,但它仍然不起作用。
命令lspci -knn | grep Net -A3; rfkill list
返回:
00:14.3 Network controller [0280]: Intel Corporation Wireless-AC 9560 [Jefferson Peak] [8086:a370] (rev 10)
Subsystem: Intel Corporation Device [8086:0034]
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi, wl
0: ideapad_wlan: Wireless LAN
Soft blocked: no
Hard blocked: yes
1: ideapad_bluetooth: Bluetooth
Soft blocked: no
Hard blocked: yes
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
3: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
并lshw -C network
返回:
*-network DISABLED
description: Wireless interface
product: Wireless-AC 9560 [Jefferson Peak]
vendor: Intel Corporation
physical id: 14.3
bus info: pci@0000:00:14.3
logical name: wlp0s20f3
version: 10
serial: 0c:dd:24:2c:af:83
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=5.0.0-23-generic firmware=43.95eb4e97.0 latency=0 link=no multicast=yes wireless=IEEE 802.11
resources: irq:16 memory:b4518000-b451bfff
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:07:00.0
logical name: enp7s0
version: 15
serial: 98:fa:9b:a0:b0:cc
size: 10Mbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=half firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
resources: irq:17 ioport:3000(size=256) memory:b4304000-b4304fff memory:b4300000-b4303fff
*-network
description: Ethernet interface
physical id: 3
logical name: enp0s20f0u2
serial: 12:7f:41:92:a5:de
capabilities: ethernet physical
configuration: broadcast=yes driver=rndis_host driverversion=22-Aug-2005 firmware=RNDIS device ip=192.168.42.47 link=yes multicast=yes
我还能做些什么来让事情顺利进行?
答案1
在终端中运行
sudo tee /etc/modprobe.d/blacklist-ideapad.conf <<< "blacklist ideapad_laptop"
然后重新启动。
解释:
如您所见,无线设备已被“硬件阻止” rfkill
。
0: ideapad_wlan: Wireless LAN
Soft blocked: no
Hard blocked: yes
新的 Ideapad 笔记本电脑没有硬件无线开关,ideapad_laptop
内核模块认为开关处于关闭状态。
因此我们禁用该模块,Wi-Fi 就可以正常工作。
内核开发人员将新的笔记本电脑型号添加到需要模块特性的列表中。但新型号出现的速度比添加的速度要快。
如果你有兴趣,你可以向上游发送补丁;-)