You are not logged in.

#1 2016-04-17 19:47:44

Nuvanda
Member
Registered: 2016-03-09
Posts: 2

Debugging hibernate problems

Hi,

I am relatively new to ArchLinux and have been trying to get hibernate to work ever since I installed it. My hardware is a Lenovo ThinkPad Yoga.

Hibernate works fine something like 80% of the time, but will sometimes freeze during restart (it still hibernates just fine). When the hibernate does not work, I will see all messages the Initramfs will usually show (as far as I can tell, there is no errors), it then switches to a black screen with the cursor blinking in the top right (the one that will usually show during boot up after the Initramfs is done and before Systemd's messages start bubbling in). When the screen has switched to the blinking cursor the system will freeze after roughly one second.

I have trouble debugging this issue, as I was unable to get any indication what is wrong. As the problem seems to occur in early userspace, there is no logs. Furthermore no errors are printed to the screen and the times the problem occurs do not seem to follow any pattern. Google has mostly provided me with random things to try, but none of these worked. I read the guide on kernel.org, but that only mentions the computer failing to hibernate alltogether (instead of freezing later when booting back up), so I am unsure whether it is at all applicable. As the problem does not occur consistently, I assume it is some kind of race-condition. I have thus made sure, that all drives are accessed through their UUID and skimmed the hooks for anything that gets done in parallel, but could not get any leads.

Has anybody here had similar issues? Is there anything I can do to get a proper error message? Is there anything, that is done in early userspace, that might trigger a race-condition (or compatible)?

My Initramfs configuration (comments stripped):

MODULES=""
BINARIES=""
FILES="/etc/keys/swap.key /etc/keys/root.key /etc/keys/boot.key"
HOOKS="base udev autodetect modconf block encrypt openswap resume filesystems keyboard btrfs fsck"

The openswap-hook:

run_hook () {
	cryptsetup -d /etc/keys/swap.key luksOpen --allow-discards /dev/disk/by-uuid/e3320011-858c-4ed6-a567-12cd8fdd3b25 swap
}

Thank you for your help,
Nuvanda

Last edited by Nuvanda (2016-04-17 19:48:04)

Offline

#2 2016-04-21 16:52:18

Nuvanda
Member
Registered: 2016-03-09
Posts: 2

Re: Debugging hibernate problems

This could be related to KMS, but running without it is no longer supported by the Intel drivers. Running with nomodeset, I can hibernate, but will be unable to run X. I have tried both xf86-video-intel and xf86-video-modesetting, as well as both early and late mode-setting, but none of this seems to have any effect on the issue.

Offline

Board footer

Powered by FluxBB