Artix Linux Forum

Artix Linux => Other Architectures => ARMtix => Topic started by: kiblaster on 03 October 2023, 20:43:47

Title: Cannot hibernate [SOLVED]
Post by: kiblaster on 03 October 2023, 20:43:47
I made a swapfile, added entry in fstab, added hook, added kernel parameters and rebuilt mkinitcpio files.

No errors but nothing happens:
Code: [Select]
loginctl hibernate
echo disk > /sys/power/state

Is it related to the kernel?
I am using linux-megi since the PinePhone almost runs the mainline kernel.
Title: Re: Cannot hibernate
Post by: kiblaster on 08 October 2023, 09:29:15
I did not specify the partition correctly I have FDE, so I don't use "/dev/mmcblk${linux_mmcdev}p${rootpart}" but "/dev/mapper/root":

Code: [Select]
cat /boot/boot.txt 
[...]
setenv bootargs loglevel=4 console=${console} console=tty0 root=/dev/mmcblk${linux_mmcdev}p${rootpart} rw rootwait quiet bootsplash.bootfile=bootsplash-themes/danctnix/bootsplash resume=/dev/mapper/root resume_offset=266240
[...]

To rebuild image:
Code: [Select]
cd /boot
mkimage -A arm -O linux -T script -C none -n "U-Boot boot script" -d boot.txt boot.scr

Hooks:
Code: [Select]
HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block filesystems unl0kr resume fsck)