From 38f909d3e8a127a0b999d4a870e0a6bacd245dcc Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 19 Jul 2002 23:41:22 +0000 Subject: read monitor's VendorName & ModelName --- perl-install/Xconfig.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/perl-install/Xconfig.pm b/perl-install/Xconfig.pm index d5a4ec8d7..1e867e384 100644 --- a/perl-install/Xconfig.pm +++ b/perl-install/Xconfig.pm @@ -94,6 +94,8 @@ sub getinfoFromXF86Config { } elsif (/^Section "Monitor"/ .. /^EndSection/) { $monitor{hsyncrange} ||= $1 if /^\s*HorizSync\s+(.*)/; $monitor{vsyncrange} ||= $1 if /^\s*VertRefresh\s+(.*)/; + $monitor{VendorName} ||= $1 if /^\s*VendorName\s+"(.*?)"/; + $monitor{ModelName} ||= $1 if /^\s*ModelName\s+"(.*?)"/; $monitor{ModeLines} .= $_ if /^\s*Mode[lL]ine\s+(\S+)\s+(\S+)\s+/; } elsif (my $s = /^Section "Screen"/ .. /^EndSection/) { $card{default_depth} ||= $1 if /^\s*DefaultColorDepth\s+(\d+)/; @@ -126,6 +128,8 @@ sub getinfoFromXF86Config { } elsif (/^Section "Monitor"/ .. /^EndSection/) { $monitor{hsyncrange} ||= $1 if /^\s*HorizSync\s+(.*)/; $monitor{vsyncrange} ||= $1 if /^\s*VertRefresh\s+(.*)/; + $monitor{VendorName} ||= $1 if /^\s*VendorName\s+"(.*?)"/; + $monitor{ModelName} ||= $1 if /^\s*ModelName\s+"(.*?)"/; $monitor{ModeLines_xf3} .= $_ if /^\s*Mode[lL]ine\s+(\S+)\s+(\S+)\s+/; } elsif (my $i = /^Section "Device"/ .. /^EndSection/) { %c = () if $i == 1; -- cgit v1.2.1