I'm running Ubuntu and Gnome, but this should be generally relevant to any system using X11.
I had a look at the source of the Gnome tools that read monitor information. They all use the X RandR (Resize and Rotate) library under the hood to gather monitor information
The xrandr command line tool shows the raw data provided by your monitor
$ xrandr --verbose
Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1280 x 1024
VGA connected 1280x1024+0+0 (0x3c) normal (normal left inverted right
+x axis y axis) 338mm x 270mm
CRTCs: 0 1
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
The EDID_DATA is particularly relevant to us. The read-edid project has utilities that turn the EDID information into something we can use:
$sudo get-edid 2>/dev/null| parse-edid 2>/dev/null| grep ModelName
ModelName "DELL E173FP"
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||