Show
Ignore:
Timestamp:
09/11/07 13:50:13 (15 months ago)
Author:
kris
Message:

Added support to Xorg GUI to auto-detect monitor horz / vert refresh rates

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pcbsd/trunk/system-overlay/PCBSD/xorg-gui/bin/rundetect.sh

    r690 r697  
    2525echo "`clear`" >/dev/console 
    2626 
     27 
     28echo "Determining monitor refresh rate capabilities..." >/dev/console 
     29X -configure 2>/dev/null 
     30 
     31# Clear out any old refresh rates 
     32rm /tmp/.horzsync >/dev/null 2>/dev/null 
     33rm /tmp/.vertsync >/dev/null 2>/dev/null 
     34 
     35# Check for refresh rate lines 
     36cat /root/xorg.conf.new | grep HorizSync >/dev/null 2>/dev/null 
     37if [ "$?" = "0" ] 
     38then 
     39  cat /root/xorg.conf.new | grep HorizSync > /tmp/.horzsync 
     40fi 
     41 
     42cat /root/xorg.conf.new | grep VertRefresh >/dev/null 2>/dev/null 
     43if [ "$?" = "0" ] 
     44then 
     45  cat /root/xorg.conf.new | grep VertRefresh > /tmp/.vertsync 
     46fi 
     47 
    2748echo "Please wait... Start X-Configuration Utility" >/dev/console 
    2849