Issues with nvidia! Like not waking-up after suspending, or other issues with current version of nvidia's drivers?

If your computer wakes up with a black screen, and you have (later model?) nvidia graphic card, try this code to resolve your issue.

 #commands to fix suspending computer
sudo micro /etc/modprobe.d/nvidia-preserve-video-memory.conf
#paste the line below
options nvidia NVreg_PreserveVideoMemoryAllocations=1
#press Ctrl s, and then Ctrl q, to save and close the file.
#activate suspend services.
sudo systemctl enable --now nvidia-suspend.service
sudo systemctl enable --now nvidia-hibernate.service
sudo systemctl enable --now nvidia-resume.service

If you are having driver problems, consider installing nvidia-all drivers, and selecting, either open source, or proprietary drivers, from highest to lowest available for your system. It fixed the issues my RTX4080 threw up


#install nvidia-all  driver! (latest and earliest possible on your system )
git clone https://github.com/Frogging-Family/nvidia-all.git
cd nvidia-all
makepkg -si
sudo dracut-rebuild
sudo update-grub

When you need to do a clean install of Garuda with a nvidia graphic card, i found that running the installer in open source mode makes sure you can boot into your new installation.

However when you do the update at first run, do install the nvidia drivers when asked, but do not reboot your computer, for it may well render it unusable, rather install the nvidia-all drivers, and add the suspend config file, both outlined above, before rebooting.

(This is the only way i have been able to do a clean install of Garuda on my system with a RTX4080.)

Cheers.

6 Likes

thank you a lot for this precious help, i was totally in panic 4h ago…

2 Likes

Hello and thanks for the advice.

I have a rtx1070 and my screens are not waking up with the pc, should I be concerned by your post ?

(Yes I already posted a topic, installed other drivers is not better and The only thing I can do actually is not hibernate but shut down)

[quote=“Jeshu, post:1, topic:39572”]

This may fix your issue. You can try.


#commands to fix suspending computer
sudo micro /etc/modprobe.d/nvidia-preserve-video-memory.conf
#paste the line below
options nvidia NVreg_PreserveVideoMemoryAllocations=1
#press Ctrl s, and then Ctrl q, to save and close the file.
#activate suspend services.
sudo systemctl enable --now nvidia-suspend.service
sudo systemctl enable --now nvidia-hibernate.service
sudo systemctl enable --now nvidia-resume.service
1 Like

This is going to be part of the default package soon, which is why we have not automated this step yet: nvidia-utils: Enable PreserveVideoMemoryAllocations and TemporaryFilePath (55644f78) · Commits · Arch Linux / Packaging / Packages / nvidia-utils · GitLab

And just to note, we NEVER recommend using nvidia-all. That package does not update along with the rest of the system and should be avoided at all cost.

4 Likes

Interesting hearing you say that @TNE. i have been using nvidia-all drivers solution for almost a year, for without using it, i have not been able to do a clean install of Garuda with my RTX 4080 card.

So my question to you is how would you suggest fixing a nvidia driver installation, which does not compile the DKMS modules correctly, thus breaking the system, without using the nvidia-all drivers to find a working driver version?

1 Like

I suggest you use one of the official archlinux kernel versions alongside the official nvidia-dkms or nvidia package, depending on your needs.

The default Garuda Linux installation does this for you. The official nvidia package is built directly from nvidia-dkms, which means it will always work alongside the official arch kernel. PKGBUILD · main · Arch Linux / Packaging / Packages / nvidia · GitLab

1 Like

The problem is when i install Garuda with the official drivers, with both the 28-04-2024, or the November 2023, installation image, then my system will NOT boot.

So ii have been forced to install Garuda with open source drivers. Then when i do install the nvidia drivers, at first run, they will break my system. Even when i use the linux-lts, along with the zen kernel. Indeed i tried all kernels and it did not matter which kernel i tried, the standard nvidia driver installation provided by Garuda, will break my system, when i first install it.

However using the nvidia-all driver setup, i install the latest driver, and delete the wrongly compiled DKMS modules, and redo them. Doing this has rescued me, and my system seems to running fine, and has updated fine, since i did this.

So your answer does not seem to meet my needs. Unless you are talking about competently different Arch linux kernels than i have tried to use.

What about with nvidia-open-dkms ? Still no boot ? I do not suspect you have tried that yet so maybe give the open drivers a spin sometime !

You are right, i have not tried that, or thought of using this option. Not really familiar with open source. However i got a spare partition, to try out Linux distro’s, when i’m bored, or interested finding out if i like a particular Linux distro as an OS.

So i can try out your suggestion next time i’m bored. :upside_down_face:

Thanks for the suggestion. :person_raising_hand:

1 Like

How does one apply that driver? Using the garuda hardware installer If I pick open source it seems to default to video-linux and if I pick proprietary it goes to nvidia-dkms. mhwd does not seem to consider it a viable target. I have a Quadro P400 in the system.

Well you want to run: sudo pacman -R garuda-nvidia-config garuda-nvidia-prime-config && sudo pacman -S nvidia-open-dkms

Which will eventually remove Garuda’s driver selector and install the open dkms drivers but it won’t work at all because you need a turing gpu or newer . And unfortunately yours is a pascal so you are good with nvidia-dkms drivers.

1 Like

Tried it…sadly both it and video-linux seem to default to 1024x768 and thats the ONLY resolution they will support. So I’d rather this desktop just not go into sleep vs that. Thanks for the quick response!

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.