rtl8821ce icon indicating copy to clipboard operation
rtl8821ce copied to clipboard

Low signal strength

Open colossus73 opened this issue 1 year ago • 15 comments

Hi,

I'm using rtw_8821ce and I blacklisted the rtw88_8821

lsmod | grep 8821 8821ce 2023424 0 rtw_8821ce 16384 0 rtw_8821c 90112 1 rtw_8821ce rtw_pci 28672 1 rtw_8821ce rtw_core 258048 2 rtw_8821c,rtw_pci cfg80211 1134592 3 rtw_core,mac80211,8821ce

cat /etc/modprobe.d/rtw88_8821ce.conf blacklist rtw88_8821ce blacklist rtw_8821ce

But thw wifi still hangs, it's a matter of signal as when I get closer to my room's door it wakes up. The router is in the corridor. I'm running 6.1.0-6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.15-1 (2023-03-05) x86_64 GNU/Linux

Can anyone help please?

colossus73 avatar Apr 12 '23 18:04 colossus73

Assuming the two blacklists are on separate lines, like this:

blacklist rtw88_8821ce
blacklist rtw_8821ce

and that you installed the driver in this repository, you just need to reboot.

If the blacklists are on a single line, like we see in your message here, fix that and then reboot.

dubhater avatar Apr 12 '23 18:04 dubhater

Hi mate, many thanks for your quick reply. Yes, they are on two separate lines, I don't know why the formatting got screwed. I actually rebooted but the wifi was not available at all. It happened when I added the second line in the blacklist file. I have only blacklist rtw88_8821ce now but it's still slow. I have this in dmesg:

47.183682] rtw_8821ce 0000:01:00.0: timed out to flush queue 2 [ 86.851098] rtw_8821ce 0000:01:00.0: timed out to flush queue 1 [ 87.382950] rtw_8821ce 0000:01:00.0: timed out to flush queue 1 [ 93.161495] rtw_8821ce 0000:01:00.0: timed out to flush queue 1 [ 93.645379] rtw_8821ce 0000:01:00.0: timed out to flush queue 1 [ 93.785408] rtw_8821ce 0000:01:00.0: timed out to flush queue 1 [ 125.410165] rtw_8821ce 0000:01:00.0: timed out to flush queue 2

Hope it can help, thanks.

colossus73 avatar Apr 12 '23 18:04 colossus73

You have to decide which driver you want to use.

  1. The one in this repository is called „8821ce”
  2. The one from lwfinger/rtw88 is called „rtw_8821ce”
  3. The one in the kernel is called „rtw88_8821ce” - this is an older version of 2.

1 and 2 have to be installed, otherwise you always have to load them manually. You install them by „make install” or with dkms. Based on what you said above, you installed 2 but not 1.

Hope this helps.

dubhater avatar Apr 12 '23 18:04 dubhater

t@Teclast-F7-Plus:~$ cd rtl8821ce/ gt@Teclast-F7-Plus:~/rtl8821ce$ sudo ./dkms-install.sh [sudo] password for gt: About to run dkms install steps... Error! DKMS tree already contains: rtl8821ce-v5.5.2_34066.20200325 You cannot add the same module/version combo more than once. Module rtl8821ce/v5.5.2_34066.20200325 already built for kernel 6.1.0-6-amd64 (x86_64), skip. You may override by specifying --force. Module rtl8821ce/v5.5.2_34066.20200325 already installed on kernel 6.1.0-6-amd64 (x86_64), skip. You may override by specifying --force. Finished running dkms install steps. gt@Teclast-F7-Plus:~/rtl8821ce$

This is really weird.

colossus73 avatar Apr 12 '23 18:04 colossus73

Actually I did install 8821ce. Look at last line

lsmod|grep 8821 rtw_8821ce 16384 0 8821ce 2023424 0 rtw_8821c 90112 1 rtw_8821ce rtw_pci 28672 1 rtw_8821ce rtw_core 258048 2 rtw_8821c,rtw_pci cfg80211 1134592 3 rtw_core,mac80211,8821ce gt@Teclast-F7-Plus:~/rtl8821ce$

colossus73 avatar Apr 12 '23 19:04 colossus73

Maybe 8821ce doesn't recognise your card. What does lspci -nn say?

dubhater avatar Apr 12 '23 21:04 dubhater

Nevermind, it knows all the device IDs which rtw_8821ce knows.

dubhater avatar Apr 12 '23 21:04 dubhater

Anyway, you have to blacklist two of the three drivers, so that only one can load. Otherwise you never know which driver will be in charge.

dubhater avatar Apr 12 '23 21:04 dubhater

If I blacklist rtw_8821ce I don't get WIFI at all, in the bottom right system tray I see the icon with X

sudo rmmod rtw_8821ce

gt@Teclast-F7-Plus: rtl8821ce$ lsmod|grep 8821 8821ce 2023424 0 rtw_8821c 90112 0 rtw_core 258048 2 rtw_8821c,rtw_pci cfg80211 1134592 3 rtw_core,mac80211,8821ce gt@Teclast-F7-Plus:~/rtl8821ce$ lspci -nn | grep Real

01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]

colossus73 avatar Apr 13 '23 05:04 colossus73

As a test:

rmmod rtw_8821ce
rmmod 8821ce
modprobe 8821ce

Do you have wifi now?

dubhater avatar Apr 13 '23 08:04 dubhater

Nope. I have WIFI only if I modprobe rtw_8821ce

colossus73 avatar Apr 13 '23 09:04 colossus73

Did modprobe 8821ce run without errors?

dubhater avatar Apr 13 '23 10:04 dubhater

Yep, no errors. In the dmesg output I got this:

[Thu Apr 13 12:11:40 2023] wlp1s0: deauthenticating from c0:05:c2:ca:09:97 by local choice (Reason: 3=DEAUTH_LEAVING) [Thu Apr 13 12:11:56 2023] DMAR: DRHD: handling fault status reg 3 [Thu Apr 13 12:11:56 2023] DMAR: [DMA Read NO_PASID] Request device [01:00.0] fault addr 0xfe803000 [fault reason 0x06] PTE Read access is not set

colossus73 avatar Apr 13 '23 11:04 colossus73

Okay. So the driver from this repository is not working for you.

You have some options:

  • Ask Larry Finger to update the newer version of this driver so it can be compiled for kernel 6.1. Or fix the compilation errors yourself. There is no guarantee it will work better.
  • Report your problems with rtw_8821ce and hope they will be fixed.
  • Replace the wifi card.

dubhater avatar Apr 13 '23 11:04 dubhater

Thanks mate, I do appreciate the time spent with me.

On Thu, 13 Apr 2023 at 12:45, dubhater @.***> wrote:

Okay. So the driver from this repository is not working for you.

You have some options:

— Reply to this email directly, view it on GitHub https://github.com/tomaspinho/rtl8821ce/issues/322#issuecomment-1506824421, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASP7PRGZUAA4N5U5JBPWUVLXA7RMVANCNFSM6AAAAAAW4BNMCM . You are receiving this because you authored the thread.Message ID: @.***>

colossus73 avatar Apr 13 '23 14:04 colossus73