Debian 10.3: X does not start

Klaus Jantzen k.d.jantzen at mailbox.org
Fri Mar 27 20:30:57 UTC 2020


Thank you for your replies.

After many additional tries (reinstall xserver-xorg-video-amdgpu, 
running with and without xorg.conf) I think the problem is again (I have 
found several references to this problem in other environments) 
indicated by the message

[     7.655] (EE) open /dev/dri/card0: No such file or directory

How do get (where do I find) "/dev/dri/card0" ??

K.D.J.


On 3/25/20 7:25 PM, IL Ka wrote:
> In most cases there is no need to run "-configure" since X can 
> autodetect many things using defaults provided by distro.
> Have you tried official debian wiki (it is about amdgpu, not general 
> modesetting)
> https://wiki.debian.org/AtiHowTo  ?
> 
> I think that "/dev/dri/card0: No such file or directory"  means there is 
> no kernel driver (no module compiled or not loaded by udev)
> Do you run custom kernel? Have you tried to load module manually using 
> (modprobe)?
> 
> 
> On Wed, Mar 25, 2020 at 9:00 PM Klaus Jantzen <k.d.jantzen at mailbox.org 
> <mailto:k.d.jantzen at mailbox.org>> wrote:
> 
>     Hello,
> 
>     I installed Debian on a PC with AMD Ryzen 5 3400 G.
> 
>     My first trials ended with a message
> 
>     "Cannot run in framebuffer mode ..." from xorg.
> 
>     Due to some research in the net I am using the following xorg.conf.
>     It is basically what I got when I did a "X -configure".
>     ==
>     Section "ServerLayout"
>           Identifier     "X.org Configured"
>           Screen      0  "Screen0" 0 0
>           Screen      1  "Screen1" RightOf "Screen0"
>           InputDevice    "Mouse0" "CorePointer"
>           InputDevice    "Keyboard0" "CoreKeyboard"
>     EndSection
> 
>     Section "Files"
>           ModulePath   "/usr/lib/xorg/modules"
>           FontPath     "/usr/share/fonts/X11/misc"
>           # FontPath     "/usr/share/fonts/X11/cyrillic"
>           FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
>           FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
>           FontPath     "/usr/share/fonts/X11/Type1"
>           FontPath     "/usr/share/fonts/X11/100dpi"
>           FontPath     "/usr/share/fonts/X11/75dpi"
>           FontPath     "built-ins"
>     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 "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"
>           Driver      "modesetting"
>           BusID       "PCI:9: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"
>           Driver      "modesetting"
>           BusID       "PCI:9: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
>     ==
> 
>     Somewhere I found the hint that the driver for framebuffers is
>     "modeseting"
>     Thus I changed in the Device sections for Card0/Card1 the driver to
>     "modesetting"
> 
>     Now the startup of X ends as follows:
>     ====
>     .....
>     [     7.719] (II) systemd-logind: logind integration requires -keeptty
>     and -keeptty was not provided, disabling logind integration
>     [     7.724] (--) PCI:*(9 at 0:0:0) 1002:15d8:1043:876b rev 200, Mem @
>     0xe0000000/268435456, 0xf0000000/2097152, 0xfcb00000/524288, I/O @
>     0x0000e000/256
>     [     7.724] (II) "glx" will be loaded. This was enabled by default and
>     also specified in the config file.
>     [     7.724] (II) LoadModule: "glx"
>     [     7.724] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
>     [     7.725] (II) Module glx: vendor="X.Org Foundation"
>     [     7.725]     compiled for 1.20.4, module version = 1.0.0
>     [     7.725]     ABI class: X.Org Server Extension, version 10.0
>     [     7.725] (II) LoadModule: "modesetting"
>     [     7.725] (II) Loading
>     /usr/lib/xorg/modules/drivers/modesetting_drv.so
>     [     7.725] (II) Module modesetting: vendor="X.Org Foundation"
>     [     7.725]     compiled for 1.20.4, module version = 1.20.4
>     [     7.725]     Module class: X.Org Video Driver
>     [     7.725]     ABI class: X.Org Video Driver, version 24.0
>     [     7.725] (II) modesetting: Driver for Modesetting Kernel
>     Drivers: kms
>     [     7.725] (EE) open /dev/dri/card0: No such file or directory
>     [     7.725] (WW) Falling back to old probe method for modesetting
>     [     7.725] (EE) open /dev/dri/card0: No such file or directory
>     [     7.725] (EE) open /dev/dri/card0: No such file or directory
>     [     7.725] (EE) Screen 0 deleted because of no matching config
>     section.
>     [     7.725] (II) UnloadModule: "modesetting"
>     [     7.725] (EE) Device(s) detected, but none match those in the
>     config
>     file.
>     [     7.725] (EE)
>     Fatal server error:
>     [     7.725] (EE) no screens found(EE)
>     [     7.725] (EE)
>     Please consult the The X.Org Foundation support
>            at http://wiki.x.org
>        for help.
>     [     7.725] (EE) Please also check the log file at
>     "/var/log/Xorg.0.log" for additional information.
>     [     7.725] (EE)
>     [     7.726] (EE) Server terminated with error (1). Closing log file.
> 
>     ====
> 
>     What I find strange is that the log says there is no device
>     /dev/dri/card0
>     while X -configure inserte thesi section into the conf-file.
> 
>     Does anyone have a solution for this problem?
>     Thanks in advance
>     -- 
> 
>     K.D.J.
>     _______________________________________________
>     xorg at lists.x.org <mailto:xorg at lists.x.org>: X.Org support
>     Archives: http://lists.freedesktop.org/archives/xorg
>     Info: https://lists.x.org/mailman/listinfo/xorg
>     Your subscription address: %(user_address)s
> 
> 
> _______________________________________________
> xorg at lists.x.org: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: https://lists.x.org/mailman/listinfo/xorg
> Your subscription address: %(user_address)s
> 


More information about the xorg mailing list