Ubuntu Forums Archive Viewer

nvidia, dual head (no twinview, no xinerama) and gdm

Archived thread 100163 from x86 64-bit Users (Pre April '08). Markdown source: x86_64-bit_Users_(Pre_April_'08)/thread_100163_nvidia,_dual_head_(no_twinview,_no_xinerama)_and_g.md

Original URL About this archive
#1

Here is my problem :

I want to do a dual head on a 15" and a 17" monitor with separate workspaces.

Neither Twinview nor Xinerama will do, as they either clone or join the workspaces (as far as I have found), so I go for the good old Xinerama off version. But when I start Ubuntu, I end up with a black screen. If I Ctrl+Alt+F1, sudo /etc/init.d/gdm stop and then startx, I get the correct result, but it's quite a heavy way of launching, isn't it ? Does anyone encounter the same problem or have a solution ?

Here is my config (for the relevant parts) : Laptop, Alienware Area 51m7700, Monitor is a Belinea connected to a DVI port via a DVI/VGA adaptor, graphics card an nVidia GeForce 6800.

Here is my 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 /etc/X11/xorg.conf manual page.

(Type "man /etc/X11/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/X11/fonts/misc" FontPath "/usr/share/X11/fonts/cyrillic" FontPath "/usr/share/X11/fonts/100dpi/:unscaled" FontPath "/usr/share/X11/fonts/75dpi/:unscaled" FontPath "/usr/share/X11/fonts/Type1" FontPath "/usr/share/X11/fonts/CID" FontPath "/usr/share/X11/fonts/100dpi" FontPath "/usr/share/X11/fonts/75dpi" # paths to defoma fonts FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID" EndSection

Section "Module"

Load "GLcore"

Load "i2c" Load "bitmap" Load "ddc"

Load "dri"

Load "extmod" Load "freetype" Load "glx" Load "int10" Load "type1" Load "vbe" EndSection

Section "InputDevice" Identifier "Generic Keyboard" Driver "kbd" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "fr" Option "XkbVariant" "latin9" EndSection

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

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

Section "Device" Identifier "NVIDIA Corporation NV41 [GeForce Go 6800]" Driver "nvidia" BusID "PCI:1:0:0" Screen 0 EndSection

Section "Device" Identifier "nvidia1" Driver "nvidia" BusID "PCI:1:0:0" Screen 1 EndSection

Section "Modes" Identifier "16:10" ModeLine "1280x800" 83.46 1280 1344 1480 1680 800 801 804 828 Modeline "1440x900" 95.8 1440 1472 1600 1728 900 904 908 924 -HSync -VSync Modeline "1024x768" 61.89 1024 1080 1184 1344 768 769 772 794 Modeline "800x600" 36.88 800 832 912 1024 600 601 604 621 Modeline "640x480" 23.06 640 656 720 800 480 481 484 497 Modeline "1280x1024" 108.00 1280 1328 1440 1688 1024 1025 1028 1066 EndSection

Section "Monitor" Identifier "Ecran portable"

Option "DPMS"

DisplaySize 368 230 HorizSync 29-64 VertRefresh 0-60 UseModes "16:10" EndSection

Section "Monitor" Identifier "Moniteur externe" Option "DPMS" HorizSync 29-64 VertRefresh 0-60 EndSection

Section "Screen" Identifier "Ecran Principal" Device "NVIDIA Corporation NV41 [GeForce Go 6800]" Monitor "Ecran portable" DefaultDepth 24 SubSection "Display" Depth 1 Modes "1440x900" "1280x800" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 4 Modes "1440x900" "1280x800" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 8 Modes "1440x900" "1280x800" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 15 Modes "1440x900" "1280x800" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 16 Modes "1440x900" "1280x800" "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 24 Modes "1440x900" "1280x800" "1024x768" "800x600" "640x480" EndSubSection EndSection

Section "Screen" Identifier "Ecran externe" Device "nvidia1" Monitor "Moniteur externe" DefaultDepth 24 SubSection "Display" Depth 1 Modes "1024x768" "800x600" "600x480" EndSubSection SubSection "Display" Depth 4 Modes "1024x768" "800x600" "600x480" EndSubSection SubSection "Display" Depth 8 Modes "1024x768" "800x600" "600x480" EndSubSection SubSection "Display" Depth 15 Modes "1024x768" "800x600" "600x480" EndSubSection SubSection "Display" Depth 16 Modes "1024x768" "800x600" "600x480" EndSubSection SubSection "Display" Depth 24 Modes "1024x768" "800x600" "600x480" EndSubSection EndSection

Section "ServerFlags" Option "Xinerama" "false" EndSection

Section "ServerLayout" Identifier "Default Layout" Screen 0 "Ecran Principal" 0 0 Screen 1 "Ecran externe" RightOf "Ecran Principal" InputDevice "Generic Keyboard" InputDevice "Configured Mouse" InputDevice "Synaptics Touchpad" EndSection

Section "DRI" Mode 0666 EndSection

Thanks in advance for your help.

P.S. : I googled and used search here before posting. If the answer is well known, don't flame me, just give me a link :rolleyes:

#2

My system features a 6600GT with two Monitors connected to it. They are configured as "DualView" (two screens with one Desktop - you can drag a window from one screen to the other).

On boot GDM launches fine.

Here's my Xorg.conf - maybe it'll help you to iron out your problems...


# /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 /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/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/X11/fonts/misc"
	FontPath	"/usr/share/X11/fonts/cyrillic"
	FontPath	"/usr/share/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/share/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/share/X11/fonts/Type1"
	FontPath	"/usr/share/X11/fonts/CID"
	FontPath	"/usr/share/X11/fonts/100dpi"
	FontPath	"/usr/share/X11/fonts/75dpi"
        # paths to defoma fonts
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection

Section "Module"
	Load	"GLcore"
	Load	"i2c"
	Load	"bitmap"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"type1"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"de"
	Option		"XkbVariant"	"nodeadkeys"
EndSection

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

Section "Device"
	Identifier	"NVIDIA Corporation NV43 [GeForce 6600/GeForce 6600 Ultra]"
	Driver		"nvidia"
	Option		"NoLogo"		"1"
	Option		"TwinView"
	Option		"SecondMonitorHorizSync"   "29.0-82.0"
	Option		"SecondMonitorVertRefresh" "50.0-120.0"
	Option		"MetaModes"		"1280x1024, 1280x1024; 1152x864, 1152x864; 1024x768, 1024x768; 800x600, 800x600; 640x480, 640x480"
	Option		"TwinViewOrientation"	"RightOf"
	BusID		"PCI:1:0:0"
EndSection

Section "Monitor"
	Identifier	"Generic Monitor"
	Option		"DPMS"
	HorizSync	30.0-96.0
	VertRefresh	50.0-150.0
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"NVIDIA Corporation NV43 [GeForce 6600/GeForce 6600 Ultra]"
	Monitor		"Generic Monitor"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen" 	0 0
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
EndSection

Section "DRI"
	Mode	0666
EndSection

#3

Thanks, but you're doing TwinView here, I was trying a non TwinView, non Xinerama version.

Anyhow, I gave up. I created two xorg.conf, one with TwinView RightOf for work, one with Clone for presentations, and I'll switch with a script. I guess that to do what I really wanted to do, anyhow, the solutions would be to have two separate X sessions, but then I would need two mouses and two keyboards.

Thanks for the help anyhow.

#4

Hi, I have two monitors that require different resolutions. I have tried lots of different versions of xorg.conf. The ctx requires a resolution of 1024x768 while the syncmaster needs 1280x1025.... i can get them both working at 1024x768...

here is my 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 /etc/X11/xorg.conf manual page.

(Type "man /etc/X11/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/X11/fonts/misc" FontPath "/usr/share/X11/fonts/cyrillic" FontPath "/usr/share/X11/fonts/100dpi/:unscaled" FontPath "/usr/share/X11/fonts/75dpi/:unscaled" FontPath "/usr/share/X11/fonts/Type1" FontPath "/usr/share/X11/fonts/CID" FontPath "/usr/share/X11/fonts/100dpi" FontPath "/usr/share/X11/fonts/75dpi" # paths to defoma fonts FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID" EndSection

Section "Module" Load "GLcore" Load "i2c" Load "bitmap" Load "ddc" Load "dri" Load "extmod" Load "freetype" Load "glx" Load "int10" Load "type1" Load "vbe" EndSection

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

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

Section "Device" Identifier "NVIDIA Corporation NV43 [GeForce 6600 GT]" Driver "nvidia" BusID "PCI:1:0:0" Option "NvAGP" "2" Option "NoLogo" "1" Option "RenderAccel" "0" Option "CursorShadow" "1" Option "Coolbits" "1" Option "ConnectedMonitor" "dfp, dfp" Option "NoPowerConnectorCheck" Option "TwinView" "1" Option "Metamodes" "1280x1024,1280x1024; 1024x768,1024x768; 1280x1024,NULL; 1024x768,NULL" Option "SecondMonitorHorizSync" "31-82" Option "SecondMonitorVertRefresh" "56-76" # Option "NoTwinViewXineramaInfo" EndSection

Section "Monitor" Identifier "SyncMaster" Option "DPMS" EndSection

Section "Monitor" Identifier "CTX" HorizSync 30-72 VertRefresh 50-130 Option "DPMS" EndSection

Section "Screen" Identifier "ScreenRight" Device "NVIDIA Corporation NV43 [GeForce 6600 GT]" Monitor "SyncMaster" DefaultDepth 24 SubSection "Display" Depth 1 Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" EndSubSection SubSection "Display" Depth 4 Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" EndSubSection SubSection "Display" Depth 8 Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" EndSubSection SubSection "Display" Depth 15 Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" EndSubSection SubSection "Display" Depth 16 Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" EndSubSection SubSection "Display" Depth 24 Modes "1280x1024" EndSubSection EndSection

Section "Screen" Identifier "ScreenLeft" Device "NVIDIA Corporation NV43 [GeForce 6600 GT]" Monitor "CTX" DefaultDepth 24 SubSection "Display" Depth 24 Modes "1024x768" "800x600" EndSubSection SubSection "Display" Depth 16 Modes "1024x768" "800x600" EndSubSection EndSection

Section "ServerLayout" Identifier "TwinView Configuration" Screen "ScreenRight" Screen "ScreenLeft" LeftOf "ScreenRight" InputDevice "Configured Mouse" InputDevice "Generic Keyboard" Option "Xinerama" "Off" EndSection

Section "DRI" Mode 0666 EndSection