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

2 Likes

Is this still working for everyone? I can’t seem to get it to work…

It sounds like a SSD firmware bug to me. What make, model and firmware version is the ssd.

I am using Samsung’s 990 Evo (1TB) as I’ve had good results with them in the past.

I am using Sandisk 500 GB.
No issues anymore since I applied Frequent Freezes and Initramfs Error on Ubuntu 24.10 - #4 by ramelet_guillaume

After opening up my laptop and reseating the eDP cable on both ends and my SSD as well the issue has entirely disappeared.