summaryrefslogtreecommitdiffstats
path: root/perl-install/Xconfig.pm
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 /perl-install/Xconfig.pm
parent50676c46842a31f58293e416665bc3f94ca84a53 (diff)
downloaddrakx-backup-do-not-use-61a3bbd8833d07966525103d3dea878ed97cf784.tar
drakx-backup-do-not-use-61a3bbd8833d07966525103d3dea878ed97cf784.tar.gz
drakx-backup-do-not-use-61a3bbd8833d07966525103d3dea878ed97cf784.tar.bz2
drakx-backup-do-not-use-61a3bbd8833d07966525103d3dea878ed97cf784.tar.xz
drakx-backup-do-not-use-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 'perl-install/Xconfig.pm')
-rw-r--r--perl-install/Xconfig.pm5
1 files changed, 3 insertions, 2 deletions
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;
}