diff options
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | lib/Xconfig/main.pm | 10 |
2 files changed, 10 insertions, 3 deletions
@@ -1,3 +1,6 @@ +- harddrake: configure default resolution (and background) even if card + configuration fails (useful if vbox video driver is not available) + Version 0.94 - 20 April 2011 - disable debug output of display_driver_helper by default diff --git a/lib/Xconfig/main.pm b/lib/Xconfig/main.pm index 1ba965d..0a63a54 100644 --- a/lib/Xconfig/main.pm +++ b/lib/Xconfig/main.pm @@ -50,9 +50,13 @@ sub configure_everything_auto_install { my $X = {}; $X->{monitors} = Xconfig::monitor::configure_auto_install($raw_X, $old_X) or return; $options->{VideoRam_probed} = $X->{monitors}[0]{VideoRam_probed}; - $X->{card} = Xconfig::card::configure_auto_install($raw_X, $do_pkgs, $old_X, $options) or return; - Xconfig::screen::configure($raw_X) or return; - $X->{resolutions} = Xconfig::resolution_and_depth::configure_auto_install($raw_X, $X->{card}, $X->{monitors}, $old_X); + $X->{card} = Xconfig::card::configure_auto_install($raw_X, $do_pkgs, $old_X, $options); + my $configured = $X->{card} && Xconfig::screen::configure($raw_X); + + #- still try to configure screen and resolution (to set default background) + #- if card configuration failed (for example if best driver is not available) + $X->{resolutions} = Xconfig::resolution_and_depth::configure_auto_install($raw_X, $X->{card} ||{}, $X->{monitors}, $old_X); + return if !$configured; my $action = &write($raw_X, $X, $options->{skip_fb_setup}); |