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 --- perl-install/Xconfig.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'perl-install/Xconfig.pm') diff --git a/perl-install/Xconfig.pm b/perl-install/Xconfig.pm index 836fa27c5..fac946783 100644 --- a/perl-install/Xconfig.pm +++ b/perl-install/Xconfig.pm @@ -207,9 +207,10 @@ sub getinfoFromDDC { } my ($h, $v, $size, @m) = @l; - $O->{hsyncrange} ||= chomp_($h); - $O->{vsyncrange} ||= chomp_($v); + $O->{hsyncrange} ||= $h =~ /^(\S*)/; + $O->{vsyncrange} ||= $v =~ /^(\S*)/; $O->{size} ||= to_float($size); + $O->{EISA_ID} = $1 if $size =~ /EISA ID: (\S*)/; $O->{modelines} ||= join '', @m; $o; } -- cgit v1.2.1