tomaspinho / rtl8821ce

Other
1.58k stars 412 forks source link

The wi-fi module is not recognized #240

Open trewaldo opened 2 years ago

trewaldo commented 2 years ago

I have installed (and reinstalled the driver) when I upgraded to ElementaryOS 6 (Odin). Suddenly, when I turned my laptop on the wifi is not recognized in the Settings>>Network page. I tried running the codes suggested in the forums and rebooting the device but it always says that 8821ce.ko is not found. What should I do to retrieve this missing file?

Here is what happens when I try to install it again:

Error! DKMS tree already contains: rtl8821ce-v5.5.2_34066.20200325 You cannot add the same module/version combo more than once. Error! echo Your kernel headers for kernel 5.11.0-36-generic cannot be found at /lib/modules/5.11.0-36-generic/build or /lib/modules/5.11.0-36-generic/source. You can use the --kernelsourcedir option to tell DKMS where it's located. Error! echo Your kernel headers for kernel 5.11.0-36-generic cannot be found at /lib/modules/5.11.0-36-generic/build or /lib/modules/5.11.0-36-generic/source. You can use the --kernelsourcedir option to tell DKMS where it's located.

StSav012 commented 2 years ago

Can confirm the same problem. Have to back to the built-in driver, although getting lots of connection problems with it.

Here is my hwinfo --wlan result for now:

  [Created at pci.386]
  Unique ID: S6TQ.ktuJf6vGWa2
  Parent ID: 5QgM.Oc2+3mYNCs3
  SysFS ID: /devices/pci0000:00/0000:00:01.6/0000:02:00.0
  SysFS BusID: 0000:02:00.0
  Hardware Class: network
  Device Name: "Realtek Chopard RTL8821CE 802.11ac 1x1 +BT 4.2 M.2 2230 PCI-e+USB WW"
  Model: "Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter"
  Vendor: pci 0x10ec "Realtek Semiconductor Co., Ltd."
  Device: pci 0xc821 "RTL8821CE 802.11ac PCIe Wireless Network Adapter"
  SubVendor: pci 0x103c "Hewlett-Packard Company"
  SubDevice: pci 0x831a 
  Driver: "rtw_8821ce"
  Driver Modules: "rtw88_8821ce"
  Device File: wlo1
  Features: WLAN
  I/O Ports: 0xf000-0xf0ff (rw)
  Memory Range: 0xfce00000-0xfce0ffff (rw,non-prefetchable)
  IRQ: 61 (no events)
  HW Address: d4:1b:81:3b:bc:f7
  Permanent HW Address: d4:1b:81:3b:bc:f7
  Link detected: yes
  WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136
  WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 2.467 2.472 2.484 5.18 5.2 5.22 5.24 5.26 5.28 5.3 5.32 5.5 5.52 5.54 5.56 5.58 5.6 5.62 5.64 5.66 5.68
  WLAN encryption modes: WEP40 WEP104 TKIP CCMP
  WLAN authentication modes: open sharedkey wpa-psk wpa-eap
  Module Alias: "pci:v000010ECd0000C821sv0000103Csd0000831Abc02sc80i00"
  Driver Info #0:
    Driver Status: rtw88_8821ce is active
    Driver Activation Cmd: "modprobe rtw88_8821ce"
  Driver Info #1:
    Driver Status: 8821ce is active
    Driver Activation Cmd: "modprobe 8821ce"
  Config Status: cfg=new, avail=yes, need=no, active=unknown

dmesg tail:

[  114.256991] ------------[ cut here ]------------
[  114.256991] WARNING: CPU: 1 PID: 1916 at /var/lib/dkms/rtl8821ce/5.5.2.1/build/hal/rtl8821c/rtl8821c_halinit.c:93 rtl8821c_power_on+0x4c/0x8f [rtl8821ce]
[  114.257066] Modules linked in: rtl8821ce(OE+) cfg80211 rfcomm xfrm_user xfrm_algo l2tp_ppp l2tp_netlink l2tp_core ip6_udp_tunnel udp_tunnel pppox cmac algif_hash algif_skcipher af_alg bnep binfmt_misc nls_iso8859_1 intel_rapl_msr snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg soundwire_intel soundwire_generic_allocation soundwire_cadence snd_hda_codec snd_hda_core snd_hwdep soundwire_bus snd_soc_core snd_compress ac97_bus snd_pcm_dmaengine intel_rapl_common snd_pcm snd_seq_midi snd_seq_midi_event edac_mce_amd kvm_amd snd_rawmidi kvm uvcvideo rapl videobuf2_vmalloc videobuf2_memops snd_seq videobuf2_v4l2 videobuf2_common snd_seq_device snd_timer videodev joydev input_leds hp_wmi serio_raw sparse_keymap efi_pstore snd btusb rndis_host btrtl wmi_bmof hid_multitouch btbcm btintel mc cdc_ether k10temp usbnet bluetooth cdc_acm mii snd_rn_pci_acp3x ecdh_generic ecc snd_pci_acp3x soundcore ccp mac_hid hp_wireless acpi_tad sch_fq_codel
[  114.257111]  msr parport_pc ppdev lp parport ip_tables x_tables autofs4 btrfs blake2b_generic xor raid6_pq libcrc32c amdgpu iommu_v2 gpu_sched i2c_algo_bit drm_ttm_helper crct10dif_pclmul crc32_pclmul ttm ghash_clmulni_intel hid_generic drm_kms_helper syscopyarea aesni_intel crypto_simd sysfillrect sysimgblt fb_sys_fops cec cryptd glue_helper rc_core nvme i2c_piix4 drm xhci_pci xhci_pci_renesas nvme_core wmi i2c_hid video hid [last unloaded: cfg80211]
[  114.257134] CPU: 1 PID: 1916 Comm: modprobe Tainted: G        W  OE     5.11.0-40-generic #44~20.04.2-Ubuntu
[  114.257137] Hardware name: HP HP Laptop 15s-eq1xxx/8706, BIOS F.41 04/13/2021
[  114.257138] RIP: 0010:rtl8821c_power_on+0x4c/0x8f [rtl8821ce]
[  114.257210] Code: 4c 8b 67 18 c6 45 e7 00 48 8d 55 e7 be 37 00 00 00 e8 05 2b fe ff 0f b6 45 e7 3c 01 74 13 4c 89 e7 e8 a0 a0 00 00 85 c0 74 22 <0f> 0b b8 00 00 00 00 0f b6 c0 48 8b 4d e8 65 48 33 0c 25 28 00 00
[  114.257212] RSP: 0018:ffff9dd28365f890 EFLAGS: 00010282
[  114.257213] RAX: 00000000fffffffe RBX: ffff9dd281047000 RCX: 000000000000001d
[  114.257215] RDX: 00000000fffffffe RSI: ffffffffc1603d5c RDI: ffff9dd28365f7b9
[  114.257216] RBP: ffff9dd28365f8b0 R08: 0000000000000000 R09: 0000000000000003
[  114.257217] R10: ffff9dd28365f800 R11: ffff9dd38365f7b6 R12: ffff8ba3dd884000
[  114.257218] R13: ffff9dd283119000 R14: 0000000000000000 R15: ffff9dd28311914e
[  114.257219] FS:  00007f30c091e540(0000) GS:ffff8ba558a40000(0000) knlGS:0000000000000000
[  114.257221] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  114.257222] CR2: 00007ffdaef88b30 CR3: 00000001607fa000 CR4: 00000000003506e0
[  114.257224] Call Trace:
[  114.257225]  rtw_hal_power_on+0x24/0x4a [rtl8821ce]
[  114.257302]  rtw_halmac_dlfw+0x3d/0xa9 [rtl8821ce]
[  114.257372]  rtl8821c_fw_dl+0x27/0x42 [rtl8821ce]
[  114.257444]  rtw_hal_fw_dl+0x19/0x1b [rtl8821ce]
[  114.257519]  hal_read_mac_hidden_rpt+0x105/0x226 [rtl8821ce]
[  114.257595]  rtl8821c_read_efuse+0x35f/0x599 [rtl8821ce]
[  114.257667]  read_adapter_info+0xe/0x15 [rtl8821ce]
[  114.257738]  rtw_hal_read_chip_info+0x76/0x81 [rtl8821ce]
[  114.257814]  rtw_pci_primary_adapter_init+0x148/0x36b [rtl8821ce]
[  114.257889]  rtw_drv_init+0x2cf/0x6a3 [rtl8821ce]
[  114.257963]  local_pci_probe+0x48/0x80
[  114.257966]  pci_device_probe+0x10f/0x1c0
[  114.257968]  really_probe+0x1fa/0x460
[  114.257971]  driver_probe_device+0xe9/0x160
[  114.257974]  device_driver_attach+0x5d/0x70
[  114.257977]  __driver_attach+0x8f/0x150
[  114.257980]  ? device_driver_attach+0x70/0x70
[  114.257983]  bus_for_each_dev+0x7e/0xc0
[  114.257985]  driver_attach+0x1e/0x20
[  114.257988]  bus_add_driver+0x152/0x1f0
[  114.257991]  driver_register+0x74/0xd0
[  114.257993]  ? 0xffffffffc0cd5000
[  114.257995]  __pci_register_driver+0x54/0x60
[  114.257998]  rtw_drv_entry+0x4c/0x1000 [rtl8821ce]
[  114.258044]  do_one_initcall+0x48/0x1d0
[  114.258046]  ? _cond_resched+0x19/0x30
[  114.258048]  ? kmem_cache_alloc_trace+0x37a/0x430
[  114.258051]  ? do_init_module+0x28/0x260
[  114.258054]  do_init_module+0x62/0x260
[  114.258056]  load_module+0x11aa/0x1370
[  114.258059]  ? security_kernel_post_read_file+0x5c/0x70
[  114.258062]  ? security_kernel_post_read_file+0x5c/0x70
[  114.258066]  __do_sys_finit_module+0xc2/0x120
[  114.258068]  ? __do_sys_finit_module+0xc2/0x120
[  114.258072]  __x64_sys_finit_module+0x1a/0x20
[  114.258074]  do_syscall_64+0x38/0x90
[  114.258076]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  114.258079] RIP: 0033:0x7f30c0a6389d
[  114.258080] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d c3 f5 0c 00 f7 d8 64 89 01 48
[  114.258083] RSP: 002b:00007ffdaef8bb58 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[  114.258085] RAX: ffffffffffffffda RBX: 0000558157bd10b0 RCX: 00007f30c0a6389d
[  114.258086] RDX: 0000000000000000 RSI: 00005581565bf358 RDI: 0000000000000004
[  114.258087] RBP: 0000000000040000 R08: 0000000000000000 R09: 0000000000000000
[  114.258088] R10: 0000000000000004 R11: 0000000000000246 R12: 00005581565bf358
[  114.258089] R13: 0000000000000000 R14: 0000558157bd1070 R15: 0000558157bd10b0
[  114.258091] ---[ end trace 033362c386e53c99 ]---