我全新安装了 Ubuntu 22.04,对 Ubuntu/Linux 内核非常陌生。结果,我的系统上的 wifi 连接上了,但不断掉线,尽管我坐在距离路由器 6 英尺的地方。当我启动系统时,我已将它安装在我的 HP 15-db1xxx 上。 开机时有 Wi-Fi ,WiFi 信号最初很好,但 4-5 分钟后使用后的 Wi-Fi 信号。当我使用互联网并断开连接时,信号波动就会发生,例如,页面将停止加载,我必须不断点击刷新按钮,直到它开始工作。这变得非常烦人,并且阻碍了我的工作。我在与 Ubuntu 22.04 双启动的 Windows 10 上没有遇到过这个问题。
$ sudo lshw -C network
*-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:02:00.0
logical name: eno1
version: 15
serial: 00:68:eb:7c:74:81
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 driverversion=5.15.0-30-generic firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=twisted pair
resources: irq:40 ioport:3000(size=256) memory:c0904000-c0904fff memory:c0900000-c0903fff
*-network
description: Wireless interface
product: RTL8821CE 802.11ac PCIe Wireless Network Adapter
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:03:00.0
logical name: wlo1
version: 00
serial: c0:e4:34:57:65:97
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=rtw_8821ce driverversion=5.15.0-30-generic firmware=N/A ip=192.168.0.20 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:73 ioport:2000(size=256) memory:c0800000-c080ffff
这是我的电脑的 PCI 信息
sudo lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.5 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 7
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
04:00.0 Non-Volatile memory controller: Silicon Motion, Inc. SM2263EN/SM2263XT SSD Controller (rev 03)
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso/Raven 2 [Radeon Vega Series / Radeon Vega Mobile Series] (rev c2)
05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller
05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
05:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor
05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
05:00.7 Non-VGA unclassified device: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/Renoir Non-Sensor Fusion Hub KMDF driver
以下是可能有帮助的笔记本电脑信息:
sudo lshw -C system
salman-ryzen
description: Notebook
product: HP Laptop 15-db1xxx (8LX89PA#ABJ)
vendor: HP
version: Type1ProductConfigId
serial: CND9461SXT
width: 64 bits
capabilities: smbios-3.1.1 dmi-3.1.1 smp vsyscall32
configuration: boot=normal chassis=notebook family=103C_5335KV HP Notebook sku=8LX89PA#ABJ uuid=64de2ba6-0a01-ea11-8102-0068eb7c7481
*-pnp00:00
product: PnP device PNP0c02
physical id: 0
capabilities: pnp
configuration: driver=system
*-pnp00:01
product: PnP device PNP0b00
physical id: 1
capabilities: pnp
configuration: driver=rtc_cmos
*-pnp00:04
product: PnP device PNP0c02
physical id: 4
capabilities: pnp
configuration: driver=system
*-pnp00:05
product: PnP device PNP0c01
physical id: 5
capabilities: pnp
configuration: driver=system
这个问题让我抓狂,扰乱了工作流程。这个问题在 Windows 10 上从未发生过。我试过克隆https://github.com/tomaspinho/rtl8821ce并安装了 Wifi 驱动程序,但这也不起作用。
我也尝试过这些解决方案 Ubuntu 22.04 LTS Wi-Fi 频繁断线 Ubuntu 18.04 LTS 上的 WiFi 随机断开连接
但它们对我没有用。请帮忙!
编辑:所以我卸载了 Ubuntu 22.04,并全新安装了内核为 5.10-14 的 MX-Linux 21,wifi 运行正常。这个问题早已消失,但我认为我们必须在较新的内核上报告这个错误。我尝试将 Ubuntu 上的内核从 5.15 更新到 5.17,但没有成功!无论如何,我认为 Ubuntu 22.04 仍然相当新,Canonical 正在努力修复这些错误。感谢大家的帮助,非常感谢。
答案1
这不是你的想象。我们很多人都有同样的问题。请参阅此帖子:
答案2
这里的问题是,旧内核根本没有此 wifi 卡的驱动程序,而新内核(5.15+)有一个不太好的内置驱动程序。因此,如果您尝试安装自己的更好的驱动程序,它会与内置驱动程序冲突并导致更多问题。
解决方案是将新内核的内置驱动程序列入黑名单,然后安装自己的驱动程序。请参阅步骤这里