You are not logged in.

#1 2006-09-10 18:16:23

slackhack
Member
Registered: 2004-06-30
Posts: 738

upgrading X totally broke my video setup

i'm using matrox G450, which was problematic even before, but i've had it mostly working for the last year at least with some hacks from the matrox site. now with the upgrade X fails entirely and i get these messages:

(EE) module ABI major version (0) doesn't match the server's version (1)
(EE) MGA: failed to load module "mga_hal" (module requirement mismatch, 0)

i have no idea how to fix that. for now i'm using the vesa driver, but it redraws the entire screen in slow motion every time i move a window or scroll a web page, making it almost unusable. i guess i'll have to switch back to my radeon card and configure that if i get some time this week, but in the meantime i'm screwed. can anyone help, or let me know how to roll back to the previous X version. thanks


>> edit: it would be nice if the arch xf86-video-mga drivers at least worked in 2D. can anyone see what i'm doing wrong, or post their xorg.conf for me to take a look at? thanks

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "VGAClocks"                 # [<bool>]
        #Option     "KGAUniversal"              # [<bool>]
        Identifier  "Card0"
#        Driver      "vesa"

       Driver      "mga"
#       Identifier  "** Matrox Graphics Generic         [mga]"
       VendorName  "Matrox Graphics, Inc."
       BoardName   "G400/G450"
       BusID       "PCI:2:0:0"

#       Option  "MGASDRAM"      "true"
       VideoRam        32768

       Option      "AGPMode"   "4"
       Option      "NoHal"  "true"
       Option      "OldDmaInit" "true"
#       Option      "DigitalScreen1"    "yes"

Offline

#2 2006-09-10 18:33:36

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

Re: upgrading X totally broke my video setup

Hi!

xorg 7.1 breaks compatibility with all old drivers. You need to upgrade.

Offline

#3 2006-09-10 18:52:20

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: upgrading X totally broke my video setup

um, i am upgraded, that's what broke everything. tongue do you mean upgrade from testing or something? :?:

[25] root:/home/sero # X -version

X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
....

[26] root:/home/sero # pacman -S xf86-video-mga
:: xf86-video-mga-1.4.1-2: is up to date.  Upgrade anyway? [Y/n] n

[27] root:/home/sero # pacman -S xf86-video-vga
:: xf86-video-vga-4.1.0-1: is up to date.  Upgrade anyway? [Y/n] n

[28] root:/home/sero # pacman -S xf86-video-vesa
:: xf86-video-vesa-1.2.1-1: is up to date.  Upgrade anyway? [Y/n] n

Offline

#4 2006-09-10 19:26:52

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

Re: upgrading X totally broke my video setup

You need to upgrade both of xorg-server and all its drivers, including the mga driver. Maybe the newer version is not yet in repository??

slackhack wrote:

um, i am upgraded, that's what broke everything. tongue do you mean upgrade from testing or something? :?:

[25] root:/home/sero # X -version

X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
....

[26] root:/home/sero # pacman -S xf86-video-mga
:: xf86-video-mga-1.4.1-2: is up to date.  Upgrade anyway? [Y/n] n

[27] root:/home/sero # pacman -S xf86-video-vga
:: xf86-video-vga-4.1.0-1: is up to date.  Upgrade anyway? [Y/n] n

[28] root:/home/sero # pacman -S xf86-video-vesa
:: xf86-video-vesa-1.2.1-1: is up to date.  Upgrade anyway? [Y/n] n

Offline

#5 2006-09-10 19:47:14

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: upgrading X totally broke my video setup

i have xorg-server 1.1.1-2, which is the 09-09 version, supposedly up to date. all my xf86-video packages are the 09-09 versions.

or are you telling me the arch devs would put packages in the current repo that will break your system because there are other packages that aren't ready yet? if so, that would be a really dicky thing to do, i find it hard to believe they would do that.

anyway, i tried installing some matrox drivers from matrox, and now vesa won't even load. worse of all, everytime i try to startx and it goes to a black screen, i can't get back to a console and have to ctrl+alt+del. mad  something is very wrong here, does anyone have the mga drivers working?

Offline

#6 2006-09-10 21:11:59

campylobacter
Member
From: Austria
Registered: 2004-04-12
Posts: 60
Website

Re: upgrading X totally broke my video setup

I have the same problem here. We need a new patched "mga_drv.so" file. I´m not the Linux expert, so i downgraded the x-server an the keyboard/mouse driver.

The Arch mga dirver is ok, but don´t work with DVI.

Offline

#7 2006-09-10 21:36:01

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: upgrading X totally broke my video setup

To get mga_hal working with X.Org, you can do two things:
- contact matrox for an updated mga_hal.o/so
- make a mix of xf86-video-mga and the non-free mga "sourcecode" available from matrox and compile your own mga_hal.so.

I did option 2 once, but it's quite hard to do. Our xf86-video-mga is prepared to load a mga_hal module whenever possible, but as long as there's no module available, you're out of DVI and TV-Out sad

I would distribute a module if I was allowed, but unfortunately the matrox license says I can't distribute anything, not even a compiled binary from their unmodified sourcecode (and not even the sourcecode itself).

Offline

#8 2006-09-11 03:37:15

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

Re: upgrading X totally broke my video setup

You can check the new drivers' versions here => http://ftp.x.org/pub/X11R7.1/src/driver/

It seems your mga driver version is correct, yet it says ABI incompatible....

Offline

#9 2006-09-11 05:58:57

campylobacter
Member
From: Austria
Registered: 2004-04-12
Posts: 60
Website

Re: upgrading X totally broke my video setup

For x.org 7.0 i used the install script from http://www.tuxx-home.at/projects/mga/
It don´t works on ArchLinux, but on Kubuntu,...
I think the Script would´n work with the new x.org Version, and i have also only ArchLinux installed in my PC.

Offline

#10 2006-09-11 07:20:13

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: upgrading X totally broke my video setup

To get mga_hal working with Xorg 7.1:

get xf86-video-mga from abs, build it, don't clean it

get the matrox source, then grab the mgaHALLib.a file from the matrox source from the 7.0.0 directory (the hal module is the same for all versions last time I checked). Place the file in the src/ directory of xf86-video-mga (the source, not the abs dir).

Then run this command from the src dir in the source:

gcc -o mga_hal_drv.so -shared  -Wl,-Bstatic -lgcc -Wl,-Bdynamic   .libs/mga_halmod.o .libs/client1x.o HALlib/mgaHALlib.a

Copy the resuling mga_hal_drv.so to your xorg driver directory and try to start X. I haven't tested this, as I don't have a matrox in my system anymore, but if it fails with some modules it couldn't find, you should just link in some more .o files from .libs/

Offline

#11 2006-09-11 16:18:58

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: upgrading X totally broke my video setup

i used the tuxx-at-home script for 7.0.0, that worked on arch for me. the new one won't install with 7.1.1 yet, though. before there was the script i tried building it myself as JGC described, but apparently i'm not as skilled as he and i couldn't get it to work. anyway, it was a major hassle, and i'd rather just use the vesa driver than go through that again, even though this time there's the slow screen redrawing issue.

i think i'm probably just going to end up putting back in my old radeon 8500 rather than deal with this all the time. i like the matrox better because the image quality is really nice and it has no fan, but with a cutting edge distro like arch, matrox is just a major headache over and over again. every time X upgrades it breaks the drivers, and the arch mga drivers don't seem to work with DVI for me. sad

Offline

Board footer

Powered by FluxBB