Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Hibernate in bookworm

510 views
Skip to first unread message

Rainer Dorsch

unread,
Apr 22, 2023, 4:20:07 AM4/22/23
to
Hi,

I just tried to hibernate a system which I upgraded from bullseye to bookworm
and it resumed and never reached the off state. I don't recall that there were
hibernation problems in bullseye on that system.

I tried out of KDE Plasma, but I also tried from the cmdline

root@h370:~# echo disk > /sys/power/state
-bash: echo: write error: Device or resource busy
root@h370:~#

Since

https://wiki.debian.org/Hibernation

looks somewhat outdated (describes Jessie and Lenny configurations), I followed
Arch and kernel documentation

https://wiki.archlinux.org/title/Power_management#Power_management
https://docs.kernel.org/admin-guide/pm/sleep-states.html?
highlight=image_size#basic-sysfs-interfaces-for-system-suspend-and-hibernation

Both

# systemctl hibernate

and

# echo disk > /sys/power/state

do not bring the system in hibernate mode (=suspend to disk).

The config I see on my system:

root@h370:~# swapon
NAME TYPE SIZE USED PRIO
/dev/dm-2 partition 15.9G 8.1G -2
/dev/zram0 partition 256M 256M 100
root@h370:~# cat /sys/power/resume
254:2
root@h370:~# lsblk /dev/dm-2
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
b370--vg-swap_1 254:2 0 15.9G 0 lvm [SWAP]
root@h370:~# cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-6.1.0-7-amd64 root=/dev/mapper/b370--vg-root ro quiet
root@h370:~# cat /sys/power/image_size
13375987712
root@h370:~#

Any hints are welcome
Thanks
Rainer
--
Rainer Dorsch
http://bokomoko.de/

Timothy M Butterworth

unread,
Apr 22, 2023, 2:30:06 PM4/22/23
to
On Sat, Apr 22, 2023 at 4:14 AM Rainer Dorsch <m...@bokomoko.de> wrote:
Hi,

I just tried to hibernate a system which I upgraded from bullseye to bookworm
and it resumed and never reached the off state. I don't recall that there were
hibernation problems in bullseye on that system.

I tried out of KDE Plasma, but I also tried from the cmdline

root@h370:~# echo disk > /sys/power/state
-bash: echo: write error: Device or resource busy
root@h370:~#

Try running a `sync` first to write all contents of RAM to disk.


--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀

Rainer Dorsch

unread,
Apr 22, 2023, 5:40:07 PM4/22/23
to
Am Samstag, 22. April 2023, 20:21:03 CEST schrieben Sie:
> Try running a `sync` first to write all contents of RAM to disk.

That does not change anything. Screen becomes black, but then it feels like it
is resuming immediately (without going through book, if feels more like a
resume as you would expect it from suspend-to-RAM.

I get an error, but this looks like the error is reported during the what
feels like a resume phase.

root@h370:~# echo disk > /sys/power/state
-bash: echo: write error: Device or resource busy
root@h370:~#

davidson

unread,
Apr 22, 2023, 10:50:05 PM4/22/23
to
On Sat, 22 Apr 2023 Rainer Dorsch wrote:
> Hi,
>
> I just tried to hibernate a system which I upgraded from bullseye to bookworm
> and it resumed and never reached the off state. I don't recall that there were
> hibernation problems in bullseye on that system.
[trimmed: things tried, references consulted, system information]

> Any hints are welcome

Debugging hibernation and suspend
https://www.kernel.org/doc/Documentation/power/basic-pm-debugging.txt

Good luck.

--
Hackers are free people. They are like artists. If they are in a good
mood, they get up in the morning and begin painting their pictures.
-- Vladimir Putin
0 new messages