<quote who="[EMAIL PROTECTED]">

> Is there a command that tells you the dimensions of your monitor in
> pixels.
> 
> I've asked around and received some extraordinary responses, including
> 
> 1. Of course not, what a fatuous question.

That person was clearly smoking crack.

> 2. Dunno, the dimensions are a function of the refresh rate.

Sort of.

> 3. Dunno, but it can't be a constant, because I read somewhere that the
> pixels can be stretched.

Well...

So, most monitors can display a rather large range of pixel resolutions, but
LCD displays in particular have "native" resolutions. For instance, my Dell
24" thingy does 1920x1200, my laptop does 1280x800 and my TV does 1920x1080.
You can generally query the LCD to get its native resolution and get a good
answer.

CRTs have "optimal" resolutions, but because they don't have pixels
physically defined in the hardware, they can display numerous resolutions
nicely.

If you're wondering what pixel resolution X is running at, run:

  $ xdpyinfo | grep dimensions
    dimensions:    1920x1200 pixels (261x176 millimeters)

(Stupid monitor reports the wrong physical size... Oh well.)

If you want to query what your monitor can do, noting that sometimes slack
vendors don't put the right information in their hardware, you can do the
following on Ubuntu (replace 'intel' with the X driver appropriate for your
hardware):

  $ sudo xresprobe intel
  id: DELL 2405FPW
  res: 1920x1200 1680x1680 1600x1200 1280x1024 1152x864 1024x768 800x600
    720x400 640x480
  freq: 30-81 56-76
  disptype: lcd/lvds

Thanks,

- Jeff

-- 
linux.conf.au 2008: Melbourne, Australia        http://lca2008.linux.org.au/
 
      "I don't want the world, I just want your half." - They Might Be
                               Giants, Ana Ng
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to