Changeset 16700 in vbox for trunk/src/VBox/Additions/x11/installer/VBoxRandR.sh
- Timestamp:
- Feb 11, 2009 9:25:35 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 42712
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/installer/VBoxRandR.sh
r12490 r16700 66 66 if test "$1" = "--test"; then 67 67 xout=`$xorgbin -version 2>&1` 68 if echo "$xout" | grep 1.4.99.901 > /dev/null; then 69 exit 1 70 elif echo "$xout" | grep 1.4.99.902 > /dev/null; then 71 exit 1 72 elif echo "$xout" | grep 1.4.99.903 > /dev/null; then 73 exit 1 74 elif echo "$xout" | grep 1.4.99.904 > /dev/null; then 75 exit 1 76 elif echo "$xout" | grep 1.4.99.905 > /dev/null; then 68 if echo "$xout" | grep 1.4.99.901 > /dev/null || 69 echo "$xout" | grep 1.4.99.902 > /dev/null || 70 echo "$xout" | grep 1.4.99.903 > /dev/null || 71 echo "$xout" | grep 1.4.99.904 > /dev/null || 72 echo "$xout" | grep 1.4.99.905 > /dev/null 73 then 74 echo "Disabling dynamic resizing due to known bugs in this X server." 77 75 exit 1 78 76 fi 77 for conf in "/etc/X11/xorg.conf-4" "/etc/X11/xorg.conf" "/etc/X11/.xorg.conf" "/etc/xorg.conf" \ 78 "/usr/etc/X11/xorg.conf-4" "/usr/etc/X11/xorg.conf" "/usr/lib/X11/xorg.conf-4" \ 79 "/usr/lib/X11/xorg.conf" 80 do 81 if [ -r $conf ] 82 then 83 if awk -v IN_SECTION=0 \ 84 'tolower($0) ~ /^[ \t]*section/ { IN_SECTION=1 } '\ 85 'tolower($0) ~ /^[ \t]*modes/ { if (IN_SECTION) { print "mode"; exit } } '\ 86 'tolower($0) ~ /^[ \t]*option[ \t]+\"preferredmode\"/ { if (IN_SECTION) { print "mode"; exit } } '\ 87 'tolower($0) ~ /endsection/ { IN_SECTION=0 }' \ 88 $conf 2>/dev/null | grep mode > /dev/null 89 then 90 echo "Disabling dynamic resizing as the X server is configured to only use static" 91 echo "resolutions. To fix this, edit the server configuration file, remove all" 92 echo "\"Modes\" lines from the \"Screen\" section and any Option \"PreferredMode\"" 93 echo "lines from \"Monitor\" sections and restart the server." 94 exit 1 95 fi 96 fi 97 done 79 98 $randrbin 2> /dev/null | grep VBOX1 > /dev/null 80 99 exit … … 85 104 $randrbin --output VBOX1 --preferred 86 105 $refreshbin 2>&1 > /dev/null 106
Note:
See TracChangeset
for help on using the changeset viewer.