[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#808732: [PATCH] Allow to set "noproprietary" as xorg-driver to disable vboxvideo,nvidia,fglrx



Package: live-config
Severity: wishlist

see attached mail for an explanation and patch from Volley

-- 
Bruce Schneier can read and understand Perl programs.
--- Begin Message ---
For your consideration :)

Another idea i use for quite some time in my usb stick.

I usually bundle nvidia and fglrx drivers, but as you probably know:
sometimes the free drivers are the better choice.

This way i can have one entry in my bootloader that disables all at once.

Worf
>From d7deff9a71d662daecf4b0c379c0c9f2121c8514 Mon Sep 17 00:00:00 2001
From: Wolfgang Scheicher <wolfgang.scheicher@gmail.com>
Date: Mon, 21 Dec 2015 23:27:56 +0100
Subject: [PATCH] Allow to set "noproprietary" as xorg-driver to disable
 vboxvideo,nvidia,fglrx

---
 components/1140-xserver-xorg | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/components/1140-xserver-xorg b/components/1140-xserver-xorg
index 7804877..ab65658 100755
--- a/components/1140-xserver-xorg
+++ b/components/1140-xserver-xorg
@@ -97,6 +97,11 @@ Config ()
 		esac
 	fi
 
+	if [ "${LIVE_XORG_DRIVER}" = "noproprietary" ] ; then
+		NOPROPRIETARY=true
+		unset LIVE_XORG_DRIVER
+	fi
+
 	if [ -z "${LIVE_XORG_DRIVER}" ] && [ -e /usr/bin/lspci ]
 	then
 		# pci-id of the first graphic card
@@ -121,7 +126,7 @@ Config ()
 				done
 			fi
 
-			if [ -z "${LIVE_XORG_DRIVER}" ]
+			if [ -z "${LIVE_XORG_DRIVER}" ] && [ -z "${NOPROPRIETARY}" ]
 			then
 				# xorg-driver automatic override for virtualbox
 				if [ -e /var/lib/dpkg/info/virtualbox-guest-x11.list ] && echo "${_DEVICE}" | grep -qs '^80EEBEEF'
-- 
2.6.4


--- End Message ---

Reply to: