Bug 32505

Summary: Packaging issue of nvidia-resume and nvidia-suspend services
Product: Mageia Reporter: Chris Denice <eatdirt>
Component: RPM PackagesAssignee: Kernel and Drivers maintainers <kernel>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: fri
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: x11-driver-video-nvidia* CVE:
Status comment:

Description Chris Denice 2023-11-10 16:57:16 CET
Description of problem:

If you install nvidia drivers, any version, the packages x11-driver-video-nvidia* install two services helping to suspend and resume the system:

/usr/lib/systemd/system/nvidia-resume.service
/usr/lib/systemd/system/nvidia-suspend.service

If you uninstall the nvidia drivers and modules, these files are removed but not their dependencies created during the installation.

As such, doing:

systemctl suspend

will crash after having uninstalled all nvidia drivers with a message claiming that nvidia-suspend and nvidia-resume services are missing.

NB: This is happening to me now due to my card being now only supported by nouveau. So I had to uninstall all nvidia drivers and the system does not suspend nor hibernate anymore.


For Ghibo I guess, the fix is simple. At uninstall, before removing the nvidia service files, the SPEC files should force a:

systemctl disable nvidia-resume.service
systemctl disable nvidia-suspend.service

etc...


Thanks,
Cheers,
Chris.
Morgan Leijström 2023-11-10 18:49:15 CET

Assignee: bugsquad => kernel
CC: (none) => fri