You are not logged in.

#1 2024-09-28 07:39:15

valextin6
Member
Registered: 2024-09-28
Posts: 4

Issues with hibernation, Thinkpad T-Series

Hi, I'm kind of at the end of my rope here. Having tried many things suggested in this forum and elsewhere, I've run out of ideas of what to try.

[Problem]
When I hibernate my Thinkpad laptop, the following happens:
1. My session gets locked, as per my idle manager settings.
2. Then the system hangs, i.e. is completely unresponsive for some time.
     Now this time varies drastically. If I've just started the system the time is fairly short, but if the system has been running for some time it can be excruciatingly long.
     I'm assuming the reason for this is, that it takes the kernel quite some time to save process state to the hibernation file.
3. After this time has elapsed, the display turns off for a short while. Then turns back on.
    In this state the system still seems hung for some time, as far as I can tell.
4. Then after a much shorter time the system actually powers down.

[What I've tried]
- Updating all firmware and packages
- Experimented with systemd sleep configuration
- Inspected dmesg logs for potential errors
  Now the annoying part with this is that there are, as far as I can tell, no errors while hibernating.
  The only problem I had was related to the ath11k_pci driver having issues when going and especially when coming out of hibernation.
  I fixed this by writing a systemd unit that unloads and loads the driver respectively.
- Followed the kernel.org troubleshooting guide for sleep issues

[My specs]
Thinkpad T14s Gen 4 AMD, 21F8002TGE
Kernel 6.10.10 (as of writing this)

I would really appreciate your guys' help in figuring this out. I'm no huge expert in troubleshooting or Linux, hence why I'm posting in the newbie corner. But even my, as I would say, fairly decent Linux skills have failed me lmao.
Let me know if you need any other information!

Offline

#2 2024-09-28 08:56:28

ThoughtBubble
Member
Registered: 2024-07-09
Posts: 55

Re: Issues with hibernation, Thinkpad T-Series

https://wiki.archlinux.org/title/Lenovo … AMD)_Gen_4

According to this wiki page,

The ath11k_pci driver is experimental and it fails to recover the device after resuming from hibernation. There is an active bug report and the patch to fix is pending public review.

Last edited by ThoughtBubble (2024-09-28 09:13:16)

Offline

#3 2024-09-28 09:24:40

valextin6
Member
Registered: 2024-09-28
Posts: 4

Re: Issues with hibernation, Thinkpad T-Series

Yes! The ath11k_pci driver is definitely an issue. However as stated in my post I fixed that by unloading/loading the driver, before and after hibernation respectively.

Offline

#4 2024-09-28 09:30:05

ThoughtBubble
Member
Registered: 2024-07-09
Posts: 55

Re: Issues with hibernation, Thinkpad T-Series

What is the output you get when you enter this command?

 swapon --show 

Can you show us your "/etc/mkinitcpio.conf" file?

Offline

#5 2024-09-28 09:41:48

valextin6
Member
Registered: 2024-09-28
Posts: 4

Re: Issues with hibernation, Thinkpad T-Series

swapon --show
NAME      TYPE SIZE  USED PRIO
/swapfile file  32G 12.5G   -2
mkinitcpio.conf
MODULES=()

BINARIES=()

FILES=()

HOOKS=(base udev autodetect modconf keyboard keymap consolefont block lvm2 filesystems resume fsck)

#COMPRESSION="zstd"
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"

#COMPRESSION_OPTIONS=()

#MODULES_DECOMPRESS="yes"

Offline

#6 2024-09-28 19:19:57

valextin6
Member
Registered: 2024-09-28
Posts: 4

Re: Issues with hibernation, Thinkpad T-Series

Does anyone have an idea why this could be happening, or at least how I could narrow down the culprit?
As innocuous as this issue may seem, the longer my system has been up, the longer hibernation takes. Which is really annoying since I pretty much always prefer to hibernate.
All the bug reports or issues I could find that are, even just tangentially, related to this have either, found a solution which didn't work for me or, went nowhere.
I have also since noticed that even rebooting takes a very long time.
Any help would be much appreciated...

Offline

#7 2024-09-29 19:52:33

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,489

Re: Issues with hibernation, Thinkpad T-Series

Your issue resembles what is described in this wiki section - it should be worth a try.

To troubleshoot look at the journal for the respective hibernate unit after resuming, the timestamps during the hibernate may give hints. Also, if a regular S3 or deep suspend works without issue, perhaps try methods like hybrid-sleep.

Offline

Board footer

Powered by FluxBB