]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blobdiff - autorandr
Merge http://github.com/voda/autorandr
[deb_pkgs/autorandr.git] / autorandr
index 08725363e1627a52bb2f2f7bcbb7162644c754c9..fbf17a14699bb96989ebc3587db2c7477779b1a7 100755 (executable)
--- a/autorandr
+++ b/autorandr
@@ -55,7 +55,7 @@ FORCE_LOAD=0
 DEFAULT_PROFILE=""
 SAVE_PROFILE=""
 
-FP_METHODS="setup_fp_xrandr_edid setup_fp_sysfs_edid"
+FP_METHODS="setup_fp_sysfs_edid setup_fp_xrandr_edid"
 CURRENT_CFG_METHOD="current_cfg_xrandr"
 LOAD_METHOD="load_cfg_xrandr"
 
@@ -206,6 +206,11 @@ load() {
        local PROFILE="$1"
        local CONF="$PROFILES/$PROFILE/config"
        if [ -e "$CONF" ] ; then
+    [ -x "$PROFILES/preswitch" ] && \
+      "$PROFILES/preswitch" "$PROFILE"
+    [ -x "$PROFILES/$PROFILE/preswitch" ] && \
+      "$PROFILES/$PROFILE/preswitch" "$PROFILE"
+
                echo " -> loading profile $PROFILE"
                $LOAD_METHOD "$CONF"