升级到 Ubuntu 19.10 后 Wifi rtl8821ce 驱动程序停止工作

升级到 Ubuntu 19.10 后 Wifi rtl8821ce 驱动程序停止工作

我有一台联想 320 笔记本电脑,配有 rtl8821ce wifi 适配器。我使用的是 Ubuntu 19.04,按照以下步骤操作后,适配器就可以正常工作了 这些步骤

我升级到了 19.10,但是 Wi-Fi 现在无法使用。

输出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: enp2s0
       version: 10
       serial: 8c:16:45:45:5c:35
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 firmware=rtl8168g-3_0.0.1 04/23/13 latency=0 link=no multicast=yes port=MII
       resources: irq:16 ioport:4000(size=256) memory:a2104000-a2104fff memory:a2100000-a2103fff
  *-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:03:00.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list
       configuration: latency=0
       resources: ioport:3000(size=256) memory:a2000000-a200ffff
  *-network
       description: Ethernet interface
       physical id: 3
       logical name: bnep0
       serial: b0:fc:36:38:c0:d0
       capabilities: ethernet physical
       configuration: broadcast=yes ip=192.168.44.52 multicast=yes

这个帖子遇到了和我同样的问题 - 包括从附加驱动程序安装驱动程序 - 但按照接受的答案对我来说不起作用。

我还能做什么吗?

$ lspci -nnk | grep 0280 -A3
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]
    Subsystem: Lenovo RTL8821CE 802.11ac PCIe Wireless Network Adapter [17aa:c024]
    Kernel modules: wl, 8821ce, rtl8821ce
$ sudo dkms status
bcmwl, 6.30.223.271+bdcom, 5.3.0-22-generic, x86_64: installed
rtl8821ce, 5.2.5.2.1.30816.20190425, 5.3.0-22-generic, x86_64: installed
$ sudo modprobe rtl8821ce && dmesg | grep rtl
modprobe: ERROR: could not insert 'rtl8821ce': Device or resource busy

答案1

来自评论...

$ dkms status
bcmwl, 6.30.223.271+bdcom, 5.3.0-22-generic, x86_64: installed
rtl8821ce, 5.2.5.2.1.30816.20190425, 5.3.0-22-generic, x86_64: installed

卸载当前的 dkms 驱动程序(https://github.com/tomaspinho/rtl8821ce)...

cd rtl8821ce          # old source folder
sudo ./dkms-remove.sh # uninstall old dkms driver
dkms status

现在我们确保重复的 8821ce 驱动程序已被删除...

sudo lspci -nnk | grep 0280 -A3 | grep modules

如果您需要不同的驱动程序,请尝试这个...https://github.com/shubham151/rtl8821ce.(git 克隆https://github.com/shubham151/rtl8821ce.git)。不要按照那里的 ReadMe 来了解如何安装它,而是按照您之前执行的相同步骤来安装 dkms。

git clone https://github.com/shubham151/rtl8821ce.git # git clone new driver
cd rtl8821ce             # new source folder
chmod +x dkms-install.sh # make executable
chmod +x dkms-remove.sh  # make executable
sudo ./dkms-install.sh   # install new dkms driver

更新#1:

  • 卸载 bcmwl dkms 模块
  • 卸载 rtl8821ce dkms 模块
  • 从 .deb 文件重新安装 rtl8821ce

答案2

对于最近的 ubuntu 20.04 LTS,这应该可以解决问题:

apt install rtl8821ce-dkms

相关内容