summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--tools/display_driver_helper10
2 files changed, 12 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index f278e51..61b2ca1 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,8 @@
o report KMS as not allowed with --is-kms-allowed on radeon hardware
without radeon firmware, so that 'nokmsboot' will be used on such
cases
+ o add --setup-boot-kms action which sets/unsets 'nokmsboot' boot
+ option as necessary
Version 0.99 - 18 December 2011
- default to 24bit with QXL driver (16 bit doesn't work)
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
;;