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
firmware failed to leave lps state #61
Comments
I can confirm this bug on my lenovo laptop, 5.16.0 kernel
i tried to add
any solution? |
Update: the message flood only happens when laptop charger is not connected.
|
FWIW I have reported issue here as well: https://bugzilla.kernel.org/show_bug.cgi?id=215496 |
Surprisingly, almost no one pays any attention to the kernel bugzilla, which is why the README.md tells you how to file bug information. If it happens only when the charger is not connected, then I suspect that your laptop has an internal voltage problem. The voltage supplied to the power regulators will be somewhat higher when plugged into power than when operating on the battery. Can you contact your laptop supplier? Perhaps there is a recall, or a BIOS update to handle this issue. |
This is more like incorrect management of the device's power saving. I managed to fix it. But I don't remember exactly how. If I remember, I'll tell you about it. I contacted the kernel developers, they pointed in the right direction. |
@pooh2pooh do you use bluetooth devices by any chance? |
yes. bluetooth mouse and headphones |
I'm interested in the fix because this same problem is occurring on my KDE NEON HP laptop |
My best guess would be to set "disable_lps_deep=y" option for rtw88_core. |
I solved this problem by permanently disabling the power_save feature also known as power management for the wireless interface of my KDE NEON HP Laptop.
Then reboot your computer. |
@rilwansmith do you use Bluetooth mouse by any chance? Trying to figure out if it is relevant. |
No
No. |
Im getting this issue on my Asus VivaBook 17, where would i put this option? |
Like all module options, you need to create (as root) a file /etc/modules.d/50-rtw88.conf. In this file, add a single line that says "options rtw88_core disable_lps_deep=y" and reboot. |
I tried that and sadly i get the exact same issue, no change on dmesg either |
Actually, the above line is for the in-kernel driver. To use this one, the line should be 'options rtw_core disable_lps_deep=y' You can check that you got it correctly by the following: sudo modprobe -rv rtw_8821ce You should see the option on the rtw_core line for the second command. |
I see the option on the second command, yet still the same issue and no change to dmesg output |
Which driiver are you using - in-kernel or from repo? |
Ive tried both (exact same issue), currently the one in the repo should be the one in use |
There are two rtw_pci options to try, namely "disable_msi=y" and "disable_aspm=y". add a second line to your options file that says options rtw_pci disable_msi=y disable_aspm=y |
same problem, heres the dmesg log grepped to |
what is lps anyway? |
I think lps means low power state. Your observations indicate that it is related to the signal strength. What device do you have? Repo rtw88 now drives 12 different ones - each with their pecularities. |
bump, have a RTL8822BE adapter with this issue - after a few minutes a |
I'm setting up a new HP laptop with Fedora 39. The rtw88_882ce driver built in to the 6.5.6-300.fc39.x86_64 kernel works just fine. The problem comes in when I update the laptop, and the kernel gets updated to 6.7.4-200.fc39, and I install and use Cinnamon as my desktop. Under Cinnamon, I get a bunch of different errors with the rtw_882ce driver like "device [10ec:c822] error status/mask=00004000/004000000]" and then the "firmware failed to leave lps state" and "failed to send h2c command" errors. To recap all of the suggestions made in this thread... I tried creating /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf and putting this in the file:
I even tried adding the "wifi.powersave=2" into the connection entry in /etc/NetworkManager/system-connections/mynetwork.nmconnection file. No go. My plan was to create /etc/modules.d/50-rtw88.conf, and put the following in there, HOWEVER, /etc/modules.d doesn't exist in Fedora 39.
There seemed to be two different versions of things, one with the 88 and one without, I figured I'd put them both in there. I'm unsure of where to actually put these on my system, though. It didn't make any difference if the laptop was plugged in or not. I could watch the connection bounce up and down. The really strange part is that the network connection is fine if I go back to GNOME, and I don't get any of those errors. What desktop are other people having this problem using? |
rtw88_882ce is not a valid driver name. I guess it is an 8822ce and the driver is rtw88_8822ce. The difference in the names in the options file is that one set is for the kernel drivers, and one is for this repo. I just upgraded a Fedora 38 virtual machine to Fedora 39. The directory /etc/modprobe.d/ is still there. You are putting the options file in the wrong place. I generally use either the KDE desktop, or xFce if I want a lighter weight desktop. The difference between desktops is that the user-space code to support wifi devices is different. If you use NetworkManager in each, there should not be much difference. |
Obsv, that was a transcription error, as I couldn't copy/paste the errors without a network connection. Absolutely a catch-22 situation, yes. As far as I can tell, both desktops are using the same NetworkManager. It's very odd. As you pointed out, there is an /etc/modprobe.d, but the advice given earlier was to put it into a file in /etc/modules.d, which doesn't exist. Putting the options into Also, FWIW, I had left out the disable_msi=y the first time through, and things didn't work, but after I added it, it did. I didn't try other permutations. |
Hi! The following errors constantly appear in the log. The WiFi connection is stable at the same time.
lspci -v
The text was updated successfully, but these errors were encountered: