Hello,
I have an HP Victus 15 notebook with Intel Core i3 13420H and Nvidia GeForce RTX 4050. My configuration is utilizing lanzaboote. The problem is, the device won’t wake up after suspend when running nvidia driver.
I have tried powerManagement, powerManagement.finegrained and all the nvidia prime sync options but nothing worked.
Please do suggest a solution.
Thank you
Have you tried updating the nvidia driver to the most recent version (and switching to the open driver as their installer does these days)? Even then, you may be sool on your system, see the known issues on this page of the nvidia docs: Chapter 21. Configuring Power Management Support
Though it looks like it’s set by default for recent nvidia GPUs anyway now, and I’m unsure how much of the other NixOS configuration is required to get it to work.
My drivers are the latest because my installation is 3 days old. I tried the open driver and added the kernel parameter ““mem_sleep_default=deep”” but the problem is still there.
Deep sleep + nvidia is usually trouble. I don’t think this is strictly a Nix problem. Try removing the deep sleep and see if you can get it to wake up from regular idle.
Note that this won’t update automatically, you’d need to manage it manually. NixOS unstable tends to have an up-to-date nvidia driver, and once 24.11 hits stable will be more up-to-date again.
This won’t per-se fix the problem, sleep and nvidia indeed often don’t play well together. My best suggestion is to read the nvidia docs and see if anything in there applies to your case, and if not, send a bug report to nvidia as described in their documentation.
I tried using 560.35.03 driver from your config and it didn’t work. Is there a way to use intel integrated graphics for Display while simply loading RTX 4050 without using it for display. I plan to use it for compute in the near future.
Ah, I overlooked that. What you’re talking about is called “offload” mode, and enabled with this setting.
It can still be used for display if you use nvidia-offload to start something (or manually set some environment variables), but the GPU will otherwise be off and unused.
This should be the preferred setting for laptops anyway, since it conserves power, but still allows using the nvidia GPU when you need it for something graphically intensive - or for compute.
I tried nvidia-offload before opening this issue, but it didn’t work. I tried it again with the new driver but there is no improvement. As long as I set services.xserver.videoDrivers = [ “nvidia” ] my hardware won’t wake after suspend and if I remove this option the nvidia drivers won’t load into kernel.
Probably not much we can do to help, that’s the issue with proprietary stuff.
As a bit of a last resort, can you share the contents of cat /proc/acpi/wakeup with and without nvidia? Since this only breaks when the nvidia driver is active I doubt it’s involved, but you never know…