Suspend resume problems

After suspend on Fedora 44 KDE (X11, NVIDIA 595), moving windows leaves trails as if the screen is not being redrawn. Restarting plasmashell by doing “plasmashell &” fixes it, but it is irritating to have to do it manually.
Details:

  • Fedora 42 → 43 → 44 upgrades (GUI)
  • NVIDIA RTX 5060 (akmod-nvidia 595.71.05)
  • AMD Ryzen 7 9700X (iGPU blacklisted)
  • X11 session
  • EGL backend active
  • Cold boot stable
  • After suspend, moving windows leaves trails
  • Restarting plasmashell fixes it
  • Some core plasmoid directories missing metadata.json even after reinstall
  • rpm -V shows no errors
  • Filesystem: Btrfs

I’ve tried getting help with ChatGPT, but nothing has worked. It thinks running: “ls -l /usr/share/plasma/plasmoids/org.kde.plasma.battery/
ls -l /usr/share/plasma/plasmoids/org.kde.plasma.brightness/” should show “metadata.json
contents/”, but since it doesn’t for me and reinstalling doesn’t work, it thinks there is filesystem-level inconsistency after layered upgrades, and thinks clean install of Fedora 44 is the only solution. I’ve had problems with suspend resume for a while, but with Fedora 44 there has been different issues. Are there other solutions?

I am not sure this is functional. Fedora KDE has not used X11 for some time as it was fully removed from both Workstation and KDE a few releases back.

I have to wonder if the use of X11 may be causing the problem or if you are actually using wayland instead..

Fedora does still offer the necessary packages for X11 Plasma support (plasma-workspace-x11 and its dependencies). But they aren’t installed by default, and it wouldn’t be too surprising to find issues there, since they are no longer very mainstream.

Thank you for your replies. I was originally using Wayland on Fedora 42, but there seemed to be problems with NVIDIA and Wayland at that time, so I switched to X11. Should I try switching back then?

I would suggest yes. I have been using Nvidia on KDE with Wayland since Fedora 41, with minimal issues.

I tried now, but it has recreated a previous problem. After resume, my background, applications and task bar is all blacked out. Windows, shortcuts and application that were open before I suspended are still up and running, and I can still use them. So I can run plasmashell & in the terminal and everything returns to normal. When running plasmashell &, it still also says " Could not find required file “metadata” for package “/usr/share/plasma/plasmoids/org.kde.plasma.brightness/” should be QList(“metadata.json”, “metadata.desktop”) kf.package: Could not find required file “metadata” for package “/usr/share/plasmaplasmoids/org.kde.plasma.battery/” should be QList(“metadata.json”, “metadata.desktop”) " which is what ChatGPT points out might be the problem. The picture under also shows something that happened under suspend and resume, and it appears to show plasmashell process being interrupted.

I don’t have those metadata files on my system either, so I’m not sure this message is directly related to your problem.

Do you see any other errors in the journal on suspend and resume? For example, you could try sleeping and waking the machine, then running say journalctl --since -3m to see the last 3 minutes of log entries.

Found out that a workaround script for suspend and resume developed when I had problems on Fedora 42 wasn’t actually stopped from running even though I tried to disable it. It crashed during suspend and resume now, and was most likely the cause for everything. This fixed the problem for both x11 and wayland, but I think I am sticking to Wayland for now based on what you guys told me. Thank you!