You are not logged in.

#1 2023-09-15 08:36:53

danielert
Member
Registered: 2023-08-28
Posts: 16

[Solved] Screen graphic crash after suspension

Greetings,
recently I was having problems regarding suspend with Arch Linux + nvidia driver with gtx1060. After starting from sleep the graphics were completely broken with a black background and various problems. I tried Debian and other distros to see if it was a general problem and Fedora was the only one totally free of the problem. By installing Arch with the archinstall script, I select the configuration with proprietary nvidia drivers and once the installation is finished I check the parameters in mkinitcpio and grub, they are very clean. The only difference was the installation of 'libvdpau' instead of the 'nvidia nvidia-utils nvidia-settings' packages so without having to follow the guide on the arch site of the configuration for the nvidia drivers I solved the problem.

However, there are drops in performance and the 144hz of the monitor is not detected but it works easily with 120hz. Installing the drivers as per the guide on the arch site gives a smoother system (+ the bug described previously). Could you kindly tell me if there is a solution to this?

https://forums.developer.nvidia.com/t/t … /200933/12

I also tried this guide but it didn't work

Last edited by danielert (2023-09-16 14:50:09)

Offline

#2 2023-09-15 14:33:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,099

Re: [Solved] Screen graphic crash after suspension

You probably ended up w/ nouveau w/ your archinstall approach.
As for the artifacts, see https://download.nvidia.com/XFree86/Lin … ement.html

Offline

#3 2023-09-15 15:46:48

danielert
Member
Registered: 2023-08-28
Posts: 16

Re: [Solved] Screen graphic crash after suspension

searching according to your information I found this, could it work on arch?

https://gist.github.com/bmcbm/375f14eaa … bebbcfd029

Last edited by danielert (2023-09-15 15:47:43)

Offline

#4 2023-09-15 15:49:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,099

Re: [Solved] Screen graphic crash after suspension

Don't use some random script, read the nvidia documentation and apply the necessary steps.

Offline

#5 2023-09-15 15:50:51

danielert
Member
Registered: 2023-08-28
Posts: 16

Re: [Solved] Screen graphic crash after suspension

ok thanks, as I have a moment of time between today and tomorrow I'll try

Offline

#6 2023-09-16 09:57:05

danielert
Member
Registered: 2023-08-28
Posts: 16

Re: [Solved] Screen graphic crash after suspension

I tried following your link but some paths like this one from nvidia don't match.

/usr/share/doc/NVIDIA_GLX-1.0/samples/systemd/nvidia-suspend.service

my nvidia files instead are found in this path:

 /etc/systemd/system/systemd-suspend.service.wants or /etc/systemd/system/systemd-hibernate.service.wants 

So I tried to install the files from '/etc/systemd/system/systemd-suspend.service.wants/nvidia-suspend.service' etc in '/etc/systemd/system' but it doesn't work

Not even by deleting the folder 'systemd-suspend.service.wants' which is automatically regenerated, obviously I also enabled the nvidia-suspend nvidia-resume services but nothing to do

Offline

#7 2023-09-16 13:14:48

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,099

Re: [Solved] Screen graphic crash after suspension

It's an upstream docu - the services are already provided by the package in location to be normally enabled by you: https://wiki.archlinux.org/title/Systemd#Using_units
Don't forget that you also have to enable a module parameter, https://wiki.archlinux.org/title/Kernel … le_options
And if you've the nvidia modules in the initramfs, you also have to regenerate that.

Offline

#8 2023-09-16 14:10:50

danielert
Member
Registered: 2023-08-28
Posts: 16

Re: [Solved] Screen graphic crash after suspension

If you are referring to the kernel parameters in mkinitcpio and grub I had already enabled them and regenerated the initramfs

but i'm talk about:

 nvidia-drm.modeset=1 

and for mkinitcpio:

nvidia nvidia_modeset nvidia_uvm nvidia_drm

and then I created the nvidia.hook file for automatic regeneration of initramfs after driver updates

or is there some parameter that I'm missing?

Offline

#9 2023-09-16 14:16:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,099

Re: [Solved] Screen graphic crash after suspension

README/powermanagement.html wrote:

Additionally, to unlock the full functionality of the interface, the NVIDIA Linux kernel module needs to be loaded with the NVreg_PreserveVideoMemoryAllocations=1 module parameter. This changes the default video memory save/restore strategy to save and restore all video memory allocations.

Offline

#10 2023-09-16 14:49:46

danielert
Member
Registered: 2023-08-28
Posts: 16

Re: [Solved] Screen graphic crash after suspension

Thanks! Now it work fine! You are the number one wink

Offline

Board footer

Powered by FluxBB