Requiring reboot when suspending computer with several open pdf readers (okular or evince, tried with both)

Ubuntu 24.04.2 LTS, Linux 6.11.0-17-generic
GNOME 46
Wayland

Quite often, my computer is requiring forced reboot (try to wake it up but stays in a dark screen and have to turn it off with the power button) after the computer enters suspension state with several open pdf readers (okular or evince, tried with both; pdfs are of scanned books). I have a 8Gib memory, swap is activated. ClamAV daemon running in background.

I tried locking the computer manually, without success, but nothing else (other than closing the readers).

Welcome to Ubuntu Discourse :slight_smile:

8GB of RAM is not a lot if you have multiple PDFs open.

Do you have a swap partition or swap file?

In a terminal, check this and show the output:
swapon --show

After a forced reboot, check the logs:
journalctl -xe | grep suspend

Look for any errors related to suspend or wake-up.

Is there a reason you are running ClamAV?

Try temporarily stopping and disabling to see if that resolves the issues:

sudo systemctl stop clamav-daemon
sudo systemctl disable clamav-daemon

Try switching to X11 at the login screen instead of Wayland to see if that makes a difference: from the gear icon at login choose Ubuntu on Xorg

Note that this will be the default unless you change back to Wayland.

Hopefully, some of this will help.

If ClamAV is scanning, that could be your problem right there. Try stopping the daemon and see if the issue persists.

More generally: run a system monitor while you’re doing things and pay attention to what’s using your CPU and memory.