From owner-freebsd-x11@FreeBSD.ORG Wed Oct 24 19:36:37 2007 Return-Path: Delivered-To: freebsd-x11@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B9EB16A419 for ; Wed, 24 Oct 2007 19:36:37 +0000 (UTC) (envelope-from SRS0=c5331ae6673bf4dc2feda7a444f7bdfc84abe9b8=498=es.net=oberman@es.net) Received: from postal1.es.net (postal1.es.net [IPv6:2001:400:14:3::6]) by mx1.freebsd.org (Postfix) with ESMTP id DE4B313C4B0 for ; Wed, 24 Oct 2007 19:36:36 +0000 (UTC) (envelope-from SRS0=c5331ae6673bf4dc2feda7a444f7bdfc84abe9b8=498=es.net=oberman@es.net) Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP (SSL) id DDI27933; Wed, 24 Oct 2007 12:36:33 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 1788945010; Wed, 24 Oct 2007 12:36:33 -0700 (PDT) To: Warren Block In-Reply-To: Your message of "Tue, 23 Oct 2007 17:17:31 MDT." <20071023164517.U96405@wonkity.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1193254593_98848P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 24 Oct 2007 12:36:33 -0700 From: "Kevin Oberman" Message-Id: <20071024193633.1788945010@ptavv.es.net> X-Sender-IP: 198.128.4.29 X-Sender-Domain: es.net X-Recipent: ;; X-Sender: X-To_Name: Warren Block X-To_Domain: wonkity.com X-To: Warren Block X-To_Email: wblock@wonkity.com X-To_Alias: wblock Cc: freebsd-x11@FreeBSD.org Subject: Re: ports/116851: x11-drivers/xf86-video-mga - Xorg 7.3 mga driver fails to read video BIOS (G450 dual-VGA) X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2007 19:36:37 -0000 --==_Exmh_1193254593_98848P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Date: Tue, 23 Oct 2007 17:17:31 -0600 (MDT) > From: Warren Block > > On Tue, 23 Oct 2007, Kevin Oberman wrote: > > > > I installed your patch and I no longer get errors in the Xorg.0.log > > file, but I still have problems. > > > > I now have two displays, but the right display only runs at 1024x768 > > with the left runs at 1280x1024. > > What should it be? I have found the problem, but not the solution. I just looked at the logs more carefully and found the following (which I think should have been tagged as WW): (II) MGA(0): Output VGA1 using monitor section Monitor0 (**) MGA(0): Option "Position" "1024 0" (II) MGA(0): Output VGA2 has no monitor section And the configuration has no reference to "Monitor1". I tried adding "Monitor1" to the Screen section, but that failed and left both monitors at 640x480 (ouch). Can anyone provide a clue as to how to get both monitors configured? Studying the xorg.conf man page has not made anything obvious to me. > > The Position option in each monitor is supposed to define which part of > the big virtual bitmap that monitor displays. But it depends on the > size of the virtual bitmap and the resolution of the monitors. > > You can also change things live by running xrandr interactively: > > xrandr --output VGA2 --left-of VGA1 > > or something like that. I haven't experimented with it much. Works perfectly. I can swap screens, but the one on VGA2 remains at 1024x768. xranr --prop only lists: VGA2 connected 1024x768+0+0 0mm x 0mm 1024x768 60.0* 800x600 60.3 640x480 59.9 since it is not associated with any screen. > > There's also a PreferredMode option for the Monitor section which might > help: > > Option "PreferredMode" "1280x1024" I've tried this, but it says that the mode is not found. > > If I try swapping the "Position" lines between monitor 0 and 1, I go > > back to the old mirror effect, with the right screen still at 1024x768. > > > I get the following messages on my vty: > > WB: Reading 128K from /dev/mem address 0xc0000 > > Okay, that's good. > > > info: [drm] Initialized card for AGP DMA > > drm0: [ITHREAD] > > [config/hal] couldn't initialise context: (null) ((null)) > > SESSION_MANAGER=local/pak.es.net:/tmp/.ICE-unix/98465 > > That's odd, and new to me. However, I use xdm and Xfce, so maybe it has > to do with something else. Maybe a securelevel or hal configuration > difference? No config/hal or SESSION_MANAGER in my log. > > > The only warning in the log is: > > (WW) OS did not count PCI devices, guessing wildly > > (WW) MGA(0): Option "Position" is not used > > I don't like the look of the latter error. > > No, I see both of those messages in mine, too. (I only noticed the > "not used" warning today. Maybe it's talking about the 0 0 as > default?) Nope. It saying that because is has no config for VGA2. > > Any ideas? I did edit the "Monitor" sections and tried both with > > explicit sync rates and commenting them out and using DCC. Made no > > difference. I must admit that I am baffled. > > You can make monitor entries in the Device section to set default > positions. Sorry, haven't really tried that, either (well, I tried it a > couple of weeks ago on my T42 notebook with a Radeon--did not go well, > locked up, but needs to be tried again). Thanks again. I'm getting closer. I think I just need a small adjustment to my xorg.conf. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 --==_Exmh_1193254593_98848P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Exmh version 2.5 06/03/2002 iD8DBQFHH57Bkn3rs5h7N1ERAqaSAJ97qkJ1+B9MBYYzwJl9f17V1newJgCgl2A6 3JabHt49Pb694pQbS7BWzOw= =xdVi -----END PGP SIGNATURE----- --==_Exmh_1193254593_98848P--