Acer Ferrari 3400LMi Manual page 50

Fedora 8 x86_64
Table of Contents

Advertisement

F8­x86_64 on the Acer Ferrari 3400LMi
#   LVDS+S­video (mirror)       =>
#   LVDS+S­video (side­by­side) =>
#   LVDS+VGA­0   (mirror)       =>
#   LVDS+VGA­0   (side­by­side) =>
#   LVDS         (single)       =>
#   ...
# Connection modes that include not connected outputs are skipped.
# Ex: with only VGA­0 connected it is only three connection modes:
#
    if [ "$CURRENT" != "$INTERNAL" ­a \
         "${ALLPOS[$INTNDX]}" == "${ALLPOS[$CURNDX]}" ]; then
        NEXT=$CURRENT
    else
        for (( i=0; i<${#ALLOUT[*]}; i++ )) {
            [ "${CONCTD[$i]}" == "${CURRENT}" ] && break
        }
        until [ "$NEXT" ]; do
            i=$(( ($i+1)%${#ALLOUT[*]} ))
            NEXT=${CONCTD[$i]}
        done
    fi
    # Internal output always active
    INT="­­output $INTERNAL ­­auto"
    # Turn off currently active external output
    [ "$CURRENT" != "$INTERNAL" ­a "$CURRENT" != "$NEXT" ] && \
        OFF="­­output $CURRENT ­­off"
    # Turn on next connected external output
    [ "$NEXT" != "$INTERNAL" ] && \
        ON="­­output $NEXT ­­auto"
    # If mirror mode, reposition internal output.
    # Otherwise position external output
    [ "$NEXT" != "$CURRENT" ] \
        && INT="$INT ­­pos 0x0" \
        || ON="$ON $LOCATION"
     run xrandr $INT $OFF $ON
}
case `echo "$ACTION" | tr A­Z a­z` in
    init)
        init
        ;;
    toggle)
        toggle
        ;;
    status)
        status
        ;;
50

Advertisement

Table of Contents
loading

Table of Contents