我在使用 WiFi 时遇到了网络连接问题。我的电脑品牌是 HP,使用的是 Ubuntu 20.04.5 LTS,内核是 5.15.0-52-generic。目前互联网速度始终低于 8 Mbps,而其他设备始终高于 20 Mbps。以下是与我的笔记本电脑相关的信息。我真的希望有人能帮助我解决这个连接速度慢的问题。
lspci -nnk | grep -iA3 net && iwconfig
01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]
DeviceName: Realtek Wireless LAN + BT
Subsystem: Hewlett-Packard Company RTL8821CE 802.11ac PCIe Wireless Network Adapter [103c:884d]
Kernel driver in use: rtw_8821ce
Kernel modules: rtw_8821ce, 8821ce
02:00.0 Non-Volatile memory controller [0108]: Kingston Technology Company, Inc. Device [2646:5010] (rev 03)
lo no wireless extensions.
wlo1 IEEE 802.11 ESSID:"XXXX"
Mode:Managed Frequency:2.452 GHz Access Point: 60:D7:55:7C:5F:D4
Bit Rate=65 Mb/s Tx-Power=19 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=27/70 Signal level=-83 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:2882 Missed beacon:0
uname -r
5.15.0-52-generic
lsmod | grep 8821
8821ce 2068480 0
rtw_8821ce 16384 0
rtw_8821c 94208 1 rtw_8821ce
rtw_pci 28672 1 rtw_8821ce
rtw_core 286720 2 rtw_8821c,rtw_pci
cfg80211 970752 3 rtw_core,mac80211,8821ce
sudo dkms status
[sudo] password for x:
rtl8821ce, 5.5.2.1: added
rtl8821ce, v5.5.2_34066.20200325, 5.15.0-52-generic, x86_64: installed (WARNING! Diff between built and installed module!)
在此先非常感谢所有提供帮助的人。在决定发布此问题之前,我已经搜索信息和故障排除了近 3 天。如果需要,请随时询问更多信息。
结果
sudo apt install rtl8821ce-dkms
Deleting module version: 5.5.2.1
completely from the DKMS tree.
------------------------------
Done.
Loading new rtl8821ce-5.5.2.1 DKMS files...
Building for 5.15.0-50-generic 5.15.0-52-generic
Building initial module for 5.15.0-50-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/rtl8821ce-dkms.
0.crash'
Error! Bad return status for module build on kernel: 5.15.0-50-generic (x86_64)
Consult /var/lib/dkms/rtl8821ce/5.5.2.1/build/make.log for more information.
dpkg: error processing package rtl8821ce-dkms (--configure):
installed rtl8821ce-dkms package post-installation script subprocess returned e
rror exit status 10
Errors were encountered while processing:
rtl8821ce-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
我终于找到了解决这个问题的方法。
首先,我们需要使用以下命令将 rtw88_8821ce 列入黑名单:
sudo nano /etc/modprobe.d/blacklist.conf
然后加
黑名单 rtw88_8821ce
到列表底部。然后按 Ctrl+O 保存,再按 Ctrl+x 退出
将该驱动程序列入黑名单后,我们将没有 wifi 适配器,也找不到 wifi。我尝试使用手机 USB 网络共享连接到互联网,然后运行以下命令:
wget http://archive.ubuntu.com/ubuntu/pool/universe/r/rtl8821ce/rtl8821ce-dkms_5.5.2.1-0ubuntu10_all.deb
sudo dpkg -i rtl8821ce-dkms_5.5.2.1-0ubuntu10_all.deb
sudo modprobe rtl8821ce
注意:任何人都可以编辑和修改我的答案,因为我不擅长解释它,但我很高兴知道我的连接速度慢的问题得到了解决。