You are not logged in.

#1 2024-02-24 20:50:27

nachopro
Member
Registered: 2013-08-23
Posts: 91

[SOLVED] Can't set the correct /sys/power/resume target

Hello! I trying to enable Suspend To Disk / Hibernate on my PC.

I set the resume to the disk that own the swapfile and the resume_offset to the number given by filefrag. The problem comes when I want to hibernate:

systemd-sleep[1487]: Failed to find location to hibernate to: Invalid argument

Checking the /sys/power/resume file it is set to 0:0 when they must be 259:2.
After and echo to /sys/power/resume, I can hibernate my computer.... BUT! when I turn it on, the systems do a fresh boot (do not resume) and the /sys/power/resume is set to 0:0 again sad

Where is my problem? The resume kernel param is badly assigned in my loader?

# cat /etc/fstab 
UUID=f4b3c2e3-bfee-4967-88c8-8e8b83d4e67d	/         	ext4      	rw,relatime	0 1
UUID=8474-717C      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	0 2
/swapfile none swap defaults 0 0
# cat /boot/loader/entries/arch.conf
title	Arch Linux
linux	/vmlinuz-linux
initrd	/amd-ucode.img
initrd	/initramfs-linux.img
options	root="UUID=f4b3c2e3-bfee-4967-88c8-8e8b83d4e67d" rw resume=UUID=f4b3c2e3-bfee-4967-88c8-8e8b83d4e67d resume_offset=8101888
# cat /sys/power/resume
0:0
# lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
nvme0n1     259:0    0 465.8G  0 disk 
├─nvme0n1p1 259:1    0   512M  0 part /boot
└─nvme0n1p2 259:2    0 465.3G  0 part /

Last edited by nachopro (2024-02-24 21:22:24)

Offline

#2 2024-02-24 21:22:10

nachopro
Member
Registered: 2013-08-23
Posts: 91

Re: [SOLVED] Can't set the correct /sys/power/resume target

Well i found the solution!

Don't forget the

mkinitcpio -P

command!!!!

Offline

Board footer

Powered by FluxBB