PDA

View Full Version : [ubuntu] Dualscreen on Ubuntu 9.04 and Compiz



Tom25
October 20th, 2009, 01:44 PM
Hello everyone,

I have some problems to get dualscreen working with Compiz. I have now connected two screens to my Nvidia 7600GT. But one screen is just normal and has Compiz, but the other screen is just black. When I go with my mousepointer to the black screen than my mouse stops at the border of my normal screen and a second mousepointer appears in the black screen. When I go back with my mouse from the black screen to my normal screen than the 2nd moisepointer stays at the border of the black screen and I have back my other moisepointer in control that was waiting for me on the normal screen. I guess my xorg file is mest up. Maybe can one of you help me. I have Ubuntu 9.04.

This is the xorg file:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@palmer) Sun Feb 1 20:21:04 UTC 2009
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder63) Mon Mar 23 15:33:27 PST 2009
# xorg.conf (X.Org 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 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.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# 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 "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Unknown"
ModelName "DELL 1800FP"
HorizSync 30.0 - 80.0
VertRefresh 56.0 - 75.0
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "BenQ FP93GX"
HorizSync 31.0 - 83.0
VertRefresh 56.0 - 76.0
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Configured Video Device"
Monitor "Configured Monitor"
DefaultDepth 24
EndSection

Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "CRT: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "AddARGBGLXVisuals" "True"
Option "TwinView" "0"
Option "metamodes" "DFP: 1280x1024_75 +0+0; DFP: 1280x1024_72 +0+0; DFP: 1280x960 +0+0; DFP: 1152x864 +0+0; DFP: 1152x864_75_0 +0+0; DFP: 1152x864_70 +0+0; DFP: 1152x864_60 +0+0; DFP: 1024x768 +0+0; DFP: 1024x768_70 +0+0; DFP: 1024x768_60 +0+0; DFP: 960x600 +0+0; DFP: 960x540 +0+0; DFP: 896x672 +0+0; DFP: 840x525 +0+0; DFP: 840x525d70 +0+0; DFP: 840x525d60 +0+0; DFP: 840x525d60_0 +0+0; DFP: 832x624 +0+0; DFP: 800x600 +0+0; DFP: 800x600d60 +0+0; DFP: 800x600_75 +0+0; DFP: 800x600_72 +0+0; DFP: 800x600_60 +0+0; DFP: 800x600_56 +0+0; DFP: 800x512 +0+0; DFP: 720x450 +0+0; DFP: 680x384 +0+0; DFP: 680x384d60_0 +0+0; DFP: 640x512 +0+0; DFP: 640x512d60 +0+0; DFP: 640x480 +0+0; DFP: 640x480_75 +0+0; DFP: 640x480_73 +0+0; DFP: 640x480_60 +0+0; DFP: 640x350 +0+0; DFP: 576x432 +0+0; DFP: 576x432d75_0 +0+0; DFP: 576x432d70 +0+0"
# Removed Option "metamodes" "DFP-0: 1280x1024_75 +0+0; DFP-0: 1280x1024_72 +0+0; DFP-0: 1280x960 +0+0; DFP-0: 1152x864 +0+0; DFP-0: 1152x864_75_0 +0+0; DFP-0: 1152x864_70 +0+0; DFP-0: 1152x864_60 +0+0; DFP-0: 1024x768 +0+0; DFP-0: 1024x768_70 +0+0; DFP-0: 1024x768_60 +0+0; DFP-0: 960x600 +0+0; DFP-0: 960x540 +0+0; DFP-0: 896x672 +0+0; DFP-0: 840x525 +0+0; DFP-0: 840x525d70 +0+0; DFP-0: 840x525d60 +0+0; DFP-0: 840x525d60_0 +0+0; DFP-0: 832x624 +0+0; DFP-0: 800x600 +0+0; DFP-0: 800x600d60 +0+0; DFP-0: 800x600_75 +0+0; DFP-0: 800x600_72 +0+0; DFP-0: 800x600_60 +0+0; DFP-0: 800x600_56 +0+0; DFP-0: 800x512 +0+0; DFP-0: 720x450 +0+0; DFP-0: 680x384 +0+0; DFP-0: 680x384d60_0 +0+0; DFP-0: 640x512 +0+0; DFP-0: 640x512d60 +0+0; DFP-0: 640x480 +0+0; DFP-0: 640x480_75 +0+0; DFP-0: 640x480_73 +0+0; DFP-0: 640x480_60 +0+0; DFP-0: 640x350 +0+0; DFP-0: 576x432 +0+0; DFP-0: 576x432d75_0 +0+0; DFP-0: 576x432d70 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Module"
Load "glx"
Disable "dri2"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
# generated from default
EndSection

Section "Extensions"
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 1280 0
Screen 1 "Screen1" LeftOf "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Device"
Identifier "Configured Video Device"
Option "NoLogo" "True"
Driver "nvidia"
EndSection

Section "Device"
Identifier "Device1"
VendorName "NVIDIA Corporation"
BoardName "GeForce 7600 GT"
BusID "PCI:1:0:0"
Screen 1
Driver "nvidia"
EndSection

Section "Device"
Identifier "Device0"
VendorName "NVIDIA Corporation"
BoardName "GeForce 7600 GT"
BusID "PCI:1:0:0"
Screen 0
Driver "nvidia"
EndSection

Section "ServerFlags"
Option "Xinerama" "0"
# Removed Option "Xinerama" "0"
EndSection
Thanks in advance. :)


Kind regards,
Tom

mutation
October 20th, 2009, 04:41 PM
have you tried enabling twinview? are you using nvidia-settings to configure your monitors?

Tom25
October 20th, 2009, 05:13 PM
I am using nvidia-settings. But the problem is that in my xorg file the option Twinview is double in the xorg file. So do I have to put both on 1? Or delete one?

Thanks for your help!


Kind regards,
Tom

gdonwallace
October 20th, 2009, 05:31 PM
You don't really need to worry much about the xorg file if you are using nvidia-settings. It will write out to that file any changes you make to your settings through the nvidia-settings interface.

I have two monitors setup on my work comupter attached to a nvidia card and compiz works fine. Just enable twinview on the monitor that is black and it will take care of the problem.

P.S. You may need to move things around in nvida-settings (i.e. where the monitors are located) in order to get things to show up just right. For some reason when I initially activated twinview, it moved my number 1 monitor to the left, so everything was backwards. But changing the alignment of the monitors in nvidia-settings fixed it.

Tom25
October 20th, 2009, 07:31 PM
Hmm little problem when I try to change xorg.conf with nvidia-settings.

PARSE ERROR: Parse error on line 80 of section Module in file /etc/X11/xorg.conf.
"Disable" is not a valid keyword in this section.

So I looked up line 80 and this is it:

Section "Module"
Load "glx"
Disable "dri2" <-- this is line 80
EndSection

Into what do I have to change it?

Thanks for the help!


Kind regards,
Tom

Edit:

It works now :). The only problem left is that Avant Window Navigator opens on the wrong screen and I dont know how to get it on the other screen.
For people with the same problems, here is my xorg.conf:


# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@palmer) Sun Feb 1 20:21:04 UTC 2009

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder63) Mon Mar 23 15:33:27 PST 2009
# xorg.conf (X.Org 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 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.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# 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 "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection

Section "Module"
Load "glx"
EndSection

Section "ServerFlags"
Option "Xinerama" "0"
# Removed Option "Xinerama" "0"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
# generated from default
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Unknown"
ModelName "DELL 1800FP"
HorizSync 30.0 - 80.0
VertRefresh 56.0 - 75.0
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "DELL 1800FP"
HorizSync 30.0 - 80.0
VertRefresh 56.0 - 75.0
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option "NoLogo" "True"
EndSection

Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 7600 GT"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 7600 GT"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Configured Video Device"
Monitor "Configured Monitor"
DefaultDepth 24
EndSection

Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "CRT: nvidia-auto-select +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

Section "Screen"

# Removed Option "TwinView" "0"
# Removed Option "metamodes" "DFP: 1280x1024_75 +0+0; DFP: 1280x1024_72 +0+0; DFP: 1280x960 +0+0; DFP: 1152x864 +0+0; DFP: 1152x864_75_0 +0+0; DFP: 1152x864_70 +0+0; DFP: 1152x864_60 +0+0; DFP: 1024x768 +0+0; DFP: 1024x768_70 +0+0; DFP: 1024x768_60 +0+0; DFP: 960x600 +0+0; DFP: 960x540 +0+0; DFP: 896x672 +0+0; DFP: 840x525 +0+0; DFP: 840x525d70 +0+0; DFP: 840x525d60 +0+0; DFP: 840x525d60_0 +0+0; DFP: 832x624 +0+0; DFP: 800x600 +0+0; DFP: 800x600d60 +0+0; DFP: 800x600_75 +0+0; DFP: 800x600_72 +0+0; DFP: 800x600_60 +0+0; DFP: 800x600_56 +0+0; DFP: 800x512 +0+0; DFP: 720x450 +0+0; DFP: 680x384 +0+0; DFP: 680x384d60_0 +0+0; DFP: 640x512 +0+0; DFP: 640x512d60 +0+0; DFP: 640x480 +0+0; DFP: 640x480_75 +0+0; DFP: 640x480_73 +0+0; DFP: 640x480_60 +0+0; DFP: 640x350 +0+0; DFP: 576x432 +0+0; DFP: 576x432d75_0 +0+0; DFP: 576x432d70 +0+0"
# Removed Option "metamodes" "CRT: nvidia-auto-select +1280+0, DFP: 1280x1024_75 +0+0; DFP: 1280x1024_72 +0+0; DFP: 1280x960 +0+0; DFP: 1152x864 +0+0; DFP: 1152x864_75_0 +0+0; DFP: 1152x864_70 +0+0; DFP: 1152x864_60 +0+0; DFP: 1024x768 +0+0; DFP: 1024x768_70 +0+0; DFP: 1024x768_60 +0+0; DFP: 960x600 +0+0; DFP: 960x540 +0+0; DFP: 896x672 +0+0; DFP: 840x525 +0+0; DFP: 840x525d70 +0+0; DFP: 840x525d60 +0+0; DFP: 840x525d60_0 +0+0; DFP: 832x624 +0+0; DFP: 800x600 +0+0; DFP: 800x600d60 +0+0; DFP: 800x600_75 +0+0; DFP: 800x600_72 +0+0; DFP: 800x600_60 +0+0; DFP: 800x600_56 +0+0; DFP: 800x512 +0+0; DFP: 720x450 +0+0; DFP: 680x384 +0+0; DFP: 680x384d60_0 +0+0; DFP: 640x512 +0+0; DFP: 640x512d60 +0+0; DFP: 640x480 +0+0; DFP: 640x480_75 +0+0; DFP: 640x480_73 +0+0; DFP: 640x480_60 +0+0; DFP: 640x350 +0+0; DFP: 576x432 +0+0; DFP: 576x432d75_0 +0+0; DFP: 576x432d70 +0+0"
# Removed Option "metamodes" "DFP: 1280x1024_72 +0+0; DFP: 1280x960 +0+0; DFP: 1152x864 +0+0; DFP: 1152x864_75_0 +0+0; DFP: 1152x864_70 +0+0; DFP: 1152x864_60 +0+0; DFP: 1024x768 +0+0; DFP: 1024x768_70 +0+0; DFP: 1024x768_60 +0+0; DFP: 960x600 +0+0; DFP: 960x540 +0+0; DFP: 896x672 +0+0; DFP: 840x525 +0+0; DFP: 840x525d70 +0+0; DFP: 840x525d60 +0+0; DFP: 840x525d60_0 +0+0; DFP: 832x624 +0+0; DFP: 800x600 +0+0; DFP: 800x600d60 +0+0; DFP: 800x600_75 +0+0; DFP: 800x600_72 +0+0; DFP: 800x600_60 +0+0; DFP: 800x600_56 +0+0; DFP: 800x512 +0+0; DFP: 720x450 +0+0; DFP: 680x384 +0+0; DFP: 680x384d60_0 +0+0; DFP: 640x512 +0+0; DFP: 640x512d60 +0+0; DFP: 640x480 +0+0; DFP: 640x480_75 +0+0; DFP: 640x480_73 +0+0; DFP: 640x480_60 +0+0; DFP: 640x350 +0+0; DFP: 576x432 +0+0; DFP: 576x432d75_0 +0+0; DFP: 576x432d70 +0+0"
# Removed Option "metamodes" "CRT: nvidia-auto-select +1280+0, DFP: 1280x1024_72 +0+0; CRT: nvidia-auto-select +1280+0, DFP: 1280x960 +0+0; CRT: nvidia-auto-select +1152+0, DFP: 1152x864 +0+0; CRT: nvidia-auto-select +1152+0, DFP: 1152x864_75_0 +0+0; CRT: nvidia-auto-select +1152+0, DFP: 1152x864_70 +0+0; CRT: nvidia-auto-select +1152+0, DFP: 1152x864_60 +0+0; CRT: nvidia-auto-select +1024+0, DFP: 1024x768 +0+0; CRT: nvidia-auto-select +1024+0, DFP: 1024x768_70 +0+0; CRT: nvidia-auto-select +1024+0, DFP: 1024x768_60 +0+0; CRT: nvidia-auto-select +960+0, DFP: 960x600 +0+0; CRT: nvidia-auto-select +960+0, DFP: 960x540 +0+0; CRT: nvidia-auto-select +896+0, DFP: 896x672 +0+0; CRT: nvidia-auto-select +840+0, DFP: 840x525 +0+0; CRT: nvidia-auto-select +840+0, DFP: 840x525d70 +0+0; CRT: nvidia-auto-select +840+0, DFP: 840x525d60 +0+0; CRT: nvidia-auto-select +840+0, DFP: 840x525d60_0 +0+0"
# Removed Option "TwinViewXineramaInfoOrder" "DFP-0"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "AddARGBGLXVisuals" "True"
Option "TwinView" "1"
Option "TwinViewXineramaInfoOrder" "DFP-1"
Option "metamodes" "CRT: nvidia-auto-select +0+0, DFP: 1280x1024_72 +1280+0; CRT: nvidia-auto-select +0+0, DFP: 1280x960 +1280+0; CRT: nvidia-auto-select +0+0, DFP: 1152x864 +1280+0; CRT: nvidia-auto-select +0+0, DFP: 1152x864_75_0 +1280+0; CRT: nvidia-auto-select +0+0, DFP: 1152x864_70 +1280+0; CRT: nvidia-auto-select +0+0, DFP: 1152x864_60 +1280+0; CRT: nvidia-auto-select +0+0, DFP: 1024x768 +1280+0; CRT: nvidia-auto-select +0+0, DFP: 1024x768_70 +1280+0; CRT: nvidia-auto-select +0+0, DFP: 1024x768_60 +1280+0; CRT: nvidia-auto-select +0+0, DFP: 960x600 +1280+0; CRT: nvidia-auto-select +0+0, DFP: 960x540 +1280+0; CRT: nvidia-auto-select +0+0, DFP: 896x672 +1280+0; CRT: nvidia-auto-select +0+0, DFP: 840x525 +1280+0; CRT: nvidia-auto-select +0+0, DFP: 840x525d70 +1280+0; CRT: nvidia-auto-select +0+0, DFP: 840x525d60 +1280+0; CRT: nvidia-auto-select +0+0, DFP: 840x525d60_0 +1280+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection