What is the expected outcome:
Typically if you click “suspend” on gnome to sleep your computer, if you turn it back on it will with no visual problems.
What output did you get
Extreme visual glitches on GDM and and DE. Only seems to be fixable with a full restart of the computer.
Meta information
OS: NixOS 24.11.20240906.574d1ea (Vicuna) x86_64
DE: GNOME 46.4
WM: Mutter (Wayland)
Kernel: Linux 6.11.0-cachyos
Nvidia driver version: 560.35.03
According to the Wiki, you might need to enable hardware.nvidia.powerManagement or hardware.nvidia.powerManagement.finegrained to remove the graphical corruption.
I see, thank you. Both do not appear to be ideal however. The `hardware.nvidia.powerManagement does not seem to fix issues with suspending the desktop, instead the desktop just does not show a display. For the latter, is there a known decrease in performance using hardware.nvidia.powerManagement.finegrained ? I will opt into just avoiding suspending my desktop completely if it does have an impact on performance (e.g. for gaming).
Although I haven’t had corruption issues before, I have both options enabled and I haven’t noticed any decrease in performance. Did the finegrained option fix the corruption issue for you at the cost of performance?
I am unable to enable the finegrained feature it seems. First I had an error that I needed to enable PRIME, so I did, but when I tried to build it said I needed to put my PCIE ID to enable it even though I have:
Ah, reading the Nvidia page on finegrained PM, turns out this feature is only supported for laptops. Could you enable hardware.nvidia.open and try again with and without powerManagement.enable?
I’m not using this option, but I too experienced issues in the past with Nvidia drivers and Gnome. So you might want to try linuxPackages.nvidia_x11_legacy535, that was added due to this issue reported in the ArchLinux forums.
Yes the choice of GPU drivers doesn’t even depend on actually showing graphical stuff - you can even use it with a pure command line setup and access it for computations only.
I think you meant 560.31.02 and not 560.35.03, as the latter is the latest stable, not beta.
Huh, this is strange. I did not notice the versions being wrong. I seem to have the stable versions even though I’ve declared the beta version of the drivers.
And this is the driver version I currently have installed:
> cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX Open Kernel Module for x86_64 565.77 Release Build (nixbld@)
GCC version: gcc version 14.2.1 20241116 (GCC)
I previously was using config.boot.kernelPackages.nvidiaPackages.stable, which I believe was driver version 550.142. Before the switch I was seeing major graphical glitches after suspend, like you describe. On the newer drivers I only see a blank screen after suspend and I am forced to cut power to the machine to restart it.
Joining this thread because I’m having a similar issue! It would be interesting to know your GPU model, @dingaling, if you’re willing to share. Mine is a GeForce GTX 1060 3GT OC.