diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-09-21 11:28:31 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-09-21 11:28:31 +0000 |
commit | e74c160a2fbab366c8caac0af98244b6501dd19c (patch) | |
tree | 53680f2d1147391b26baa0394c68bf34c4b1a6b1 | |
parent | 395d8e3576a4d4357d456095397074b62434c7df (diff) | |
download | drakx-kbd-mouse-x11-e74c160a2fbab366c8caac0af98244b6501dd19c.tar drakx-kbd-mouse-x11-e74c160a2fbab366c8caac0af98244b6501dd19c.tar.gz drakx-kbd-mouse-x11-e74c160a2fbab366c8caac0af98244b6501dd19c.tar.bz2 drakx-kbd-mouse-x11-e74c160a2fbab366c8caac0af98244b6501dd19c.tar.xz drakx-kbd-mouse-x11-e74c160a2fbab366c8caac0af98244b6501dd19c.zip |
unload drivers loaded by monitor-probe-using-X (fix fglrx usage when harddrake probes using X and loads radeon driver)
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | lib/Xconfig/monitor.pm | 8 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,6 @@ +- unload drivers loaded by monitor-probe-using-X + (fix fglrx usage when harddrake probes using X and loads radeon driver) + Version 0.28 - 20 September 2007, by Pascal "Pixel" Rigaux - when using evdev for mice, ensure it doesn't match a keyboard diff --git a/lib/Xconfig/monitor.pm b/lib/Xconfig/monitor.pm index 6d1e851..a05d5ee 100644 --- a/lib/Xconfig/monitor.pm +++ b/lib/Xconfig/monitor.pm @@ -257,8 +257,12 @@ sub probe_using_X { $cards[0]{Driver}; } or return; - my $resolution = run_program::rooted_get_stdout($::prefix, 'monitor-probe-using-X', $card_Driver) or return; - generic_flat_panel(chomp_($resolution)); + require modules; + my @old_modules = modules::loaded_modules(); + my $resolution = run_program::rooted_get_stdout($::prefix, 'monitor-probe-using-X', $card_Driver); + modules::unload(difference2([ modules::loaded_modules() ], \@old_modules)); + + $resolution && generic_flat_panel(chomp_($resolution)); } sub probe_DMI() { |