|
|
#1 | |
|
Registered User
Join Date: Oct 2006
Posts: 2
|
Hi
I need some help. I'm very new to this and haven't got a clue how to do this. I currently have Ubuntu Linux (Dapper) on a PC with a nVidia EN7300GT configured for dual head using two CRT's. That all works... however I also use this machine to play games, many of which play full-screen. It's really annoying when some games try to span the two screens. Is there any way I could have a bash script or something to automatically change the xorg.conf file to enable/disable dual-head. I don't mind having to restart the X-Server manually after using the script... just want a script to do the work of sudo'ing the changes to the conf file. Any ideas? |
|
|
|
|
|
|
#2 | |
|
Registered User
Join Date: May 2006
Posts: 8
|
One way to do this is to make two copies of your /etc/X11/xorg.conf
e.g xorg.conf.single xorg.conf.dual and make /etc/X11/xorg.conf a symlink to point to either one. Using the script below(call it xswitch.sh or something) you can switch the symlink to point to the conf file of choice e.g 'xswitch.sh s' removes old xorg.conf symlink & makes it point to xorg.conf.single 'xswitch.sh d' removes old xorg.conf symlink & makes it point to xorg.conf.dual Hit Ctrl+Alt+Backspace to restart X server ------------------------ #!/bin/sh cmdarg=$1 echo $cmdarg cd /etc/X11 if [ $cmdarg = "s" ] ; then rm -f xorg.conf ln -s xorg.conf.single xorg.conf fi if [ $cmdarg = 'd' ] ; then rm -f xorg.conf ln -s xorg.conf.dual xorg.conf fi |
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Oct 2006
Posts: 2
|
Thanks... that's just what I was looking for.
![]() |
|
|
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Realy messed up dual head | vdub12 | NVIDIA Linux | 1 | 09-15-02 12:26 AM |
| Best video card for running dual displays? | nutsnbolts | NVIDIA GeForce 7, 8, And 9 Series | 10 | 09-03-02 02:02 PM |
| Help with dual monitors in Windows 2000 | Hellfire | NVIDIA GeForce 7, 8, And 9 Series | 11 | 09-03-02 08:23 AM |
| How do I get Dual Head working? | Heath | NVIDIA Linux | 1 | 08-22-02 12:44 PM |
| mx 440 xtacy dual head and cli | squid | NVIDIA Linux | 4 | 08-15-02 04:04 PM |