3

Suddenly, putting system to sleep started failing, here is the entire /var/log/syslog https://gist.github.com/umpirsky/f3e1a8d32217ad4b8fb3186124866d69

I disabled all entries in /proc/acpi/wakeup, it didn't help.

Ubuntu 22.04.4 LTS

Any idea why this started happening? Thanks.

David DE
  • 2,316
umpirsky
  • 3,852

2 Answers2

2

The cause of system sleep failing may be a recent kernel update.

To check:

  1. Restart your system.
  2. If you don't see the GRUB menu hold Shift while booting.
  3. In the GRUB menu choose Advanced Options for Ubuntu.
  4. Choose the second generic kernel, which is a previous version of the kernel had installed.
  5. Let it start and check your sleep mode. If it works, try the answer from @rishuverma to the question Set "older" kernel as default grub entry to make GRUB to load the older kernel automatically (I'm making the rest specific to the linux-modules-5.15.0-117-generic kernel as you've confirmed that this older kernel worked for you).

To not have the working, older kernel be deleted after an update:

  1. Install Synaptic Package manager:

    sudo apt install synaptic
    
  2. Start Synaptic.

  3. Go to Status, Installed (manual) and make sure you do not see linux-modules-5.15.0-117-generic.

  4. Go to Status, Installed and find linux-modules-5.15.0-117-generic.

  5. Mark the package, click the Package menu on top of page and remove the check from Automatically installed:

    Synaptic

  6. Check the package in Status, Installed (manual).

amar
  • 2,140
0

If you don't want to look into kernel changes, I found that this answer to a similar question solved the problem for me.

Copying here:

I enabled hibernation some month ago in my Ubuntu system, now 20.04, but now as in the past I had some issue. So in this last event I found this in "dmsg" during hibernation procedure:

 Freezing of tasks failed after 20.005 seconds (0 tasks refusing to freeze, wq_busy=1)...

I solved with increasing the freezing timeout from 20 sec to 30 sec:

echo 30000 > /sys/power/pm_freeze_timeout

and made I it permanent with sysfsutils and after writing

power/pm_freeze_timeout = 30000

in a file in the /etc/sysfs.d directory