summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--tools/display_driver_helper3
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 163895e..895e5c7 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- disable debug output of display_driver_helper by default
- fix ahead-of-X-server loading of proprietary and fglrx kernel modules
+- try unloading unconfigured drivers in "display_driver_helper --check-loaded"
Version 0.93 - 17 April 2011
diff --git a/tools/display_driver_helper b/tools/display_driver_helper
index 02dd482..9376d43 100644
--- a/tools/display_driver_helper
+++ b/tools/display_driver_helper
@@ -122,7 +122,8 @@ check_dkms_status() {
# Check if all loaded kernel modules have correct xorg.conf
check_loaded() {
for module in $(grep -oE "^($KNOWN_MODULES) " /proc/modules); do
- check_driver "$module" || return 1
+ # try to unload the driver in case it is not in use before bailing
+ check_driver "$module" || rmmod "$module" &>/dev/null || return 1
done
return 0
}