16

Ubuntu 22.04 won't wake up from sleep

1.issue

  • Whenever the laptop suspends (either due to a closed lid or due to a black screen for a certain time), I cannot wake it up. 2. The laptop does not respond to keystrokes and power button clicks. As a result, I always have to hold the power button to shut it down and then power it up again.

2.system

  • Model: asus vivobool 14
  • AMD Ryzen 5 5500U with Radeon Graphics
  • Storage: 512GB SSD
  • OS: Ubuntu 22.04 LTS 64bit

3.update

  • Tried GRUB_CMD_LINUX="nouveau.modeset=0" in grub config and it didn't work.
  • Tried GRUB_CMDLINE_LINUX="nouveau.blacklist=1" in grub config and it didn't work.
  • -tried and install nvidia-driver-465 package and it didn't work.
GTM
  • 161

5 Answers5

3

I'm also using Ubuntu 22.04 and experienced the same problem. After some digging around, I found that source of the problem is probably nvidia drivers, so I launched Software & Updates -> Additional Drivers.

Software & Updates

And I changed the driver from nvidia-driver-525 (proprietary) to nvidia-driver-525-open (proprietary).

This reinstalled the driver, and after rebooting the problem disappeared.

karel
  • 122,292
  • 133
  • 301
  • 332
valdik
  • 39
1

Dell XPS 9550 in Ubuntu 22.04 I tried next steps:

  1. added mem_sleep_default=deep to GRUB_CMDLINE_LINUX_DEFAULT (/etc/default/grub) - didn't help
  2. added WaylandEnable=false in /etc/gdm3/custom.conf (under [daemon]) - didn't help
  3. installed mainline and kernel 6.4.11-060411-generic (latest kernel in mainline as for 2023-08-17) - now wake up from sleep is working. While installing new kernel, there were errors but kernel was installed and I can enter into Ubuntu. But somehow time expected to run at previous kernel (6.2) were from 3 to 8 hours, now battery shows stable 1 hour 45 - for 45 percent of battery and ~3hours 30 minutes for 100 percent battery. Maybe it was the statistics errors in previous kernels. but 3 hours 30 minutes at web-browsing and visual studio code and telegram are ok for me.
beatt
  • 11
  • 1
0

Just curious why did you install NVIDIA drivers when you have Radeon Graphics hardware.

I am also facing this problem now. I have a AMD Radeon RX6600M, and have installed the latest AMD driver available for that but still not able to resolve the issue. I came across a temporary solution suggested in other posts, and it is to use 1) Ctrl + Alt + F3, then, 2) Ctrl + Alt + (F2 or F7) depends on the Manufacturer. I haven't tried it, I am searching for the permanent solution. Just in case, if you were able to solve it, please share it here. Thanks.

0

I had the same thing happen to me when I upgraded my older ASUS laptop (nvidia chipset) from Mate 20.04 to 22.04. Before upgrading there was no problem at all waking up from sleep with lid open. I believe immediately after upgrading it did actually wake up on lid open, but as soon as I installed the nvidia drivers it stopped working. I tried uninstalling the nvidia drivers, re-installing them etc.. but no luck. I noticed the suspend did not seem to complete as it previously would log to syslog on lid down:

PM: suspend entry (deep)
... ( maybe some more logs)
Filesystems sync: 0.xxx seconds

Now the "Filesystems sync" message was not logged, and the the "PM: suspend entry (deep)" was always the last message. I would have to power off and back on every time it went to sleep.

After trying a few different things to try to debug the problem, I upgraded from the 5.15 kernel to the 6.5 hwe kernel and it just started worked again (recommended nvidia drivers installed before and after). Now the "Filesystems sync" message follows the "PM: suspend entry (deep)" message again as well.

brianc
  • 21
0

I have answer the problem here: https://askubuntu.com/a/1551525/2281828 and that is it: I had a similar problem, that when PC sleep, it can NOT wake up again.. After a lot of Search, I fornd that problem is caused by kernel version (which is not stable).. I recommend 6.5.0-28-generic which is more stable.. Here is the steps:

  • reboot pc
  • go to advanced options for ubuntu
  • choose an older version (6.5.0-28-generic recommended)

If you do not have 6.5.0-28-generic, you can install it by writting the following in the terminal:

  • sudo apt install linux-image-6.5.0-28-generic linux-headers-6.5.0-28-generic
  • sudo update-grub
  • Reboot and Use It

after that, when you enter in the terminal the following command:

  • uname -r expected result is:
  • 6.5.0-28-generic