Comment 61 for bug 292214

Revision history for this message
Micah Blake McCurdy (micah-mccurdy) wrote : Re: [Bug 292214] Re: Xinerama broken since intrepid on MGA

Hallo!

I have recently installed Karmic and my g450 no longer works in dual
screen mode. I had an xorg.conf that worked with 8.04, but now it
breaks with errors like unto those above, namely:

(EE) MGA(1): Unable to map BAR 0. Invalid argument (22)

Fatal server error:
AddScreen/ScreenInit failed for driver 1

I notice that Bryce's repository above does not seem to work with
9.10. Has anybody had any success with dual head with any such card on
9.10?

Many thanks,

Micah
On Mon, Sep 21, 2009 at 11:31 PM, Woko <email address hidden> wrote:
> I have a G550 video-card and got the same error message after updating my debian-testing on 14 Sep 2009. To get the Xserver working again, I deleted the '/etc/X11/xorg.conf' and restarted the window-manager. After that, both screens were working again, but showing the same contents.
> While searching for a solution I soon found this thread, but it took me one week of  further investigation to get both screens back working as they done it before the update. Since I have Debian, not Ubuntu, none of the repositories here could help me, so I had to bite the bullet and build the driver from source with the patches from Andy MacLean. For other Debians who are stranded here with the same problem:
>
> 1.Load the source package from: <http://ftp.de.debian.org/debian/pool/main/x/xserver-xorg-video-mga/xserver-xorg-video-mga_1.4.11.dfsg.orig.tar.gz>
> 2.Extract the the file (tar -xzf).
> 3.cd into the directory as root.
> 4.'apt-get install xserver-xorg-dev libdrm-dev x11proto-xf86dri-dev x11proto-gl-dev libgl1-mesa-dev'
> 5.'./configure'
> 6.'make' (to see if the original can be compiled)
> 7.Edit the files 'mga_driver.c' and 'mga.h' on the basis of Andy's third patch. (I don't know if automatic patching would work, because of the different line-numbers in the source).
> 8.'make' (to build the new driver)
> 9.'cp /usr/lib/xorg/modules/drivers/mga_drv.so /usr/lib/xorg/modules/drivers/mga_drv.so.old' (as a precaution)
> 10.'cp src/.libs/mga_drv.so /usr/lib/xorg/modules/drivers' (Attention: the Xserver will automatically restart !!)
> 11. Both screens are working again :-)
>
> Many thanks to  Andy MacLean,
>
> Wolfram
>
> ** Attachment added: "Mga-driver with Andy's patch for debian-squeeze."
>   http://launchpadlibrarian.net/32153149/mga_drv.so
>
> --
> Xinerama broken since intrepid on MGA
> https://bugs.launchpad.net/bugs/292214
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in X.Org X server: Confirmed
> Status in “xserver-xorg-video-mga” package in Ubuntu: Triaged
>
> Bug description:
> Binary package hint: xserver-xorg-video-mga
>
> I have a Matrox G450 dual-head. When I start Xorg with a second screen enabled, it errors with the message:
> MGA(0): Unable to map BAR 0.  Invalid argument (22)
>
> This problem is referenced elsewhere on the internet, so far without a solution:
> https://answers.launchpad.net/ubuntu/+source/xorg/+question/49251
> http://www.linux-club.de/viewtopic.php?f=48&t=97381
>
> If I disable the second screen, it starts up fine (but with the same image on both monitors). I realize Xinerama is deprecated in favor of xrandr but the version of the mga driver in intrepid doesn't seem to support xrandr configuration -- http://wiki.debian.org/XStrikeForce/HowToRandR12 suggests that version 1.9.99 of the mga driver is needed to support randr, and following the directions on that page does not have any effect.
>
> $ lsb_release -rd
> Description:    Ubuntu 8.10
> Release:        8.10
>
> $ apt-cache policy xserver-xorg-video-mga
> xserver-xorg-video-mga:
>  Installed: 1:1.4.9.dfsg-1build1
>  Candidate: 1:1.4.9.dfsg-1build1
>  Version table:
>  *** 1:1.4.9.dfsg-1build1 0
>        500 http://archive.ubuntu.com intrepid/main Packages
>        100 /var/lib/dpkg/status
>
> $ cat /etc/X11/xorg.conf
> Section "Device"
>        Identifier      "MGA[0]"
>        Driver          "mga"
>        BusID           "PCI:1:0:0"
>        Screen          0
> EndSection
>
> Section "Device"
>        Identifier      "MGA[1]"
>        Driver          "mga"
>        BusID           "PCI:1:0:0"
>        Screen          1
> EndSection
>
> Section "Monitor"
>        Identifier      "ViewSonic"
>        Option          "DPMS"
> EndSection
>
> Section "Monitor"
>        Identifier      "Westinghouse"
>        Option          "DPMS"
> EndSection
>
> Section "Screen"
>        Identifier      "Left Screen"
>        Monitor         "ViewSonic"
>        Device          "MGA[0]"
> EndSection
>
> Section "Screen"
>        Identifier      "Right Screen"
>        Monitor         "Westinghouse"
>        Device          "MGA[1]"
> EndSection
>
> Section "ServerLayout"
>        Identifier      "Xinerama"
>        Screen          "Left Screen"
>        Screen          "Right Screen" RightOf "Left Screen"
>        Option          "Xinerama" "on"
> EndSection
>