All went well, but I got nvidia-powerd.service failed to start. Some people in the forum said it is safe to ignore because it is meant to be that way with the older card.
However, I am still not able to suspend my laptop. It awakes instantly.
Any help will be greatly appreciated. I don’t want to power off and on just to leave my laptop for minutes.
One package you removed that is mandatory for nvidia is nvidia-gpu-firmware. Please reinstall it so the boot process can properly configure the nvidia GPU.
Otherwise it looks like you now have the proper drivers installed and after the firmware is reinstalled the system should work properly.
Actually, it is my understanding that the nvidia-powerd service is intended for use with laptops and not for use with desktops, which would explain the missunderstanding of those providing advice. On desktops the error is really just a warning and not an error of note. On laptops with dual GPU it should be heeded.
Try this to see if the proper services are running for suspend to work. systemctl status nvidia-{hibernate,resume,suspend}.service
But after reboting my laptop twice, I still get this error:
~ took 2s
❯ sudo systemctl start nvidia-powerd.service
[sudo] password for user:
Job for nvidia-powerd.service failed because the control process exited with error code.
See "systemctl status nvidia-powerd.service" and "journalctl -xeu nvidia-powerd.service" for details.
~ took 3s
❯ sudo systemctl status nvidia-powerd.service
× nvidia-powerd.service - nvidia-powerd service
Loaded: loaded (/usr/lib/systemd/system/nvidia-powerd.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Thu 2022-12-29 04:49:31 WIB; 10s ago
Process: 4757 ExecStart=/usr/bin/nvidia-powerd (code=exited, status=1/FAILURE)
Main PID: 4757 (code=exited, status=1/FAILURE)
CPU: 5ms
Dec 29 04:49:31 machine systemd[1]: Starting nvidia-powerd.service - nvidia-powerd service...
Dec 29 04:49:31 machine /usr/bin/nvidia-powerd[4757]: nvidia-powerd version:1.0(build 1)
Dec 29 04:49:31 machine /usr/bin/nvidia-powerd[4757]: SBIOS support not found for NVPCF GET_SUPPORTED function
Dec 29 04:49:31 machine /usr/bin/nvidia-powerd[4757]: No matching GPU found
Dec 29 04:49:31 machine /usr/bin/nvidia-powerd[4757]: Failed to initialize RM Client
Dec 29 04:49:31 machine systemd[1]: nvidia-powerd.service: Main process exited, code=exited, status=1/FAILURE
Dec 29 04:49:31 machine systemd[1]: nvidia-powerd.service: Failed with result 'exit-code'.
Dec 29 04:49:31 machine systemd[1]: Failed to start nvidia-powerd.service - nvidia-powerd service.
No, you are not missing anything.
What is the result of the systemctl command I asked about in the post above. systemctl status nvidia-{hibernate,resume,suspend}.service
If only leaving the laptop for a few minutes it may be just as well to simply lock the screen. That provides just as much security as suspending, though it is a little more demanding of power.
❯ systemctl status nvidia-{hibernate,resume,suspend}.service
○ nvidia-hibernate.service - NVIDIA system hibernate actions
Loaded: loaded (/usr/lib/systemd/system/nvidia-hibernate.service; enabled; preset: enabled)
Active: inactive (dead)
○ nvidia-resume.service - NVIDIA system resume actions
Loaded: loaded (/usr/lib/systemd/system/nvidia-resume.service; enabled; preset: enabled)
Active: inactive (dead)
Dec 29 04:55:15 machine systemd[1]: Starting nvidia-resume.service - NVIDIA system resume actions...
Dec 29 04:55:15 machine suspend[6281]: nvidia-resume.service
Dec 29 04:55:15 machine logger[6281]: <13>Dec 29 04:55:15 suspend: nvidia-resume.service
Dec 29 04:55:15 machine systemd[1]: nvidia-resume.service: Deactivated successfully.
Dec 29 04:55:15 machine systemd[1]: Finished nvidia-resume.service - NVIDIA system resume actions.
○ nvidia-suspend.service - NVIDIA system suspend actions
Loaded: loaded (/usr/lib/systemd/system/nvidia-suspend.service; enabled; preset: enabled)
Active: inactive (dead)
Dec 29 04:55:07 machine systemd[1]: Starting nvidia-suspend.service - NVIDIA system suspend actions...
Dec 29 04:55:07 machine suspend[5933]: nvidia-suspend.service
Dec 29 04:55:07 machine logger[5933]: <13>Dec 29 04:55:07 suspend: nvidia-suspend.service
Dec 29 04:55:08 machine systemd[1]: nvidia-suspend.service: Deactivated successfully.
Dec 29 04:55:08 machine systemd[1]: Finished nvidia-suspend.service - NVIDIA system suspend actions.
If only leaving the laptop for a few minutes it may be just as well to simply lock the screen. That provides just as much security as suspending, though it is a little more demanding of power.
I never switch off my laptop. Because I use it daily. So it only goes off when I go vacation. The suspend feature is huge necessity for me.
Turns out, after switching back to X11 I can suspend my laptop without any issue.
I never realize that I am on Wayland. Because right after NVIDIA installation, the Wayland button for login is disabled. Maybe after some update (because I update my machine daily) I can log in with Wayland without my consent. Thus crippling the suspension process.
Now I am wondering what If I switch to X11 without installing xorg-x11-drv-nvidia-power is the suspend issue will be gone? I don’t have time to try this. At least now I can suspend my laptop.
Note: I realize that I am on Wayland after I want to use an automatic time tracker such ActivityWatch. Most of them don’t work. Turns out I am on Wayland.