Can't suspend/sleep my fedora 41 kde

Hi, I’m new to this distro and my specs are:

CPU AMD Ryzen 9 7950x3d
GPU no dicreete gpu for now, just using AMD IGPU
RAM Team Create Expert 64gb
MOBO Gigabyte B650m Aorus Pro AX
AIR Cooler Phantom Spirit 120se
Nvme XPG ADATA Gamix s70 2t (system intalled here)

behavior/problem:

Sleep and immediately wakes up.

I am using EXT4 instead of the default BTRFS, so no snapshot I suppose.
Using a 32G Swap partition besides the 8G zram that fedora configured by default.
(possible problem? both swap partiton and zram enabled? I have tried to disable both and one at a time with no success)

I also have a ‘resume’ variable pointing to the swap partition on grub file (chat gpt says it shouldn’t cause problem with sleep since it’s supposed to affect only hybernate).

Have tried every troubleshooting command under the sun that CHAT GPT could instruct me. But it is kind of forgetful and tend to hallucinate driving me nuts.

No kernel events or clear acpi ahcp or whatever culprit.

I have disabled every device capable of waking it up, masked the hibernate and hybrid files.

Sometimes chatgpt would point me to device41 which seams to be a node from where other pci and mobo parts stem from as a possible waker… it has something to do with GPP7 device also but it’s not clear …

network manager also appear in some tests as incapable of waking but it recognizes a wakeup call… just doesn’t tell me anything about it.

On my BIOS there is to many variables to try and I’ve tried many.
I’m on FB3j version Update AMD AGESA 1.2.0.3a PatchA (the last available)

My kernel and system are up to date.
I am on a fresh install.

Can anyone risk an opinion? I need this pc for work and I need it to be capable of sleeping otherwise I might have to go back to Windows and that is the least desirable outcome.

Ask anything you need from me.

You are my last resort.
Thanks in advance!

Just a note, the LLMs do not know how to use Fedora and you will have to manually verify everything they tell you.

What is a GPP7? I was going to ask if you have any peripherals like a tablet pen that might be always active.

I know, I have tried to follow gpt help but it often led me astray. This GPP7 is just something that appeared related to said device 41 when I input some command gpt provided me… I don’t really know what it means…
I’m not on pc right now but I can put any command you need in the terminal and post the output here if it will help troubleshooting.

Thank you for replying.

And no about usb, I have tried suspending with nothing but either a mouse or keyboard and pulling the plug as soon as the suspend command has registered.
So in theory no USBs to wake up unless the wakeup call is registered right after the suspend command, before the cable is unplugged which I have done as fast as I could.

Only thing I have not tried without was my hdmi screen, cause I need to see what’s happening.

I even tried disabling wifi and ethernet, without the cable plugged in.

I have tried disabling every service or device that could wake it up.
Again… I’m not very technically knowledgeable, all with gpt assisance but I think I have been thorough.

You guys at this forum are my last try.

Help me KDE Forums,
You’re my only hope.

No just joking, forgive the bad Star Wars paraphrase.
But if no-one here knows then you could try KDE.

The thing I could find is incorretctly installed Nvida drivers, but that does not apply to you. And I don’t use KDE so can’t check those settings for you.

The only other option is a bad Kernel, so you could downgrade or wait for an upgrade. Downgrade is easy and you can upgrade again at any time

sudo dnf downgrade kernel

No need to downgrade the kernel.
Just choose the previous kernel in grub when the system boot up.

Yep, I figured that much from my tests and from what chargpt told me. It boils down to bios or kernel/driver problem, bug or inconsistency.
It could be many things things though. Interactions between mobo, cpu and ram.. people have had power management problems with fedora throughout many of the latest versios it seems. It’s not always the same behavior but it could be related. And if that’s the case it would be in the kernel nevertheless wouldn’t it?

I suppose I would have to downgrade then cause all versions in the grub menu have the same issue. It’s a fresh install and it had the issue since the first boot.
I was hoping an upgrade would fix it or another idea from you guys. I thought I should post it here cause if it’s a bug then it wouldn’t be fixed unless people complained and documented it right.. so here I am.

I didn’t want to break my installation by trying all versions of kernel and then I wouldn’t know how to clean it up afterwards. Any suggestions of version?

Won’t all previous versions have the same bug? Like, isn’t the lak of support for hardware that’s too recent a thing in linux distros? My pc is brand new and the components are very recent I think.

I’ve read somewhere also that ram timings and voltage can lead to instability and affect suspend and other stuff, but changing my ram is not an option now.. I could mess with the overclock profiles or make a custom one with help but that stuff is pretty niche knowledge, I haven’t seen many people that seem to know what they are doing regards ram timings infinity fabric and all that jazz.

Is here the right place to post my issue? Or is it KDE?

It is OK to have both a swap partition and zram at the same time. They shouldn’t cause any problems.

Use swapon/swapoff to manage the swap partitions. Use zramctl to manage the zram device.

Oh, that’s out of the equation then, thanks!

I didn’t understand very well the use of both and why is zram only 8g?

It wasn’t clear to me wether it would store hibernation in one or the other.. it seams to have a priority.. then if the load is higher than the space it would split and dump the rest in the other?

Isn’t zram supposed to be of maleable size? Like stretch or do I have to set the size manually. Does is occupy the space if its empty or is the 8g just the max size allowed?

Many doubts indeed

FWIW, there are some notes about debugging hibernation and suspend here: https://www.kernel.org/doc/Documentation/power/basic-pm-debugging.txt

Hibernation shoud write the contents of memory to disk, including the zram contents. For hibernation to work, the swap partition must be larger than the amount of physical RAM in your system.

Details about SwapOnZRAM can be found here: Changes/SwapOnZRAM - Fedora Project Wiki

Right, imma look into it once i have some time, those things need attention.

Thank you for the tip.
By your message then I get that vram also goes into swap for hibernation purposes and vram is only a memory spill then? I’m going to read the docs, no need ro answer it. But it made more sense now.

I have been having too many trouble in linux to make things that were pretty simple in windows.. I wonder if it is all worthy.

I can’t even monitor my core temps, just the package, not individual cores. I suppose these new cpus aren’t very well supported still. Maybe it wasn’t the right time to make the chage. It sucks, cause I wanted linux to work for me so bad.
I’m fed up with windows. It’s become a store OS, adds down you throat, bloatware.. no local account. It’s like the pc isn’t yours anymore.

Just a thought, so swap partition should be equal or bigger than not only ram size but the sum of ram plus zram right?

Yes, Linux has many more controls/options than Windows. Some people like it, but it can be a bit overwhelming for some. Ideally, you should be able to just ignore the configuration options that you don’t (yet) understand and everything should “just work”. However, the truth is that your experience can vary widely depending on just how compatible your particular hardware is with Linux. Not all hardware works well with Linux.

No. ZRAM is part of RAM. You don’t have to count it separately. I saw a chart once about how much larger to make your swap partition, but I doubt that I could find it again.

Edit: Chapter 15. Swap Space | Red Hat Product Documentation

Fedora seems to not care that much about swap partition, I made my partitions manually to be able to use ext4 and anaconda installation wouldn’t recognize the partitions, boy, what a headache it was..

I think if I left it in auto it wouldn’t even create a swap partition..

I was kinda worried that I messed up my install cause I dont have a normal auto installation experience to compare. But all seems to be working besides sleep. That won’t work for me though. I need to leave my pc now and then and don’t want to have to reboot my session nor leave it full throttle. It needs to sleep.

Yes, that is right. There is a little bit of back story to the Linux hibernation story here: Fedora reawakens the hibernation debate [LWN.net]

Suspend ≠ hibernate. Suspend should work, but don’t leave your PC for so long that the battery runs down (or else leave it plugged in). If you are going to leave your PC for a long time. You really should save your work anyway. “Save early, save often” was the old motto. It is quite possible for batteries, power, any hardware really, to fail at any time. If you are taking a break from your computer, you should always save your work before leaving (and ideally shut the system down if no one else will be using it).

Yep, but home office, I need to leave it for one reason or another and never know if I’m returning in 5 min or a couple hours.

Suspension is a quality of life feature I can’t live without since it’s invention. I save my work, but sometimes it’s to many things open at the same time, it doesn’t make sense to turn pc off if I might return in a few minutes.

It’s a desktop so it’s always plugged in.

As a note, bugs need to be reported at https://bugzilla.redhat.com/
Maybe if enough people have a problem here it will filter through, but there is no official way for developers to pick up problems on the forums.

Can you boot a Workstation version of Fedora on a USB and see if sleep/hibernate work there? There are a number of usable desktops and windows managers for Fedora, that while not as pretty at KDE do work well.
You can also install multiple desktops and access them at startup.

Yes I have, my pendrive has a fedora workstation iso on it I think, just the KDE spin.. but ain’t it within the workstation distro category?
Well I have tried sleeping from the live usb already but it’s the same I used on my installation.
Plus chat gpt said it’s very common a live usb not supporting sleep since it’s a generic driver image and wouldn’t have the right configs for most computers. Is it accurate info?

I can try other images if it would help.

“Workstation” is a synonym for Gnome Desktop.

You will have to manually confirm anything an LLM tells you about how to use Linux. It is often incorrect. Lets say it is correct, I do not know, you can install (just to pick one at random) Cinnamon Desktop and boot into it from your login screen.