You are not logged in.
Hello there,
I have an Arch install on a Dell XPS 13 9310.
Details on my install:
- Secure Boot activated (with own keys installed in UEFI/BIOS)
- /boot encrypted and manually decrypted on boot via grub-efi
- / encrypted and decrypted via TPM
- encrypted swap partition decrypted via TPM : 16GB (and I have 16GB RAM, so more than enough)
- BTRFS used on /
- wayland and Sway
Everything was set perfectly and was working fine.
When I was hibernating my laptop, Sway session was locked, then the RAM was copied to the encrypted (but mounted) swap partition and finally the laptop was powered off.
Now, since an update (I think it could be kernel 5.17), the powering off part is not working anymore.
So now, when hibernating, the laptop freeze after the RAM copy to the swap partition. It becomes irresponsive, screen is still on, keyboard backlight also, etc.
The only way is to long press power button.
After that, on reboot and after entering /boot LUKS password, the RAM is filled from the encrypted partition and everything is back to normal.
Here is a logcat from when I was hibernating:
[ 382.813096] PM: hibernation: hibernation entry
[ 382.891931] Filesystems sync: 0.024 seconds
[ 382.891939] Freezing user space processes ... (elapsed 0.002 seconds) done.
[ 382.893958] OOM killer disabled.
[ 382.894184] PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]
[ 382.894190] PM: hibernation: Marking nosave pages: [mem 0x0009f000-0x000fffff]
[ 382.894194] PM: hibernation: Marking nosave pages: [mem 0x596f4000-0x59711fff]
[ 382.894197] PM: hibernation: Marking nosave pages: [mem 0x5e32b000-0x62bfefff]
[ 382.894594] PM: hibernation: Marking nosave pages: [mem 0x62c00000-0xffffffff]
[ 382.898105] PM: hibernation: Basic memory bitmaps created
[ 382.898107] PM: hibernation: Preallocating image memory
[ 383.558987] PM: hibernation: Allocated 754143 pages for snapshot
[ 383.558990] PM: hibernation: Allocated 3016572 kbytes in 0.66 seconds (4570.56 MB/s)
[ 383.558993] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 383.561254] printk: Suspending console(s) (use no_console_suspend to debug)
[ 383.562143] wlan0: deauthenticating from xx:xx:xx:xx:xx:xx by local choice (Reason: 3=DEAUTH_LEAVING)
[ 384.102378] ACPI: EC: interrupt blocked
[ 384.124624] Disabling non-boot CPUs ...
[ 384.126078] IRQ146: set affinity failed(-22).
[ 384.127159] smpboot: CPU 1 is now offline
[ 384.130784] IRQ146: set affinity failed(-22).
[ 384.133913] smpboot: CPU 2 is now offline
[ 384.135898] IRQ146: set affinity failed(-22).
[ 384.136980] smpboot: CPU 3 is now offline
[ 384.140790] IRQ146: set affinity failed(-22).
[ 384.141869] smpboot: CPU 4 is now offline
[ 384.145710] IRQ146: set affinity failed(-22).
[ 384.146796] smpboot: CPU 5 is now offline
[ 384.148309] IRQ146: set affinity failed(-22).
[ 384.149409] smpboot: CPU 6 is now offline
[ 384.150824] IRQ146: set affinity failed(-22).
[ 384.151930] smpboot: CPU 7 is now offline
[ 384.159092] PM: hibernation: Creating image:
[ 384.706713] PM: hibernation: Need to copy 737645 pages
[ 384.706718] PM: hibernation: Normal pages needed: 737645 + 1024, available pages: 3380826
[ 384.162238] Enabling non-boot CPUs ...
[ 384.162381] x86: Booting SMP configuration:
[ 384.162383] smpboot: Booting Node 0 Processor 1 APIC 0x2
[ 384.166162] CPU1 is up
[ 384.166347] smpboot: Booting Node 0 Processor 2 APIC 0x4
[ 384.170037] CPU2 is up
[ 384.170127] smpboot: Booting Node 0 Processor 3 APIC 0x6
[ 384.174167] CPU3 is up
[ 384.174253] smpboot: Booting Node 0 Processor 4 APIC 0x1
[ 384.178971] CPU4 is up
[ 384.179056] smpboot: Booting Node 0 Processor 5 APIC 0x3
[ 384.183643] CPU5 is up
[ 384.183750] smpboot: Booting Node 0 Processor 6 APIC 0x5
[ 384.188978] CPU6 is up
[ 384.189067] smpboot: Booting Node 0 Processor 7 APIC 0x7
[ 384.194385] CPU7 is up
[ 384.209255] ACPI: EC: interrupt unblocked
[ 384.502735] usb usb1: root hub lost power or was reset
[ 384.502743] usb usb2: root hub lost power or was reset
[ 384.502884] usb usb3: root hub lost power or was reset
[ 384.502893] usb usb4: root hub lost power or was reset
The only strange thing on this dmesg log is the "IRQ146: set affinity failed(-22)." lines.
I searched quite a lot before posting here. I read that it could by linked to a bug in sof-firmware, but I tried the given workaround and it didn't change anything.
The fix for sof-firmware is normally included in 5.19, that I'm running right now, but it doesn't change a thing either.
Any idea what is wrong with this?
Kind regards
Last edited by Stygmatik (2022-09-04 18:28:11)
Offline
Looking at the fair amount of view of this topic but no response yet, it would seem that nobody is using hibernatation ah ah
Offline
I have a similar problem. My setup:
- Dell Precision 5560 (a.k.a. XPS 15 9510)
- Secure boot with self-signed keys
- / and /boot encrypted and manually decrypted on boot (UEFI boots the kernel directly)
- swap is a file on /swapfile. All offsets are set correctly, I checked them multiple times.
- RAM is 32GB, and Swap is also 32GB
- XFS used on /
- Wayland and KDE
The only hibernation mode the laptop supports is s2idle
$ cat /sys/power/mem_sleep
[s2idle]
@Stygmatik, how did you manage to capture these logs?
Offline
The logs are just dmesg output (and not logcat as I said ).
I opened a terminal, typed "sudo dmesg -w" and then pressed the power button to kick in hibernation.
After long power press for hard reset (because i'ts stuck), and all the booting/decrypting process,I come back to the dmesg output, with new lines about exiting hibernation.
That's it.
Offline
The issue was fixed for me with the latest BIOS update v1.13.0
Offline
I updated my BIOS to latest for XPS 13 (9310), which is v3.10.0, but it doesn't change anything.
I'm still stuck on hibernating.
Offline
Anybory encountering this issue, even on another computer?
I'm still getting the same behavior with the latest 6.0.1 kernel...
Offline
Hi. I just registered to confirm that I suffer exactly from the same issue. On a Dell Inspiron 7590 since kernel 5.18.
A related issue is discussed here: https://lore.kernel.org/lkml/84d01637-f … huis.info/
Offline
It looks like an intel i915 driver issue at least for me. Found out that if I do hubernate from text console - it is OK, but using graphics session - same story. So I've put bash script in /lib/systemd/system-sleep directory. I am also ulucky owner of crappy ath11k WiFi so this script also covers issues with this ugly piece of hardware. If you have nicely working intel wifi - then you need just chvt commands, chvt to the text terminal before hibernate , and back to graphics when resume ( I use 7 for Xorg)
#!/bin/bash
if [ "${2}" == "hibernate" ]; then
if [ "${1}" == "pre" ]; then
chvt 6
/usr/sbin/rfkill block bluetooth 2>/dev/null
echo "serial0-0" > /sys/module/hci_uart/drivers/serial:hci_uart_qca/unbind
/sbin/rmmod ath11k_pci hci_uart btqca
sleep 2
else
modprobe ath11k_pci
sleep 2
modprobe btqca
modprobe hci_uart
sleep 1
/usr/sbin/rfkill unblock bluetooth 2>/dev/null
chvt 7
/bin/loginctl lock-sessions
fi
fi
Offline
Hello.
Same issue here. It worked before (not sure until when), but now, when I try to hibernate (systemctl hibernate), I get a blank screen and have to long press the power button. After that, the system boots OK and resumes from previous session.
It seems that what is not working is just powering off the machine step, which is a bit weird because power off works fine. (I already tried to change HibernateMode=shutdown).
No errors at journalctl.
Any ideas?
Offline