即使安装了 RTL8821ce 驱动程序,仍未找到 wifi 适配器

即使安装了 RTL8821ce 驱动程序,仍未找到 wifi 适配器

我已经问过这个问题了这里。我尝试了那里建议的所有方法,但仍然无法无线连接到 WiFi。我重新安装了tomaspinho/rtl8821ce到目前为止,我已经尝试安装 rtl8821ce-dkms 软件包大约 3 次了,但出于某种原因,什么都没起作用。我仍然无法连接到 WiFi,因为我总是收到“未找到 WiFi 适配器”的消息。我的 Ubuntu 版本是 20.04,我的笔记本电脑是华硕 TUF FX505dt。我几乎没有使用 Linux 的经验,所以任何帮助我都非常感谢。

编辑:

输出lspci -knn | grep Net -A3; rfkill list

libkmod: ERROR ../libkmod/libkmod-config.c:656 kmod_config_parse: /etc/modprobe.d/blacklist-ideapad.conf line 1: ignoring bad line starting with 'df'
04:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]
    Subsystem: AzureWave RTL8821CE 802.11ac PCIe Wireless Network Adapter [1a3b:3041]
    Kernel modules: 8821ce, rtl8821ce
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Picasso [1002:15d8] (rev c2)
    Subsystem: ASUSTeK Computer Inc. Picasso [1043:18f1]
0: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

编辑2:

grep rtl /etc/modprobe.d/*没有输出任何内容

输出dmesg | grep rtl

[    3.513274] rtl8821ce 0000:04:00.0: enabling device (0000 -> 0003)
[    3.551035] WARNING: CPU: 7 PID: 402 at /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/os_intfs.c:1681 rtw_os_ndev_register+0x6c/0x169 [8821ce]
[    3.725353] WARNING: CPU: 0 PID: 402 at /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/os_intfs.c:3141 rtw_os_ndevs_register+0xb6/0xde [8821ce]
[    3.870584] proc_dir_entry 'net/rtl8821ce' already registered
[    3.870619] Modules linked in: rtl8821ce(OE+) snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hda_core snd_hwdep snd_pcm snd_seq_midi crct10dif_pclmul snd_seq_midi_event nvidia(PO) amdgpu(+) snd_rawmidi ghash_clmulni_intel aesni_intel crypto_simd cryptd glue_helper snd_seq amd_iommu_v2 8821ce(OE) gpu_sched ttm asus_nb_wmi asus_wmi input_leds snd_seq_device serio_raw snd_timer sparse_keymap hid_multitouch wmi_bmof drm_kms_helper ipmi_devintf snd ipmi_msghandler i2c_algo_bit fb_sys_fops k10temp syscopyarea sysfillrect cfg80211(OE) sysimgblt compat(OE) soundcore asus_wireless mac_hid sch_fq_codel parport_pc ppdev lp parport drm ip_tables x_tables autofs4 hid_logitech_hidpp hid_logitech_dj usbhid hid_generic crc32_pclmul i2c_piix4 nvme nvme_core r8169 realtek wmi video i2c_hid hid
[    3.870835]  rtw_drv_proc_init+0x3b/0xc8 [rtl8821ce]
[    3.870872]  rtw_drv_entry+0x28/0x1000 [rtl8821ce]
[    3.871039] WARNING: CPU: 3 PID: 402 at /var/lib/dkms/rtl8821ce/5.5.2.1/build/os_dep/linux/rtw_proc.c:273 rtw_drv_proc_init+0x54/0xc8 [rtl8821ce]
[    3.871039] Modules linked in: rtl8821ce(OE+) snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hda_core snd_hwdep snd_pcm snd_seq_midi crct10dif_pclmul snd_seq_midi_event nvidia(PO) amdgpu(+) snd_rawmidi ghash_clmulni_intel aesni_intel crypto_simd cryptd glue_helper snd_seq amd_iommu_v2 8821ce(OE) gpu_sched ttm asus_nb_wmi asus_wmi input_leds snd_seq_device serio_raw snd_timer sparse_keymap hid_multitouch wmi_bmof drm_kms_helper ipmi_devintf snd ipmi_msghandler i2c_algo_bit fb_sys_fops k10temp syscopyarea sysfillrect cfg80211(OE) sysimgblt compat(OE) soundcore asus_wireless mac_hid sch_fq_codel parport_pc ppdev lp parport drm ip_tables x_tables autofs4 hid_logitech_hidpp hid_logitech_dj usbhid hid_generic crc32_pclmul i2c_piix4 nvme nvme_core r8169 realtek wmi video i2c_hid hid
[    3.871119] RIP: 0010:rtw_drv_proc_init+0x54/0xc8 [rtl8821ce]
[    3.871163]  rtw_drv_entry+0x28/0x1000 [rtl8821ce]
[    3.871238] Error: Driver 'rtl8821ce' is already registered, aborting...

输出dkms status

rtl8821ce, 5.5.2.1, 5.4.0-39-generic, x86_64: built
rtl8821ce, v5.5.2_34066.20200325, 5.4.0-39-generic, x86_64: installed

答案1

驱动程序崩溃了。我建议删除所有已安装的驱动程序并使用其他驱动程序。

卸载8821ce驱动程序https://github.com/tomaspinho/rtl8821ce

sudo make unistall通过从驱动程序所在的目录运行。然后运行:

sudo apt purge rtl8821ce-dkms
sudo dkms remove rtl8821ce/5.5.2.1 --all
sudo dkms remove rtl8821ce/v5.5.2_34066.20200325 --all
sudo apt install git
git clone -b rtw88 https://github.com/lwfinger/rtlwifi_new.git
sudo dkms add ./rtlwifi_new
sudo dkms install rtlwifi-new/0.6

然后重新启动。

相关内容