Xorg is using nvidia module instead of radeon

Hi.

I rebooted pc today and my Xorg went crazy.
I cannot understand what’s going on. I never had issues with gpus on Manjro until today.

Xorg is trying to use Nvidia module, but I have amd gpu (rx6600). Kernel 6.1.19.

EDIT: I’ve copied logs to my laptop. Here is xorg:

[   219.129] 
X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
[   219.134] Current Operating System: Linux marcin-z68apd3 6.1.19-1-MANJARO #1 SMP PREEMPT_DYNAMIC Mon Mar 13 12:59:35 UTC 2023 x86_64
[   219.134] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64 root=UUID=0838830c-c7cc-4765-b444-67b51149ed25 rw quiet splash apparmor=1 security=apparmor resume=UUID=1075af43-528b-4cff-8714-5832160343b4 udev.log_priority=3
[   219.138]  
[   219.139] Current version of pixman: 0.42.2
[   219.142] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   219.142] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   219.145] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Mar 23 22:26:09 2023
[   219.145] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   219.146] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   219.146] (==) ServerLayout "layout"
[   219.146] (==) No screen section available. Using defaults.
[   219.146] (**) |-->Screen "Default Screen Section" (0)
[   219.146] (**) |   |-->Monitor "<default monitor>"
[   219.146] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[   219.146] (**) |   |-->Device "Device0"
[   219.146] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   219.146] (==) Automatically adding devices
[   219.146] (==) Automatically enabling devices
[   219.146] (==) Automatically adding GPU devices
[   219.146] (==) Automatically binding GPU devices
[   219.146] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   219.146] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   219.146] 	Entry deleted from font path.
[   219.146] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[   219.146] 	Entry deleted from font path.
[   219.146] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[   219.146] 	Entry deleted from font path.
[   219.146] (==) FontPath set to:
	/usr/share/fonts/misc,
	/usr/share/fonts/TTF,
	/usr/share/fonts/OTF
[   219.146] (==) ModulePath set to "/usr/lib/xorg/modules"
[   219.146] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   219.146] (II) Module ABI versions:
[   219.146] 	X.Org ANSI C Emulation: 0.4
[   219.146] 	X.Org Video Driver: 25.2
[   219.146] 	X.Org XInput driver : 24.4
[   219.146] 	X.Org Server Extension : 10.0
[   219.147] (++) using VT number 2

[   219.148] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[   219.149] (II) xfree86: Adding drm device (/dev/dri/card0)
[   219.149] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:00.0/0000:03:00.0/drm/card0
[   219.150] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 13 paused 0
[   219.154] (--) PCI:*(3@0:0:0) 1002:73ff:1da2:e447 rev 199, Mem @ 0xd0000000/268435456, 0xefe00000/2097152, 0xfbb00000/1048576, I/O @ 0x0000de00/256, BIOS @ 0x????????/131072
[   219.155] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   219.155] (II) LoadModule: "glx"
[   219.155] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   219.157] (II) Module glx: vendor="X.Org Foundation"
[   219.157] 	compiled for 1.21.1.7, module version = 1.0.0
[   219.157] 	ABI class: X.Org Server Extension, version 10.0
[   219.157] (II) LoadModule: "nvidia"
[   219.157] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[   219.158] (II) Module nvidia: vendor="NVIDIA Corporation"
[   219.158] 	compiled for 1.6.99.901, module version = 1.0.0
[   219.158] 	Module class: X.Org Video Driver
[   219.158] (II) NVIDIA dlloader X Driver  525.89.02  Wed Feb  1 23:14:37 UTC 2023
[   219.158] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[   219.158] (EE) No devices detected.
[   219.158] (EE) 
Fatal server error:
[   219.158] (EE) no screens found(EE) 
[   219.158] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   219.158] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   219.158] (EE) 
[   219.180] (EE) Server terminated with error (1). Closing log file.

And here is inxi -G output:

Graphics:
  Device-1: AMD Navi 23 [Radeon RX 6600/6600 XT/6600M] driver: amdgpu v: kernel
  Display: server: X.org v: 1.21.1.7 with: Xwayland v: 22.1.8 driver: X: loaded: nvidia
    gpu: amdgpu tty: 240x67 resolution: 1: 1920x1080 2: 1920x1080
  API: OpenGL Message: GL data unavailable in console for root.

Output os the lspci -k:

03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [Radeon RX 6600/6600 XT/6600M] (rev c7)
	Subsystem: Sapphire Technology Limited Device e447
	Kernel modules: amdgpu
03:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21/23 HDMI/DP Audio Controller

BTW: I was using radeon module. I don’t know why amdgpu is listed, or why radeon is not listed.

I solved the issue.

As far I can see the gpu-screen-recorder-git package from AUR contains a config file for X11 named 88-gsr-coolbits.conf, which has device section configured for nvidia driver. The file was added few days ago, and the packgage was updated yesterday.

I removed the package and Xorg is starting now.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.