[PC-BSD Commits] r2595 - pcbsd/trunk/system-overlay/PCBSD/xorg-gui/bin

svn at pcbsd.org svn at pcbsd.org
Thu Aug 14 09:02:43 PDT 2008


Author: kris
Date: 2008-08-14 09:02:43 -0700 (Thu, 14 Aug 2008)
New Revision: 2595

Modified:
   pcbsd/trunk/system-overlay/PCBSD/xorg-gui/bin/setupconf.sh
Log:

Updated the setupconf.sh script to support dual-monitor different resolutions



Modified: pcbsd/trunk/system-overlay/PCBSD/xorg-gui/bin/setupconf.sh
===================================================================
--- pcbsd/trunk/system-overlay/PCBSD/xorg-gui/bin/setupconf.sh	2008-08-14 15:12:22 UTC (rev 2594)
+++ pcbsd/trunk/system-overlay/PCBSD/xorg-gui/bin/setupconf.sh	2008-08-14 16:02:43 UTC (rev 2595)
@@ -217,6 +217,13 @@
    break
 fi
 
+# Check which monitor we are on, and use the right resolution for it
+case ${i} in
+   0) MONRES="${RES}" ;;
+   1) MONRES="${DUALRES}" ;;
+   *) MONRES="${RES}" ;;
+esac
+
 # Start adding the screen entry now
 echo "
 Section \"Screen\"
@@ -226,7 +233,7 @@
     DefaultDepth   ${DEPTH}
     SubSection     \"Display\"
         Depth      ${DEPTH} 
-        Modes      \"${RES}\"
+        Modes      \"${MONRES}\"
     EndSubSection" >> $TMPFILE
 
 # If we are on dualhead with NVIDIA, add the twinview stuff
@@ -239,7 +246,7 @@
      echo "    Option         \"metamodes\" \"DFP-0: ${RES} +0+0, DFP-1: ${RES} +${WIDTH}+0\"" >>${TMPFILE}
    else
      echo "    Option         \"TwinView\" \"0\"" >>${TMPFILE}
-     echo "    Option         \"metamodes\" \"DFP-${i}: ${RES} +0+0\"" >>${TMPFILE}
+     echo "    Option         \"metamodes\" \"DFP-${i}: ${MONRES} +0+0\"" >>${TMPFILE}
    fi
 fi
 



More information about the Commits mailing list