今天更新并重启我的电脑(运行 Ubuntu 22.04.2 LTS)后,互联网连接变得非常不稳定且缓慢,经常断线。以下是 history.log 中的更改列表
Start-Date: 2023-04-28 12:24:07
Commandline: aptdaemon role='role-commit-packages' sender=':1.128'
Install: linux-modules-5.15.0-71-generic:amd64 (5.15.0-71.78, automatic), linux-modules-extra-5.15.0-71-generic:amd64 (5.15.0-71.78, automatic), linux-image-5.15.0-71-generic:amd64 (5.15.0-71.78, automatic), linux-headers-5.15.0-71:amd64 (5.15.0-71.78, automatic), linux-headers-5.15.0-71-generic:amd64 (5.15.0-71.78, automatic)
Upgrade: linux-headers-generic:amd64 (5.15.0.70.68, 5.15.0.71.69), tzdata:amd64 (2023c-0ubuntu0.22.04.0, 2023c-0ubuntu0.22.04.1), linux-generic:amd64 (5.15.0.70.68, 5.15.0.71.69), libssl3:amd64 (3.0.2-0ubuntu1.8, 3.0.2-0ubuntu1.9), libssl3:i386 (3.0.2-0ubuntu1.8, 3.0.2-0ubuntu1.9), tableplus:amd64 (0.1.212, 0.1.214), ipp-usb:amd64 (0.9.20-1, 0.9.20-1ubuntu0.22.04.1), libssl-dev:amd64 (3.0.2-0ubuntu1.8, 3.0.2-0ubuntu1.9), linux-image-generic:amd64 (5.15.0.70.68, 5.15.0.71.69), ubuntu-advantage-tools:amd64 (27.13.6~22.04.1, 27.14.4~22.04), openssl:amd64 (3.0.2-0ubuntu1.8, 3.0.2-0ubuntu1.9), linux-libc-dev:amd64 (5.15.0-70.77, 5.15.0-71.78)
End-Date: 2023-04-28 12:25:41
Start-Date: 2023-04-28 13:12:41
Commandline: aptdaemon role='role-commit-packages' sender=':1.128'
Remove: linux-modules-5.15.0-69-generic:amd64 (5.15.0-69.76), linux-modules-extra-5.15.0-69-generic:amd64 (5.15.0-69.76), linux-headers-5.15.0-69:amd64 (5.15.0-69.76), linux-image-5.15.0-69-generic:amd64 (5.15.0-69.76), linux-headers-5.15.0-69-generic:amd64 (5.15.0-69.76)
End-Date: 2023-04-28 13:12:45
以下是输出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:01:00.0
logical name: eno1
version: 15
serial: 14:cb:19:72:e3:f2
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-71-generic firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=twisted pair
resources: irq:16 ioport:4000(size=256) memory:b1304000-b1304fff memory:b1300000-b1303fff
*-network
description: Wireless interface
product: RTL8821CE 802.11ac PCIe Wireless Network Adapter
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlo1
version: 00
serial: 64:6c:80:ca:8b:35
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-71-generic firmware=N/A ip=192.168.183.218 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:134 ioport:3000(size=256) memory:b1200000-b120ffff
如果有人能提供帮助,我将不胜感激。如果我犯了错误,请原谅,英语不是我的母语。
答案1
我的 wifi 连接也出现了一些不稳定的情况。在我研究这个问题的过程中,有人建议禁用 NetworkManager 配置中的省电选项。
这是通过编辑/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
文件并将行更改wifi.powersave=3
为来完成的wifi.powersave=2
。
我目前正在尝试这个,虽然不完美,但似乎比以前更好。
请参阅:如何永久关闭无线电源管理 | Unix 和 Linux
祝你好运!
答案2
感谢大家的帮助,我成功解决了我的问题。
经过一番研究,我设法通过将 rtw88_8821ce 列入黑名单/etc/modprobe.d/blacklist.conf
并重新启动来修复它。这迫使计算机改用已安装的 rtl8821ce 驱动程序,现在它运行正常。