XOrg in Debian10/Buster not usable with AMD Duron / Matrox G400

Markus Hiereth post at hiereth.de
Sat Aug 10 18:24:09 UTC 2019


Hello Felix and X server experts

first of all: Thank You for the logfile.

According to the selected strings from the card's BIOS ...

    # selected strings from video BIOS dump
    IBM COMPATIBLE MATROX/Matrox G400 VGA/VBE BIOS (V2.1) b35 
    MATROX POWER GRAPHICS ACCELERATOR
    MGA Series
    VGA/VBE BIOS, Version V2.1
    Copyright (C) 1998, Matrox Graphics Inc.
    DATE: 11/21/00
    Revision: 0.35 
    Matrox Graphics Inc.
    Matrox G400

... I conclude our cards work with the same Version 2.1 of the VGA
BIOS. As I wrote, I updated my BIOS using the content of your zip file.

Below are the results of my comparison. There are differences, but
would not say that I found something very suspicious - as the MTRR
failure messages I noticed earlier. A test I am about to make now is
disabling "DRI" / "drm". Perhaps this is possible using the module
section in xorg.conf.

Best regards
Markus

------------------------------------------------------------------------

Your mga module was compiled for another version of the server:

66c80
> (II) Loading /usr/lib/xorg/modules/drivers/mga_drv.so
< (II) Loading /usr/local/lib/xorg/modules/drivers/mga_drv.so
68c82,88
< 	compiled for 1.20.4, module version = 2.0.0
---
> 	compiled for 1.20.3, module version = 2.0.0
> 	Module class: X.Org Video Driver
> 	ABI class: X.Org Video Driver, version 24.0
> (II) LoadModule: "modesetting"
> (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
> (II) Module modesetting: vendor="X.Org Foundation"
> 	compiled for 1.20.4, module version = 1.20.4


Only my logfile conains this warninng:

< (WW) xf86OpenConsole: setpgid failed: Operation not permitted
< (WW) xf86OpenConsole: setsid failed: Operation not permitted


Large differences, but maybe due to monitor detection that does not take
place with my configuration:

139,142c168,248
< (II) MGA(0): VESA VBE DDC Level none
< (II) MGA(0): VESA VBE DDC transfer in appr. 0 sec.
< (II) MGA(0): VESA VBE DDC read failed
< (II) MGA(0): UNMAPPING framebuffer 0xB6258000, 0x1000000.
---
> (II) MGA(0): VESA VBE DDC Level 2
> (II) MGA(0): VESA VBE DDC transfer in appr. 1 sec.
> (II) MGA(0): VESA VBE DDC read successfully
> (II) MGA(0): VBE monitor info
> (II) MGA(0): Manufacturer: LEN  Model: a12  Serial#: 16843009
> (II) MGA(0): Year: 2011  Week: 10
> (II) MGA(0): EDID Version: 1.3
> (II) MGA(0): Analog Display Input,  Input Voltage Level: 0.700/0.700 V
> (II) MGA(0): Sync:  Separate  Composite
> (II) MGA(0): Max Image Size [cm]: horiz.: 47  vert.: 30
> (II) MGA(0): Gamma: 2.20
> (II) MGA(0): DPMS capabilities: StandBy Suspend Off; RGB/Color Display
> (II) MGA(0): Default color space is primary color space
> (II) MGA(0): First detailed timing is preferred mode
> (II) MGA(0): redX: 0.639 redY: 0.343   greenX: 0.332 greenY: 0.617
> (II) MGA(0): blueX: 0.151 blueY: 0.068   whiteX: 0.313 whiteY: 0.329
> (II) MGA(0): Supported established timings:
> (II) MGA(0): 720x400 at 70Hz
> (II) MGA(0): 640x480 at 60Hz
> (II) MGA(0): 640x480 at 67Hz
> (II) MGA(0): 640x480 at 72Hz
> (II) MGA(0): 640x480 at 75Hz
> (II) MGA(0): 800x600 at 60Hz
> (II) MGA(0): 800x600 at 72Hz
> (II) MGA(0): 800x600 at 75Hz
> (II) MGA(0): 1024x768 at 60Hz
> (II) MGA(0): 1024x768 at 70Hz
> (II) MGA(0): 1024x768 at 75Hz
> (II) MGA(0): 1280x1024 at 75Hz
> (II) MGA(0): Manufacturer's mask: 0
> (II) MGA(0): Supported standard timings:
> (II) MGA(0): #0: hsize: 1152  vsize 864  refresh: 75  vid: 20337
> (II) MGA(0): #1: hsize: 1280  vsize 1024  refresh: 60  vid: 32897
> (II) MGA(0): #2: hsize: 1280  vsize 1024  refresh: 72  vid: 35969
> (II) MGA(0): #3: hsize: 1440  vsize 900  refresh: 60  vid: 149
> (II) MGA(0): #4: hsize: 1440  vsize 900  refresh: 75  vid: 3989
> (II) MGA(0): #5: hsize: 1600  vsize 1000  refresh: 60  vid: 169
> (II) MGA(0): #6: hsize: 1680  vsize 1050  refresh: 60  vid: 179
> (II) MGA(0): #7: hsize: 1680  vsize 1050  refresh: 75  vid: 4019
> (II) MGA(0): Supported detailed timing:
> (II) MGA(0): clock: 146.3 MHz   Image Size:  474 x 296 mm
> (II) MGA(0): h_active: 1680  h_sync: 1784  h_sync_end 1960 h_blank_end 2240 h_border: 0
> (II) MGA(0): v_active: 1050  v_sync: 1053  v_sync_end 1059 v_blanking: 1089 v_border: 0
> (II) MGA(0): Ranges: V min: 50 V max: 75 Hz, H min: 30 H max: 83 kHz, PixClock max 205 MHz
> (II) MGA(0): Monitor name: L2251x Wide
> (II) MGA(0): Serial No: 6V647310
> (II) MGA(0): EDID (in hex):
> (II) MGA(0): 	00ffffffffffff0030ae120a01010101
> (II) MGA(0): 	0a1501036c2f1e78eeb0e5a357559e26
> (II) MGA(0): 	115054bdcf00714f8180818c9500950f
> (II) MGA(0): 	a900b300b30f26399030621a274068b0
> (II) MGA(0): 	3600da281100001c000000fd00324b1e
> (II) MGA(0): 	5314000a202020202020000000fc004c
> (II) MGA(0): 	323235317820576964650a20000000ff
> (II) MGA(0): 	0036563634373331300a2020202000c9
> (II) MGA(0): end of monitor info
> (II) MGA(0): UNMAPPING framebuffer 0xB6288000, 0x1000000.
> (II) MGA(0): EDID vendor "LEN", prod id 2578
> (II) MGA(0): Using EDID range info for horizontal sync
> (II) MGA(0): Using EDID range info for vertical refresh
> (II) MGA(0): Printing DDC gathered Modelines:
> (II) MGA(0): Modeline "1680x1050"x0.0  146.30  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz eP)
> (II) MGA(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
> (II) MGA(0): Modeline "640x480"x0.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz e)
> (II) MGA(0): Modeline "640x480"x0.0   31.50  640 664 704 832  480 489 492 520 -hsync -vsync (37.9 kHz e)
> (II) MGA(0): Modeline "640x480"x0.0   30.24  640 704 768 864  480 483 486 525 -hsync -vsync (35.0 kHz e)
> (II) MGA(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
> (II) MGA(0): Modeline "720x400"x0.0   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz e)
> (II) MGA(0): Modeline "1280x1024"x0.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
> (II) MGA(0): Modeline "1024x768"x0.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz e)
> (II) MGA(0): Modeline "1024x768"x0.0   75.00  1024 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz e)
> (II) MGA(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
> (II) MGA(0): Modeline "800x600"x0.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz e)
> (II) MGA(0): Modeline "800x600"x0.0   50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz e)
> (II) MGA(0): Modeline "1152x864"x0.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz e)
> (II) MGA(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
> (II) MGA(0): Modeline "1280x1024"x72.0  132.75  1280 1368 1504 1728  1024 1025 1028 1067 -hsync +vsync (76.8 kHz e)
> (II) MGA(0): Modeline "1440x900"x0.0  106.50  1440 1520 1672 1904  900 903 909 934 -hsync +vsync (55.9 kHz e)
> (II) MGA(0): Modeline "1440x900"x0.0  136.75  1440 1536 1688 1936  900 903 909 942 -hsync +vsync (70.6 kHz e)
> (II) MGA(0): Modeline "1600x1000"x60.0  133.14  1600 1704 1872 2144  1000 1001 1004 1035 -hsync +vsync (62.1 kHz e)
> (II) MGA(0): Modeline "1680x1050"x0.0  187.00  1680 1800 1976 2272  1050 1053 1059 1099 -hsync +vsync (82.3 kHz e)


Only on my system a module drm is involved:

370c556,558
< (II) MGA(0): MAPPED Framebuffer DC000000 1000000 to B623C000.
---
> (II) UnloadModule: "modesetting"
> (II) Unloading modesetting
> (II) MGA(0): MAPPED Framebuffer F8000000 1000000 to B626C000.

374,395c562,566
< (II) MGA(0): [drm] bpp: 32 depth: 24
< (II) MGA(0): [drm] Sarea 2200+664: 2864
< drmOpenDevice: node name is /dev/dri/card0
< drmOpenDevice: open result is 14, (OK)
< drmOpenDevice: node name is /dev/dri/card0
< drmOpenDevice: open result is 14, (OK)
< drmOpenByBusid: Searching for BusID pci:0000:01:00.0
< drmOpenDevice: node name is /dev/dri/card0
< drmOpenDevice: open result is 14, (OK)
< drmOpenByBusid: drmOpenMinor returns 14
< drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
< (II) [drm] DRM interface version 1.4
< (II) [drm] DRM open master succeeded.
< (II) MGA(0): [drm] Using the DRM lock SAREA also for drawables.
< (II) MGA(0): [drm] framebuffer handle = 0xdc000000
< (II) MGA(0): [drm] added 1 reserved context for kernel
< (II) MGA(0): X context handle = 0x1
< (EE) MGA(0): [drm] failed to setup DRM signal handler
< (EE) MGA(0): [drm] DRIScreenInit failed.  Disabling DRI.
< (II) MGA(0): X 1024 Y 768 bpp 32
< (II) MGA(0): Start at 0xb623c000, size ffec00, osb 301000
< (II) EXA(0): Offscreen pixmap area of 13622272 bytes
---
> (EE) MGA(0): Static buffer allocation failed, not initializing the DRI
> (EE) MGA(0): Need at least 20868 kB video memory at this resolution, bit depth
> (II) MGA(0): X 1680 Y 1050 bpp 32
> (II) MGA(0): Start at 0xb626c000, size ffec00, osb 6bba80
> (II) EXA(0): Offscreen pixmap area of 9712000 bytes


The error message segmentation fault appears at the end of logfile, but
the surrounding lines deal with input devices (my mouse, your trackball).
I keep on thinking that somethin with the mga driver modules is wrong:

497,522c681,683
< (**) Option "xkb_layout" "de"
< (II) config/udev: Adding input device ImExPS/2 Generic Explorer Mouse (/dev/input/event1)
< (**) ImExPS/2 Generic Explorer Mouse: Applying InputClass "evdev pointer catchall"
< (II) Using input driver 'evdev' for 'ImExPS/2 Generic Explorer Mouse'
< (**) ImExPS/2 Generic Explorer Mouse: always reports core events
< (**) evdev: ImExPS/2 Generic Explorer Mouse: Device: "/dev/input/event1"
< (--) evdev: ImExPS/2 Generic Explorer Mouse: Vendor 0x2 Product 0x6
< (--) evdev: ImExPS/2 Generic Explorer Mouse: Found 9 mouse buttons
< (--) evdev: ImExPS/2 Generic Explorer Mouse: Found scroll wheel(s)
< (--) evdev: ImExPS/2 Generic Explorer Mouse: Found relative axes
< (--) evdev: ImExPS/2 Generic Explorer Mouse: Found x and y relative axes
< (II) evdev: ImExPS/2 Generic Explorer Mouse: Configuring as mouse
< (II) evdev: ImExPS/2 Generic Explorer Mouse: Adding scrollwheel support
< (**) evdev: ImExPS/2 Generic Explorer Mouse: YAxisMapping: buttons 4 and 5
< (**) evdev: ImExPS/2 Generic Explorer Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
< (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input2/event1"
< (II) XINPUT: Adding extended input device "ImExPS/2 Generic Explorer Mouse" (type: MOUSE, id 10)
< (II) evdev: ImExPS/2 Generic Explorer Mouse: initialized for relative axes.
< (**) ImExPS/2 Generic Explorer Mouse: (accel) keeping acceleration scheme 1
< (**) ImExPS/2 Generic Explorer Mouse: (accel) acceleration profile 0
< (**) ImExPS/2 Generic Explorer Mouse: (accel) acceleration factor: 2.000
< (**) ImExPS/2 Generic Explorer Mouse: (accel) acceleration threshold: 4
< (II) config/udev: Adding input device ImExPS/2 Generic Explorer Mouse (/dev/input/mouse0)
< (II) No input driver specified, ignoring this device.
< (II) This device may have been added with another device file.
< (II) config/udev: Adding input device PC Speaker (/dev/input/event5)
---
> (**) Option "xkb_layout" "us"
> (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
> (II) config/udev: Adding input device PC Speaker (/dev/input/event3)
525,543c686,695
< (EE) 
< (EE) Backtrace:
< (EE) 0: /usr/lib/xorg/Xorg (OsLookupColor+0x122) [0x67dcf2]
< (EE) 1: linux-gate.so.1 (?+0x0) [0xb7eebd87]
< (EE) 2: ? (?+0x0) [0xc0000000]
< (EE) unw_step failed: unspecified (general) error [-1]
< (EE) 
< (EE) Segmentation fault at address 0xc0000000
< (EE) 
< Fatal server error:
< (EE) Caught signal 11 (Segmentation fault). Server aborting
< (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.0.log" for additional information.
< (EE) 
< (EE) Server terminated with error (1). Closing log file.
---
> (II) evdev: AT Translated Set 2 keyboard: Close
> (II) UnloadModule: "evdev"
> (II) evdev: Logitech USB Trackball: Close
> (II) UnloadModule: "evdev"
> (II) evdev: Power Button: Close
> (II) UnloadModule: "evdev"
> (II) evdev: Power Button: Close
> (II) UnloadModule: "evdev"
> (II) MGA(0): UNMAPPING framebuffer 0xB626C000, 0x1000000.
> (II) Server terminated successfully (0). Closing log file.



More information about the xorg mailing list