Linux
Welcome to c/linux!
Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!
Rules:
-
Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.
-
Be respectful: Treat fellow community members with respect and courtesy.
-
Quality over quantity: Share informative and thought-provoking content.
-
No spam or self-promotion: Avoid excessive self-promotion or spamming.
-
No NSFW adult content
-
Follow general lemmy guidelines.
view the rest of the comments
Have you added:
options nvidia NVreg_PreserveVideoMemoryAllocations=1options nvidia NVregTemporaryFilePath=/var/tmpto
/etc/modprobe.d/nvidia-graphics-drivers-kms.conf?This was the fix found here that worked for me, the file in the fix didn't exist but this one was the only nvidia related conf file in modprobe.d and the fix worked and has persisted despite multiple driver updates.
I'm running kubuntu 25.04.
Thanks for trying! But that didn't seem to work. My file had both of those lines but on the 2nd line had /var instead of /var/tmp. I added the /tmp and rebooting, but still doesn't sleep. I guess I'm on the nvidia 580 drivers now, I think what had worked for the 470 drivers was the following bellow. I think doing a kernel upgrade messed me up, but I got rid of the previous kernel so not sure which I have to go back to to get it working again.
I actually did the opposite of this guide to see if that would work and it didn't. Without the nvidia power management services , the device doesn't sleep it comes right back on after a second of back screen, but with the services the device has a black screen, but is still on, not asleep and I can't wake it so I have to hard reboot.
"Good news for affected users! I found a fix!
A LITTLE BACKGROUND You may already know that NVIDIA drivers on Linux rely on either of two different methods for power management ( as described here 68 ), which include:
Kernel Driver Callback: Works out of the box with no configuration required, but lacks advanced power management features and preserves only a portion of the video memory.
systemd (/proc/driver/nvidia/suspend): Provides advanced power management features and preserves complete video memory, but requires configuration and setup.
THE CAUSE Having mentioned the above, upon further inspection I found out the 470 driver migrated to systemd method while previous versions relied on Kernel Driver Callback. Apparently this is broken on some setups and kernels.
THE WORKAROUND Now it’s obvious we have to revert back to Kernel Driver Callback method for now that the systemd method is broken, and here’s how you can do that:
Reboot and you should be able to suspend and resume properly with driver version 470.xx.
NOTE: Backup your configuration just in case, or downgrade the driver if this does not work on your setup. This was tested on Kubuntu 21.04 with GeForce GT 710."
I gotta say, after my last post I promptly upgraded my PC to 25.10 which immediately broke my Nvidia suspend, after a bit more investigation I found restarting the services you listed above fixed the issue. The fix persisted across restarts. I'm running an RTX 3060 so along with the 25.10 it's a bit of a different setup from yours.
Glad that helped ya out!