You are not logged in.

#1 2022-08-27 15:38:50

Stygmatik
Member
Registered: 2021-07-13
Posts: 7

Laptop doesn't poweroff on hibernate after upgrade

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

#2 2022-09-04 18:28:52

Stygmatik
Member
Registered: 2021-07-13
Posts: 7

Re: Laptop doesn't poweroff on hibernate after upgrade

Looking at the fair amount of view of this topic but no response yet, it would seem that nobody is using hibernatation ah ah tongue

Offline

#3 2022-09-14 05:58:36

bemyak
Member
Registered: 2019-05-30
Posts: 9

Re: Laptop doesn't poweroff on hibernate after upgrade

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

#4 2022-09-14 12:17:26

Stygmatik
Member
Registered: 2021-07-13
Posts: 7

Re: Laptop doesn't poweroff on hibernate after upgrade

The logs are just dmesg output (and not logcat as I said tongue).

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

#5 2022-09-15 15:23:37

bemyak
Member
Registered: 2019-05-30
Posts: 9

Re: Laptop doesn't poweroff on hibernate after upgrade

The issue was fixed for me with the latest BIOS update v1.13.0

Offline

#6 2022-09-19 12:52:35

Stygmatik
Member
Registered: 2021-07-13
Posts: 7

Re: Laptop doesn't poweroff on hibernate after upgrade

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

Board footer

Powered by FluxBB