Can't start X with Matrox+NVIDIA

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Can't start X with Matrox+NVIDIA

Postby whisker » 2020-06-22 17:13

For several years, we’ve been running Debian on a Dell R740 server, which we mostly use as a headless scientific compute server. Presently on buster. The server has an integrated Matrox G200eW3 video controller. About a month or two ago, we added an NVIDIA RTX 2080 Super card in order to exploit the GPU and installed the latest NVIDIA driver from buster-backports. The server continued to work fine, video (via the Matrox) on the console was fine, and several software packages we use successfully exploited the GPU (tests done remotely using X11 over ssh and sometimes xrdp -- when X works). We added a few CUDA-related packages since then, and have done a few reboots.

Code: Select all
$ lspci | grep VGA
03:00.0 VGA compatible controller: Matrox Electronics Systems Ltd. Integrated Matrox G200eW3 Graphics Controller (rev 04)
3b:00.0 VGA compatible controller: NVIDIA Corporation Device 1e81 (rev a1)

I was by the physical machine recently and realized the login screen was blank. I dropped into a console and discovered lightdm failed to start. Restarts with systemctl failed. Startx also failed. There’s no xorg.conf, and X is automatically configuring. Nouveau, which is incompatible with the nvidia driver, is already blacklisted on my system. Internet discussions suggested to me that I should try a minimal xorg.conf, which I did without luck. In the end, the Xorg log always indicated that a screen was found but did not have a usable configuration. The only partial success I had was forcing the Matrox chip to use the modesetting module, which produced a dim low-res display. Because the server is almost always used headless, I left it as is for now. It’s annoying though that we can’t use the desktop on the console anymore. Here’s how the X logfile looked in the end (when I reverted back to no xorg.conf):

Code: Select all
[    31.187]
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
[    31.187] Build Operating System: Linux 4.9.0-8-amd64 x86_64 Debian
[    31.187] Current Operating System: Linux companion 4.19.0-8-amd64 #1 SMP Deb
ian 4.19.98-1+deb10u1 (2020-04-27) x86_64
[    31.187] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.19.0-8-amd64 root=U
UID=e0a31793-24c5-417a-8bca-8329cffad027 ro quiet
[    31.187] Build Date: 05 March 2019  08:11:12PM
[    31.187] xorg-server 2:1.20.4-1 (https://www.debian.org/support)
[    31.187] Current version of pixman: 0.36.0
[    31.187]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[    31.187] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    31.187] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Jun 20 17:59:31 202
0
[    31.187] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    31.187] (==) No Layout section.  Using the first Screen section.
[    31.187] (==) No screen section available. Using defaults.
[    31.187] (**) |-->Screen "Default Screen Section" (0)
[    31.187] (**) |   |-->Monitor "<default monitor>"
[    31.188] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[    31.188] (==) Automatically adding devices
[    31.188] (==) Automatically enabling devices
[    31.188] (==) Automatically adding GPU devices
[    31.188] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    31.188] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    31.188]    Entry deleted from font path.
[    31.188] (==) FontPath set to:
   /usr/share/fonts/X11/misc,
   /usr/share/fonts/X11/100dpi/:unscaled,
   /usr/share/fonts/X11/75dpi/:unscaled,
   /usr/share/fonts/X11/Type1,
   /usr/share/fonts/X11/100dpi,
   /usr/share/fonts/X11/75dpi,
   built-ins
[    31.188] (==) ModulePath set to "/usr/lib/xorg/modules"
[    31.188] (II) The server relies on udev to provide the list of input devices
.
   If no devices become available, reconfigure udev or disable AutoAddDevic
es.
[    31.188] (II) Loader magic: 0x55f80d34ae20
[    31.188] (II) Module ABI versions:
[    31.188]    X.Org ANSI C Emulation: 0.4
[    31.188]    X.Org Video Driver: 24.0
[    31.188]    X.Org XInput driver : 24.1
[    31.188]    X.Org Server Extension : 10.0
[    31.189] (++) using VT number 7

[    31.189] (II) systemd-logind: logind integration requires -keeptty and -keep
tty was not provided, disabling logind integration
[    31.190] (II) xfree86: Adding drm device (/dev/dri/card0)
[    31.190] (II) xfree86: Adding drm device (/dev/dri/card1)
[    31.208] (--) PCI:*(3@0:0:0) 102b:0536:1028:0715 rev 4, Mem @ 0x91000000/167
77216, 0x92808000/16384, 0x92000000/8388608, BIOS @ 0x????????/131072
[    31.208] (--) PCI: (59@0:0:0) 10de:1e81:10de:13a0 rev 161, Mem @ 0xab000000/
16777216, 0x382fe0000000/268435456, 0x382ff0000000/33554432, I/O @ 0x00006000/12
8, BIOS @ 0x????????/524288
[    31.208] (II) LoadModule: "glx"
[    31.208] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    31.209] (II) Module glx: vendor="X.Org Foundation"
[    31.209]    compiled for 1.20.4, module version = 1.0.0
[    31.209]    ABI class: X.Org Server Extension, version 10.0
[    31.209] (II) Applying OutputClass "nvidia" to /dev/dri/card1
[    31.209]    loading driver: nvidia
[    31.341] (==) Matched mga as autoconfigured driver 0
[    31.341] (==) Matched nvidia as autoconfigured driver 1
[    31.341] (==) Matched nouveau as autoconfigured driver 2
[    31.341] (==) Matched nv as autoconfigured driver 3
[    31.341] (==) Matched modesetting as autoconfigured driver 4
[    31.341] (==) Matched fbdev as autoconfigured driver 5
[    31.341] (==) Matched vesa as autoconfigured driver 6
[    31.341] (==) Assigned the driver to the xf86ConfigLayout
[    31.341] (II) LoadModule: "mga"
[    31.341] (II) Loading /usr/lib/xorg/modules/drivers/mga_drv.so
[    31.341] (II) Module mga: vendor="X.Org Foundation"
[    31.341]    compiled for 1.20.3, module version = 2.0.0
[    31.341]    Module class: X.Org Video Driver
[    31.341]    ABI class: X.Org Video Driver, version 24.0
[    31.341] (II) LoadModule: "nvidia"
[    31.342] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    31.342] (II) Module nvidia: vendor="NVIDIA Corporation"
[    31.342]    compiled for 1.6.99.901, module version = 1.0.0
[    31.342]    Module class: X.Org Video Driver
[    31.342] (II) LoadModule: "nouveau"
[    31.342] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
[    31.343] (II) Module nouveau: vendor="X.Org Foundation"
[    31.343]    compiled for 1.20.3, module version = 1.0.16
[    31.343]    Module class: X.Org Video Driver
[    31.343]    ABI class: X.Org Video Driver, version 24.0
[    31.343] (II) LoadModule: "nv"
[    31.344] (WW) Warning, couldn't open module nv
[    31.344] (EE) Failed to load module "nv" (module does not exist, 0)
[    31.344] (II) LoadModule: "modesetting"
[    31.344] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    31.344] (II) Module modesetting: vendor="X.Org Foundation"
[    31.344]    compiled for 1.20.4, module version = 1.20.4
[    31.344]    Module class: X.Org Video Driver
[    31.344]    ABI class: X.Org Video Driver, version 24.0
[    31.344] (II) LoadModule: "fbdev"
[    31.344] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    31.344] (II) Module fbdev: vendor="X.Org Foundation"
[    31.344]    compiled for 1.20.0, module version = 0.5.0
[    31.344]    Module class: X.Org Video Driver
[    31.344]    ABI class: X.Org Video Driver, version 24.0
[    31.344] (II) LoadModule: "vesa"
[    31.345] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[    31.345] (II) Module vesa: vendor="X.Org Foundation"
[    31.345]    compiled for 1.20.1, module version = 2.4.0
[    31.345]    Module class: X.Org Video Driver
[    31.345]    ABI class: X.Org Video Driver, version 24.0
[    31.345] (II) MGA: driver for Matrox chipsets: mga2064w, mga1064sg, mga2164w
,
   mga2164w AGP, mgag100, mgag100 PCI, mgag200, mgag200 PCI,
   mgag200 SE A PCI, mgag200 SE B PCI, mgag200 EV Maxim,
   mgag200 ER SH7757, mgag200 eW Nuvoton, mgag200 eW3 Nuvoton,
   mgag200eH, mgag200eH3, mgag400, mgag550
[    31.345] (II) NVIDIA dlloader X Driver  440.82  Wed Apr  1 19:50:17 UTC 2020
[    31.345] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    31.345] (II) NOUVEAU driver Date:   Mon Jan 28 23:25:58 2019 -0500
[    31.345] (II) NOUVEAU driver for NVIDIA chipset families :
[    31.345]    RIVA TNT            (NV04)
[    31.345]    RIVA TNT2           (NV05)
[    31.345]    GeForce 256         (NV10)
[    31.345]    GeForce 2           (NV11, NV15)
[    31.345]    GeForce 4MX         (NV17, NV18)
[    31.346]    GeForce 3           (NV20)
[    31.346]    GeForce 4Ti         (NV25, NV28)
[    31.346]    GeForce FX          (NV3x)
[    31.346]    GeForce 6           (NV4x)
[    31.346]    GeForce 7           (G7x)
[    31.346]    GeForce 8           (G8x)
[    31.346]    GeForce 9           (G9x)
[    31.346]    GeForce GTX 2xx/3xx (GT2xx)
[    31.346]    GeForce GTX 4xx/5xx (GFxxx)
[    31.346]    GeForce GTX 6xx/7xx (GKxxx)
[    31.346]    GeForce GTX 9xx     (GMxxx)
[    31.346]    GeForce GTX 10xx    (GPxxx)
[    31.346] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    31.346] (II) FBDEV: driver for framebuffer: fbdev
[    31.346] (II) VESA: driver for VESA chipsets: vesa
[    31.347] (WW) Falling back to old probe method for modesetting
[    31.347] (WW) Falling back to old probe method for fbdev
[    31.347] (II) Loading sub module "fbdevhw"
[    31.347] (II) LoadModule: "fbdevhw"
[    31.347] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    31.347] (II) Module fbdevhw: vendor="X.Org Foundation"
[    31.347]    compiled for 1.20.4, module version = 0.0.2
[    31.347]    ABI class: X.Org Video Driver, version 24.0
[    31.348] (II) Loading sub module "fb"
[    31.348] (II) LoadModule: "fb"
[    31.348] (II) Loading /usr/lib/xorg/modules/libfb.so
[    31.348] (II) Module fb: vendor="X.Org Foundation"
[    31.348]    compiled for 1.20.4, module version = 1.0.0
[    31.348]    ABI class: X.Org ANSI C Emulation, version 0.4
[    31.348] (II) Loading sub module "wfb"
[    31.348] (II) LoadModule: "wfb"
[    31.349] (II) Loading /usr/lib/xorg/modules/libwfb.so
[    31.349] (II) Module wfb: vendor="X.Org Foundation"
[    31.349]    compiled for 1.20.4, module version = 1.0.0
[    31.349]    ABI class: X.Org ANSI C Emulation, version 0.4
[    31.349] (II) Loading sub module "ramdac"
[    31.349] (II) LoadModule: "ramdac"
[    31.349] (II) Module "ramdac" already built-in
[    31.350] (II) Loading sub module "vgahw"
[    31.350] (II) LoadModule: "vgahw"
[    31.350] (II) Loading /usr/lib/xorg/modules/libvgahw.so
[    31.350] (II) Module vgahw: vendor="X.Org Foundation"
[    31.350]    compiled for 1.20.4, module version = 0.1.0
[    31.350]    ABI class: X.Org Video Driver, version 24.0
[    31.350] (--) MGA(0): Chipset: "mgag200 eW3 Nuvoton"
[    31.350] xf86TokenToOptinfo: table is NULL
[    31.350] xf86TokenToOptinfo: table is NULL
[    31.350] (==) MGA(0): Using HW cursor
[    31.350] (--) MGA(0): Linear framebuffer at 0x91000000
[    31.350] (--) MGA(0): MMIO registers at 0x92808000
[    31.350] (--) MGA(0): Pseudo-DMA transfer window at 0x92000000
[    31.350] (EE) MGA(0): Unable to map Framebuffer 91000000 1000000.  Invalid a
rgument (22)
[    31.350] (II) MGA(0): Creating default Display subsection in Screen section
   "Default Screen Section" for depth/fbbpp 24/32
[    31.350] (==) MGA(0): Depth 24, (--) framebuffer bpp 32
[    31.350] (==) MGA(0): RGB weight 888
[    31.350] (**) MGA(0): Enabling KVM
[    31.350] (==) MGA(0): Using AGP 1x mode
[    31.350] (==) MGA(0): Using EXA acceleration
[    31.350] (II) Loading sub module "exa"
[    31.350] (II) LoadModule: "exa"
[    31.351] (II) Loading /usr/lib/xorg/modules/libexa.so
[    31.351] (II) Module exa: vendor="X.Org Foundation"
[    31.351]    compiled for 1.20.4, module version = 2.6.0
[    31.351]    ABI class: X.Org Video Driver, version 24.0
[    31.351] (--) MGA(0): Video BIOS info block at offset 0x07CA0
[    31.351] (EE) MGA(0): Unable to detect video RAM.
[    31.351] (II) UnloadModule: "mga"
[    31.351] (II) UnloadSubModule: "exa"
[    31.351] (II) Unloading exa
[    31.351] (II) UnloadSubModule: "vgahw"
[    31.351] (II) Unloading vgahw
[    31.351] (==) NVIDIA(G0): Depth 24, (==) framebuffer bpp 32
[    31.351] (==) NVIDIA(G0): RGB weight 888
[    31.351] (==) NVIDIA(G0): Default visual is TrueColor
[    31.351] (==) NVIDIA(G0): Using gamma correction (1.0, 1.0, 1.0)
[    31.351] (**) NVIDIA(G0): Enabling 2D acceleration
[    31.351] (EE) NVIDIA(G0): GPU screens are not yet supported by the NVIDIA dr
iver
[    31.351] (EE) NVIDIA(G0): Failing initialization of X screen
[    31.351] (II) UnloadModule: "nvidia"
[    31.351] (II) UnloadSubModule: "wfb"
[    31.351] (II) UnloadSubModule: "fb"
[    31.351] (EE) Screen(s) found, but none have a usable configuration.
[    31.351] (EE)
Fatal server error:
[    31.351] (EE) no screens found(EE)
[    31.351] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[    31.351] (EE) Please also check the log file at "/var/log/Xorg.0.log" for ad
ditional information.
[    31.351] (EE)
[    31.393] (EE) Server terminated with error (1). Closing log file.

Here are just the errors:

Code: Select all
/var/log$ cat Xorg.0.log | grep EE
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    31.344] (EE) Failed to load module "nv" (module does not exist, 0)
[    31.350] (EE) MGA(0): Unable to map Framebuffer 91000000 1000000.  Invalid argument (22)
[    31.351] (EE) MGA(0): Unable to detect video RAM.
[    31.351] (EE) NVIDIA(G0): GPU screens are not yet supported by the NVIDIA driver
[    31.351] (EE) NVIDIA(G0): Failing initialization of X screen
[    31.351] (EE) Screen(s) found, but none have a usable configuration.
[    31.351] (EE)
[    31.351] (EE) no screens found(EE)
[    31.351] (EE)
[    31.351] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    31.351] (EE)
[    31.393] (EE) Server terminated with error (1). Closing log file.

Because of the Matrox RAM error, I did try manually specifying a RAM size of 16384 in my minimal xorg.conf, but that didn’t help. I’m unsure what, if anything, I should do about the Framebuffer error or why the card might be tapped for X.

Here are the installed xorg packages:

Code: Select all
/var/log$ apt list --installed | grep xorg
xorg-docs-core/stable,stable,now 1:1.7.1-1.1 all [installed,automatic]
xorg-sgml-doctools/stable,stable,now 1:1.11-1 all [installed,automatic]
xorg/stable,stable,now 1:7.7+19 amd64 [installed,automatic]
xorgxrdp/stable,stable,now 1:0.2.9-1 amd64 [installed,automatic]
xserver-xorg-core/stable,stable,now 2:1.20.4-1 amd64 [installed,automatic]
xserver-xorg-input-all/stable,stable,now 1:7.7+19 amd64 [installed,automatic]
xserver-xorg-input-libinput/stable,stable,now 0.28.2-2 amd64 [installed,automatic]
xserver-xorg-input-wacom/stable,stable,now 0.34.99.1-1 amd64 [installed,automatic]
xserver-xorg-legacy/stable,stable,now 2:1.20.4-1 amd64 [installed,automatic]
xserver-xorg-video-all/stable,stable,now 1:7.7+19 amd64 [installed,automatic]
xserver-xorg-video-amdgpu/stable,stable,now 18.1.99+git20190207-1 amd64 [installed,automatic]
xserver-xorg-video-ati/stable,stable,now 1:19.0.1-1 amd64 [installed,automatic]
xserver-xorg-video-fbdev/stable,stable,now 1:0.5.0-1 amd64 [installed,automatic]
xserver-xorg-video-intel/stable,stable,now 2:2.99.917+git20180925-2 amd64 [installed,automatic]
xserver-xorg-video-mga/stable,stable,now 1:2.0.0-1 amd64 [installed]
xserver-xorg-video-nouveau/stable,stable,now 1:1.0.16-1 amd64 [installed,automatic]
xserver-xorg-video-nvidia/buster-backports,now 440.82-1~bpo10+1 amd64 [installed,automatic]
xserver-xorg-video-qxl/stable,stable,now 0.1.5-2+b1 amd64 [installed,automatic]
xserver-xorg-video-radeon/stable,stable,now 1:19.0.1-1 amd64 [installed,automatic]
xserver-xorg-video-vesa/stable,stable,now 1:2.4.0-1 amd64 [installed,automatic]
xserver-xorg-video-vmware/stable,stable,now 1:13.3.0-2 amd64 [installed,automatic]
xserver-xorg/stable,stable,now 1:7.7+19 amd64 [installed,automatic]

Any suggestions for how to get X working again on the physical console?
whisker
 
Posts: 1
Joined: 2020-06-22 17:00

Re: Can't start X with Matrox+NVIDIA

Postby ruwolf » 2020-06-24 02:03

It seems to me, that your Xorg wants to start on nVidia card, but you have not connected monitor to it.
Why do you have Xorg drivers for nVidia card, if you use it only for CUDA (and use X11 remotely only)?
For CUDA, you need nvidia-cuda-dev nvidia-cuda-toolkit only: wiki.debian.org: NvidiaGraphicsDrivers
User avatar
ruwolf
 
Posts: 427
Joined: 2008-02-18 05:04
Location: Slovakia, Banovce nad Bebravou, Matice slovenskej 1260/4-7


Return to Hardware

Who is online

Users browsing this forum: No registered users and 1 guest

fashionable