[ltp] XRandR

Marius Gedminas linux-thinkpad@linux-thinkpad.org
Fri, 20 Oct 2006 23:38:28 +0300


--fdj2RfSjLxBAspz7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Oct 20, 2006 at 04:13:56PM -0400, Norman Walsh wrote:
> Scanning some recent mail on this list lead me (perhaps mislead me :-)
> to the conclusion that I could use xrandr to change my display
> configuration instead of restarting X.

That's true, but xrandr is somewhat limited in the choices it gives you.
You have to enumerate them all in your Xorg config file in advance, at
least if you use MergedFB.  Specifically, the MetaModes option lists all
possible configurations that you can use with xrandr and/or xvidtune (or
the traditional, but difficult to press on a Thinkpad Ctrl+Alt+KP_Plus/
Ctrl+Alt+KP_Minus combinations).

> I've got a T42p and I run two different configurations almost daily:
>=20
> 1. A "dual monitor" setup when I'm sitting at my desk (I don't have a
>    docking station, it's just my laptop on my desk). At my desk I have
>    a 1600x1200 panel above my LCD, so I get a virtual 1600x2400
>    desktop:
>=20
> Section "Device"
> 	Identifier	"ATI Technologies, Inc. M10 NT [FireGL Mobility T2]"
> 	Driver		"ati"
> 	BusID		"PCI:1:0:0"
> 	# ndw
> 	Option		"MonitorLayout"	"LVDS,CRT"
>         Option		"MergedFB"       "true"
>         Option		"CRT2HSync"      "32-91"
>         Option		"CRT2VRefresh"   "56-76"
>         Option		"CRT2Position"   "Above"
> 	Option		"MetaModes" "1600x1200-1600x1200"
> 	# /ndw
> EndSection
>=20
> 2. A "cloned" setup with only a single 1600x1200 desktop that I use
>    when I carry the laptop somewhere else in the house:

Change the MetaModes option above to say

	Option		"MetaModes" "1600x1200-1600x1200 1600x1200"

xrandr will let you switch between the two setups.

> Before I rebuilt my machine with Ubuntu Edgy Eft, I had a third config
> for presentations that was 1600x1200 on my LCD and 1024x768 on the
> external port.

That would probably be

	Option		"MetaModes" "1600x1200-1600x1200 1600x1200 1600x1200-1024x768"

You could also add just a 1024x768 clone mode to the list, in case you
want to see the same 1024x768 picture on your LCD as on your projector:

	Option		"MetaModes" "1600x1200-1600x1200 1600x1200 1600x1200-1024x768 1024=
x768"

I think you get the idea by now.  :-)

HTH,
Marius Gedminas
--=20
If "con" is the opposite of "pro", then what is the opposite of progress?

--fdj2RfSjLxBAspz7
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFFOTPEkVdEXeem148RApkAAJ9GywykIQx1JaohoG3Cz91tLzTmPwCeMkRE
ylBTryo2BrbC2PRWgLVrX5s=
=mBch
-----END PGP SIGNATURE-----

--fdj2RfSjLxBAspz7--