Skip to main content
Topic: X won't start (Read 1906 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

X won't start

New computer (5600X  RX6700XT B550Plus), artix-base-runit, i3-gaps. When i try to start x it exits with errors:
Code: [Select]
$grep EE Xorg.0.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  2735.049] (EE) AMDGPU(0): [drm] Failed to open DRM device for pci:0000:05:00.0: Invalid argument
[  2735.049] (EE) AMDGPU(1): [drm] Failed to open DRM device for pci:0000:06:00.0: Invalid argument
[  2735.049] (EE) AMDGPU(2): [drm] Failed to open DRM device for pci:0000:07:00.0: Invalid argument
[  2735.049] (EE) AMDGPU(3): [drm] Failed to open DRM device for pci:0000:07:00.1: Invalid argument
[  2735.049] (EE) Screen 0 deleted because of no matching config section.
[  2735.049] (EE) Screen 0 deleted because of no matching config section.
[  2735.049] (EE) Screen 0 deleted because of no matching config section.
[  2735.049] (EE) Screen 0 deleted because of no matching config section.
[  2735.049] (EE) Device(s) detected, but none match those in the config file.
[  2735.049] (EE)
[  2735.049] (EE) no screens found(EE)
[  2735.049] (EE)
[  2735.049] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  2735.049] (EE)
[  2735.051] (EE) Server terminated with error (1). Closing log file.
Here is my xorg.conf generated with #Xorg :0 -configure:
Code: [Select]
Section "ServerLayout"
Identifier     "X.org Configured"
Screen      0  "Screen0" 0 0
Screen      1  "Screen1" RightOf "Screen0"
Screen      2  "Screen2" RightOf "Screen1"
Screen      3  "Screen3" RightOf "Screen2"
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath   "/usr/lib/xorg/modules"
FontPath     "/usr/share/fonts/misc"
FontPath     "/usr/share/fonts/TTF"
FontPath     "/usr/share/fonts/OTF"
FontPath     "/usr/share/fonts/Type1"
FontPath     "/usr/share/fonts/100dpi"
FontPath     "/usr/share/fonts/75dpi"
EndSection

Section "Module"
Load  "glx"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver      "kbd"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver      "mouse"
Option     "Protocol" "auto"
Option     "Device" "/dev/input/mice"
Option     "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
EndSection

Section "Monitor"
Identifier   "Monitor1"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
EndSection

Section "Monitor"
Identifier   "Monitor2"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
EndSection

Section "Monitor"
Identifier   "Monitor3"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              # [<bool>]
        #Option     "SWcursor"           # [<bool>]
        #Option     "EnablePageFlip"     # [<bool>]
        #Option     "SubPixelOrder"      # [<str>]
        #Option     "ZaphodHeads"        # <str>
        #Option     "AccelMethod"        # <str>
        #Option     "DRI3"               # [<bool>]
        #Option     "DRI"                # <i>
        #Option     "ShadowPrimary"      # [<bool>]
        #Option     "TearFree"           # [<bool>]
        #Option     "DeleteUnusedDP12Displays" # [<bool>]
        #Option     "VariableRefresh"    # [<bool>]
Identifier  "Card0"
Driver      "amdgpu"
BusID       "PCI:5:0:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              # [<bool>]
        #Option     "SWcursor"           # [<bool>]
        #Option     "EnablePageFlip"     # [<bool>]
        #Option     "SubPixelOrder"      # [<str>]
        #Option     "ZaphodHeads"        # <str>
        #Option     "AccelMethod"        # <str>
        #Option     "DRI3"               # [<bool>]
        #Option     "DRI"                # <i>
        #Option     "ShadowPrimary"      # [<bool>]
        #Option     "TearFree"           # [<bool>]
        #Option     "DeleteUnusedDP12Displays" # [<bool>]
        #Option     "VariableRefresh"    # [<bool>]
Identifier  "Card1"
Driver      "amdgpu"
BusID       "PCI:6:0:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              # [<bool>]
        #Option     "SWcursor"           # [<bool>]
        #Option     "EnablePageFlip"     # [<bool>]
        #Option     "SubPixelOrder"      # [<str>]
        #Option     "ZaphodHeads"        # <str>
        #Option     "AccelMethod"        # <str>
        #Option     "DRI3"               # [<bool>]
        #Option     "DRI"                # <i>
        #Option     "ShadowPrimary"      # [<bool>]
        #Option     "TearFree"           # [<bool>]
        #Option     "DeleteUnusedDP12Displays" # [<bool>]
        #Option     "VariableRefresh"    # [<bool>]
Identifier  "Card2"
Driver      "amdgpu"
BusID       "PCI:7:0:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              # [<bool>]
        #Option     "SWcursor"           # [<bool>]
        #Option     "EnablePageFlip"     # [<bool>]
        #Option     "SubPixelOrder"      # [<str>]
        #Option     "ZaphodHeads"        # <str>
        #Option     "AccelMethod"        # <str>
        #Option     "DRI3"               # [<bool>]
        #Option     "DRI"                # <i>
        #Option     "ShadowPrimary"      # [<bool>]
        #Option     "TearFree"           # [<bool>]
        #Option     "DeleteUnusedDP12Displays" # [<bool>]
        #Option     "VariableRefresh"    # [<bool>]
Identifier  "Card3"
Driver      "amdgpu"
BusID       "PCI:7:0:1"
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
SubSection "Display"
Viewport   0 0
Depth     1
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     4
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     8
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     15
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     16
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device     "Card1"
Monitor    "Monitor1"
SubSection "Display"
Viewport   0 0
Depth     1
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     4
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     8
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     15
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     16
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen2"
Device     "Card2"
Monitor    "Monitor2"
SubSection "Display"
Viewport   0 0
Depth     1
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     4
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     8
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     15
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     16
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen3"
Device     "Card3"
Monitor    "Monitor3"
SubSection "Display"
Viewport   0 0
Depth     1
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     4
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     8
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     15
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     16
EndSubSection
SubSection "Display"
Viewport   0 0
Depth     24
EndSubSection
EndSection
Running this:
Code: [Select]
$ ddcutil environment --verbose --trace env | grep Kernel
   Kernel module amdgpu           found but not loaded
   Kernel module fbdev            is builtin
   Kernel module fglrx            not found
   Kernel module fturbo           not found
   Kernel module i915             found but not loaded
   Kernel module mgag200          found but not loaded
   Kernel module nvidia           not found
   Kernel module nouveau          found but not loaded
   Kernel module radeon           found but not loaded
   Kernel module vboxvideo        found but not loaded
   Kernel module vc4              not found
   Kernel module drm              found but not loaded
   Kernel module i2c_algo_bit     found but not loaded
   Kernel module i2c_dev          found but not loaded
   Kernel module i2c_piix4        is loaded
   Kernel module ddcci            not found
Kernel I2C configuration settings:
Kernel AMDGPU configuration settings:
The amdgpu module is not being loaded during startup, if it is loaded manually with #modprobe amdgpu and x is restartred I get the same "no screen found" error. I saw something about blacklisting in /etc/modprobe.d but that is empty.
Code: [Select]
$ lspci | grep VGA
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT / 6800M] (rev c1)
The computer sees the device and I had artix-plasma-runit installed over the weekend, everything was working great
Spoiler (click to show/hide)
and there is no problems booting from usb with plasma either.

Re: X won't start

Reply #1
This is the full Xorg.0.log:
Code: [Select]
[  1565.099] 
X.Org X Server 1.21.1.3
X Protocol Version 11, Revision 0
[  1565.099] Current Operating System: Linux SS 5.10.84-1-lts #1 SMP Wed, 08 Dec 2021 16:07:43 +0000 x86_64
[  1565.099] Kernel command line: BOOT_IMAGE=/vmlinuz-linux-lts root=UUID=768286df-b90a-44b1-aa68-aaa729bb27ba rw loglevel=3 quiet
[  1565.100] 
[  1565.100] Current version of pixman: 0.40.0
[  1565.100] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[  1565.100] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1565.100] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Jan 17 23:29:22 2022
[  1565.100] (==) Using config directory: "/etc/X11/xorg.conf.d"
[  1565.100] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  1565.100] (==) ServerLayout "X.org Configured"
[  1565.100] (**) |-->Screen "Screen0" (0)
[  1565.100] (**) |   |-->Monitor "Monitor0"
[  1565.100] (**) |   |-->Device "Card0"
[  1565.100] (**) |-->Screen "Screen1" (1)
[  1565.100] (**) |   |-->Monitor "<default monitor>"
[  1565.101] (**) |   |-->Device "Card1"
[  1565.101] (==) No monitor specified for screen "Screen1".
Using a default monitor configuration.
[  1565.101] (**) |-->Screen "Screen2" (2)
[  1565.101] (**) |   |-->Monitor "<default monitor>"
[  1565.101] (**) |   |-->Device "Card2"
[  1565.101] (==) No monitor specified for screen "Screen2".
Using a default monitor configuration.
[  1565.101] (**) |-->Screen "Screen3" (3)
[  1565.101] (**) |   |-->Monitor "<default monitor>"
[  1565.101] (**) |   |-->Device "Card3"
[  1565.101] (==) No monitor specified for screen "Screen3".
Using a default monitor configuration.
[  1565.101] (**) |-->Input Device "Mouse0"
[  1565.101] (**) |-->Input Device "Keyboard0"
[  1565.101] (==) Automatically adding devices
[  1565.101] (==) Automatically enabling devices
[  1565.101] (==) Automatically adding GPU devices
[  1565.101] (==) Automatically binding GPU devices
[  1565.101] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  1565.101] (WW) The directory "/usr/share/fonts/misc" does not exist.
[  1565.101] Entry deleted from font path.
[  1565.101] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[  1565.101] Entry deleted from font path.
[  1565.101] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[  1565.101] Entry deleted from font path.
[  1565.101] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[  1565.101] Entry deleted from font path.
[  1565.101] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[  1565.101] Entry deleted from font path.
[  1565.101] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[  1565.101] Entry deleted from font path.
[  1565.101] (WW) The directory "/usr/share/fonts/misc" does not exist.
[  1565.101] Entry deleted from font path.
[  1565.101] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[  1565.101] Entry deleted from font path.
[  1565.101] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[  1565.101] Entry deleted from font path.
[  1565.101] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[  1565.101] Entry deleted from font path.
[  1565.101] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[  1565.101] Entry deleted from font path.
[  1565.101] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[  1565.101] Entry deleted from font path.
[  1565.101] (**) FontPath set to:

[  1565.101] (**) ModulePath set to "/usr/lib/xorg/modules"
[  1565.101] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[  1565.101] (WW) Disabling Mouse0
[  1565.101] (WW) Disabling Keyboard0
[  1565.101] (II) Module ABI versions:
[  1565.101] X.Org ANSI C Emulation: 0.4
[  1565.101] X.Org Video Driver: 25.2
[  1565.101] X.Org XInput driver : 24.4
[  1565.101] X.Org Server Extension : 10.0
[  1565.101] (++) using VT number 1

[  1565.102] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[  1565.105] (--) PCI:*(7@0:0:0) 1002:73df:1849:5222 rev 193, Mem @ 0xd0000000/268435456, 0xe0000000/2097152, 0xfca00000/1048576, I/O @ 0x0000e000/256, BIOS @ 0x????????/131072
[  1565.105] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[  1565.105] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[  1565.105] (II) LoadModule: "glx"
[  1565.105] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  1565.106] (II) Module glx: vendor="X.Org Foundation"
[  1565.106] compiled for 1.21.1.3, module version = 1.0.0
[  1565.106] ABI class: X.Org Server Extension, version 10.0
[  1565.106] (II) LoadModule: "amdgpu"
[  1565.106] (II) Loading /usr/lib/xorg/modules/drivers/amdgpu_drv.so
[  1565.108] (II) Module amdgpu: vendor="X.Org Foundation"
[  1565.108] compiled for 1.21.1, module version = 21.0.0
[  1565.108] Module class: X.Org Video Driver
[  1565.108] ABI class: X.Org Video Driver, version 25.2
[  1565.108] (II) AMDGPU: Driver for AMD Radeon:
All GPUs supported by the amdgpu kernel driver
[  1565.108] (II) AMDGPU(0): [KMS] Kernel modesetting enabled.
[  1565.108] (EE) AMDGPU(0): [drm] Failed to open DRM device for pci:0000:05:00.0: Invalid argument
[  1565.108] (II) AMDGPU(1): [KMS] Kernel modesetting enabled.
[  1565.108] (EE) AMDGPU(1): [drm] Failed to open DRM device for pci:0000:06:00.0: Invalid argument
[  1565.108] (II) AMDGPU(2): [KMS] Kernel modesetting enabled.
[  1565.108] (EE) AMDGPU(2): [drm] Failed to open DRM device for pci:0000:07:00.0: Invalid argument
[  1565.108] (II) AMDGPU(3): [KMS] Kernel modesetting enabled.
[  1565.109] (EE) AMDGPU(3): [drm] Failed to open DRM device for pci:0000:07:00.1: Invalid argument
[  1565.109] (EE) Screen 0 deleted because of no matching config section.
[  1565.109] (II) UnloadModule: "amdgpu"
[  1565.109] (EE) Screen 0 deleted because of no matching config section.
[  1565.109] (II) UnloadModule: "amdgpu"
[  1565.109] (EE) Screen 0 deleted because of no matching config section.
[  1565.109] (II) UnloadModule: "amdgpu"
[  1565.109] (EE) Screen 0 deleted because of no matching config section.
[  1565.109] (II) UnloadModule: "amdgpu"
[  1565.109] (EE) Device(s) detected, but none match those in the config file.
[  1565.109] (EE)
Fatal server error:
[  1565.109] (EE) no screens found(EE)
[  1565.109] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
 for help.
[  1565.109] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  1565.109] (EE)
[  1565.110] (EE) Server terminated with error (1). Closing log file.

Re: X won't start

Reply #2
Why are you not using automatic X configuration?

For selecting the right video driver for ATI based video cards see here: https://wiki.archlinux.org/title/Xorg#AMD

For blacklisting, see here: https://wiki.archlinux.org/title/Kernel_module#Blacklisting

I saw something about blacklisting in /etc/modprobe.d but that is empty.
So? Create the required file yourself. It is just a text file.