Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] incorrect value of /sys/power/image_size  (Read 1685 times)

Offline lanig

  • User
  • Posts: 62
[EN] incorrect value of /sys/power/image_size
« 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.
Code: [Select]
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?

Offline lanig

  • User
  • Posts: 62
Re: incorrect value of /sys/power/image_size
« Reply #1 on: 2024/07/21, 00:38:57 »
UP!

Offline edlin

  • User
  • Posts: 609
Re: incorrect value of /sys/power/image_size
« Reply #2 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)


« Last Edit: 2024/07/21, 12:35:24 by edlin »
Der Kluge lernt aus allem und von jedem,
der Normale aus seinen Erfahrungen
und der Dumme weiß alles besser.

Sokrates

Offline lanig

  • User
  • Posts: 62
Re: incorrect value of /sys/power/image_size
« Reply #3 on: 2024/07/26, 22:17:38 »
Thanks.
Tried it. Will see at next kernel update.

Offline lanig

  • User
  • Posts: 62
Re: incorrect value of /sys/power/image_size
« Reply #4 on: 2024/08/18, 09:12:22 »
Validated!