Kernel: 5.15.0-53-generic x86_64 bits: 64 Desktop: GNOME 42.5 Distro: Ubuntu 22.04.1 LTS (Jammy Jellyfish)
$ 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: f6:6e:74:95:80:a5
size: 1Gbit/s
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-53-generic duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=172.20.6.135 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:31 ioport:f000(size=256) memory:fe904000-fe904fff memory:fe900000-fe903fff
*-network DISABLED
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: wlp3s0
version: 00
serial: 00:e0:4c:89:28:71
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-53-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11
resources: irq:67 ioport:e000(size=256) memory:fe800000-fe80ffff
*-usb:1
description: Ethernet interface
product: USB 2.0 10/100M Ethernet Adaptor
vendor: ICS Advent
physical id: 4
bus info: usb@1:4
logical name: enx00e04c534458
version: 1.01
serial: 00:e0:4c:53:44:58
size: 100Mbit/s
capacity: 100Mbit/s
capabilities: usb-1.10 ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=dm9601 driverversion=5.15.0-53-generic duplex=full firmware=Davicom DM96xx USB 10/100 Ether ip=192.168.10.69 link=yes maxpower=120mA multicast=yes port=MII speed=100Mbit/s
*-network
description: Wireless interface
physical id: 4
bus info: usb@1:3
logical name: wlxd03745e8e1bb
serial: d0:37:45:e8:e1:bb
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=r8188eu driverversion=5.15.0-53-generic ip=192.168.31.69 multicast=yes wireless=IEEE 802.11bgn
$ dkms status
# Nothing
$ rfkill list
0: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
$ cat /etc/modules/interfaces
cat: /etc/modules/interfaces: Not a directory
$ cat /etc/netplan/*.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
$ cat /etc/modprobe.d/dkms.conf
# modprobe information used for DKMS modules
#
# This is a stub file, should be edited when needed,
# used by default by DKMS.
$ ls -al /lib/modules/$(uname -r)/updates/dkms
ls: cannot access '/lib/modules/5.15.0-53-generic/updates/dkms': No such file or directory
$ lsmod | grep 8821
rtw88_8821ce 16384 0
rtw88_8821c 94208 1 rtw88_8821ce
rtw88_pci 32768 1 rtw88_8821ce
rtw88_core 258048 2 rtw88_pci,rtw88_8821c
$ iwconfig
lo no wireless extensions.
eno1 no wireless extensions.
enx00e04c534458 no wireless extensions.
wlxd03745e8e1bb IEEE 802.11bgn ESSID:"MobinNet5-301-1" Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency:2.437 GHz Access Point: 00:AD:D5:76:B5:5A
Bit Rate:72.2 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality=75/100 Signal level=-48 dBm Noise level=0 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
wlp3s0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
outline-tun0 no wireless extensions.
tun0 no wireless extensions.
我使用的是 21.10,有一天 Wi-Fi 停止工作了,升级到 22.04 后仍然无法工作(我希望升级可以解决问题)。
答案1
删除不必要的 DKMS 模块...
sudo dkms remove mt7612u/1.0 --all
sudo dkms remove rtl8188fu/1.0 --all
dkms status
现在应该显示...
virtualbox/6.1.32, 5.13.0-40-generic, x86_64: installed
virtualbox/6.1.32, 5.15.0-27-generic, x86_64: installed
确认没有不必要的.ko 文件...
ls -al /lib/modules/$(uname -r)/updates/dkms
然后reboot
。
选择下面的 DKMS 模块并重新启动...
如果由于某种原因您无法选择 DKMS 驱动程序...
sudo apt update
sudo apt install rtl8821ce-dkms
reboot
更新#1:
启动至 Ubuntu Live USB 时 WiFi 可用。重新安装 Ubuntu。
答案2
同样的问题。将 Ubuntu 20.05 升级到 Ubuntu 22.04 后,wifi 停止工作。按照建议删除 rtl8821ce-dkms 并从黑名单中删除 rtw88_8821ce 对我有用。使用 HP Pavilion 15-cw1005la。
sudo dkms remove rtl8821ce/5.5.2.1
执行此命令后,rtw88_8821ce 会自动从 /etc/modprobe.d/dkms.conf 中删除。然后
sudo reboot
答案3
在我的计算机上,此驱动程序需要自签名,这意味着在 Linux 上安装时必须输入 MOK 密码,然后在 BIOS 中重新启动时输入该密码,以便内核接受它。我做到了,现在它可以正常工作了。
升级 BIOS 固件后出现此问题。
答案4
Ubuntu 22.4.3rtl8821ce-dkms
不起作用。所以我删除了它。
1.
检查
sudo dkms status
#rtl8821ce/5.5.2.1:已添加sudo apt remove rtl8821ce-dkms
从 DKMS 树中完全删除 #Deleting 模块 rtl8821ce-5.5.2.1。
2.注释掉以黑名单 如果它们存在的话。
nano /etc/modprobe.d/blacklist.conf
# wifi problem
# instead try install sudo apt-get install dkms build-essential rtl8821ce-dkms
#blacklist 8821ce
#blacklist rtw88
#blacklist rtw88_8821ce
#blacklist rtw88_8821c
#blacklist rtw88_pci
#blacklist rtw88_core
3.打开软件更新程序=>设置=>additional drivers
选项卡
检查选项不要使用该设备为了
瑞昱半导体有限公司 RTL8821CE 802.11ac PCIe 无线网络适配器
4.reboot