Finding Screen Resolution

Kurt Wall kwall
Mon May 17 11:49:27 PDT 2004


Quoth Condon Thomas A KPWA:
> 
> Folks,
> 
> I've got two laptops running the same piece of software, but they show the
> output GUI window differently.  So I put in some statements to debug why and
> they come up with different numbers of pixels for the size of text (that is
> the same).  The only reason I can figure for this is a screen resolution
> issue.

The dimensions of the screen determine the DPI used to draw the screen:

$ xdpyinfo | egrep 'resol|dimen'
  dimensions:    1280x1024 pixels (339x271 millimeters)
  resolution:    96x96 dots per inch

The physical dimensions are 339x271mm; the logical dimensions are
1280x1024 pixels, which gives an actual screen resolution of 96x96dpi,

Kurt
-- 
How much does it cost to entice a dope-smoking UNIX system guru to
Dayton?
		-- Brian Boyle, UNIX/WORLD's First Annual Salary Survey


More information about the Linux-users mailing list