Nvidia driver packages prevent suspend due to leftover Systemd units

Bug #1942133 reported by Saverio Miroddi
290
This bug affects 8 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-470 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When the nvidia driver packages are uninstalled, they leave some symlinks that prevent suspend.

I whink that, when attempting to suspend, the error is logged as this (edited):

    ModemManager[3287]: <warn> [sleep-monitor] inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
    upowerd[5771]: Could not acquire inhibitor lock: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
    dbus-daemon[2888]: [system] Activating via systemd: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1.service' requested by ':1.53' (uid=1000 pid=8227 comm="/usr/lib/x86_64-linux-gnu/indicator-session/indica" label="unconfined")
    systemd[1]: systemd-logind.service: Main process exited, code=exited, status=1/FAILURE
    systemd[1]: systemd-logind.service: Failed with result 'exit-code'.
    systemd[1]: systemd-logind.service: Scheduled restart job, restart counter is at 7.
    systemd[1]: Stopped Login Service.
    systemd[1]: Condition check resulted in Load Kernel Module drm being skipped.
    systemd[1]: Starting Login Service...

I've deleted the problematic symlinks while trying to solving the problem, however, they should be these:

    /etc/systemd/system/systemd-suspend-service.requires/nvidia-suspend.service
    /etc/systemd/system/systemd-suspend-service.requires/nvidia-resume.service
    /etc/systemd/system/systemd-hibernate-service.requires/nvidia-suspend.service
    /etc/systemd/system/systemd-hibernate-service.requires/nvidia-resume.service

I've briefly checked before removing them; at least a couple of them were masked, but they were still causing the problem.

I don't see any reason why they should hang around the systemd configuration once the packages are purged. Additionally, this is a problem that is not easy to diagnose.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: nvidia-driver-470 (not installed)
ProcVersionSignature: Ubuntu 5.11.0-27.29~20.04.1-generic 5.11.22
Uname: Linux 5.11.0-27-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu27.18
Architecture: amd64
CasperMD5CheckResult: skip
CasperVersion: 1.445.1
CurrentDesktop: MATE
Date: Mon Aug 30 21:10:52 2021
LiveMediaBuild: Ubuntu-MATE 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819.1)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
 SHELL=/bin/bash
SourcePackage: nvidia-graphics-drivers-470
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Saverio Miroddi (64kramsystem) wrote :
description: updated
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-470 (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Fischer (brintal) wrote :

Thanks for reporting this.
I can confirm the bug and the proposed solution.
I ran into issues with the 470 driver and hence uninstalled it. Since then my computer refused to suspend or hibernate. I always just got logged out.

After deleting the following files, it works so far:
/etc/systemd/system/systemd-suspend-service.requires/nvidia-suspend.service
/etc/systemd/system/systemd-suspend-service.requires/nvidia-resume.service
/etc/systemd/system/systemd-hibernate-service.requires/nvidia-suspend.service
/etc/systemd/system/systemd-hibernate-service.requires/nvidia-resume.service

Operating System: Kubuntu 21.10
KDE Plasma Version: 5.24.1
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.13.0-28-generic (64-bit)
Graphics Platform: X11
Processors: 16 × 11th Gen Intel® Core™ i9-11950H @ 2.60GHz
Memory: 31,0 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics

John C. (johnbendie)
tags: added: nvidia
Laurent Simon (stratic)
information type: Public → Public Security
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.