summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mageia.org>2012-04-05 02:49:47 +0000
committerAnssi Hannula <anssi@mageia.org>2012-04-05 02:49:47 +0000
commitae005c070f2232f77d5ae70f9b1c5160a855b75f (patch)
tree014509b03f8757a65e04873c7db120c6de808005
parentc61397fbd9ccea27c9879b6951cc518b664666e8 (diff)
downloaddrakx-kbd-mouse-x11-ae005c070f2232f77d5ae70f9b1c5160a855b75f.tar
drakx-kbd-mouse-x11-ae005c070f2232f77d5ae70f9b1c5160a855b75f.tar.gz
drakx-kbd-mouse-x11-ae005c070f2232f77d5ae70f9b1c5160a855b75f.tar.bz2
drakx-kbd-mouse-x11-ae005c070f2232f77d5ae70f9b1c5160a855b75f.tar.xz
drakx-kbd-mouse-x11-ae005c070f2232f77d5ae70f9b1c5160a855b75f.zip
display_driver_helper: add --setup-boot-kms action which
sets/unsets 'nokmsboot' boot option as necessary
-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
;;