wrong nvidia configuration: suspend/resume issues
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nvidia-graphics-drivers-535 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When returning from a suspend/resume cycle on an Optimus laptop (Intel+NVIDIA GPU), the primary laptop screen stays off. The external screen works as expected. However, when having disconnected the external monitor after suspend, the laptop screen is off as well. It is possible to switch to console and restart lightdm, but that's no solution.
The problem seems to be caused by a misconfiguration of the nvidia suspend/resume setup as explained here:
https:/
suspend/resume for nvidia is triggered twice:
1. via systemd services: nvidia-
2. via /lib/systemd/
Both paths end up calling /usr/bin/
These files are provided by package nvidia-
*Solution*: It was sufficient to delete the latter file: `sudo rm /lib/systemd/
systemd documentation states: "Scripts or binaries dropped in /usr/lib/
https:/
The problem exists in Ubuntu Focal and Jammy at least. Probably all versions of package nvidia-
In contrast to https:/ /bugs.launchpad .net/bugs/ 1946303, which seems to be similar, I do not see kernel error messages or even crashes in the kernel logs.