Siduction Forum

Siduction Forum => Installation - Support => Topic started by: lanig on 2024/07/13, 14:31:19

Title: incorrect value of /sys/power/image_size
Post by: lanig on 2024/07/13, 14:31:19
Hi all,
After installation of a new kernel,  /sys/power/image_size was set to 2452201472 for a swap size of about 30 G but divided in two separated partitions.
This value makes hibernate to fail because there is not enough empty space to create the image though free was saying that most of the swap was available.

juil. 06 14:23:17 logodenn kernel: PM: hibernation: Preallocating image memory
juil. 06 14:23:17 logodenn kernel: PM: hibernation: Creating image:
juil. 06 14:23:17 logodenn kernel: PM: hibernation: Error -12 creating image


Setting  /sys/power/image_size to 0 makes hibernation possible again.
So, how is computed the value for /sys/power/image_size?
Title: Re: incorrect value of /sys/power/image_size
Post by: lanig on 2024/07/21, 00:38:57
UP!
Title: Re: incorrect value of /sys/power/image_size
Post by: edlin on 2024/07/21, 12:19:35
Try this (not tested):
https://bbs.archlinux.org/viewtopic.php?id=229200

edlin

I have just tested it and it also survives a boot process.  8)


Title: Re: incorrect value of /sys/power/image_size
Post by: lanig on 2024/07/26, 22:17:38
Thanks.
Tried it. Will see at next kernel update.
Title: Re: incorrect value of /sys/power/image_size
Post by: lanig on 2024/08/18, 09:12:22
Validated!