-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rtw89_8852be network card ejects randomly #240
Comments
The PCIe card does not eject. These are the kinds of errors we see from some HP and Lenovo BIOSs. In the BIOS setup, is there an option to disable PCI power saving? That has helped with some HP laptops. I do not know if it is available for Lenovo. The other thing to do is to invoke the module options to disable lspm and PCI clockreq. options rtw89_pci disable_clkreq=y disable_aspm_l1=y disable_aspm_l1ss=y The first line handles the in-kernel version, and the second handles the driver from this repo. After this file is created, run the sequence If you have done it correctly, the second command should produce output like The critical parts are the disable stuff at the end of the first line. |
Over the weekend, I contacted Realtek about these problems. They pointed me to a submitted, but not yet incorporated patch, which has been merged into this repo. Do a 'git pull' and rebuiild. Report if this helps. |
thanks, I did both the disable stuff and repo update. So far it works. will report back in a week |
Sounds good. |
…l page Though SER can recover this case, traffic can get stuck for a while. Fix it by adjusting page quota to avoid hardware access null page of CMAC/DMAC. Fixes: a1cb097 ("wifi: rtw89: 8852b: configure DLE mem") Fixes: 3e870b4 ("wifi: rtw89: 8852b: add HFC quota arrays") Cc: stable@vger.kernel.org Tested-by: Larry Finger <Larry.Finger@lwfinger.net> Link: lwfinger/rtw89#226 (comment) Link: lwfinger/rtw89#240 Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
…l page [ Upstream commit c0426c4 ] Though SER can recover this case, traffic can get stuck for a while. Fix it by adjusting page quota to avoid hardware access null page of CMAC/DMAC. Fixes: a1cb097 ("wifi: rtw89: 8852b: configure DLE mem") Fixes: 3e870b4 ("wifi: rtw89: 8852b: add HFC quota arrays") Cc: stable@vger.kernel.org Tested-by: Larry Finger <Larry.Finger@lwfinger.net> Link: lwfinger/rtw89#226 (comment) Link: lwfinger/rtw89#240 Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20230426034737.24870-1-pkshih@realtek.com Signed-off-by: Sasha Levin <sashal@kernel.org>
btw. this definitely fixes the issue. haven't had any issues yet |
…l page BugLink: https://bugs.launchpad.net/bugs/2028979 [ Upstream commit c0426c446d92023d344131d01d929bc25db7a24e ] Though SER can recover this case, traffic can get stuck for a while. Fix it by adjusting page quota to avoid hardware access null page of CMAC/DMAC. Fixes: a1cb097 ("wifi: rtw89: 8852b: configure DLE mem") Fixes: 3e870b4 ("wifi: rtw89: 8852b: add HFC quota arrays") Cc: stable@vger.kernel.org Tested-by: Larry Finger <Larry.Finger@lwfinger.net> Link: lwfinger/rtw89#226 (comment) Link: lwfinger/rtw89#240 Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20230426034737.24870-1-pkshih@realtek.com Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
…l page BugLink: https://bugs.launchpad.net/bugs/2028979 [ Upstream commit c0426c446d92023d344131d01d929bc25db7a24e ] Though SER can recover this case, traffic can get stuck for a while. Fix it by adjusting page quota to avoid hardware access null page of CMAC/DMAC. Fixes: a1cb097 ("wifi: rtw89: 8852b: configure DLE mem") Fixes: 3e870b4 ("wifi: rtw89: 8852b: add HFC quota arrays") Cc: stable@vger.kernel.org Tested-by: Larry Finger <Larry.Finger@lwfinger.net> Link: lwfinger/rtw89#226 (comment) Link: lwfinger/rtw89#240 Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20230426034737.24870-1-pkshih@realtek.com Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
…l page BugLink: https://bugs.launchpad.net/bugs/2028979 [ Upstream commit c0426c446d92023d344131d01d929bc25db7a24e ] Though SER can recover this case, traffic can get stuck for a while. Fix it by adjusting page quota to avoid hardware access null page of CMAC/DMAC. Fixes: a1cb097 ("wifi: rtw89: 8852b: configure DLE mem") Fixes: 3e870b4 ("wifi: rtw89: 8852b: add HFC quota arrays") Cc: stable@vger.kernel.org Tested-by: Larry Finger <Larry.Finger@lwfinger.net> Link: lwfinger/rtw89#226 (comment) Link: lwfinger/rtw89#240 Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20230426034737.24870-1-pkshih@realtek.com Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
I did this , it worked for 2 startups and then same problem occurred but after making /usr/lib/modprobe.d/70-rtw89.conf it has started working. Also after adding files shutdown the laptop and then turn it on again. I tried to reboot it didnt work. |
@lwfinger I'm having the same problem. Wifi is connecting on reboot for about 30 seconds to 2 minutes before dropping. My Also thanks for this repo because it's saved my butt, bought this laptop then couldn't use linux on it I was so sad lol. But now I can thanks to this! Edit: My installation is up to date. Steps I've taken, just for clarity:
The last step is finicky and only sometimes works as I said, because of
|
…l page Though SER can recover this case, traffic can get stuck for a while. Fix it by adjusting page quota to avoid hardware access null page of CMAC/DMAC. Fixes: a1cb097168fa ("wifi: rtw89: 8852b: configure DLE mem") Fixes: 3e870b481733 ("wifi: rtw89: 8852b: add HFC quota arrays") Cc: stable@vger.kernel.org Tested-by: Larry Finger <Larry.Finger@lwfinger.net> Link: #226 (comment) Link: #240 Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20230426034737.24870-1-pkshih@realtek.com
Hi, > As root, create a file named /usr/lib/modprobe.d/70-rtw89.conf and add the following lines to that file: Question 1: How do I become root? Is it sudo in terminal? Thank you for your help. It is much appreciated. |
Hi @Tambalance ,
Your questions: |
Hello @conflictboy If some other newbie is reading this and experiencing the same issues:
After this I typed in make again and then sudo make install. Rtw89 successfully installed. |
Hmm.. unfortunately now it turns out that after reboot Ubuntu is not able to find any WiFi at all. Probably have to reinstall the OS, as I dont have a ethernet port on my laptop. Thank you anyway for trying to help. If there are any other suggestions I would be happy to try, thanks. |
Post the output of 'lsmod | grep rtw' |
I posted a screenshot of my terminal when I type that line, but for some reason nothing happens. Thank you for your assistance. |
I just noticed, that if I start the computer via the advanced boot menu, and go to an older version of the kernel, then the wifi works now and then, but the original problem still exists. The original problem is that the WiFi randomly all the suddenly disconnects and the the signal symbol in the upper right corner disappears. In the settings when I try to look for wireless networks, no networks appear. Here's the output of |
You have the in-kernel version of the driver. What kernel version fails? For that one, run 'sudo dmesg > dmesg_bad.txt' and attach dmesg_bad.txt to this issue. Then boot into the older kernel. After the wifi drops, then run the command 'sudo dmesg > dmesg_drops.txt' and post dmesg_drops.txt to the issue. What happens if you clone this repo, build and install the drivers here, and reboot your system? You will need to boot the same system that you were running when you installed the drivers from this repo. I suspect your BIOS is miisbehaving, but the dmesg output will confirm that. |
Hi, Thank you for your assistance, it is much appreciated. To be honest I am not quite sure I understand what you mean with building and installing the drivers here. Could you please explain a litte in more detail? Here's the WiFi not working at all in kernel 6.5.0-18-generic: And here's the WiFi dropping in 6.5.0-17-generic: |
Whomever built the 6.5.0-18 kernel apparently did not include the drivers in rtw89 in the build. The dmesg_bad file sees the BT part of the RTW8852BE, but not the wifi. Your dmesg_drops file had the kernel buffer wrap around, thus I cannot see what caused the problem to start. Only run that kernel for 10 minutes gefore generating dmesg_drops. You are posting in the issues section for a set of drivers at GitHub.com. The README.md file here describes how to download the code and build the drivers locally. That is what I meant, but with a 6.5 kernel, you should not need to do that step. The repo is mostly for users with older kernels. |
There was a new dropout of WiFi and I managed to save the output of sudo dmesg just a couple of seconds after the dropout. Some lines that seems odd to me are: Maybe there's some clues in those lines, or should I maybe start looking for some other network adapter? Thank you again for your guidance. |
You quite likely have either a Lenovo or an HP laptop. You should read the section of README.md that covers how to to overcome the defective BIOS code in those models. That should fix your problems. |
@lwfinger First at all, thanks for the repo.
I did the above part this is the content of the
And when uploading the driver and reloading it, I got this output:
However when reading the part where the process says:
I am confused about what should be the value of the
By the way I am using Fedora 39 with this kernel version I will appreciate your input on that as I am trying to overcome this same issue on my workstation. Edit:
|
Those names withing <> are symbolic names. Substitute the actual names. For <dev_name.conf>, you already have a name! Is your workstation a Lenovo or HP? |
@lwfinger MY workstation is Lenovo ThinkPad P16s Gen 2 Other thing my wifi card is not realtek it is an Intel Corporation Raptor Lake PCH CNVi WiFi (rev 01), not sure if that applies. When i do
|
With an Intel card, why are you posting here? Intel issues need to go to linux-wireless@vger.kernel.org. We only work with Realtek devices here!!! |
@lwfinger yes, sorry, it was that I got confused because I don't know why but in somehow my kernel got updates about realtek devices too. That is why I had to verify the real chipset my laptop has. |
my wifi randomly stops working and probably the network card gets ejected (don't see the wifi in my settings anymore).
this started occurring after the recent kernel updates and subsequent repo updates.
frequency: this happens some times only once a day but sometimes 5-6 times in a row (shortly after reboot)
System:
md5sum /lib/firmware/rtw89/* :
dmesg output:
The text was updated successfully, but these errors were encountered: