Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4421

Ubuntu 22.04: Suspend, hibernate, and shutdown fail in different ways

$
0
0

Specs

Laptop - Lenovo Thinkpad X260

OS - Ubuntu 22.04.4 LTS

Overview

I use suspend at least a couple times daily, and noticed an issue with it two days ago where suspend fails and I can only reboot.As I was trying to figure it out, I noticed similar issues with hibernate and shutdown (though I use hibernate and shutdown rarely, so it's unclear whether these problems are really related or not, and when hibernate and shutdown stopped working).In each case, the symptoms are slightly different, as described below.

I'll be referring to an "audio tick", this is a small static tick that sounds like a static shock and that I could hear when wearing earphones when the laptop suspends, hibernates, or turns off successfully.I don't know exactly what was causing it (always just assumed the audio server turning off), but it has always been a consistent signal than the laptop was done and I could put it away.

Issue Descriptions

Suspend

Trigger - Problem appears when I close the lid (which triggers suspension) or by running sudo pm-suspend

Expectation - Laptop should take a second to suspend, the screen should turn black, then I should hear the audio tick, and I can put the laptop away. Later, I should open the lid and everything goes back to running as normal.

What actually happens - Laptop takes a second to suspend, the screen goes black (but it looks still like the screen is on, just black), I never hear the audio tick, and then nothing happens. The laptop stays in this unresponsive state indefinitely until I power it off manually.

Log of sudo journalctl -S today (cut from the moment I run pm-suspend until the time I manually reboot, which happens just a couple of lines underneath, so not much to look at): https://pastebin.com/uDf2Yein

Hibernate

Trigger - Problem appears when I run sudo pm-hibernate

Expectation - Laptop should take a few seconds to hibernate, the screen should turn black, then I should hear the audio tick, and I can put the laptop away. Later, I should open the lid (maybe I also need to press the power button to wake from hibernation, don't remember) and everything goes back to running as normal.

What actually happens - Laptop takes a few secons to hibernate, the screen turns black, I don't hear the audio tick, the screen goes back on, and everything goes back to running as if nothing had happened.

What I tried

Full log of sudo journalctl -S today (cut from the moment I run pm-hibernate): https://pastebin.com/kLYymK7T

There is a segment about the swapfile that seems relevant (shown below), but I could not figure why those logs are there, as anything else I check seems to confirm that the swapfile is working as expected.

Aug 24 16:20:17 bumblebee kernel: PM: Cannot find swap device, try swapon -aAug 24 16:20:17 bumblebee kernel: PM: Cannot get swap writerAug 24 16:20:17 bumblebee kernel: PM: hibernation: Basic memory bitmaps freed

The swap exists, it does get used in general (confirmed via htop), and I've also remade the swapfile by running

> sudo swapoff /swapfile> sudo mkswap /swapfile  mkswap: /swapfile: warning: wiping old swap signature.  Setting up swapspace version 1, size = 20 GiB (21474832384 bytes)  no label, UUID=e82dd3b3-3ce2-44bf-be60-751294fa9323> sudo swapon /swapfile> sudo swapon --show  NAME      TYPE SIZE USED PRIO  /swapfile file  20G   0B   -2

Shutdown

Trigger - Problem appears when I shutdown via the OS gui or when run sudo shutdown now.

Expectation - Laptop should take a few seconds to turn off, the screen should turn black, then I should hear the audio tick, and I can put the laptop away. Later, I should press the power button to turn the laptop back on.

What actually happens - Laptop takes a few seconds to turn off, the screen turns off (not just black like in the suspend case, this time I think it's actually off), but I never heard the audio tick. Aside from that, the laptop appears to be off, but it actually is still on. I mainly notice because if I put it away in my sleeve, later I will find that it is very warm, clearly still on in some capacity. The laptop stays in this unresponsive state indefinitely until I power it off manually.

What I tried

Log of sudo journalctl -S today (cut from the moment I run pm-shutdown until the time I manually reboot): https://pastebin.com/5T3cLYM2

I couldn't find anything worth digging deeper, but I don't really know what I'm looking for.

What Now?

Obviously I'd love to be able to solve the issue as a whole, but I guess at this stage I'm generally lost on what I should check to try an diagnose it more fully, which logs I should pay attention to, and what to try.

Thank you to anyone who'd be willing to guide me in the right direction!

UPDATE 2024-08-26

I managed to make some progress; first of all, turns out my swap was misconfigured (see this comment) and that explained some of the issues with hibernate (though not all). Then, I managed tested out a previous kernel (see this comment) and that fixed hibernate, probably shutdown (it did get stuck once on the splash screen, but it worked twice), but not suspend.

kernelsuspendhibernateshutdown
6.8.0-40-genericScreen goes black, fan stays on, power light stays on (but on slow pulse, which I believe is correct), system freezes, I have to manually power off.Half works. Screen goes black, fan stays on, system freezes, I have to manually power off. But when I power back on, system wakes from hibernation as normal.Screen goes black, keyboard backlight stays on, fan stays on, system freezes, I have to manually power off.
6.8.0-39-genericScreen stays on (showing OS), fan stays on, system freezes, I have to manually power off. But when I power back on, system wakes from hibernation as normal.Screen stays on (frozen on logoff splashscreen, fan stays on, system freezes, I have to manually power off.
6.5.0-35-genericScreen goes black, power light stays on, fan stays on, system freezes, I have to manually power off.Works.Worked twice, but got frozen on logoff splashscreen once. Might have been an isolated case, I'll test some more.

Other Updates based on other threads I have found online about the failure of suspend, I also tried disabling wifi, ethernet, and bluetooth from the BIOS, and it changed nothing (on the 6.5.0-40 kernel)


Viewing all articles
Browse latest Browse all 4421

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>