Acer 3400LMI manual Appendix B dual­head.sh, Internal=Lvds, Ntsc

Page 46

F8­x86_64 on the Acer Ferrari 3400LMi

Appendix B – dual­head.sh

#!/bin/bash

#

#Available at http://ferrari.databa.se/3400/f8/dual­head.sh

#A script to manipulate connected graphical outputs,

#including TV­out. It includes the most common operations

#and may also be configured to run on an XF86Display event.

#Typically Fn­F5 or similar on a laptop.

#

#Prerequisites:

#This script will work with one graphics card only.

#Furthermore it will only work with two CRTCs,

#i.e. two outputs may be simultaneous active.

#

#Comments:

#In order to optimize performance and minimize flicker

#xrandr is at most called twice. Once to read the current

#state and once for setting the new state. Thus, some code

#may look strange at the first glance.

#

#By Sven­Göran Bergh, 2008­01­01

### Edit user settings here: ######################################

#

DEFAULTACTION="toggle" # May be changed with argument 1

DEFAULTSIDE="left" # May be changed with argument 2

#

###################################################################

###Edit hardware specific settings here: #########################

#

INTERNAL="LVDS"

# Specify the name

of

the

internal display

TVOUTPUT="S­video"

# Specify the name

of

the

TV­output

TVMODE="pal"

# Specify TV mode,

PAL or

NTSC

 

#

 

 

 

###################################################################

# Get X user

#XUSER=$(w awk '$3 ~ /^:[0­9]$/ {print $1; nextfile}')

#Get X display (current or first running) DISPLAY=${DISPLAY:= \

$( w awk '$3 ~ /^:[0­9]$/ {print $3; nextfile}' )}

#Quit if no X­server is running

[ "${DISPLAY}" ] exit 1

46

Image 46
Contents Table of Contents F8-x8664 on the Acer Ferrari 3400LMiF8­x8664 on the Acer Ferrari 3400LMi Version IntroductionQuick reference guide Hardware Status Details Potential pitfalls InstallationGraphical installer Disk sizeHard drive Ieee 1394 FirewireUpgrading the drive Potential problems # time cp ­rp /media/ieee1394disk/430MBfolder ~Configuring Firewire CommentsPC-card In-1 Card readerSpecial keys & buttons Configuration procedure Key-codesButton Key-code Default X key symbols Scan-codesLinux key-codes WWW Key-codes revisited= XF86WWW Configure actions CPU & Acpi supportCPU frequency scaling GraphicsSuspend BasicsDual-Head Simple configurationRadeon driver Virtual screen size # xrandr ­q Screen 0 minimumXrandr tool Fn-F5 button10.3 3D acceleration Optimization Simple benchmarkOther observations Ntsc or PAL TV-outLoad detection InitializationWireless NIC Touch-padWlan tools Installing WlanWlan firmware Manual way Get started with WlanEssid # iwconfig wlan0 essid Perspektiv Verify installation BluetoothGUI way Using a phone modem UP Running PscanPrepare the phone Prepare the laptopObex File Transfer 0x1106 Protocol Descriptor List Static configuration Short explanation of the command aboveDynamic routine Gprs AT+CGDATA=PPP,1Sending files KBluetoothInstallation Mouse & keyboardMouse & keyboard Scan for devicesLock screen Infrared Configuring IrDATransfer files IRQ DMATesting IrDA ModemInstalling daemon SLMODEMDCOUNTRY=SWEDEN SLMODEMDDEVICE=Connecting Potential issueDisconnecting References System hangF8­x8664 on the Acer Ferrari 3400LMi Appendix a /etc/X11/xorg.conf XAA INTERNAL=LVDS Appendix B dual­head.shNtsc ACTION=$1­$DEFAULTACTION CURNDX=$CURNDX­$INTNDX CURRENT=$ALLOUT$CURNDX Lvds LVDS+VGA­0 NEXT=$CURRENTInternal internal Tvout Usage Esac Appendix C dun­bind.sh F8­x8664 on the Acer Ferrari 3400LMi RETVAL=0 $CONFIGSLMODEMDOPTS=$SLMODEMDOPTS $SLMODEMDDEVICE RETVAL=$? F8­x8664 on the Acer Ferrari 3400LMi