最近买了一台预装 Windows 10 的联想 T470。我通过 USB 启动同时安装了 Ubuntu 16.04。和许多其他帖子一样,Wifi 连接未显示。
我的主目录已加密,以防相关。
检查后,没有可用的Wifi/网络设备。
lspci -n -d 14e4
( 没有反应 )
iwconfig
enp0s31f6 no wireless extensions.
lo no wireless extensions.
设置中也没有显示任何无线驱动程序。
我怀疑 Ubuntu 无法识别我的无线设备。有什么建议/更多信息可以解决这个问题吗?
更新 1:
在 Pilot6 发表评论后,我再次检查,仍然没有回复。
lspci -knn | grep Net -A2
更新2:
lspci
00:00.0 Host bridge: Intel Corporation Device 5904 (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Device 5916 (rev 02)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI (rev 21)
00:1c.0 PCI bridge: Intel Corporation Device 9d10 (rev f1)
00:1c.6 PCI bridge: Intel Corporation Device 9d16 (rev f1)
00:1d.0 PCI bridge: Intel Corporation Device 9d18 (rev f1)
00:1d.2 PCI bridge: Intel Corporation Device 9d1a (rev f1)
00:1f.0 ISA bridge: Intel Corporation Device 9d58 (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Device 9d71 (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (4) I219-V (rev 21)
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device b822
3e:00.0 Non-Volatile memory controller: Toshiba America Info Systems Device 0115 (rev 01)
lsusb
Bus 002 Device 002: ID 0bda:0316 Realtek Semiconductor Corp.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 04f2:b5ab Chicony Electronics Co., Ltd
Bus 001 Device 003: ID 0bda:b023 Realtek Semiconductor Corp.
Bus 001 Device 002: ID 058f:9540 Alcor Micro Corp. AU9540 Smartcard Reader
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
更新 3:在 LaunchPad 上询问后提供了更多信息
sudo lshw -C network
*-network
description: Ethernet interface
product: Ethernet Connection (4) I219-V
vendor: Intel Corporation
physical id: 1f.6
bus info: pci@0000:00:1f.6
logical name: enp0s31f6
version: 21
serial: 54:e1:ad:1f:de:57
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=0.1-4 latency=0 link=no multicast=yes port=twisted pair
resources: irq:122 memory:ec200000-ec21ffff
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial
uname -a
Linux simon-ThinkPad-T470 4.8.0-36-generic #36~16.04.1-Ubuntu SMP Sun Feb 5 09:39:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: tpacpi_bluetooth_sw: Bluetooth
Soft blocked: no
Hard blocked: no
答案1
因为你有 4.8 内核,请尝试
sudo apt-get install git build-essential
git clone https://github.com/rtlwifi-linux/rtlwifi-next.git
cd rtlwifi-next
make
sudo make install
重启
使用 4.8 内核编译时会出现一些警告
让我们禁用模块中的省电功能
echo "options rtl8822be ips=N" | sudo tee /etc/modprobe.d/rtl8822be.conf
我们将使用下一个命令来阻止网络管理器尝试启用电源管理
sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
重启
答案2
我最近在尝试安装 Fedora 28 时遇到了同样的问题(HP 笔记本电脑(14-cf0xxx))。Fedora 28 附带此内核:
kernel-4.16.3-301.fc28.x86_64
使用此版本,rtl* WiFi 硬件无法工作。但是,当我使用以太网更新系统以便能够访问互联网时,这个较新版本的 Linux 内核可以正常工作:
内核-4.18.5-200.fc28.x86_64
对软件包进行简单的更新即可解决此问题,从而节省了手动构建模块的精力。
笔记:这是我正在处理的 WiFi 硬件:
$ lspci | grep Realtek
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter