Suspend works on Wayland but is broken on X11

Problem Description

System suspend works on Wayland but is broken on X11.

Here are the outputs of journalctl --boot [-1] for Wayland output and X11 output.
The outputs were generated by suspending after login into GNOME.
Both have a lot of exceptions (> 3000 lines) ! So there is definitely something wrong with the NVIDIA drivers, but it still somehow it works on Wayland.

My system packages are up to date notably kernel 6.11.3-200.fc40.x86_64 and NVIDIA driver 555.58.02.

How can I fix suspend on X11?

System Information

OS: Fedora Linux 40 (Workstation Edition) x86_64
DE: GNOME 46.6
CPU: Intel(R) Core™ i5-4690K (4) @ 3.90 GHz
GPU: NVIDIA GeForce GTX 970

Added f40, gnome, nvidia

Please extract key details from journalctl – we don’t need to see 1000’s of repeated exceptions – and post as pre-formatted text so it can be found using a web search by others with similar issues.

Power management involves vendor “BIOS” code, so vendor updates may be required for new linux kernels. It is often helpful to have the output from running inxi -Fzxx in a terminal (as pre-formatted web searchable text, using the </> button from the top line of the text entry panel).

Real question: How do I know which part is important?

Compare journalctl output for boots with a problem to boots without the problem. Problems like this are rarely specific to Fedora, so as other distros start using 6.11 kernels you find other reports with web searches – including some were the user has already identified the key error messages.

Journalctl has many options that allow you to filter output. You will need to read man journalctl for details. You can start with the -p <N> (priority) option and comparing older boots (or a new boot with an older kernel) that don’t have the issue.