diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-09-05 11:05:28 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-09-05 11:05:28 +0000 |
commit | 61a3bbd8833d07966525103d3dea878ed97cf784 (patch) | |
tree | e6278399bdc627921022283da18e286638c274d4 /perl-install/Xconfig.pm | |
parent | 50676c46842a31f58293e416665bc3f94ca84a53 (diff) | |
download | drakx-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 'perl-install/Xconfig.pm')
-rw-r--r-- | perl-install/Xconfig.pm | 5 |
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; } |