Linux

ID #1072

Compiz mit Xinerama unter Nvidia Karten

Quelle: http://blog.gauner.org/2008/03/19/compiz-mit-xinerama-unter-nvidia-karten/

 

 

Den composing Window Manager Compiz auf einem Xinerama Setup mit einer Nvidia Karte zum laufen zu bringen ist gar nicht so einfach, da es wohl bei der Verwendung von Xinerama und Composite zu einem Bug kommt der den Einsatz von Compiz verhindert. Wer dennoch nicht auf den zweiten Monitor verzichten will der kann anstelle von Xinerama das TwinView Feature der Nvidia Treiber benutzen. Diese stellen eine Xinerama kompatible Erweiterung da mit der dann auch Composing funktioniert.

 

Von einer funktionierenden Compiz Konfiguration für einen Monitor ausgehend müssen folgenden Punkte in der xorg.conf geändert bzw. ergänzt werden.

# Xinerama ausschalten
Section "ServerFlags"
Option "Xinerama" "0"
EndSection
# Composing aktivieren, sollte schon aktiv sein
Section "Extensions"
Option "Composite" "Enable"
EndSection
Section "Device"
Identifier "nvidia0"
Driver "nvidia"
Option "NoLogo" "True"
# BusID anpassen, siehe lspci
BusID "PCI:2:0:0"
Screen 0
Option "RenderAccel"
# Die HWcursor und Cursor* Optionen können weggelassen werden
Option "HWcursor"
Option "CursorShadow"
Option "CursorShadowAlpha" "32"
Option "CursorShadowXOffset" "3"
Option "CursorShadowYOffset" "3"
# Falls GLX genutzt werden soll
Option "AllowGLXWithComposite" "True"
# Wichtig: Die TwinView Optionen
Option "TwinView" "True"
# Je nachdem ob der zweite Monitor rechts oder links steht hier LeftOf bzw. RightOf eintragen
Option "TwinViewOrientation" "LeftOf"
# Die MetaModes, jeweils der primäre Monitor und der sekundäre. In den meisten Fällen dürften das identische Paare sein
Option "MetaModes" "1280x1024,1280x1024;1280x1024;1024x768,1024x768;800x600,800x600"
# Falls der zweite Monitor über Edid keine brauchbaren Informationen liefert muss man die Werte von Hand eintragen
Option "SecondMonitorHorizSync" "UseEdidFreqs"
Option "SecondMonitorVertRefresh" "UseEdidFreqs"
EndSection
Section "Screen"
Identifier "Screen0"
Device "nvidia0"
Monitor "monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
Option "AddARGBGLXVisuals" "True"
Option "DisableGLXRootClipping" "True"
EndSection

Wenn dann nach einem Neustart des X-Servers alles funktioniert würde ich mir auf jeden Fall CCSM anschauen. Weitere Informationen zu Dual-Head Setups gibts im Gentoo Wiki.

 

 

==> Meine Config:

$ cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder26)  Thu Feb 14 18:13:41 PST 2008
# 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.
#
# 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  "Default Screen"
#Screen      0  "Default Screen" 0 0
#Screen      1  "screen1" RightOf "Default Screen"
InputDevice    "Generic Keyboard" "CoreKeyboard"
InputDevice    "Configured Mouse"
EndSection
Section "Module"
Load           "glx"
Load           "v4l"
EndSection
Section "ServerFlags"
Option         "Xinerama" "false"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Section "InputDevice"
Identifier     "Generic Keyboard"
Driver         "kbd"
Option         "XkbRules" "xorg"
Option         "XkbModel" "pc105"
Option         "XkbLayout" "de"
EndSection
Section "InputDevice"
Identifier     "Configured Mouse"
Driver         "mouse"
Option         "CorePointer"
EndSection
Section "Monitor"
Identifier     "Configured Monitor"
VendorName     "Generic LCD Display"
ModelName      "LCD Panel 1280x1024"
HorizSync       31.5 - 64.0
VertRefresh     56.0 - 65.0
Gamma           1
ModeLine       "640x480@60" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
ModeLine       "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
ModeLine       "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
ModeLine       "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
ModeLine       "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
ModeLine       "1280x1024@60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
EndSection
Section "Monitor"
Identifier     "Configured Monitor2"
EndSection
Section "Monitor"
#
Identifier     "monitor1"
VendorName     "Generic LCD Display"
ModelName      "LCD Panel 1280x1024"
HorizSync       31.5 - 64.0
VertRefresh     56.0 - 65.0
Gamma           1
ModeLine       "640x480@60" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
ModeLine       "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
ModeLine       "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
ModeLine       "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
ModeLine       "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
ModeLine       "1280x1024@60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
EndSection
Section "Device"
Identifier     "Configured Video Device"
Driver         "nvidia"
VendorName     "NVIDIA"
BoardName      "NVIDIA GeForce 7 Series"
BusID          "PCI:3:0:0"
Screen          0
Option "RenderAccel"
Option "CursorShadow"
Option "CursorShadowAlpha" "32"
Option "CursorShadowXOffset" "3"
Option "CursorShadowYOffset" "3"
Option "AllowGLXWithComposite" "True"
Option "TwinView" "True"
Option "TwinViewOrientation" "RightOf"
Option "MetaModes" "1280x1024,1280x1024;1280x1024;1024x768,1024x768;800x600,800x600"
EndSection
Section "Device"
#
Identifier     "device1"
Driver         "nvidia"
VendorName     "NVIDIA"
BoardName      "NVIDIA GeForce 7 Series"
BusID          "PCI:3:0:0"
Screen          1
Option "RenderAccel"
Option "CursorShadow"
Option "CursorShadowAlpha" "32"
Option "CursorShadowXOffset" "3"
Option "CursorShadowYOffset" "3"
Option "AllowGLXWithComposite" "True"
Option "TwinView" "True"
Option "TwinViewOrientation" "LeftOf"
Option "MetaModes" "1280x1024,1280x1024;1280x1024;1024x768,1024x768;800x600,800x600"
EndSection
Section "Screen"
Identifier     "Default Screen"
Device         "Configured Video Device"
Monitor        "Configured Monitor"
DefaultDepth    24
SubSection     "Display"
Depth       24
Modes      "1280x1024@60" "1280x960@60" "1024x768@60" "800x600@60" "800x600@56" "640x480@60"
EndSubSection
EndSection
Section "Screen"
#
Identifier     "screen1"
Device         "device1"
Monitor        "monitor1"
DefaultDepth    24
SubSection     "Display"
Depth       24
Modes      "1280x1024@60" "1280x960@60" "1024x768@60" "800x600@60" "800x600@56" "640x480@60"
EndSubSection
EndSection

Tags: X11, Compiz, Fusion, NVIDIA, Xinerama

Verwandte Artikel:

Letzte Änderung des Artikels: 2008-09-29 11:00
Verfasser des Artikels: Florian Schrön
Revision: 1.0

Digg it! Artikel ausdrucken Artikel weiterempfehlen Als PDF-Datei anzeigen
Übersetzungsvorschlag für Übersetzungsvorschlag für
Bewertung der Nützlichkeit dieses Artikels:

Durchschnittliche Bewertung: 0 von 5 (0 Bewertungen)

vollkommen überflüssig 1 2 3 4 5 sehr wertvoll

Kommentieren nicht möglich