From owner-freebsd-x11@FreeBSD.ORG Thu May 4 18:20:18 2006 Return-Path: X-Original-To: freebsd-x11@hub.freebsd.org Delivered-To: freebsd-x11@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C81416A401 for ; Thu, 4 May 2006 18:20:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82A7143D45 for ; Thu, 4 May 2006 18:20:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k44IKHvp079622 for ; Thu, 4 May 2006 18:20:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k44IKHHI079621; Thu, 4 May 2006 18:20:17 GMT (envelope-from gnats) Date: Thu, 4 May 2006 18:20:17 GMT Message-Id: <200605041820.k44IKHHI079621@freefall.freebsd.org> To: freebsd-x11@FreeBSD.org From: "Louis V. Lambrecht" Cc: Subject: ports/92169: Xorg 6.9, Matrox mga, dri broken (MGAGetBOARDHANDLESize undefined) X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Louis V. Lambrecht" List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 May 2006 18:20:18 -0000 The following reply was made to PR ports/92169; it has been noted by GNATS. From: "Louis V. Lambrecht" To: bug-followup@FreeBSD.org, cmt@burggraben.net Cc: Subject: ports/92169: Xorg 6.9, Matrox mga, dri broken (MGAGetBOARDHANDLESize undefined) Date: Thu, 04 May 2006 20:20:30 +0200 IMHO, this is no bug, the status should be changed to Closed. Reason: static 6.8.2 libaries should be run on Xorg-6.8.2 On the side of Matrox, we are used to download every once binary compiled (rem: Linux) drivers. Matrox support will release the new 6.9/7 xorg drivers assoon as they will be released. That is, xorg release was December last. What are those Matrox drivers? Not more, nor less then for each version of Xorg/Xfree, a shell script replacing the X distribution of mga_drv.so and mga_hal_drv.so Under FreeBSD there is an easy way to compile your own binary drivers. First tip came from: http://forum.matrox.com/mga/viewtopic.php?t=19868 (this is the direct link, but you will have to accept something) then the Andre Albsmeier post. Here is how I dood-it: 1 fetch the latest source from Matrox http://www.matrox.com/mga/support/drivers/files/lnx_43.cfm accept and download the sources 2 Tell the port there is another kid on the block, under /usr/ports/x11-server/xorgserver?scripts edit the configure add these three lines echo "#define UseMatroxHal YES" >> $LOCALDEF echo "#define HaveMatroxHal YES" >> $LOCALDEF echo "#define BuildHalStatic YES" >> $LOCALDEF 3 make patch in the resulting ../work sub-folder, find the mga folder 4 replace the mga folder with the matrox sources 5 make && make install && make clean 6 save a copy of configure, mga_drv.so and mga_hal_drv.so in a safe place. This is your own home made Matrox driver update. This procedure should work for both xorg and xfree as FreeBSD has analog configure scripts. As the resulting mga**.so drivers are not more, nor less, what Matrox delivers in the binary driver updates, and that those binary updates are not more, nor less, the replacement of the distrubution mga_drv.so, both the binaries you just compiled should be usable on any Linux or *BSD (not tested though). Experience told me that, if copying the mga_hal_drv.so in the .../lib/drivers directory does no harm, there is no rule to either use the distribution mga_drv.so or the one you just compiled. Sometimes one works, sometines the other. But this is just a rename of two files. The new binary drivers should work for both 6.9.0 or 7.0 as there is no code change, just modularization and file hierarchy changes.