You are not logged in.
Since I had configured my arch setup with KDE I had an annoying problem with a black screen after returning from a sleep mode (which I usually enter from the KDE Application Laucher). Today the problem finally got me and I decided to resolve it once and for all. So I checked my journalctl and by NVIDIA errors I found this arch wiki thread, where it explains how to make the issue gone. So in a nutshell I did:
echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1" | sudo tee -a /etc/modprobe.d/nvidia.conf
sudo systemctl enable nvidia-suspend.service nvidia-resume.service
and the problem with resuming from sleep has gone.
However, whenever I return from the sleep mode my WIFI does not work. I use iwd and tried these steps:
1) start/stop/restart the service
2) rfkill (which was fine)
3) installed and configured Network Manager
4) up/down the wlan0 interface
The above steps didn't solve the new arisen issue. It looked like something was wrong on a lower level and the system reboot fixed the issue.
I began to examine the dmesg each time I return from the sleep and found out that there were some errors with iwlwifi driver (my kernel is 6.11.2-arch1-1 by the way).
When I return from the sleep I did
sudo /usr/bin/rmmod iwlmvm && sudo /usr/bin/rmmod iwlwifi && sudo /usr/bin/modprobe iwlmvm
and the WIFI got working again, so I found the /usr/lib/systemd/system/nvidia-resume.service which pointed to the script /usr/bin/nvidia-sleep.sh and there I appended these lines to the switch case construction of 'resume'
/usr/bin/rmmod iwlmvm
/usr/bin/rmmod iwlwifi
/usr/bin/modprobe iwlmvm
That helped me to reload all the WIFI drivers automatically on entering the resume state, so my question is - Is anything wrong with a new kernel or maybe I did something wrong initially with Nvidia ? Why do my WIFI drivers not work properly after returning from the sleep mode?
Despite I already found the fix to my problem, the above might help some other person and also I am really interested what actually went wrong in the suspend-resume.
Thanks in advance.
Last edited by chinesegranny (2024-10-11 17:43:26)
Offline
There is nothing wrong with your work-around. Without mentioning the exact nvidia/intel wifi hardware you use and quote the dmesg errors you saw, it's hard to tell much more for others anyway. Though, I did see you mention using an AX210 wifi card in another thread today. In general, newer cards have more power saving options enabled and less testing with current kernels. A brief search does indeed show other distros reporting iwlwifi errors with 6.11, e.g. https://bugs.launchpad.net/ubuntu/+sour … ug/2083256 So, the problem may go away via updates since Intel wifi is widely used and well supported usually. Have a look at the kernel bugtracker for related issues of your specific hardware.
The first test I would do is disconnect the wifi before suspending. If the wireless hardware does not return on resume, either try some iwlwifi module options or unload it before suspend - as you did. To test if the regular kernel creates additional issue, simply try the LTS kernel first. As another option, you can also follow https://wiki.archlinux.org/title/Networ … are_issues to downgrade and test the previous wireless firmware Intel provided for it.
Offline
I can confirm that I am having similar issues. I have a AX210 card, and if I reboot wifi works great, if I unload iwlmvm and iwlwifi and then reload them the card won't use the driver or vice versa. lsmod shows the modules are loaded but I need to reboot for my wifi to work again. If I downgrade from 6.11 to 6.10 or downgrade linux-firmware one version then I can unload and reload the modules without issue.
Offline
I have not looked into what may be the cause with both 6.11 or current linux-firmware, but a fresh linux-firmware package has just entered testing repository. I did have a browse around kernel issues for the AX210 card and there are plenty. The module options suggested in this post may be worth a try for you.
Offline