[LUG.ro] [LUGRO]: Cambiar la resolucion del X

Martin C lugro@lugro.org.ar
Thu, 10 Jul 2003 12:50:41 -0700 (PDT)


--0-1385095864-1057866641=:39175
Content-Type: text/plain; charset=us-ascii
Content-Id: 
Content-Disposition: inline

Los otros días hablaban de esto, por ahi les sirve....

Chaus...

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
--0-1385095864-1057866641=:39175
Content-Type: message/rfc822

X-Apparently-To: forolinux@yahoo.com via 216.136.224.69; 10 Jul 2003 11:37:22 -0700 (PDT)
Return-Path: <owner-tlug@ss.org>
Received: from 206.108.5.1  (EHLO lethe.ss.org) (206.108.5.1)
  by mta116.mail.scd.yahoo.com with SMTP; 10 Jul 2003 11:37:14 -0700 (PDT)
Received: by lethe.ss.org (Postfix)
	id 98ED57881; Thu, 10 Jul 2003 14:36:13 -0400 (EDT)
Delivered-To: tlug-real@lethe.ss.org
Received: by lethe.ss.org (Postfix, from userid 54)
	id 3A2217952; Thu, 10 Jul 2003 14:36:13 -0400 (EDT)
Delivered-To: tlug@ss.org
Subject: Re: [TLUG]: Easily switching X server resolutions
From: Paul Mora <paulmora@sympatico.ca>
To: tlug@ss.org
In-Reply-To: <20030710174519.GB14079@csclub.uwaterloo.ca>
References: <3F0CD836.7050402@truxtar.com>
	 <20030710174519.GB14079@csclub.uwaterloo.ca>
Content-Type: text/plain
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.4.0 
Date: 10 Jul 2003 14:36:09 -0400
Content-Transfer-Encoding: 7bit
Sender: owner-tlug@ss.org
Precedence: list
Reply-To: tlug@ss.org
Content-Length: 1347


> > I am currently running Redhat 9.0 with the graphical login and KDE and 
> > Fluxbox as my desktops.  I have this old Dos game that I am running 
> > under Dosemu.  It runs under 640x480 resolution, so I want to configure 
> > my X server to run in 640x480 to be able to use the game full-screen. 
> > My normal resolution is 1024x768.  Right now I have simply created 2 
> > different XF86Config files (XF86Config.lowres, XF86Config.hires) using 
> > redhat-config-xfree86, and have to manually su root, copy the right file 
> > over the original XF86Config, and then restart the X-server.  I then use 
> > the "Failsafe session" option to start a simple WM desktop.
> > 
> > My question is:  is there an easier way to change the resolution?  is 
> > there some user-specific file that can be used to control the resolution 
> > that doesn't require su root?  should I just write a script to swap the 
> > files automatically?

Red Hat 9 comes with XFree86 v4.3.  This version includes a new X
extension called XRANDR, which allows dynamic screen resolution
resizing, without exiting X, or having different config files.

To use it, first configure your X server config file to use the normal
(high) resolution.  Then you can use the "xrandr" command to see what
resolutions are supported, and to switch between them.

For example, on my machine:
[paul@stimpy paul]$ xrandr
 SZ:    Pixels          Physical       Refresh
*0   1280 x 960    ( 433mm x 325mm )  *60
 1   1152 x 864    ( 433mm x 325mm )   85   75
 2   1024 x 768    ( 433mm x 325mm )   84   75   70   60
 3    800 x 600    ( 433mm x 325mm )   85   75   72   65   60   56
 4    640 x 480    ( 433mm x 325mm )   85   75   72   60
 5    832 x 624    ( 433mm x 325mm )   74
 6    700 x 525    ( 433mm x 325mm )   74   70   59
 7    640 x 512    ( 433mm x 325mm )   75   60
 8    720 x 400    ( 433mm x 325mm )   85
 9    640 x 400    ( 433mm x 325mm )   85
 10   576 x 432    ( 433mm x 325mm )   85   75
 11   640 x 350    ( 433mm x 325mm )   85
 12   512 x 384    ( 433mm x 325mm )   84   75   70   60
 13   416 x 312    ( 433mm x 325mm )   74
 14   400 x 300    ( 433mm x 325mm )   85   75   72   60   56
 15   320 x 240    ( 433mm x 325mm )   85   75   72   60
 16   320 x 200    ( 433mm x 325mm )   85
 17   320 x 175    ( 433mm x 325mm )   85
Current rotation - normal
Current reflection - none
Rotations possible - normal
Reflections possible - none

To switch to 640x480:

[paul@stimpy paul]$ xrandr --size 640x480

There currently is no GUI for this, but I suspect that Red Hat will
include one, or write one, for their next release.

pm

-- 
Paul Mora <paulmora@sympatico.ca>

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
--0-1385095864-1057866641=:39175--