From e0d820f8065ce4f70d03892239e9598a73f84008 Mon Sep 17 00:00:00 2001 From: Anssi Hannula Date: Sun, 17 Apr 2011 14:33:52 +0000 Subject: service_harddrake: handle adding/removing nokmsboot when switching the driver. --- perl-install/standalone/service_harddrake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'perl-install/standalone/service_harddrake') diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index 80c071897..f9409d01d 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -24,6 +24,7 @@ use harddrake::data; use harddrake::autoconf; use harddrake::sound; use Xconfig::card; +use Xconfig::various; use modules; use Storable qw(store retrieve); @@ -116,10 +117,13 @@ sub switch_x_driver { log::explanations("would switch X.org driver from '$old_driver' to '$new_driver' ($reason); but new driver is not installed"); return; } + # This should use calls to Xconfig instead of substitution. However, currently + # Xconfig probably makes too intrusive changes to xorg.conf when switching the driver. cp_af('/etc/X11/xorg.conf', "/etc/X11/xorg.conf.mga$^T"); substInFile { s!Driver "($old_driver)"!Driver "$new_driver"!g } '/etc/X11/xorg.conf'; log::explanations("switch X.org driver from '$old_driver' to '$new_driver' ($reason)"); Xconfig::card::libgl_config_and_more({ Driver => $new_driver }); + Xconfig::various::setup_kms(); } sub should_reconfigure_x_driver { -- cgit v1.2.1