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. Thanks xorg.conf: # /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" EndSection Section "Module" Load "i2c" Load "bitmap" Load "ddc" Load "extmod" Load "freetype" Load "glx" Load "int10" Load "vbe" EndSection Section "InputDevice" Identifier "Generic Keyboard" Driver "kbd" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "us" EndSection 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" EndSection Section "InputDevice" Identifier "Synaptics Touchpad" Driver "synaptics" Option "SendCoreEvents" "true" Option "Device" "/dev/psaux" Option "Protocol" "auto-dev" Option "HorizScrollDelta" "0" EndSection Section "InputDevice" Driver "wacom" Identifier "stylus" Option "Device" "/dev/input/wacom" Option "Type" "stylus" Option "ForceDevice" "ISDV4"# Tablet PC ONLY EndSection Section "InputDevice" Driver "wacom" Identifier "eraser" Option "Device" "/dev/input/wacom" Option "Type" "eraser" Option "ForceDevice" "ISDV4"# Tablet PC ONLY EndSection Section "InputDevice" Driver "wacom" Identifier "cursor" Option "Device" "/dev/input/wacom" Option "Type" "cursor" Option "ForceDevice" "ISDV4"# Tablet PC ONLY EndSection 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" EndSection Section "Monitor" Identifier "Generic Monitor" Option "DPMS" Horizsync 28-64 Vertrefresh 43-60 EndSection 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" EndSubSection SubSection "Display" Depth 4 Modes "1280x800" EndSubSection SubSection "Display" Depth 8 Modes "1280x800" EndSubSection SubSection "Display" Depth 15 Modes "1280x800" EndSubSection SubSection "Display" Depth 16 Modes "1280x800" EndSubSection SubSection "Display" Depth 24 Modes "1280x800" EndSubSection EndSection 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" EndSection Section "DRI" Mode 0666 EndSection |
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: Code:
Option "TwinView" Good luck. |
All times are GMT -5. The time now is 12:07 AM. |