14

I updated to Ubuntu 22.04 and there is something wrong when I suspend my computer: I have that screen:

enter image description here

I'm using NVIDIA driver (nvidia-driver-470) and I'm on X11 and since the update I can't switch to Wayland anymore from the login session.

enter image description here

edit (23/04/2022):

$ sudo dmidecode -s bios-version
X751LN.302

$ free -h total used free shared buff/cache available Mem: 11Gi 1,7Gi 8,1Gi 270Mi 1,8Gi 9,4Gi Swap: 2,0Gi 0B 2,0Gi

$ sysctl vm.swappiness vm.swappiness = 60

$ swapon -s Filename Type Size Used Priority /swapfile file 2097148 0 -2

$ sudo lshw -C memory -firmware
description: BIOS vendor: American Megatrends Inc. physical id: 0 version: X751LN.302 date: 01/30/2015 size: 64KiB capacity: 6MiB capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb smartbattery biosbootspecification uefi
-cache:0 description: L2 cache physical id: 9 slot: CPU Internal L2 size: 512KiB capacity: 512KiB capabilities: internal write-back unified configuration: level=2 -cache:1 description: L1 cache physical id: a slot: CPU Internal L1 size: 128KiB capacity: 128KiB capabilities: internal write-back configuration: level=1 -cache:2 description: L3 cache physical id: b slot: CPU Internal L3 size: 4MiB capacity: 4MiB capabilities: internal write-back unified configuration: level=3 -memory description: System Memory physical id: c slot: System board or motherboard size: 12GiB -bank:0 description: SODIMM DDR3 Synchronous 1600 MHz (0,6 ns) vendor: Micron physical id: 0 serial: 00000000 slot: ChannelA-DIMM0 size: 4GiB width: 64 bits clock: 1600MHz (0.6ns) -bank:1 description: DIMM [empty] product: [Empty] vendor: [Empty] physical id: 1 serial: [Empty] slot: ChannelA-DIMM1 -bank:2 description: SODIMM DDR3 Synchronous 1600 MHz (0,6 ns) vendor: 0000 physical id: 2 serial: 0104AB19 slot: ChannelB-DIMM0 size: 8GiB width: 64 bits clock: 1600MHz (0.6ns) *-bank:3 description: DIMM [empty] product: [Empty] vendor: [Empty] physical id: 3 serial: [Empty] slot: ChannelB-DIMM1

I think i don't have ram issues according to memtest :

memtest enter image description here

I manage to get Wayland back by editing

/usr/lib/udev/rules.d/61-gdm.rules

as @ManOnTheMoon suggested in comments.

5 Answers5

23

After a few days of searching for a solution, I finally found one of the solutions I tried yesterday, and it finally worked! But I haven't found out any further whether the impact on my laptop in the future, at least this solution can help me first for now. Who knows this can help other friends too..

From the following reference (in comment #2 from dhenry), I tried disabling nvidia-resume and nvidia-suspend services using this command :

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

Source : https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-510/+bug/1970088

Equinox
  • 396
5

For me, the NVidia driver 510 that came with the Ubuntu 20.04 allows the system to suspend correctly but after installing Cuda 11.7 it updates the driver to 515 which does not suspend/hibernate. Now when I try to suspend, it just goes back to the lock screen but doesn't power-down.

The fix for this can be found at.. https://forums.developer.nvidia.com/t/ubuntu-20-04-installing-cuda-changes-nvidia-drivers-and-breaks-suspend/196220. It's requires a few steps to implement but after doing so my system now suspends and wakes up correctly.

Basically, the 515 driver (or at least what's in the cuda 11.7 install package) is not installing/linking the following files...

/lib/systemd/system/nvidia-*(hibernate, resume, suspend)
/lib/systemd/system-sleep/nvidia
/usr/bin/nvidia-sleep.sh

These need to be manually installed and then correctly linked into the systemd file structure for suspend to work. The script in the above link automates this once you've gathered the above files into a single directory. I copied these files from my 20.04 system to use in 22.04, though he did also post text versions of the files in the link.

bivouac0
  • 561
4

For others who have the same bug, but integrated card - it seems like new bug in Ubuntu 22.04.

4

I have a Dell XPS 7590 (GeForce GTX 1650) and had the same problem.

For me it was resolved when I changed the used driver from X.Org X Server to NVIDIA driver metapackage from nvidia-driver-515.

enter image description here

1

Everything is working now using Xorg (ubuntu on xorg from gdm) with nvidia-driver-510 (from additional drivers).