Excellent idea! Thanks Wayne. Cheers, Carl.
On 13/02/07, Wayne Rooney <[EMAIL PROTECTED]> wrote:
On Monday 12 February 2007 13:13, Carl Cerecke wrote: > The major problem I have is that I now need to select a different > xorg.conf file depending on what is required: > 1) laptop only > 2) dual-head xinerama > 3) dual_head clone (Which I'll use in the presentation at the meeting > tomorrow) A little trick I use: The computer boots in runlevel 3, text mode. When I log on, bash runs my /home/wayne/.profile script. The script checks which terminal I logged in from. If I log in from tty1 then X is started without xinerama and I get a seperate desktop on each monitor. If I log in from tty2 (by pressing alt-F2 to get to the second terminal) then X is started with xinerama and I get one desktop across both monitors. If I log in from tty3 (alt-F3 then log in) then I get a text console. So I get the configuration I want by turning the computer on, logging in, pressing alt-F2 and logging in, or pressing alt-F3 and logging in. The relevant bit from my .profile is: if [ `tty` == "/dev/tty1" ] ; then startx echo Beginning system shutdown in 20 seconds... sleep 20 halt fi if [ `tty` == "/dev/tty2" ] ; then startx -- +xinerama echo Beginning system shutdown in 20 seconds... sleep 20 halt fi Perhaps you could adapt this to change to the xorg.conf you happen to want to use. Cheers, Wayne
