From owner-freebsd-x11@FreeBSD.ORG Mon Feb 9 19:35:49 2009 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 C51AA1065670 for ; Mon, 9 Feb 2009 19:35:49 +0000 (UTC) (envelope-from oberman@es.net) Received: from postal1.es.net (postal2.es.net [198.128.3.206]) by mx1.freebsd.org (Postfix) with ESMTP id B13DA8FC14 for ; Mon, 9 Feb 2009 19:35:49 +0000 (UTC) (envelope-from oberman@es.net) Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id QVS99848; Mon, 09 Feb 2009 11:35:48 -0800 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 0C26B1CC0B; Mon, 9 Feb 2009 11:35:48 -0800 (PST) To: Warren Block In-reply-to: Your message of "Mon, 09 Feb 2009 12:22:12 MST." Date: Mon, 09 Feb 2009 11:35:47 -0800 From: "Kevin Oberman" Message-Id: <20090209193549.0C26B1CC0B@ptavv.es.net> Cc: freebsd-x11@freebsd.org Subject: Re: Initial RandR set-up 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: Mon, 09 Feb 2009 19:35:50 -0000 > Date: Mon, 9 Feb 2009 12:22:12 -0700 (MST) > From: Warren Block > > On Mon, 9 Feb 2009, Kevin Oberman wrote: > > > In these days of xrandr, is there a good, standard way to do the initial > > set-up of the display? I currently have a script to do "xrandr --output > > VGA2 --right-of VGA1" and, in one case, set the resolution of the second > > display. I'd like to know the best way to kick this off as early as > > possible in the startup of X. > > IMO it's better to set positions and resolutions in xorg.conf directly. > That way it's all in one place. Here's an example: > > Section "Monitor" > Identifier "Monitor0" > VendorName "HWP" > ModelName "2615" > Option "PreferredMode" "1920x1200" > Option "Position" "1024 0" > EndSection > > Section "Monitor" > Identifier "Monitor1" > VendorName "PHL" > ModelName "Philips 150B3" > Option "PreferredMode" "1024x768" > Option "Position" "0 0" > EndSection > > The Position option determines where the monitor is positioned on the > virtual screen. I also manually assign the monitors to outputs on the > video card: > > Section "Device" > Driver "radeon" > VendorName "ATI Technologies Inc" > BoardName "Radeon X1650 Pro" > BusID "PCI:1:0:0" > Option "AccelMethod" "EXA" > # WB: prevent flickering pointer > Option "SWcursor" "True" > Option "Monitor-DVI-0" "Monitor0" > Option "Monitor-DVI-1" "Monitor1" > EndSection > > xrandr shows the correct names of the outputs for those last two lines. > > The Screen section is simple: > > Section "Screen" > Identifier "Screen0" > Device "Card0" > Monitor "Monitor0" > SubSection "Display" > Virtual 2944 1200 > EndSubSection > EndSection > > Since my monitors are side by side, the Virtual size is just the sum of > the monitor widths, and the height is the larger of the two. > > -Warren Block * Rapid City, South Dakota USA > Thanks, Warren. I had missed the "Position" option. I still have to force resolution on one system, though. Looks like one monitor of mine does not give X the correct information as X does not accept 1280x1024 as a mode when I put it in the xorg.conf. I can set it with xrandr, though. The other monitor (they are identical models) works fine with the PreferredMode option. -- 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