I've been using the Matrox HAL drivers ever since I bought my G550's, on a dual and a triple head system. I would really appreciate a "USE" flag for "mga" that would integrate HALlib. The skeleton is in the ebuild now, this ebuild instantiates that change. In addition, there are two inconsistencies in the flags in config/cf that are addressed by the two attached patches. The "assumptions" are that prior patches are valid, and site.def is expressing the actual desired flag settings. Reproducible: Always Steps to Reproduce: 1. USE=mga emerge xfree Actual Results: I get a working xinerama based multihead Matrox G550 setup. Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.4.21-rc4-aa1 i686 AMD Athlon(tm) Processor GENTOO_MIRRORS="http://www.ibiblio.org/gentoo ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.mirrors.pair.com/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/opt/portage/distfiles" PKGDIR="/opt/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts svga ggi java guile X sdl gpm tcpd pam libwww ssl python imlib oggvorbis gnome gtk qt kde motif opengl aalib acl acpi alsa bonobo cdr dga directfb dvd esd ethereal evo fbcon flash gb gd gphoto2 gtk2 gtkhtml imap ipv6 jikes lcms ldap matrox mbox mozilla mysql nas -nls oav odbc pda perl pic postgres ruby samba sasl scanner slp snmp socks5 sse tcltk tetex tiff usb xml" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-mp -O3 -pipe -fomit-frame-pointer -ffast-math -fforce-addr -falign-functions=4" CXXFLAGS="-march=athlon-mp -O3 -pipe -fomit-frame-pointer -ffast-math -fforce-addr -falign-functions=4" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j3" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Created attachment 12821 [details] updated xfree ebuild This is my redo of the current xfree-4.3.0-r3.ebuild
Created attachment 12822 [details, diff] Fix duplicate definition
Created attachment 12823 [details, diff] Fix another double definition
Created attachment 12826 [details] Whoops - goofed up the host.def setup.
Created attachment 12827 [details] Twice I goofed up host.def. Sheesh.
Paul, I'll have a look at this. for future reference, it would be easier if you were to submit diffs instead of the entire ebuild, though :)
Paul, From looking at this, it seems that the HAL stuff, in fact, over-writes the stock xfree mga driver. Is there a way we can either have it be a different name when we build it with xfree? Or, better yet, can we put it into its own separate ebuild?
Hi Seemant, sorry for the delay in response - been pretty swamped lately. I agree, I guess I thought that the "mga" flag would be enough to choose whether you wnated to build with HAL or not - perhaps I should have called the flag "HAL", but it's still experimental so we can always adjust, eh? If I built as a seperate build I suppose it would resemble the drm build, where it re-creates the xfree tree and then builds the modules needed from there? I guess I just thought that it seemed like a lot to go through for two measly modules, and I can't figure why one wouldn't want to pick either "with HAL" or "without HAL" when you originally go through the xfree build. My original thought was "hey, if you've got an mga card you want to use the Matrox mga drivers", but I think I'm gaining a better understanding and perspective of the "open-source" "closed-source" issues now that I'm playing with the newer Matrox cards, and having used an NVidia card for a while. Anywho, I'll be happy to code up to whichever direction you (all, gentoo) prefer. In addition, if you'd like, I'll work up ebuilds for the Parhelia and Millenium P750/P650 according to the way you decide. Thanks again for your input and help! Gio
Paul, take a look at what's going on with the ati gatos drivers on bug #13553. Try to set up the mga HAL stuff to install to /usr/X11R6/lib/modules-extra/mga-hal, then that can be added to XF86Config as a ModulePath. I believe it should be possible to build it independently, as an mga-hal-$version.ebuild or some such.
Paul, any progress on this?
as a warning, the mga driver currently available on matrox' web site is not redistributable. see http://www.matrox.com/mga/support/drivers/files/lnx_41.cfm section 3 makes it pretty clear: "3. You may not provide or disclose the Software to any third party;" i've emailed matrox legal a couple of times about this and haven't heard back yet. there's an upstream bug for the legal issues at https://bugs.freedesktop.org/show_bug.cgi?id=1904
Doesn't particularly matter for Gentoo, as we have ways to just tell the user to fetch it and stick it in distfiles.
What's the status here?
Looks like we're waiting on responses to comments 9 and 10. I'll mark this as NEEDINFO for now.