Acer 3400LMI manual ACTION=$1­$DEFAULTACTION

Page 47

F8­x86_64 on the Acer Ferrari 3400LMi

function usage() {

printf "Usage: %s [inittogglestatusinternaltv [side]]\n" \ "`basename $0`"

}

ME=`basename $0 .sh`

# What to do?

ACTION="${1:­$DEFAULTACTION}"

#Which side of $INTERNAL should the external output be shown? SIDE="${2:­$DEFAULTSIDE}"

#If invalid action or help, quit before calling xrandr

case `echo "$ACTION" tr A­Z a­z` in

init toggle status internal tv )

#Recognized actions. Do nothing and continue...

;;

help usage ) usage exit 0

;;

* )

printf "%s: Unknown operation, %s\n" "$ME" "$ACTION" usage

exit 1

;;

esac

#Get information about all outputs ALLINFO=( $( \

xrandr ­q \

awk ­­ '/connected/ {

printf " %s", $1; if ($2 !~ /dis/) {

if ($3 ~ /[0­9]+x/) printf "@%s", $3;

else

printf "@";

}

}' \

) )

# Initialize some useful variables

for (( i=0; i<${#ALLINFO[*]}; i++ )) {

#Array with all outputs ALLOUT[$i]=$( \

echo "${ALLINFO[$i]}" \

awk ­F@ ­­ '{print $1}' \

)

#Array with all connected outputs CONCTD[$i]=$( \

47

Image 47
Contents F8-x8664 on the Acer Ferrari 3400LMi Table of ContentsF8­x8664 on the Acer Ferrari 3400LMi Quick reference guide IntroductionVersion Hardware Status Details Disk size InstallationGraphical installer Potential pitfallsUpgrading the drive Ieee 1394 FirewireHard drive # time cp ­rp /media/ieee1394disk/430MBfolder ~ Potential problemsComments Configuring FirewireSpecial keys & buttons In-1 Card readerPC-card Key-codes Configuration procedureScan-codes Button Key-code Default X key symbolsLinux key-codes = XF86WWW Key-codes revisitedWWW CPU & Acpi support Configure actionsBasics GraphicsSuspend CPU frequency scalingRadeon driver Simple configurationDual-Head # xrandr ­q Screen 0 minimum Virtual screen sizeFn-F5 button Xrandr tool10.3 3D acceleration Other observations Simple benchmarkOptimization Initialization TV-outLoad detection Ntsc or PALTouch-pad Wireless NICWlan firmware Installing WlanWlan tools Essid Get started with WlanManual way # iwconfig wlan0 essid Perspektiv GUI way BluetoothVerify installation UP Running Pscan Using a phone modemPrepare the laptop Prepare the phoneObex File Transfer 0x1106 Protocol Descriptor List Short explanation of the command above Static configurationDynamic routine AT+CGDATA=PPP,1 GprsMouse & keyboard KBluetoothInstallation Sending filesScan for devices Mouse & keyboardLock screen Transfer files Configuring IrDAInfrared DMA IRQModem Testing IrDAInstalling daemon SLMODEMDDEVICE= SLMODEMDCOUNTRY=SWEDENDisconnecting Potential issueConnecting System hang ReferencesF8­x8664 on the Acer Ferrari 3400LMi Appendix a /etc/X11/xorg.conf XAA Ntsc Appendix B dual­head.shINTERNAL=LVDS ACTION=$1­$DEFAULTACTION CURNDX=$CURNDX­$INTNDX CURRENT=$ALLOUT$CURNDX Lvds NEXT=$CURRENT LVDS+VGA­0Internal internal Tvout Usage Esac Appendix C dun­bind.sh F8­x8664 on the Acer Ferrari 3400LMi SLMODEMDOPTS=$SLMODEMDOPTS $SLMODEMDDEVICE $CONFIGRETVAL=0 RETVAL=$? F8­x8664 on the Acer Ferrari 3400LMi