summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/display_driver_helper10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/display_driver_helper b/tools/display_driver_helper
index b15fad6..255580b 100644
--- a/tools/display_driver_helper
+++ b/tools/display_driver_helper
@@ -376,6 +376,10 @@ get_active_kms_drivers() {
done
}
+setup_boot_kms() {
+ perl -I/usr/lib/libDrakX -MXconfig::various -e 'Xconfig::various::setup_kms()'
+}
+
usage() {
cat <<EOF
Usage: $0 action [arguments]
@@ -430,6 +434,9 @@ Known actions:
As --check-loaded, and consider ambiguous cases (e.g. nvidia where
we can't detect if the loaded driver has the correct version) as
failure.
+
+ --setup-boot-kms
+ Set or unset the 'nokmsboot' option as necessary.
EOF
}
@@ -506,6 +513,9 @@ case "$1" in
--check-speedboot)
check_dkms_status && check_loaded
;;
+--setup-boot-kms)
+ setup_boot_kms
+ ;;
*)
usage
;;