You are not logged in.

#1 2024-02-11 13:56:58

Magitian
Member
Registered: 2024-02-11
Posts: 12

Unable to set up hibernation on Arch Linux

Hi all! I installed Arch Linux (without using the archinstall script) today. I partitioned the single hard disk (HDD) I have as follows:

mgtn> lsblk

NAME         MAJ:MIN RM   SIZE        RO TYPE MOUNTPOINTS
sda              8:0            0        931.5G     0   disk 
├─sda1    8:1            0       12.5G        0   part    [SWAP]
├─sda2    8:2            0       550M         0   part    /boot
└─sda3    8:3            0       918.5G      0   part    /
sr0               11:0          1      1024M       0   rom 

No other disks are present in the system. As you can see, I've created a swap partition /dev/sda1 for the sole purpose of hibernation. It's on by default - I swapon'd it.

mgtn> swapon -s
Filename                Type        Size        Used        Priority
/dev/sda1                               partition            13107196    0                -2
mgtn> cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda3
UUID=f34f8ebd-91ac-4b2a-b0c4-56f718e14ba0    /             ext4          rw,relatime    0 1

# /dev/sda2
UUID=4C4B-0087          /boot         vfat          rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro    0 2

# /dev/sda1
UUID=c75992ac-75bc-4f5d-b7f4-d11fba1e7ed3    none          swap          defaults      0 0

The UUID's of the partitions are correct, since I verified them several times using blkid.

I'm using Systemd-boot instead of GRUB, so I added the boot parameters to /boot/loader/entries/arch.conf as well, followed by a mkinitcpio -P

title    Arch Linux
linux    /vmlinuz-linux
initrd    /initramfs-linux.img
options    root=UUID=f34f8ebd-91ac-4b2a-b0c4-56f718e14ba0 rw resume=UUID=c75992ac-75bc-4f5d-b7f4-d11fba1e7ed3

But despite this, systemctl hibernate does not work. The laptop's screen goes blank, WiFi gets turned off, but then the laptop screen reappears, and Wifi connects again - as if hibernation tried and failed.

For additional context, I'm using Hyprland on an Intel 8130-u laptop, with 12GB RAM.
Thanks in advance!

EDIT: The boot screen also shows that swap devices get mounted and unmounted, and the resume hook also appears after the udev hook of Mkinitcpio.

Last edited by Magitian (2024-02-11 15:34:18)

Offline

#2 2024-02-11 15:06:51

seth
Member
Registered: 2012-09-03
Posts: 58,052

Re: Unable to set up hibernation on Arch Linux

Please use [code][/code] tags. Edit your post in this regard.
You don't have to activate the swap to use it for hibernation.

ystemctl hibernate does not work. The laptop's screen goes blank, WiFi gets turned off, but then the laptop screen reappears, and Wifi connects again - as if hibernation tried and failed

Please post your complete system journal for the boot after this happened:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Offline

#3 2024-02-11 15:36:33

Magitian
Member
Registered: 2024-02-11
Posts: 12

Re: Unable to set up hibernation on Arch Linux

Here's the log from Journalctl: https://0x0.st/HdeS.txt.

Offline

#4 2024-02-11 16:00:44

seth
Member
Registered: 2012-09-03
Posts: 58,052

Re: Unable to set up hibernation on Arch Linux

Feb 11 18:57:04 Arch systemd-logind[381]: The system will hibernate now!
Feb 11 18:57:04 Arch NetworkManager[379]: <info>  [1707658024.7197] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Feb 11 18:57:04 Arch NetworkManager[379]: <info>  [1707658024.7200] device (enp1s0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Feb 11 18:57:04 Arch polkitd[503]: Unregistered Authentication Agent for unix-process:32480:81534 (system bus name :1.41, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale C.UTF-8) (disconnected from bus)
Feb 11 18:57:04 Arch NetworkManager[379]: <info>  [1707658024.7241] device (p2p-dev-wlp2s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Feb 11 18:57:04 Arch NetworkManager[379]: <info>  [1707658024.7251] manager: NetworkManager state is now ASLEEP
Feb 11 18:57:04 Arch NetworkManager[379]: <info>  [1707658024.7260] device (wlp2s0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed')
Feb 11 18:57:04 Arch systemd[1]: Starting Network Manager Script Dispatcher Service...
Feb 11 18:57:04 Arch systemd[1]: Started Network Manager Script Dispatcher Service.
Feb 11 18:57:04 Arch kernel: wlp2s0: deauthenticating from 0c:b6:d2:22:d3:78 by local choice (Reason: 3=DEAUTH_LEAVING)
Feb 11 18:57:04 Arch wpa_supplicant[429]: wlp2s0: CTRL-EVENT-DISCONNECTED bssid=0c:b6:d2:22:d3:78 reason=3 locally_generated=1
Feb 11 18:57:04 Arch wpa_supplicant[429]: wlp2s0: CTRL-EVENT-DSCP-POLICY clear_all
Feb 11 18:57:04 Arch NetworkManager[379]: <info>  [1707658024.9890] device (wlp2s0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed')
Feb 11 18:57:04 Arch NetworkManager[379]: <info>  [1707658024.9905] dhcp4 (wlp2s0): canceled DHCP transaction
Feb 11 18:57:04 Arch NetworkManager[379]: <info>  [1707658024.9905] dhcp4 (wlp2s0): activation: beginning transaction (timeout in 45 seconds)
Feb 11 18:57:04 Arch NetworkManager[379]: <info>  [1707658024.9906] dhcp4 (wlp2s0): state changed no lease
Feb 11 18:57:04 Arch NetworkManager[379]: <info>  [1707658024.9912] dhcp6 (wlp2s0): canceled DHCP transaction
Feb 11 18:57:04 Arch NetworkManager[379]: <info>  [1707658024.9913] dhcp6 (wlp2s0): activation: beginning transaction (timeout in 45 seconds)
Feb 11 18:57:04 Arch NetworkManager[379]: <info>  [1707658024.9913] dhcp6 (wlp2s0): state changed no lease
Feb 11 18:57:05 Arch NetworkManager[379]: <info>  [1707658025.0164] device (wlp2s0): set-hw-addr: set MAC address to F6:98:54:C4:1A:29 (scanning)
Feb 11 18:57:05 Arch NetworkManager[379]: <info>  [1707658025.1208] device (wlp2s0): supplicant interface state: completed -> disconnected
Feb 11 18:57:05 Arch NetworkManager[379]: <info>  [1707658025.1230] device (wlp2s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Feb 11 18:57:05 Arch NetworkManager[379]: <info>  [1707658025.2454] device (wlp2s0): set-hw-addr: reset MAC address to 30:24:32:4C:A2:D9 (unmanage)
Feb 11 18:57:05 Arch wpa_supplicant[429]: p2p-dev-wlp2s0: CTRL-EVENT-DSCP-POLICY clear_all
Feb 11 18:57:05 Arch systemd[1]: Reached target Sleep.
Feb 11 18:57:05 Arch wpa_supplicant[429]: p2p-dev-wlp2s0: CTRL-EVENT-DSCP-POLICY clear_all
Feb 11 18:57:05 Arch wpa_supplicant[429]: nl80211: deinit ifname=p2p-dev-wlp2s0 disabled_11b_rates=0
Feb 11 18:57:05 Arch systemd[1]: Starting System Hibernate...
Feb 11 18:57:05 Arch systemd-sleep[32573]: Performing sleep operation 'hibernate'...
Feb 11 18:57:05 Arch kernel: PM: hibernation: hibernation entry
Feb 11 18:57:05 Arch wpa_supplicant[429]: wlp2s0: CTRL-EVENT-DSCP-POLICY clear_all
Feb 11 18:57:05 Arch wpa_supplicant[429]: wlp2s0: CTRL-EVENT-DSCP-POLICY clear_all
Feb 11 18:57:05 Arch wpa_supplicant[429]: nl80211: deinit ifname=wlp2s0 disabled_11b_rates=0
Feb 11 18:57:09 Arch kernel: Filesystems sync: 0.557 seconds
Feb 11 18:57:09 Arch kernel: Freezing user space processes
Feb 11 18:57:09 Arch kernel: Freezing user space processes completed (elapsed 0.003 seconds)
Feb 11 18:57:09 Arch kernel: OOM killer disabled.
Feb 11 18:57:09 Arch kernel: PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]
Feb 11 18:57:09 Arch kernel: PM: hibernation: Marking nosave pages: [mem 0x00058000-0x00058fff]
Feb 11 18:57:09 Arch kernel: PM: hibernation: Marking nosave pages: [mem 0x0009e000-0x000fffff]
Feb 11 18:57:09 Arch kernel: PM: hibernation: Marking nosave pages: [mem 0x76a9a000-0x76a9afff]
Feb 11 18:57:09 Arch kernel: PM: hibernation: Marking nosave pages: [mem 0x76aa6000-0x76aa7fff]
Feb 11 18:57:09 Arch kernel: PM: hibernation: Marking nosave pages: [mem 0x76ac4000-0x76ac5fff]
Feb 11 18:57:09 Arch kernel: PM: hibernation: Marking nosave pages: [mem 0x76ad5000-0x76ad5fff]
Feb 11 18:57:09 Arch kernel: PM: hibernation: Marking nosave pages: [mem 0x7b2b4000-0x7b2b5fff]
Feb 11 18:57:09 Arch kernel: PM: hibernation: Marking nosave pages: [mem 0x86fcd000-0x87055fff]
Feb 11 18:57:09 Arch kernel: PM: hibernation: Marking nosave pages: [mem 0x8a1e1000-0x8b5fdfff]
Feb 11 18:57:09 Arch kernel: PM: hibernation: Marking nosave pages: [mem 0x8b5ff000-0xffffffff]
Feb 11 18:57:09 Arch kernel: PM: hibernation: Basic memory bitmaps created
Feb 11 18:57:09 Arch kernel: PM: hibernation: Preallocating image memory
Feb 11 18:57:09 Arch kernel: PM: hibernation: Allocated 715418 pages for snapshot
Feb 11 18:57:09 Arch kernel: PM: hibernation: Allocated 2861672 kbytes in 0.48 seconds (5961.81 MB/s)
Feb 11 18:57:09 Arch kernel: Freezing remaining freezable tasks
Feb 11 18:57:09 Arch kernel: Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
Feb 11 18:57:09 Arch kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Feb 11 18:57:09 Arch kernel: ata1.00: Entering standby power mode
Feb 11 18:57:09 Arch kernel: ACPI: EC: interrupt blocked
Feb 11 18:57:09 Arch kernel: ACPI: PM: Preparing to enter system sleep state S4
Feb 11 18:57:09 Arch kernel: ACPI: EC: event blocked
Feb 11 18:57:09 Arch kernel: ACPI: EC: EC stopped
Feb 11 18:57:09 Arch kernel: ACPI: PM: Saving platform NVS memory
Feb 11 18:57:09 Arch kernel: Disabling non-boot CPUs ...
Feb 11 18:57:09 Arch kernel: Wakeup pending. Abort CPU freeze
Feb 11 18:57:09 Arch kernel: Non-boot CPUs are not disabled
Feb 11 18:57:09 Arch kernel: ACPI: EC: EC started
Feb 11 18:57:09 Arch kernel: ACPI: PM: Waking up from system sleep state S4
Feb 11 18:57:09 Arch kernel: ACPI: EC: interrupt unblocked
Feb 11 18:57:09 Arch kernel: ACPI: EC: event unblocked
Feb 11 18:57:09 Arch kernel: usb usb1: root hub lost power or was reset
Feb 11 18:57:09 Arch kernel: usb usb2: root hub lost power or was reset
Feb 11 18:57:09 Arch kernel: usb 1-6: reset high-speed USB device number 3 using xhci_hcd
Feb 11 18:57:09 Arch kernel: ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Feb 11 18:57:09 Arch kernel: ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Feb 11 18:57:09 Arch kernel: ata2.00: configured for UDMA/133
Feb 11 18:57:09 Arch kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:00(SECURITY FREEZE LOCK) filtered out
Feb 11 18:57:09 Arch kernel: ata1.00: ACPI cmd b1/c1:00:00:00:00:00(DEVICE CONFIGURATION OVERLAY) filtered out
Feb 11 18:57:09 Arch kernel: usb 1-5: reset high-speed USB device number 2 using xhci_hcd
Feb 11 18:57:09 Arch kernel: usb 1-7: reset full-speed USB device number 4 using xhci_hcd
Feb 11 18:57:09 Arch kernel: usb 1-8: reset full-speed USB device number 5 using xhci_hcd
Feb 11 18:57:09 Arch kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:00(SECURITY FREEZE LOCK) filtered out
Feb 11 18:57:09 Arch kernel: ata1.00: ACPI cmd b1/c1:00:00:00:00:00(DEVICE CONFIGURATION OVERLAY) filtered out
Feb 11 18:57:09 Arch kernel: ata1.00: configured for UDMA/133
Feb 11 18:57:09 Arch kernel: iwlwifi 0000:02:00.0: Applying debug destination EXTERNAL_DRAM
Feb 11 18:57:09 Arch kernel: iwlwifi 0000:02:00.0: Applying debug destination EXTERNAL_DRAM
Feb 11 18:57:09 Arch kernel: iwlwifi 0000:02:00.0: FW already configured (0) - re-configuring
Feb 11 18:57:09 Arch kernel: PM: hibernation: Basic memory bitmaps freed
Feb 11 18:57:09 Arch kernel: mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_ops [i915])
Feb 11 18:57:09 Arch kernel: OOM killer enabled.
Feb 11 18:57:09 Arch kernel: Restarting tasks ... done.
Feb 11 18:57:09 Arch kernel: Bluetooth: hci0: Legacy ROM 2.5 revision 1.0 build 3 week 17 2014
Feb 11 18:57:09 Arch kernel: Bluetooth: hci0: Intel device is already patched. patch num: 32
Feb 11 18:57:09 Arch systemd[1]: Starting Load/Save RF Kill Switch Status...
Feb 11 18:57:09 Arch systemd[1]: Stopped target Bluetooth Support.
Feb 11 18:57:09 Arch systemd[476]: Reached target Bluetooth.
Feb 11 18:57:09 Arch systemd[1]: Started Load/Save RF Kill Switch Status.
Feb 11 18:57:09 Arch systemd[1]: Reached target Bluetooth Support.
Feb 11 18:57:09 Arch systemd-sleep[32573]: System returned from sleep operation 'hibernate'.
Feb 11 18:57:09 Arch systemd[1]: systemd-hibernate.service: Deactivated successfully.
Feb 11 18:57:09 Arch kernel: PM: hibernation: hibernation exit
Feb 11 18:57:09 Arch systemd[1]: Finished System Hibernate.
Feb 11 18:57:09 Arch systemd[1]: Reached target System Hibernation.
Feb 11 18:57:09 Arch systemd[1]: Stopped target Sleep.
Feb 11 18:57:09 Arch systemd-logind[381]: Operation 'hibernate' finished.
Feb 11 18:57:09 Arch systemd[1]: Stopped target System Hibernation.

Can you sleep the system (S3, "systemtctl sleep")?

cat /proc/acpi/wakeup

Offline

#5 2024-02-12 09:44:56

Magitian
Member
Registered: 2024-02-11
Posts: 12

Re: Unable to set up hibernation on Arch Linux

Here are the contents of /proc/acpi/wakeup:

Device	S-state	  Status   Sysfs node
RP09	  S4	*disabled
PXSX	  S4	*disabled
RP10	  S4	*disabled
PXSX	  S4	*disabled
RP11	  S4	*disabled
PXSX	  S4	*disabled
RP12	  S4	*disabled
PXSX	  S4	*disabled
RP13	  S4	*disabled
PXSX	  S4	*disabled
RP01	  S4	*disabled
PXSX	  S4	*disabled
RP02	  S4	*disabled
PXSX	  S4	*disabled
RP03	  S4	*disabled
PXSX	  S4	*disabled
RP04	  S4	*disabled
PXSX	  S4	*disabled
RP05	  S4	*enabled   pci:0000:00:1c.0
PXSX	  S4	*disabled  pci:0000:01:00.0
RP06	  S4	*enabled   pci:0000:00:1c.5
PXSX	  S4	*disabled  pci:0000:02:00.0
RP07	  S4	*disabled
PXSX	  S4	*disabled
RP08	  S4	*disabled
PXSX	  S4	*disabled
RP17	  S4	*disabled
PXSX	  S4	*disabled
RP18	  S4	*disabled
PXSX	  S4	*disabled
RP19	  S4	*disabled
PXSX	  S4	*disabled
RP20	  S4	*disabled
PXSX	  S4	*disabled
RP21	  S4	*disabled
PXSX	  S4	*disabled
RP22	  S4	*disabled
PXSX	  S4	*disabled
RP23	  S4	*disabled
PXSX	  S4	*disabled
RP24	  S4	*disabled
PXSX	  S4	*disabled
RP14	  S4	*disabled
PXSX	  S4	*disabled
RP15	  S4	*disabled
PXSX	  S4	*disabled
RP16	  S4	*disabled
PXSX	  S4	*disabled
GLAN	  S4	*disabled
XHC	  S0	*enabled   pci:0000:00:14.0
XDCI	  S4	*disabled
HDAS	  S4	*disabled  pci:0000:00:1f.3
LID0	  S3	*enabled   platform:PNP0C0D:00
PBTN	  S3	*enabled   platform:PNP0C0C:00

Last edited by Magitian (2024-02-12 09:45:13)

Offline

#6 2024-02-12 14:26:21

seth
Member
Registered: 2012-09-03
Posts: 58,052

Re: Unable to set up hibernation on Arch Linux

seth wrote:

Can you sleep the system (S3, "systemtctl sleep")?

HDAS is sound, for RP0* pelase post the output of "lspci -nn" are and LID0 (the lid) is always suspicious - you could try to disable those by writing the 4-letter code into the wakeup table (eg. "echo LID0 | sudo tee /proc/acpi/wakeup")

Offline

#7 2024-02-13 08:56:12

Magitian
Member
Registered: 2024-02-11
Posts: 12

Re: Unable to set up hibernation on Arch Linux

Here's the output of lspci -nn:
https://0x0.st/HdtD.txt
Could you kindly guide me further on what I must echo to proc/acpi/wakeup? I'm not sure if that's what's expected, but the file's contents don't change.

Offline

#8 2024-02-13 09:36:21

seth
Member
Registered: 2012-09-03
Posts: 58,052

Re: Unable to set up hibernation on Arch Linux

grep RP05 /proc/acpi/wakeup
echo RP05 | sudo tee /proc/acpi/wakeup
grep RP05 /proc/acpi/wakeup

will disable that PCIe port.

Offline

#9 2024-02-13 10:08:36

Magitian
Member
Registered: 2024-02-11
Posts: 12

Re: Unable to set up hibernation on Arch Linux

Thanks! Disabling the RP05 and RP06 slots seems to make "systemctl hibernate" work - it appears to me that hibernation occurs correctly. But the system doesn't seem to  recover correctly from hibernation.

Also, is there a way to make the above ACPI tweaks permanent?

Offline

#10 2024-02-13 10:12:39

seth
Member
Registered: 2012-09-03
Posts: 58,052

Re: Unable to set up hibernation on Arch Linux

Focus on S3 first, then on hibernation.
Also explain what "recover correctly" means - thee're likely errors about finding/loading the hibernation image in the journal?

The wakeup table is transient, you'll have to use a https://wiki.archlinux.org/title/System … rary_files

Offline

#11 2024-02-13 10:24:16

Magitian
Member
Registered: 2024-02-11
Posts: 12

Re: Unable to set up hibernation on Arch Linux

https://0x0.st/Hdv9.txt
There are errors in loading the image.
Alright, I'll work on solving the S3 issue before focusing on hibernation.

Offline

#12 2024-02-13 10:28:31

seth
Member
Registered: 2012-09-03
Posts: 58,052

Re: Unable to set up hibernation on Arch Linux

Feb 13 15:31:50 Arch kernel: PM: Image successfully loaded
Feb 13 15:31:50 Arch kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Feb 13 15:31:50 Arch kernel: ata1.00: Entering standby power mode
Feb 13 15:31:50 Arch kernel: ACPI: EC: interrupt blocked
Feb 13 15:31:50 Arch kernel: ACPI: EC: event blocked
Feb 13 15:31:50 Arch kernel: ACPI: EC: EC stopped
Feb 13 15:31:50 Arch kernel: Disabling non-boot CPUs ...
Feb 13 15:31:50 Arch kernel: Wakeup pending. Abort CPU freeze
Feb 13 15:31:50 Arch kernel: Non-boot CPUs are not disabled
Feb 13 15:31:50 Arch kernel: ACPI: EC: EC started
Feb 13 15:31:50 Arch kernel: ACPI: EC: interrupt unblocked
Feb 13 15:31:50 Arch kernel: pcieport 0000:00:1c.0: AER: Multiple Corrected error message received from 0000:01:00.0
Feb 13 15:31:50 Arch kernel: pci 0000:01:00.0: PCIe Bus Error: severity=Corrected, type=Physical Layer, (Receiver ID)
Feb 13 15:31:50 Arch kernel: pci 0000:01:00.0:   device [10ec:8136] error status/mask=00000001/00006000
Feb 13 15:31:50 Arch kernel: pci 0000:01:00.0:    [ 0] RxErr                  (First)
Feb 13 15:31:50 Arch kernel: ACPI: EC: event unblocked
Feb 13 15:31:50 Arch kernel: ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Feb 13 15:31:50 Arch kernel: ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Feb 13 15:31:50 Arch kernel: ata2.00: configured for UDMA/133
Feb 13 15:31:50 Arch kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:00(SECURITY FREEZE LOCK) filtered out
Feb 13 15:31:50 Arch kernel: ata1.00: ACPI cmd b1/c1:00:00:00:00:00(DEVICE CONFIGURATION OVERLAY) filtered out
Feb 13 15:31:50 Arch kernel: PM: hibernation: Failed to load image, recovering.

The ACPI errors are from RP05

Stupid question, I didn't see enough partitions for that but is there a parallel windows installation?

Offline

#13 2024-02-13 10:32:19

Magitian
Member
Registered: 2024-02-11
Posts: 12

Re: Unable to set up hibernation on Arch Linux

No. I don't use Windows. Just Arch Linux on the single HDD (as mentioned above).

Offline

#14 2024-02-13 15:07:53

seth
Member
Registered: 2012-09-03
Posts: 58,052

Re: Unable to set up hibernation on Arch Linux

Can you suspend to RAM w/o removing any of the wakups?
Can you properly resume from S3 despite deactivating the RP0* wakeup devices?

Offline

#15 2024-02-14 08:56:47

Magitian
Member
Registered: 2024-02-11
Posts: 12

Re: Unable to set up hibernation on Arch Linux

systemctl suspend doesn't work without disabling the devices.

After disabling the devices, systemctl suspend does seem to suspend - I'm not sure what's supposed to happen - pressing the power button brings back the screen before suspension (without the login manager) without "booting" back up.

EDIT: The keyboard and mouse don't get recognised after waking up from suspension.

Last edited by Magitian (2024-02-14 09:19:16)

Offline

#16 2024-02-14 10:28:41

seth
Member
Registered: 2012-09-03
Posts: 58,052

Re: Unable to set up hibernation on Arch Linux

After disabling the devices

Which exactly?

keyboard and mouse don't get recognised after waking up from suspension

By what metric?
Can you still switch the VT (ctrl+alt+F3)?
Do you have a journal for that S3 cycle?

Offline

#17 2024-02-14 10:52:02

Magitian
Member
Registered: 2024-02-11
Posts: 12

Re: Unable to set up hibernation on Arch Linux

Which exactly?

After disabling the wakeup devices.

By what metric?

I meant that pressing keys on the keyboard attached to the laptop doesn't do anything - even the light on the Caps Lock key doesn't glow on pressing that key.
The touchpad (sorry, not mouse) doesn't seem to make the cursor move. I'll try connecting an external keyboard to fetch the journal log.

Offline

#18 2024-02-14 14:04:41

seth
Member
Registered: 2012-09-03
Posts: 58,052

Re: Unable to set up hibernation on Arch Linux

After disabling the wakeup devices.

I meant which in particular? All of them? Or only RP05?

Offline

#19 2024-02-15 00:12:01

Magitian
Member
Registered: 2024-02-11
Posts: 12

Re: Unable to set up hibernation on Arch Linux

Both RP05 and RP06.

Offline

#20 2024-08-12 11:28:16

Magitian
Member
Registered: 2024-02-11
Posts: 12

Re: Unable to set up hibernation on Arch Linux

After a long time it struck me to use a systemd service to disable the wakeup devices, and suspend works well - which I found on the thread https://bbs.archlinux.org/viewtopic.php?id=204127.
systemctl hibernate also seems to hibernate the laptop.

However, I receive the warning Non-boot CPUs are not disabled when the laptop resumes from hibernation. The issues I'm able to find on other forums mention that switching to the LTS kernel works, but they're somewhat old, and I'm not sure if they'd work with the latest LTS.
How can I debug this issue?

Offline

#21 2024-08-12 14:39:22

seth
Member
Registered: 2012-09-03
Posts: 58,052

Re: Unable to set up hibernation on Arch Linux

Context?
The usual sequence would be (you previously had this)

Feb 11 18:57:09 Arch kernel: Disabling non-boot CPUs ...
Feb 11 18:57:09 Arch kernel: Wakeup pending. Abort CPU freeze
Feb 11 18:57:09 Arch kernel: Non-boot CPUs are not disabled

Offline

#22 2024-08-18 11:13:26

Magitian
Member
Registered: 2024-02-11
Posts: 12

Re: Unable to set up hibernation on Arch Linux

w3JlF65.jpeg
This is the error/warning I receive when I "boot" the laptop from hibernation - via the power button. It then proceeds to boot up normally, without hibernation restoring anything.

Offline

#23 2024-08-18 16:45:27

seth
Member
Registered: 2012-09-03
Posts: 58,052

Re: Unable to set up hibernation on Arch Linux

The problem there is "Failed to load image", please post the complete journal for the boot (when failing to wake up from the hibernation)
What if you use a dedicated swap file as hibernation image that's not also used as active swap?
https://wiki.archlinux.org/title/Power_ … e_location

Offline

Board footer

Powered by FluxBB