summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-03-01 20:50:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-03-01 20:50:06 +0000
commit18c20b03508abb92de97d05d40da864841418754 (patch)
treec9cdadd39d62e8a88dbc13f248098f434b77438d /perl-install
parent72643006c4d1c34e29de80917775f5f0088de5c1 (diff)
downloaddrakx-backup-do-not-use-18c20b03508abb92de97d05d40da864841418754.tar
drakx-backup-do-not-use-18c20b03508abb92de97d05d40da864841418754.tar.gz
drakx-backup-do-not-use-18c20b03508abb92de97d05d40da864841418754.tar.bz2
drakx-backup-do-not-use-18c20b03508abb92de97d05d40da864841418754.tar.xz
drakx-backup-do-not-use-18c20b03508abb92de97d05d40da864841418754.zip
give up trying to only add modelines not defined in xorg, otherwise xorg will prefer the modelines we give here (eg: it will use 1024x768@50 whereas it could use 1024x768@60)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/Xconfig/xfree.pm38
1 files changed, 10 insertions, 28 deletions
diff --git a/perl-install/Xconfig/xfree.pm b/perl-install/Xconfig/xfree.pm
index a21f3cff5..f6d6c715b 100644
--- a/perl-install/Xconfig/xfree.pm
+++ b/perl-install/Xconfig/xfree.pm
@@ -303,14 +303,16 @@ sub add_gtf_ModeLines {
my $banner = 'modeline generated by gtf(1) [handled by XFdrake]';
my $res = $resolution->{X} . 'x' . $resolution->{Y};
- my @freqs = difference2(\@Xconfig::xfree::vfreqs, [ split(' ', $Xconfig::xfree::builtin_ModeLines{$res}) ]);
- my @to_add = map {
- my $s = run_program::rooted_get_stdout($::prefix, 'gtf', $resolution->{X}, $resolution->{Y}, $_);
- my ($name, $val) = $s =~ /ModeLine\s*"(.*)"(.*)/i;
- chomp $val;
- $name =~ s/\.00//; #- nicer that way
- { val => qq("${name}"$val), pre_comment => "# $banner\n" };
- } @freqs;
+ my @to_add;
+ if ($resolution2ratio{$res} ne '4/3') {
+ @to_add = map {
+ my $s = run_program::rooted_get_stdout($::prefix, 'gtf', $resolution->{X}, $resolution->{Y}, $_);
+ my ($name, $val) = $s =~ /ModeLine\s*"(.*)"(.*)/i;
+ chomp $val;
+ $name =~ s/\.00//; #- nicer that way
+ { val => qq("${name}"$val), pre_comment => "# $banner\n" };
+ } @Xconfig::xfree::vfreqs;
+ }
$raw_X->set_monitors(map {
@{$_->{ModeLine}} = (
@@ -592,26 +594,6 @@ foreach my $ratio (keys %ratio2resolutions) {
}
}
-our %builtin_ModeLines = (
-#- '640x350' => '85', # vesa
-#- '640x400' => '85', # vesa
-#- '720x400' => '85', # vesa
- '640x480' => '60 72 75 85', # vesa
- '800x600' => '56 60 72 75 85', # vesa
- '832x624' => '75',
- '1024x768' => '43 60 70 75 85', # vesa
- '1152x864' => '75', # vesa
- '1280x960' => '60 85', # vesa
- '1280x1024' => '60 75 85', # vesa
- '1400x1050' => '60 75',
- '1600x1024' => '60',
- '1600x1200' => '60 65 70 75 85', # vesa
- '1792x1344' => '60 75', # vesa
- '1856x1392' => '60 75', # vesa
- '1920x1440' => '60 75' . ' 85', # vesa + extra
- '2048x1536' => '60 75 85',
-);
-
our $default_header = <<'END';
# File generated by XFdrake.