Skip to main content
Topic: Cannot hibernate [SOLVED] (Read 238 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

Cannot hibernate [SOLVED]

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.

 

Re: Cannot hibernate

Reply #1
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)