Frequent Freezes and Initramfs Error on Ubuntu 24.10

I’ve been experiencing some frustrating issues with my Ubuntu 24.10 installation.
My OS after suspend frequently freezes, and when I hard restart my device, I encounter an initramfs error. After restarting again, the error goes away.

I’ve done some searches about this problem and reviewed my logs (attached below).

2024-11-15T22:28:03.135904+01:00 framework systemd-sleep[39340]: Failed to freeze unit 'user.slice': Connection timed out
2024-11-15T22:28:03.147102+01:00 framework systemd-sleep[39340]: Performing sleep operation 'suspend'...
2024-11-15T22:27:35.079924+01:00 framework kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7

from what I have read, it could be related to systemd v256.
But not sure how to confirm or what to do to fix this issue

Any guys with a similar syndrome?

Guillaume
ubuntu-24.10
kernel: 6.11.0-9-generic
bios: 3.05
framework model: AMD Ryzen™ 7040 Series - FW13 7640U
systemd 256 (256.5-2ubuntu3)

I can’t help you with the hibernation part, as I never use it because I use encrypted filesystem requiring me to enter the password anyway.

I configure the system to use session management, and shutdown.
the boot process is so fast under linux, I don’t really care shutting down. If I make a pause, I just put it to sleep.

Hibernation, IMHO, as it write the RAM content to disk, is just a way of wearing the SSD prematurily.

I’m experiencing the same. Sometimes a freeze with a forced reboot. Then the initramfs prompt and after another reboot the system is back up.

I do use an encrypted filesystem, maybe disabling hibernation is way to fix this?

My versions match yours exactly. I try to keep my system as up to date as possible.

I have a workaround that you may try. based on https://www.reddit.com/r/archlinux/comments/1djowpp/comment/l9hed36/

create these 2 files

/etc/systemd/system/systemd-homed.service.d/override.conf
/etc/systemd/system/systemd-suspend.service.d/override.conf

with this content

in /etc/systemd/system/systemd-homed.service.d/override.conf

[Service]
Environment="SYSTEMD_HOME_LOCK_FREEZE_SESSION=false"
in /etc/systemd/system/systemd-suspend.service.d/override.conf

[Service]
Environment="SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=false"

and then
sudo systemctl daemon-reload or reboot