Fedora 41 system cannot be started as X11

Hello, I want to switch from Wayland to X11, but when I select any X11 protocol on SDDM (like Plasma X11 instead of Plasma), it returns me to the login screen. When I run the startx command, the output is as follows:

onurkagan@fedora:~$ sudo startx
xauth:  file /root/.serverauth.5417 does not exist
X.Org X Server 1.21.1.16
X Protocol Version 11, Revision 0
Current Operating System: Linux fedora 6.13.10-200.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Apr  7 19:01:38 UTC 2025 x86_64
Kernel command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.13.10-200.fc41.x86_64 root=UUID=bbba779f-779f-4265-a7fd-e4008489a3bf ro rootflags=subvol=root rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau
Build ID: xorg-x11-server 21.1.16-1.fc41 
Current version of pixman: 0.44.2
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Sun Apr 13 12:13:28 2025
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) 
Fatal server error:
(EE) no screens found(EE) 
(EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error

Afterward, when I run sudo dmesg | grep -i nvidia, I get the following output:

onurkagan@fedora:~$ sudo dmesg | grep -i nvidia
[    3.812125] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input20
[    3.812414] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input21
[    3.812457] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input22
[    3.812500] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input23
[    3.862619] nvidia: module license 'NVIDIA' taints kernel.
[    3.862624] nvidia: module license taints kernel.
[    4.028645] nvidia-nvlink: Nvlink Core is being initialized, major device number 508
[    4.029911] nvidia 0000:01:00.0: enabling device (0506 -> 0507)
[    4.030017] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
[    4.089178] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[    4.181957] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  570.133.07  Fri Mar 14 12:42:57 UTC 2025
[    4.184469] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    5.535543] nvidia-modeset: nvidia-modeset: ACPI reported no NVIDIA native backlight available; attempting to use ACPI backlight.
[    5.541492] [drm] Initialized nvidia-drm 0.0.0 for 0000:01:00.0 on minor 0
[    5.541816] nvidia 0000:01:00.0: [drm] Cannot find any crtc or sizes

I think the xorg.conf is not detecting my display. How can I fix this issue?

It’s been a while since I used X11.
I think that error means that you are missing screen configuration.

It is also worth checking what interface the kernel found:

ls /sys/class/drm

If your HDMI etc show up there you just need to add the screen config.

You dont use startx with sudo, otherwise you run the session as root.

I think startx is what SDDM uses on X11? For Wayland it is startplasma-wayland