tomaspinho / rtl8821ce

Other
1.6k stars 408 forks source link

Low signal strength #322

Open colossus73 opened 1 year ago

colossus73 commented 1 year ago

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?

dubhater commented 1 year ago

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.

colossus73 commented 1 year ago

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.

dubhater commented 1 year ago

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.

colossus73 commented 1 year ago

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 commented 1 year ago

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$

dubhater commented 1 year ago

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

dubhater commented 1 year ago

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

dubhater commented 1 year ago

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.

colossus73 commented 1 year ago

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]

dubhater commented 1 year ago

As a test:

rmmod rtw_8821ce
rmmod 8821ce
modprobe 8821ce

Do you have wifi now?

colossus73 commented 1 year ago

Nope. I have WIFI only if I modprobe rtw_8821ce

dubhater commented 1 year ago

Did modprobe 8821ce run without errors?

colossus73 commented 1 year ago

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

dubhater commented 1 year ago

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

You have some options:

colossus73 commented 1 year ago

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: @.***>