Acer 3400LMI manual LVDS+VGA­0, Next=$Current

Models: 3400LMI

1 56
Download 56 pages 34.33 Kb
Page 50
Image 50

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

Page 50
Image 50
Acer 3400LMI manual LVDS+VGA­0, Next=$Current