Since Linux kernel version 6, perhaps earlier, users have had problems with proprietary Nvidia video drivers when the system enters suspend or hibernation. Typically, the system resumes to a black screen. This suggests that the video card does not start properly after the system resumes from suspend or hibernation.
The Arch Linux Wiki's Nvidia installation guide does not mention this problem. It might be possible to solve it by configuring early loading for the video card modules. I didn't try that option because I first found another working solution on the openSUSE forum, where someone pointed out the disabled experimental video driver services. I think these services were added as an experimental feature and disabled by default to address similar problems for some users.
Update: "Early loading" does not solve the problem.
I enabled the three services I needed: nvidia-suspend, nvidia-hibernate, and nvidia-resume. If you install the video drivers from the Arch Linux repository, these services are already on your system; you just need to enable them:
sudo systemctl enable nvidia-suspend
sudo systemctl enable nvidia-hibernate
sudo systemctl enable nvidia-resume
After that, everything worked as it should, without any problems, until July 2, 2024, when I installed the next upgrade.
After the upgrade, when resuming from hibernation, I saw an Nvidia-related error and had to reboot before I could get back into the system. The error looked like this: "BUG: scheduling while atomic: irq/148-nvidia...". I searched for a solution for a long time, then came across a report that Nvidia driver version 535 did not have these problems. So I decided to downgrade the packages: nvidia to 550.90.07-4, nvidia-settings to 550.78-1, nvidia-utils to 550.90.07-3, and linux to 6.9.6. I didn't downgrade all the way to version 535; instead, I rolled back to the package versions from the day I had performed the problematic system upgrade. Note that the Linux kernel also needs to be downgraded to a version supported by the Nvidia driver. Unfortunately, Nvidia drivers do not work with recent Linux kernels.
You can learn how to downgrade a package in the official Arch Linux documentation.
After a month, no fixes had been released for the Nvidia drivers. The linux package was already at version 6.10.2, and I risked losing stable functionality by staying on the older packages. Some packages might also depend on newer versions of linux in the future, which could cause more stability problems. So I decided to buy and install a video card with an AMD GPU, and put an end to the trouble. I should have done this earlier, but for old times' sake, I stuck with Nvidia. Getting an AMD card also gave me a great opportunity to switch from i3 to Hyprland, which I had considered many times but couldn't use because of problems with my Nvidia card.
For other readers, I recommend switching to an AMD video card or avoiding proprietary video drivers. You can still use your system without them. I used the proprietary drivers for more stable image rendering on my display and to work in Lightworks. If you don't need those features, you can safely remove the drivers.