Replies: 2 comments
-
Thanks for your report and the proposed fix. I've filed NVIDIA internal bug 5382200 for this. The /usr/lib/elogind/system-sleep/nvidia script I assume comes from your distribution, but I think it is the same and/or is adapted from systemd/system-sleep/nvidia packaged in the .run file packaging of the NVIDIA GPU driver. I don't know yet whether the missing "pre" is a problem in systemd/system-sleep/nvidia for systemd usage, too, or if this should simply be considered a problem in the Artix Linux adaptation of the script for use with elogind. But, we'll try to investigate a bit deeper. |
Beta Was this translation helpful? Give feedback.
-
As Andy noted, the systemd/system-sleep/nvidia script is only intended to be used with systemd and isn't designed to work with other init systems. For systemd, the As described in the README, it's up to the distribution and its init system to properly bracket suspend & resume, which in this case I think would mean providing a vendor-specific elogind/system-sleep script that handles the I realize that this stuff gets complicated. I'll see what I can do to simplify things on the driver side if possible. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I found and fixed a critical suspend bug in nvidia-utils but struggling to find where to report it properly.
Reporting Issues I Encountered:
The Bug:
The
/usr/lib/elogind/system-sleep/nvidia
script (from nvidia-utils 575.57.08) is missing the "pre" case for regular suspend operations, causing suspend to fail on non-systemd systems using elogind.Error symptoms:
Root Cause:
The current script only has a "post" case:
But it's missing the "pre" case that should suspend the GPU before system suspend. Interestingly, the script handles
suspend-then-hibernate
correctly with both pre/post cases, but not regular suspend.The Fix:
Add the missing "pre" case to
/usr/lib/elogind/system-sleep/nvidia
. The current script is:It should be:
Why This Affects Both Driver Types:
Both
nvidia
(proprietary) andnvidia-open
packages depend on the samenvidia-utils
package, which provides this broken script. So this bug likely affects all NVIDIA Linux users on non-systemd systems.Verification:
echo suspend > /proc/driver/nvidia/suspend
Questions:
I have a working pacman hook to preserve the fix across updates, but this really should be fixed upstream in the nvidia-utils package.
System details:
Beta Was this translation helpful? Give feedback.
All reactions