Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 09-18-2007, 09:57 AM   #1
Registered: Nov 2006
Posts: 46

Rep: Reputation: 15
switch screen to projector?

I've configured my xorg.conf file as follows. I can have dual view of my screen and projector. But I have to restart my session to get this dual view. It's really not convenient for my presentation.

Does anyone have a convenient way to detect the projector automatically, and a way switch to dual view without restart?

I tried nvidia-settings, I cannot get the right resolution from it.



# /etc/X11/xorg.conf (xorg X Window System server configuration file)
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
Fontpath "/usr/share/fonts/X11/misc"
Fontpath "/usr/share/fonts/X11/cyrillic"
Fontpath "/usr/share/fonts/X11/100dpi/:unscaled"
Fontpath "/usr/share/fonts/X11/75dpi/:unscaled"
Fontpath "/usr/share/fonts/X11/Type1"
Fontpath "/usr/share/fonts/X11/100dpi"
Fontpath "/usr/share/fonts/X11/75dpi"
# path to defoma fonts
Fontpath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"

Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "vbe"

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"

Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY

Section "Device"
Identifier "nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300]"
Driver "nvidia"
Busid "PCI:1:0:0"
Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "NoLogo" "True"

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
Horizsync 28-64
Vertrefresh 43-60

Section "Screen"
Identifier "Default Screen"
Device "nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300]"
Monitor "Generic Monitor"
Defaultdepth 24
Option "TwinView" "True"
Option "TwinViewOrientation" "Clone"
Option "UseEdidFreqs" "True"
SubSection "Display"
Depth 1
Modes "1280x800"
SubSection "Display"
Depth 4
Modes "1280x800"
SubSection "Display"
Depth 8
Modes "1280x800"
SubSection "Display"
Depth 15
Modes "1280x800"
SubSection "Display"
Depth 16
Modes "1280x800"
SubSection "Display"
Depth 24
Modes "1280x800"

Section "ServerLayout"
Identifier "Default Layout"
screen "Default Screen"
Inputdevice "Generic Keyboard"
Inputdevice "Configured Mouse"
Inputdevice "stylus" "SendCoreEvents"
Inputdevice "cursor" "SendCoreEvents"
Inputdevice "eraser" "SendCoreEvents"
Inputdevice "Synaptics Touchpad"

Section "DRI"
Mode 0666
Old 09-19-2007, 07:38 AM   #2
Senior Member
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
I don't know if what I am about to suggest will help you. I also don't know if it will get you in trouble (let the implementor beware!). But you can use the option "ConnectedMonitor" to force nVidia to use two particular outputs, whether or not the device was connected when you started X. In other words, the driver does not poll to see what outputs to use.

I used the following to do this, somewhat successfully. I say somewhat, because initially everything seemed to be fine. I had a TV hooked up but no monitor. However, when I tried to display video with Totem, X locked up in a state where it was maxing out one of my CPUs and the only way I could regain control (using an ssh session) was to kill X with a signal 9. This is why I cautioned that this might get you in trouble. I never figured out what was going on (bug in proprietary driver?), but changing back to the default Xorg.conf (allowing the driver to detect what was connected and act accordingly) took care of the problem. But hey, maybe this will work for you. (Adjust according to which outputs you need, of course.)

Here are the options I added in the Screen section of Xorg.conf:

        Option "TwinView"
        Option "ConnectedMonitor"           "CRT, TV"
        Option "SecondMonitorHorizSync"     "31.5-48.5"
        Option "SecondMonitorVertRefresh"   "50-70"
        Option "MetaModes"                  "1024x768,1024x768"
        Option "TwinViewOrientation"        "Clone"
        Option "TVStandard"                 "NTSC-M"
        Option "TVOutFormat"                "SVIDEO"
Hope this helps.

Good luck.

Last edited by blackhole54; 09-19-2007 at 07:40 AM. Reason: better wording


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual display on older LCD Projector and notebook screen surahyo Linux - Laptop and Netbook 2 08-24-2011 09:17 AM
showing video clips as blue screen when connected by projector noorudin Linux - Software 3 06-19-2006 02:22 PM
Displaying video clips on externel screen as blue screen when connected to projector noorudin Linux - Software 0 06-19-2006 02:01 AM
TV-picture on extrenal screen/projector pjon Linux - Hardware 2 06-05-2006 04:54 AM
TV-picture on external screen/projector pjon SUSE / openSUSE 0 05-31-2006 07:01 AM

All times are GMT -5. The time now is 01:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration