summaryrefslogtreecommitdiffstats
path: root/tools/ddcprobe
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-09-05 11:05:28 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-09-05 11:05:28 +0000
commit61a3bbd8833d07966525103d3dea878ed97cf784 (patch)
treee6278399bdc627921022283da18e286638c274d4 /tools/ddcprobe
parent50676c46842a31f58293e416665bc3f94ca84a53 (diff)
downloaddrakx-61a3bbd8833d07966525103d3dea878ed97cf784.tar
drakx-61a3bbd8833d07966525103d3dea878ed97cf784.tar.gz
drakx-61a3bbd8833d07966525103d3dea878ed97cf784.tar.bz2
drakx-61a3bbd8833d07966525103d3dea878ed97cf784.tar.xz
drakx-61a3bbd8833d07966525103d3dea878ed97cf784.zip
also try EISA ID to auto-detect the monitor (sometimes the EISA ID is there, but not the [hv]syncrange
Diffstat (limited to 'tools/ddcprobe')
-rw-r--r--tools/ddcprobe/ddcxinfos.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/ddcprobe/ddcxinfos.c b/tools/ddcprobe/ddcxinfos.c
index 439bdc75b..06723746f 100644
--- a/tools/ddcprobe/ddcxinfos.c
+++ b/tools/ddcprobe/ddcxinfos.c
@@ -39,13 +39,18 @@ int main(int argc, char **argv)
vbe_get_edid_ranges(edid, &hmin, &hmax, &vmin, &vmax);
modelines = vbe_get_edid_modelines(edid);
- printf(hmin ? "%d-%d\n" : "\n", hmin, hmax);
- printf(vmin ? "%d-%d\n" : "\n", vmin, vmax);
+ printf(hmin ? "%d-%d kHz HorizSync\n" : "\n", hmin, hmax);
+ printf(vmin ? "%d-%d Hz VertRefresh\n" : "\n", vmin, vmax);
{
+ char manufacturer[4];
double size = sqrt(SQR(edid->max_size_horizontal) +
SQR(edid->max_size_vertical)) / 2.54;
- printf(size ? "%3.2f inches monitor (truly %3.2f')\n" : "\n", size * 1.08, size);
+ manufacturer[0] = edid->manufacturer_name.char1 + 'A' - 1;
+ manufacturer[1] = edid->manufacturer_name.char2 + 'A' - 1;
+ manufacturer[2] = edid->manufacturer_name.char3 + 'A' - 1;
+ manufacturer[3] = '\0';
+ printf(size ? "%3.2f inches monitor (truly %3.2f') EISA ID=%s%04x\n" : "\n", size * 1.08, size, manufacturer, edid->product_code);
}
for(j=0; modelines && (modelines[j].refresh != 0); j++){