Desktop PC won’t work after idle for long periods of time

I’m testing the KDE spin on Fedora 40 on a Ryzen 7950X with a Radeon 7900XTX. I’ve disabled Sleep and Hibernation through systems masking settings, and on Plasma I’ve set it to not sleep at all.

At night, all I do is lock the screen, and hit Esc to turn the monitors off (connected through DP).

Every morning I move the mouse and hit Esc or Space to turn on the monitors. Lately (can’t remember exactly since when), the system just won’t come back.

Where might I find clues as to what’s going on? What Logs and whatnot.

I have a suspicion with Bluetooth settings, as somehow it’s set to Off now on every boot (was set to On on start when Fedora was installed), so I’ll do some tests with that tonight.

I was also thinking of installing SSH to see if I could check the status of something, but I wouldnt know what to look for yet.

EDIT: Another weird thing is that after force rebooting (holding power on the pc case), the iGPU in the CPU becomes enabled, even though I disabled it in the UEFI)

You might want to fix the title as the time of day is not revenant.

1 Like

Thanks! Just changed the title.

Also, here’s a dump after the latest freeze from journalctl: Linux freeze Ryzen 7950X · GitHub

I tried the lock-screen, type ESC, wait a while, press shift.
Then screen came back and I could unlock session.
I have intel cpu and amd 7800 gpu.

This is a kernel bug with AMD based systems, here is the workaround that worked for me

edit with root privileges the file sudo nano /etc/default/grub

find the line GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash”. It might have more parameters if you ever modified it, make sure there is no parameter disabling ACPI.

Now add to this line WITHIN THE QUOTES the parameter usbcore.autosuspend=-1 , so the line will be GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash usbcore.autosuspend=-1”

save the file by ctrl+O then enter

then you must update your grub file;

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Sadly, it seems I don’t have that line. Could you help me out discerning which line I should modify?

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

From https://wiki.archlinux.org/title/GRUB#Additional_arguments, I see that GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT are concatenated. So MAYBE I should ADD this?

GRUB_CMDLINE_LINUX_DEFAULT="usbcore.autosuspend=-1"

No, add it into the GRUB_CMDLINE_LINUX as suggested. Fedora does not normally use the GRUB_CMDLINE_LINUX_DEFAULT line as you can see with the result displayed.

missing the DEFAULT doesn’t matter, I ran into the same thing. Edit the line I quoted

Thanks! Will keep testing the system, hopefully without freezes now!

It also can’t hurt to make the following change,

sudo nano usr/lib/systemd/sleep.conf

edit the following entries to “no”

AllowHibernation=no
AllowHybridSleep=no
AllowSuspendThenHibernate=no

save the file by ctrl+O then enter

I do the same but through this command: sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target.

Si it seems it wasn’t that, as the system crashed again after changing from Steam Flatpak to Steam native (dnf).

Changing back to Steam flatpak seems like a more stable solution, as the crashes only crash Xwayland, and not the whole system.