Ubuntu 20.04 LTS can not resume after suspending

On Ubuntu 20.04 LTS (UEFI mode installed, NVIDIA GF GTX 1050), I can not resume my computer after the suspension so that I have to directly shut it down and start up again. Here is my /etc/default/grub

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="nouveau.modeset=0"

and the screen display when I try to resume the device:

ERROR: GPU0: Display engine push buffer channel allocation failed: 0x65 (Call timed out [NV_ERR_TIMEOUT])
ERROR: GPU0: Failed to allocate display engine core DMA push buffer
ERROR: GPU0: Display engine push buffer channel allocation failed: 0x65 (Call timed out [NV_ERR_TIMEOUT])
ERROR: GPU0: Failed to allocate display engine core DMA push buffer

Solution 1:

This is a known bug.

The solution is to revert to nVidia version 450.

You should also register yourself onto the bug report saying "It effects me" and subscribe to email on bug updates.

To install an earlier version of nVidia Drivers see this:

  • Ubuntu 18.10 : How can I install a specific NVIDIA drivers version?

Solution 2:

Same problem on my Lenovo Legion. I managed to make it work with:

sudo apt purge nvidia-*
sudo apt install nvidia-driver-450-server

The package nvidia-driver-450 will install nvidia-driver-460 instead.

Solution 3:

From the bug report page, there is a solution mentioned by Hugo Ferreira (hmf) as follows which solved my issue without downgrade. I was using Nvidia driver 460.91 and ubuntu 18.04.5 and had same issue. If downgrade is a issue for you then try any of these solution. Both works!!

  1. Configure the use of the suspend and resume scripts shown here: https://download.nvidia.com/XFree86/Linux-x86_64/460.39/README/powermanagement.html

  2. Use the "Software & Updates -> Additional Driver" application but use the "NVIDIA Server Driver metapackage ... (proprietery)" and not the "NVIDIA driver metapackage ... (proprietary, tested)"

Solution 4:

Same problem for me with ubuntu 20.04, kernel 5.11.0 and Nvidia driver 470.74 : black screen when trying to resume after suspend. As stated here the installation using command line and not driver install GUI do the job. The server version of the driver has drawback for me as it do not manage color profile for the monitor (which make sense for a server).

sudo apt purge nvidia-*
sudo apt autoremove
sudo apt install nvidia-driver-450

this install driver version 460.91 which works fine on my configuration. Command line install of version 470.74 has the problem.