X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=grml-x;h=cb4c1fc474eca6b17b653a2a60a2c6ec74bb938a;hb=4e55cf7818d565fcb832e5a61dc035cc84944c7e;hp=89c483eee079c0635a773f2397d851168f6d4a3a;hpb=b1fc8f8aa9be5787e94fb83c3320979bacc01cb4;p=grml-x.git diff --git a/grml-x b/grml-x index 89c483e..cb4c1fc 100755 --- a/grml-x +++ b/grml-x @@ -273,6 +273,7 @@ Just press Ctrl-C to cancel operation. sync() { [ -r "$MONITORINFO" ] || monitor # get monitor settings + [ -r "$MONITORINFO" ] || bailout 1 vsyncval=$(awk '/Vert. Sync Range:/{print $4}' $MONITORINFO | sed 's/-/.0 - / ; s/$/.0/' | head -1) hsyncval=$(awk '/Hor. Sync Range:/{print $4}' $MONITORINFO | sed 's/-/.0 - / ; s/$/.0/' | head -1) if [ -z $vsyncval ] ; then @@ -293,7 +294,7 @@ mouse() if grep -q 'Device:.*Synaptics' "$MOUSEINFO" ; then if [[ "$SYNAPTICS" == "yes" ]] ; then # check for '-nosynaptics'-option MOUSEDRIVER='synaptics' - SYNMOUSE='InputDevice "Synaptics" "AlwaysCore"' + SYNMOUSE='InputDevice "Synaptics" # "AlwaysCore"' SYNMOUSEDETAIL=" Section \"InputDevice\" Driver \"synaptics\" @@ -328,7 +329,7 @@ EndSection if grep -q 'Device:.*ALPS' "$MOUSEINFO" ; then if [[ "$SYNAPTICS" == "yes" ]] ; then # check for '-nosynaptics'-option MOUSEDRIVER='synaptics' - SYNMOUSE='InputDevice "Synaptics" "AlwaysCore"' + SYNMOUSE='InputDevice "Synaptics" # "AlwaysCore"' SYNMOUSEDETAIL=" Section \"InputDevice\" Driver \"synaptics\" @@ -351,7 +352,7 @@ Section \"InputDevice\" Option \"MaxSpeed\" \"2.00\" Option \"AccelFactor\" \"0.030\" Option \"UpDownScrolling\" \"1\" - Option \"EmulateMiddleButtonTime\" \"75\" + Option \"EmulateMidButtonTime\" \"75\" Option \"CircularScrolling\" \"1\" Option \"CircScrollDelta\" \"0.1\" Option \"CircScrollTrigger\" \"8\" @@ -590,6 +591,7 @@ EndSection" writehwinfo # monitor stuff + [ -r "$HWINFO_TMP" ] || bailout 1 MONITOR=$(awk '/monitor.1:/{print $3}' $HWINFO_TMP) [[ $MONITOR != 'ddc' ]] && NODDC=yes @@ -718,7 +720,7 @@ $XFONTS FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" EndSection -# Modules - see /usr/X11R6/lib/modules/fonts and /usr/X11R6/lib/modules/extensions +# Modules - see /usr/lib/xorg/modules/fonts and /usr/lib/xorg/modules/extensions Section "Module" Load "dbe" # double buffer extension Load "dri" # direct rendering @@ -728,6 +730,7 @@ Section "Module" Load "extmod" # some commonly used server extensions (e.g. shape extension) Load "record" # recording extension Load "evdev" # generic input handling driver on Linux + Load "xtrap" # X Trap extension # Load "vbe" # Vesa BIOS Extension # Load "i2c" # I2C bus # Load "int10" # initialize graphics cards via int10 call to the BIOS @@ -988,7 +991,7 @@ cleanup # xinitrc {{{ if ! [ -x "$(which $WINDOWMANAGER)" ] ; then - print "$bg[black]$fg[red]${bold_color}Fatal: windowmanager $fg[blue]$WINDOWMANAGER$fg[red] not executable, startx won' work.${reset_color}">&2 + print "$bg[black]$fg[red]${bold_color}Fatal: windowmanager $fg[blue]$WINDOWMANAGER$fg[red] not executable, startx will not work.${reset_color}">&2 bailout fi if [ -w "$XINITRC" ] ; then