diff options
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | lib/Xconfig/xfree.pm | 9 |
2 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,6 @@ +- XFdrake: + o never write a ModeLine when using fglrx driver (#30934) + Version 0.39 - 30 November 2007, by Anssi Hannula - keyboarddrake: diff --git a/lib/Xconfig/xfree.pm b/lib/Xconfig/xfree.pm index 1b47902..dfa4d5a 100644 --- a/lib/Xconfig/xfree.pm +++ b/lib/Xconfig/xfree.pm @@ -61,6 +61,7 @@ sub write { #- keep it for old programs still using this name symlink basename($file), "$::prefix/etc/X11/XF86Config"; } + no_ModeLine_on_fglrx($raw_X); #- HACK set_Revision($raw_X); Xconfig::parse::write_XF86Config($raw_X->{raw}, $file); } @@ -431,6 +432,14 @@ sub add_gtf_ModeLines { 1; } +#- HACK for fglrx (#30934) +sub no_ModeLine_on_fglrx { + my ($raw_X) = @_; + + if (get_Driver($raw_X) eq 'fglrx') { + delete $_->{ModeLine} foreach $raw_X->get_Sections('Monitor'); + } +} ################################################################################ # screens ###################################################################### |