我在笔记本电脑上安装了新的操作系统 debian bullseye。我在网络管理器中找不到 wifi 选项。
sudo lshw -C network
给出,
...
*-network UNCLAIMED
description: Network controller
product: RTL8821CE 802.11ac PCIe Wireless Network Adapter
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress cap_list
configuration: latency=0
resources: ioport:2000(size=256) memory:c0600000-c060ffff
...
lspci
给出输出像
...
Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
...
lsmod
给出
...
rtw88_8821ce 16384 0
rtw88_8821c 77824 1 rtw88_8821ce
rtw88_pci 28672 1 rtw88_8821ce
...
将向后移植添加到源列表后,我运行
sudo apt install -t bullseye-backports firmware-realtek
,然后就是表演了firmware-realtek is already the newest version (20210315-3)
。
我可以看到RTL8821C
无需向后移植即可使用这里。
的输出sudo modprobe wl && dmesg | grep wl
是modprobe: FATAL: Module wl not found in directory /lib/modules/5.10.0-9-amd64
输出ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.42.0.2 netmask 255.255.255.0 broadcast 10.42.0.255
inet6 xxxx::xxxx:xxxx:xxxx:xxxx prefixlen 64 scopeid 0x20<link>
ether xx:xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
RX packets 16449 bytes 16751257 (15.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 13241 bytes 1848301 (1.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 129 bytes 11324 (11.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 129 bytes 11324 (11.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
重新安装固件时,我收到以下警告,
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_gpu_info.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_ta.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_sos.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_ta.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_asd.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_sos.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_mec2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_mec2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_me.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_pfp.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_ce.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_sdma.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_sdma.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_vcn.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_vcn.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_smc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/arcturus_smc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navy_flounder_dmcub.bin for module amdgpu
还sudo journalctl | grep rtw
返回
Nov 18 15:27:26 debian kernel: rtw_8821ce 0000:02:00.0: firmware: failed to load rtw88/rtw8821c_fw.bin (-2)
Nov 18 15:27:26 debian kernel: rtw_8821ce 0000:02:00.0: Direct firmware load for rtw88/rtw8821c_fw.bin failed with error -2
Nov 18 15:27:26 debian kernel: rtw_8821ce 0000:02:00.0: failed to request firmware
Nov 18 15:27:26 debian kernel: rtw_8821ce 0000:02:00.0: failed to load firmware
Nov 18 15:27:26 debian kernel: rtw_8821ce 0000:02:00.0: failed to setup chip efuse info
Nov 18 15:27:26 debian kernel: rtw_8821ce 0000:02:00.0: failed to setup chip information
Nov 18 15:27:26 debian kernel: rtw_8821ce: probe of 0000:02:00.0 failed with error -22
Nov 24 21:38:57 debian kernel: rtw_8821ce 0000:02:00.0: firmware: direct-loading firmware rtw88/rtw8821c_fw.bin
Nov 24 21:38:57 debian kernel: rtw_8821ce 0000:02:00.0: Firmware version 24.8.0, H2C version 12
Nov 24 21:38:57 debian kernel: rtw_8821ce 0000:02:00.0: rfe 2 isn't supported
Nov 24 21:38:57 debian kernel: rtw_8821ce 0000:02:00.0: failed to setup chip efuse info
Nov 24 21:38:57 debian kernel: rtw_8821ce 0000:02:00.0: failed to setup chip information
Nov 30 11:16:48 debian sudo[2358]: username : TTY=pts/0 ; PWD=/home/username ; USER=root ; COMMAND=/usr/sbin/modprobe rtw88_8821ce
Nov 30 11:23:31 debian sudo[2561]: username : TTY=pts/0 ; PWD=/home/username ; USER=root ; COMMAND=/usr/sbin/modprobe rtw88_8821ce
并sudo dkms status
没有返回任何内容。
我禁用了安全启动并重新安装了驱动程序。但没有奏效。
答案1
从安装驱动程序这个 git 存储库。正如托马斯皮尼奥所说:
Wi-Fi 不适用于内核 >= 5.9
Linux Kernel 5.9 版本附带了由 Realtek 开发的损坏的 rtw88 模块,该模块与大多数版本的 8821ce 芯片兼容性较差。
sudo apt install git bc module-assistant build-essential dkms
sudo m-a prepare
echo "blacklist rtw88_8821ce" |sudo tee -a /etc/modprobe.d/blacklist.conf
git clone https://github.com/tomaspinho/rtl8821ce.git
cd rtl8821ce
sudo ./dkms-install.sh
答案2
如果您对此感到抓狂,并且这是一个选项,最新的 Ubuntu 22.04.1 可以与 RTL8821CE 一起使用。甚至不需要单击“启用专有”框。从 USB 启动后甚至在安装之前它就可以工作。
我更喜欢 Debian,在我的主机上安装它,因为它比 Ubuntu 更严格的自由开源软件。在这种情况下,虽然这并不重要,但我花了几个小时尝试 Debian 非自由的解决方案,从https://github.com/tomaspinho/rtl8821ce和来自https://github.com/lwfinger/rtw88在 Debian 11 Bullseye 上的所有情况下,它都没有丝毫承认 RTL8821CE 的存在。
公认的解决方案可能有效,但我可能错过了一些微妙之处。搜索结果显示 Debian 上的 WiFi 卡存在很多问题。下次我想在 Realtek 或 HP PC 上安装 Linux 时,我会三思而后行,但希望 Debian 能够及时支持它,而不会出现太多戏剧性的情况。
答案3
尝试
echo "options 8821ce wapf=1" | sudo tee /etc/modprobe.d/8821ce.conf
并重新启动