You are not logged in.

#1 2016-12-28 16:08:54

soulsuke
Member
Registered: 2016-12-28
Posts: 6

Arch, Matrox and mga.

Dearest Arch forum,

I'm admitting defeat as I'm writing this post.

I've been trying for hours to have Arch work on a Dell PowerEdge T310, with only a little component refusing to work: its video card, a Matrox G200eW (WDDM 1.2).
The "mga-dri" package (as well as Xorg, lightdm and lightdm-gtk-greeter) have been installed, but somehow the "mga" module is not loaded (as in, Xorg fails to find such file).
Starting the computer using a Debian Sid installation on a usb device, everything seemd to work. I proceeded to generate a working xorg.conf file via "Xorg :0 -configure" to try out on Arch, but to no avail.

The X server is not started, still complaining it could not load the "mga" module. I've also read on the wiki about adding OldDmaInit (which is commented in the above file), but nothing at all changed. I admit I've rarely had such issues with Xorg (well, after Bumblebee at least), although it's the first time I ever have to work with a Matrox card.

xorg.conf:

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	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 "Device"
	Identifier  "Card0"
	Driver      "mga"
	BusID       "PCI:1:3:0"
	#Option     "OldDmaInit"         	"True"
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

Xorg.0.log without OldDmaInit:

[    75.134] 
X.Org X Server 1.18.4
Release Date: 2016-07-19
[    75.134] X Protocol Version 11, Revision 0
[    75.134] Build Operating System: Linux 4.5.4-1-ARCH x86_64 
[    75.134] Current Operating System: Linux jigoku 4.8.13-1-ARCH #1 SMP PREEMPT Fri Dec 9 07:24:34 CET 2016 x86_64
[    75.134] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=ec85d4f3-2b81-444a-9498-1fd961de5853 rw quiet
[    75.134] Build Date: 19 July 2016  05:54:24PM
[    75.134]  
[    75.134] Current version of pixman: 0.34.0
[    75.134] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    75.134] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    75.134] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Dec 28 17:50:23 2016
[    75.134] (==) Using config file: "/etc/X11/xorg.conf"
[    75.134] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    75.135] (==) ServerLayout "X.org Configured"
[    75.135] (**) |-->Screen "Screen0" (0)
[    75.135] (**) |   |-->Monitor "Monitor0"
[    75.135] (**) |   |-->Device "Card0"
[    75.135] (**) |-->Input Device "Mouse0"
[    75.135] (**) |-->Input Device "Keyboard0"
[    75.135] (==) Automatically adding devices
[    75.135] (==) Automatically enabling devices
[    75.135] (==) Automatically adding GPU devices
[    75.135] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    75.135] (WW) The directory "/usr/share/fonts/X11/misc" does not exist.
[    75.135] 	Entry deleted from font path.
[    75.135] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    75.135] 	Entry deleted from font path.
[    75.135] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    75.135] 	Entry deleted from font path.
[    75.135] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    75.135] 	Entry deleted from font path.
[    75.135] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
[    75.135] 	Entry deleted from font path.
[    75.135] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    75.135] 	Entry deleted from font path.
[    75.135] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    75.135] 	Entry deleted from font path.
[    75.135] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[    75.135] 	Entry deleted from font path.
[    75.135] (**) FontPath set to:
	built-ins,
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/100dpi/,
	/usr/share/fonts/75dpi/
[    75.135] (**) ModulePath set to "/usr/lib/xorg/modules"
[    75.135] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[    75.135] (WW) Disabling Mouse0
[    75.135] (WW) Disabling Keyboard0
[    75.135] (II) Loader magic: 0x821d40
[    75.135] (II) Module ABI versions:
[    75.135] 	X.Org ANSI C Emulation: 0.4
[    75.135] 	X.Org Video Driver: 20.0
[    75.135] 	X.Org XInput driver : 22.1
[    75.135] 	X.Org Server Extension : 9.0
[    75.136] (++) using VT number 7

[    75.136] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    75.136] (II) xfree86: Adding drm device (/dev/dri/card0)
[    75.138] (--) PCI:*(0:1:3:0) 102b:0532:1028:02a4 rev 10, Mem @ 0xd9800000/8388608, 0xde7fc000/16384, 0xde800000/8388608, BIOS @ 0x????????/131072
[    75.138] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    75.138] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[    75.138] (II) LoadModule: "glx"
[    75.138] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    75.139] (II) Module glx: vendor="X.Org Foundation"
[    75.139] 	compiled for 1.18.4, module version = 1.0.0
[    75.139] 	ABI class: X.Org Server Extension, version 9.0
[    75.139] (==) AIGLX enabled
[    75.139] (II) LoadModule: "mga"
[    75.139] (WW) Warning, couldn't open module mga
[    75.139] (II) UnloadModule: "mga"
[    75.139] (II) Unloading mga
[    75.139] (EE) Failed to load module "mga" (module does not exist, 0)
[    75.139] (EE) No drivers available.
[    75.139] (EE) 
Fatal server error:
[    75.139] (EE) no screens found(EE) 
[    75.139] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[    75.139] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    75.139] (EE) 

Xorg.0.log with OldDmaInit:

[   154.590] 
X.Org X Server 1.18.4
Release Date: 2016-07-19
[   154.590] X Protocol Version 11, Revision 0
[   154.590] Build Operating System: Linux 4.5.4-1-ARCH x86_64 
[   154.590] Current Operating System: Linux jigoku 4.8.13-1-ARCH #1 SMP PREEMPT Fri Dec 9 07:24:34 CET 2016 x86_64
[   154.590] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=ec85d4f3-2b81-444a-9498-1fd961de5853 rw quiet
[   154.590] Build Date: 19 July 2016  05:54:24PM
[   154.590]  
[   154.590] Current version of pixman: 0.34.0
[   154.590] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   154.590] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   154.590] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Dec 28 17:51:43 2016
[   154.590] (==) Using config file: "/etc/X11/xorg.conf"
[   154.590] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   154.590] (==) ServerLayout "X.org Configured"
[   154.590] (**) |-->Screen "Screen0" (0)
[   154.590] (**) |   |-->Monitor "Monitor0"
[   154.590] (**) |   |-->Device "Card0"
[   154.590] (**) |-->Input Device "Mouse0"
[   154.590] (**) |-->Input Device "Keyboard0"
[   154.591] (==) Automatically adding devices
[   154.591] (==) Automatically enabling devices
[   154.591] (==) Automatically adding GPU devices
[   154.591] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   154.591] (WW) The directory "/usr/share/fonts/X11/misc" does not exist.
[   154.591] 	Entry deleted from font path.
[   154.591] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[   154.591] 	Entry deleted from font path.
[   154.591] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[   154.591] 	Entry deleted from font path.
[   154.591] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[   154.591] 	Entry deleted from font path.
[   154.591] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
[   154.591] 	Entry deleted from font path.
[   154.591] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[   154.591] 	Entry deleted from font path.
[   154.591] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[   154.591] 	Entry deleted from font path.
[   154.591] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   154.591] 	Entry deleted from font path.
[   154.591] (**) FontPath set to:
	built-ins,
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/100dpi/,
	/usr/share/fonts/75dpi/
[   154.591] (**) ModulePath set to "/usr/lib/xorg/modules"
[   154.591] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   154.591] (WW) Disabling Mouse0
[   154.591] (WW) Disabling Keyboard0
[   154.591] (II) Loader magic: 0x821d40
[   154.591] (II) Module ABI versions:
[   154.591] 	X.Org ANSI C Emulation: 0.4
[   154.591] 	X.Org Video Driver: 20.0
[   154.591] 	X.Org XInput driver : 22.1
[   154.591] 	X.Org Server Extension : 9.0
[   154.591] (++) using VT number 7

[   154.591] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   154.592] (II) xfree86: Adding drm device (/dev/dri/card0)
[   154.594] (--) PCI:*(0:1:3:0) 102b:0532:1028:02a4 rev 10, Mem @ 0xd9800000/8388608, 0xde7fc000/16384, 0xde800000/8388608, BIOS @ 0x????????/131072
[   154.594] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   154.594] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[   154.594] (II) LoadModule: "glx"
[   154.594] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   154.595] (II) Module glx: vendor="X.Org Foundation"
[   154.595] 	compiled for 1.18.4, module version = 1.0.0
[   154.595] 	ABI class: X.Org Server Extension, version 9.0
[   154.595] (==) AIGLX enabled
[   154.595] (II) LoadModule: "mga"
[   154.595] (WW) Warning, couldn't open module mga
[   154.595] (II) UnloadModule: "mga"
[   154.595] (II) Unloading mga
[   154.595] (EE) Failed to load module "mga" (module does not exist, 0)
[   154.595] (EE) No drivers available.
[   154.595] (EE) 
Fatal server error:
[   154.595] (EE) no screens found(EE) 
[   154.595] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   154.595] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   154.595] (EE) 

The fun part is that starting tomorrow I'll be on vacation until Genuary 8th, and this is going to haunt my nights! XD
Any kind of help to solve this matter is kindly appreciated, as I really have no idea on what to do big_smile

Offline

#2 2016-12-28 16:37:29

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,928

Re: Arch, Matrox and mga.

You need xf86-video-mga, but that was removed from repos, https://www.archlinux.org/news/xorg-ser … available/ .

It looks like that package was never migrated to AUR 4, but you can find the most recent version here : https://github.com/aur-archive/xf86-video-mga  .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2016-12-28 16:39:44

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: Arch, Matrox and mga.

The mga module mentioned in those logs is provided by the xf86-video-mga package. The problem is, Arch doesn't have this package anymore. It's not even in AUR. So you'll need to write a PKGBUILD yourself or compile the driver manually.

Edit: Lone_Wolf was faster smile. He even found a PKGBUILD, nice! However, the version compiled by that PKGBUILD may not work with modern versions of xorg-server anymore. It will definitely not work with xorg-server-1.19, you'll need the git version of xf86-video-mga for that.

Last edited by Gusar (2016-12-28 16:44:05)

Offline

#4 2016-12-28 16:52:08

soulsuke
Member
Registered: 2016-12-28
Posts: 6

Re: Arch, Matrox and mga.

...That explains a lot! Many, many thanks!
Now Xorg starts correctly, and it's way more responsive! I can't believe I've missed something like that, i feel so silly! tongue

Offline

Board footer

Powered by FluxBB