[gentoo-user] Re: Re: big fonts after Xorg update

2009-10-19 Thread Thorsten Kampe
* Paul Hartman (Mon, 19 Oct 2009 15:38:12 -0500)
 
 On Mon, Oct 19, 2009 at 3:18 PM, Thorsten Kampe
 thors...@thorstenkampe.de wrote:

  That was the solution. I checked the resolution before the upgrade with
  xdpyinfo | grep resolution (Tip from the German list): 75 dpi.
  Afterwards: 96 dpi. Setting it to 75 solved the issue.
 
  I'd still like to know what exactly changed and if 75 or 96 is the
  correct value. Nevertheless, I have Xorg server 1.6 running and it
  looks fine.
 
 Divide your screen resolution (pixels) by its visible area (inches) to
 get DPI. For example my monitor screen is 16 inches wide and 12 inches
 tall and I use 1600x1200 resolution. That is 100dpi. In my system this
 is autodetected when xorg starts (maybe the nvidia drivers do it?).

This is a VMware virtual machine using a virtual monitor on a physical 
machine with two physical monitors. I'm not sure whether calculating DPI 
that way would lead to meaningfull results for the virtual machine. This 
whole hard setting of DPI for a monitor seems anachronistic to me.

Thorsten




Re: [gentoo-user] Re: Re: big fonts after Xorg update

2009-10-19 Thread Paul Hartman
On Mon, Oct 19, 2009 at 3:47 PM, Thorsten Kampe
thors...@thorstenkampe.de wrote:
 * Paul Hartman (Mon, 19 Oct 2009 15:38:12 -0500)

 On Mon, Oct 19, 2009 at 3:18 PM, Thorsten Kampe
 thors...@thorstenkampe.de wrote:

  That was the solution. I checked the resolution before the upgrade with
  xdpyinfo | grep resolution (Tip from the German list): 75 dpi.
  Afterwards: 96 dpi. Setting it to 75 solved the issue.
 
  I'd still like to know what exactly changed and if 75 or 96 is the
  correct value. Nevertheless, I have Xorg server 1.6 running and it
  looks fine.

 Divide your screen resolution (pixels) by its visible area (inches) to
 get DPI. For example my monitor screen is 16 inches wide and 12 inches
 tall and I use 1600x1200 resolution. That is 100dpi. In my system this
 is autodetected when xorg starts (maybe the nvidia drivers do it?).

 This is a VMware virtual machine using a virtual monitor on a physical
 machine with two physical monitors. I'm not sure whether calculating DPI
 that way would lead to meaningfull results for the virtual machine. This
 whole hard setting of DPI for a monitor seems anachronistic to me.

I think the DPI of the monitor would still be valid in the vmware
window, just set it to that of your physical monitor and I think it
should be the same. The size of 1 pixel in the vmware window should be
the same as the size of 1 pixel in your monitor normally. If your two
monitors are not the same DPI then things could be complicated though.
I don't use multi-monitors so I'm unfamiliar with how that would work.

In my Xorg.0.log I see these lines among others from the Nvidia driver
initialization:

(II) NVIDIA(0): Virtual screen size determined to be 2048 x 1152
(--) NVIDIA(0): DPI set to (101, 100); computed from UseEdidDpi X config
(--) NVIDIA(0): option

Not sure how it works for other video drivers. On this one, at least,
the DPI is set automatically.