From 61a3bbd8833d07966525103d3dea878ed97cf784 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 5 Sep 2001 11:05:28 +0000 Subject: also try EISA ID to auto-detect the monitor (sometimes the EISA ID is there, but not the [hv]syncrange --- tools/ddcprobe/ddcxinfos.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'tools') 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++){ -- cgit v1.2.1