POV-Ray : Newsgroups : povray.unix : A question about X Server Time
31 Oct 2024 14:09:30 EDT (-0400)
  A question about X (Message 1 to 5 of 5)  
From: Peter Popov
Subject: A question about X
Date: 17 Jul 2001 07:39:20
Message: <2m88lt4mnm78ndsvmmah46g3mjlpaq5pcg@4ax.com>
Anyone here working under X? If so, can you tell me how to change the
screen physical resolution (DPI)? Right now I am working at 1024x768
on a 14" monitor. X supposes a resolution of 75x75 DPI (screen size of
35x26 cm, approx.), while it is in fact 100 DPI (26x19 cm). How do I
change it? man xrdb mentions the X_RESOLUTION and Y+RESOLUTION
properties of the root window, but how do I access those?


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Adrien Beau
Subject: Re: A question about X
Date: 17 Jul 2001 08:15:16
Message: <3B542C4B.8F2559D3@sycomore.fr>
I've done that. For the exact same reasons.

Using XFree 3.x, I had to put it as a command-line argument
to the X Server (-dpi 100). I had a lot of trouble to find
in which file to put this (the X startup procedure make use
of several nested scripts), and in fact, I don't remember!

Hope's not lost, however, since I've kept a backup of
*that* file before upgrading to Slackware 8. So, you'll
have to wait until I get back home and check.

Meanwhile, you can use it manually. Try:

	startx -- -dpi 100

Using XFree 4.x and a recent monitor, everything is
automatic! The monitor is able to tell the X server
its physical dimensions, and the server computes
the value. That's cool.  :-)

-- 
Adrien Beau - adr### [at] freefr - http://adrien.beau.free.fr
 Mes propos n'engagent que moi et en aucun cas mes employeurs


Post a reply to this message

From: Remco Poelstra
Subject: Re: A question about X
Date: 17 Jul 2001 14:56:16
Message: <3B54A7A4.8000903@home.nl>
Adrien Beau wrote:

> I've done that. For the exact same reasons.
> 
> Using XFree 3.x, I had to put it as a command-line argument
> to the X Server (-dpi 100). I had a lot of trouble to find
> in which file to put this (the X startup procedure make use
> of several nested scripts), and in fact, I don't remember!
> 
> Hope's not lost, however, since I've kept a backup of
> *that* file before upgrading to Slackware 8. So, you'll
> have to wait until I get back home and check.
> 
> Meanwhile, you can use it manually. Try:
> 
> 	startx -- -dpi 100
> 
> Using XFree 4.x and a recent monitor, everything is
> automatic! The monitor is able to tell the X server
> its physical dimensions, and the server computes
> the value. That's cool.  :-)
> 
> 

But try first if it works, becuase I've a new videocard a new monitor 
and XFree 4, but my XFree 4 refuses to get any information from my 
monitor. There are tools to get those information by hand. Try them if 
it works try to install X4

Remco


Post a reply to this message

From: Ole Laursen
Subject: Re: A question about X
Date: 17 Jul 2001 18:08:52
Message: <m366crdx7l.fsf@bach.composers>
> Using XFree 4.x and a recent monitor, everything is
> automatic! The monitor is able to tell the X server
> its physical dimensions, and the server computes
> the value. That's cool.  :-)

Indeed. However adding the line

        DisplaySize  365        274

where the two numbers are the horizontal and vertical screen size (in
mm), respectively, to the Monitor section should also do the trick. If
the monitor won't tell the size automatically, X defaults to these
values instead (the dpi is calculated automatically).

Of course, with this method you need to measure the view area, but a
soft ruler will easily do the trick. :-)

-- 
Ole Laursen
http://sunsite.dk/olau/


Post a reply to this message

From: Adrien Beau
Subject: Re: A question about X
Date: 18 Jul 2001 05:05:53
Message: <3B555168.98858321@sycomore.fr>
Adrien Beau wrote:
> 
> Using XFree 3.x, I had to put it as a command-line argument
> to the X Server (-dpi 100).

Found it. Edit <x11r6>/lib/xdm/Xservers (where <x11r6> is
a directory that holds configuration about XFree -- it's
not standard at all) and do the following.

There should be a single line like

	:0 local /usr/X11R6/bin/X

Simply add the switch after it, like in

	:0 local /usr/X11R6/bin/X -dpi 102

> Using XFree 4.x and a recent monitor, everything is
> automatic!

Or you can use DisplaySize in your XF86Config,
like Ole said.

-- 
Adrien Beau - adr### [at] freefr - http://adrien.beau.free.fr
 Mes propos n'engagent que moi et en aucun cas mes employeurs


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.