[RndTbl] Monitor detection

Scott Balneaves sbalneav at legalaid.mb.ca
Wed Jul 11 13:05:05 CDT 2007


John Lange wrote:
> I know someone mentioned this at a distant past MUUG meeting; what is
> the command line tool that will query the attached monitor for its
> settings? I believe this is called DDC?

If you're looking for the low level bit, I think read-edid is what you're
looking for.

However, if you're on a modern xorg based distro, xrandr is a good one:

oin$ xrandr -q
  SZ:    Pixels          Physical       Refresh
*0   1280 x 1024   ( 342mm x 271mm )  *75   60
  1   1024 x 768    ( 342mm x 271mm )   75   70   60
  2    832 x 624    ( 342mm x 271mm )   75
  3    800 x 600    ( 342mm x 271mm )   75   72   60   56
  4    640 x 480    ( 342mm x 271mm )   75   73   60
  5   1280 x 960    ( 342mm x 271mm )   60
  6   1280 x 800    ( 342mm x 271mm )   60
  7   1152 x 864    ( 342mm x 271mm )   75
  8   1280 x 768    ( 342mm x 271mm )   60
  9   1152 x 768    ( 342mm x 271mm )   55
  10   416 x 312    ( 342mm x 271mm )   75
  11   400 x 300    ( 342mm x 271mm )   75   72   60
Current rotation - normal
Current reflection - none
Rotations possible - normal
Reflections possible - none

xrandr will allow you to do all sorts of cool things.  If it's an
intel chipset, you can switch monitors, etc etc etc.

Scott

-- 
Scott L. Balneaves | "Eternity is a very long time,
Systems Department |  especially towards the end."
Legal Aid Manitoba |    -- Woody Allen


More information about the Roundtable mailing list