PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : xorg.conf für zwei Monitore



Borland
09.06.11, 14:31
Hallo Leute,

auf meinem Laptop läuft Fedora 15 mit Gnome 3 und bin auch recht zufrieden.
In meinem System sind zwei Grafikkarten, wobei ich nur die NVIDIA mit Treibern nutze. (akmod)
Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller
nVidia Corporation GT218 [GeForce G210M]

Nun verwende ich einen externen Monitor, der über HDMI verbunden ist, was auch sehr flüssig läuft. Leider wird mit meiner aktuellen xorg.conf Einstellung mein Laptop-Display NICHT erkannt und kann nicht angesprochen werden, was doof ist, wenn der externe mal nicht angeschlossen ist...

Dies ist meine xorg.conf:

Section "ServerLayout"
Identifier "X.org Configured"
Screen "Screen0" 0 0
Screen "Screen1" LeftOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/lib64/xorg/modules"
FontPath "catalogue:/etc/X11/fontpath.d"
FontPath "built-ins"
EndSection

Section "Module"
Load "record"
Load "extmod"
Load "dbe"
Load "dri2"
Load "glx"
EndSection

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

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Device"
Identifier "Card0"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "TwinView" "1"
EndSection

Section "Screen"
Identifier "Screen0"
Monitor "Monitor0"
Device "Card0"
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Card0"
Monitor "Monitor1"
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Vielen Dank für Eure Hilfe, verzweifle mittlerweile schon an diesem Problem.

kreol
09.06.11, 15:56
Bist Du sicher, dass zwei Grafikkarten verbaut sind? Oder nur eine mit zwei Ausgängen? Was sagt
lspci | grep VGAIch hänge meine xorg.conf mal an, allerdings sind da zwei GraKa mit je zwei Ausgängen beteiligt. Schaus Dir halt mal an, die zweite GraKa kannst Du ja rausnehmen.

Meines Wissens mag der nvidia-Treiber auch kein dri-modul, aber das dürfte bei Deinem Prob nebensächlich sein.

Kreol

undefined
09.06.11, 17:14
Der NVidia Treiber lässt es leider nicht zu eine weitere Grafikkarte eines anderen Herstellers mit ein zu binden. So etwas geht nur mit den OpenSource Treibern die mit Xinerama zusammen arbeiten. Du kannst aber mit dem nouveau Treiber beide betreiben.

Borland
09.06.11, 18:55
Hier ist der Output von lspci | grep VGA:
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
01:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce G210M] (rev a2)

Meine xorg.conf hab ich so abgeändert:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 270.41.19 (buildmeister@swio-display-x86-rhel47-07.nvidia.com) Mon May 16 23:52:12 PDT 2011

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" RightOf "Screen1"
Screen 1 "Screen1"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/lib64/xorg/modules"
FontPath "catalogue:/etc/X11/fontpath.d"
FontPath "built-ins"
EndSection

Section "Module"
Load "record"
Load "extmod"
Load "dbe"
Load "dri2"
Load "glx"
EndSection

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

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Monitor1"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
Option "DPMS"
EndSection

Section "Device"
Identifier "Card0"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "TwinView" "1"
EndSection

Section "Screen"
Identifier "Screen0"
Monitor "Monitor0"
Device "Card0"
Option "TwinView" "1"
Option "TwinViewXineramaInfoOrder" "CRT-0"
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Card0"
Monitor "Monitor1"
Option "TwinView" "1"
Option "TwinViewXineramaInfoOrder" "CRT-0"
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Leider funktioniert es immer noch nicht.
Also nochmal was ich möchte:
- den Laptop-Monitor immer verwenden
- den Laptop-Monitor zusammen mit dem externen Monitor verwenden, sofern letzterer per HDMI angeschlossen ist - per VGA war das gänzlich ohne nvidia (sondern nur mit nouveau) kein Problem!

Wie empfehlt ihr denn mir jetzt das weitere Vorgehen?
Geht es nicht dass der nvidia Treiber beide Monitore "nimmt"?
Was muss ich in meiner xorg.conf abändern, damit der nouveau Treiber beide Monitore (auch per HDMI) akzeptiert? Ich hatte das Gefühl dass die interne Intel-Grafik irgendwie nur VGA ansprechen konnte? Also brauch ich ja nvidia?

Vielen Dank für die Unterstützung! :)

kreol
09.06.11, 23:15
Wirf zunächst einen Blick in die /var/log/Xorg.0.log, die ist immer der Ausgangspunkt.

Im Vergleich zu meiner xorg.conf fällt auf, dass Du dieselbe Karte 2x mit Section screen ansprichst, das macht aber der nvidia-Treiber schon. Also entfällt imho das Gefummel mit screen 0 und screen 1.

Als die Dualhead-Karten noch 2 verschiedene PCI-Adressen für die beiden Ausgänge hatten war das notwendig, mittlerweile entfällt das, wenn man nur eine GraKa betreibt.

Kreol

Borland
10.06.11, 08:33
Danke, hab mal den zweiten Screen aus der xorg.conf rausgeworfen...die Ausgabe vom log für den Bildschirm sieht so aus:




[ 29.929] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[ 29.929] (==) NVIDIA(0): RGB weight 888
[ 29.929] (==) NVIDIA(0): Default visual is TrueColor
[ 29.929] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[ 29.929] (**) NVIDIA(0): Option "TwinView" "1"
[ 29.929] (**) NVIDIA(0): Option "TwinViewXineramaInfoOrder" "CRT-0"
[ 30.704] (II) NVIDIA(GPU-0): Display (AOC V22 (DFP-1)) does not support NVIDIA 3D Vision
[ 30.704] (II) NVIDIA(GPU-0): stereo.
[ 30.706] (II) NVIDIA(0): NVIDIA GPU GeForce G210M (GT218) at PCI:1:0:0 (GPU-0)
[ 30.706] (--) NVIDIA(0): Memory: 524288 kBytes
[ 30.706] (--) NVIDIA(0): VideoBIOS: 70.18.3c.00.c0
[ 30.706] (II) NVIDIA(0): Detected PCI Express Link width: 8X
[ 30.706] (--) NVIDIA(0): Interlaced video modes are supported on this GPU
[ 30.706] (--) NVIDIA(0): Connected display device(s) on GeForce G210M at PCI:1:0:0
[ 30.706] (--) NVIDIA(0): AOC V22 (DFP-1)
[ 30.706] (--) NVIDIA(0): AOC V22 (DFP-1): 165.0 MHz maximum pixel clock
[ 30.706] (--) NVIDIA(0): AOC V22 (DFP-1): Internal Single Link TMDS
[ 30.709] (WW) NVIDIA(0): No TwinView "MetaModes" specified; will fall back to Display
[ 30.709] (WW) NVIDIA(0): SubSection modes.
[ 30.709] (**) NVIDIA(0): TwinView enabled
[ 30.710] (WW) NVIDIA(0): TwinView requested, but only 1 display devices found.
[ 30.710] (WW) NVIDIA(0): The EDID for AOC V22 (DFP-1) contradicts itself: mode
[ 30.710] (WW) NVIDIA(0): "720x576" is specified in the EDID; however, the EDID's
[ 30.710] (WW) NVIDIA(0): valid VertRefresh range (56.000-75.000 Hz) would exclude
[ 30.710] (WW) NVIDIA(0): this mode's VertRefresh (50.0 Hz); ignoring VertRefresh
[ 30.710] (WW) NVIDIA(0): check for mode "720x576".
[ 30.710] (WW) NVIDIA(0): The EDID for AOC V22 (DFP-1) contradicts itself: mode
[ 30.710] (WW) NVIDIA(0): "1920x1080" is specified in the EDID; however, the EDID's
[ 30.710] (WW) NVIDIA(0): valid VertRefresh range (56.000-75.000 Hz) would exclude
[ 30.710] (WW) NVIDIA(0): this mode's VertRefresh (50.0 Hz); ignoring VertRefresh
[ 30.710] (WW) NVIDIA(0): check for mode "1920x1080".
[ 30.710] (WW) NVIDIA(0): The EDID for AOC V22 (DFP-1) contradicts itself: mode
[ 30.710] (WW) NVIDIA(0): "1920x1080" is specified in the EDID; however, the EDID's
[ 30.710] (WW) NVIDIA(0): valid VertRefresh range (56.000-75.000 Hz) would exclude
[ 30.710] (WW) NVIDIA(0): this mode's VertRefresh (50.0 Hz); ignoring VertRefresh
[ 30.710] (WW) NVIDIA(0): check for mode "1920x1080".
[ 30.710] (WW) NVIDIA(0): The EDID for AOC V22 (DFP-1) contradicts itself: mode
[ 30.710] (WW) NVIDIA(0): "1280x720" is specified in the EDID; however, the EDID's
[ 30.710] (WW) NVIDIA(0): valid VertRefresh range (56.000-75.000 Hz) would exclude
[ 30.710] (WW) NVIDIA(0): this mode's VertRefresh (50.0 Hz); ignoring VertRefresh
[ 30.710] (WW) NVIDIA(0): check for mode "1280x720".
[ 30.710] (WW) NVIDIA(0): The EDID for AOC V22 (DFP-1) contradicts itself: mode
[ 30.710] (WW) NVIDIA(0): "720x576" is specified in the EDID; however, the EDID's
[ 30.710] (WW) NVIDIA(0): valid VertRefresh range (56.000-75.000 Hz) would exclude
[ 30.710] (WW) NVIDIA(0): this mode's VertRefresh (50.0 Hz); ignoring VertRefresh
[ 30.710] (WW) NVIDIA(0): check for mode "720x576".
[ 30.710] (WW) NVIDIA(0): The EDID for AOC V22 (DFP-1) contradicts itself: mode
[ 30.710] (WW) NVIDIA(0): "720x576" is specified in the EDID; however, the EDID's
[ 30.710] (WW) NVIDIA(0): valid VertRefresh range (56.000-75.000 Hz) would exclude
[ 30.710] (WW) NVIDIA(0): this mode's VertRefresh (50.0 Hz); ignoring VertRefresh
[ 30.710] (WW) NVIDIA(0): check for mode "720x576".
[ 30.713] (WW) NVIDIA(0): The EDID for AOC V22 (DFP-1) contradicts itself: mode
[ 30.713] (WW) NVIDIA(0): "720x576" is specified in the EDID; however, the EDID's
[ 30.713] (WW) NVIDIA(0): valid VertRefresh range (56.000-75.000 Hz) would exclude
[ 30.713] (WW) NVIDIA(0): this mode's VertRefresh (50.0 Hz); ignoring VertRefresh
[ 30.713] (WW) NVIDIA(0): check for mode "720x576".
[ 30.714] (WW) NVIDIA(0): The EDID for AOC V22 (DFP-1) contradicts itself: mode
[ 30.714] (WW) NVIDIA(0): "1920x1080" is specified in the EDID; however, the EDID's
[ 30.715] (WW) NVIDIA(0): valid VertRefresh range (56.000-75.000 Hz) would exclude
[ 30.715] (WW) NVIDIA(0): this mode's VertRefresh (50.0 Hz); ignoring VertRefresh
[ 30.715] (WW) NVIDIA(0): check for mode "1920x1080".
[ 30.715] (WW) NVIDIA(0): The EDID for AOC V22 (DFP-1) contradicts itself: mode
[ 30.715] (WW) NVIDIA(0): "1920x1080" is specified in the EDID; however, the EDID's
[ 30.715] (WW) NVIDIA(0): valid VertRefresh range (56.000-75.000 Hz) would exclude
[ 30.715] (WW) NVIDIA(0): this mode's VertRefresh (50.0 Hz); ignoring VertRefresh
[ 30.715] (WW) NVIDIA(0): check for mode "1920x1080".
[ 30.717] (WW) NVIDIA(0): The EDID for AOC V22 (DFP-1) contradicts itself: mode
[ 30.717] (WW) NVIDIA(0): "1280x720" is specified in the EDID; however, the EDID's
[ 30.717] (WW) NVIDIA(0): valid VertRefresh range (56.000-75.000 Hz) would exclude
[ 30.717] (WW) NVIDIA(0): this mode's VertRefresh (50.0 Hz); ignoring VertRefresh
[ 30.717] (WW) NVIDIA(0): check for mode "1280x720".
[ 30.719] (WW) NVIDIA(0): The EDID for AOC V22 (DFP-1) contradicts itself: mode
[ 30.719] (WW) NVIDIA(0): "720x576" is specified in the EDID; however, the EDID's
[ 30.719] (WW) NVIDIA(0): valid VertRefresh range (56.000-75.000 Hz) would exclude
[ 30.719] (WW) NVIDIA(0): this mode's VertRefresh (50.0 Hz); ignoring VertRefresh
[ 30.719] (WW) NVIDIA(0): check for mode "720x576".
[ 30.721] (WW) NVIDIA(0): The EDID for AOC V22 (DFP-1) contradicts itself: mode
[ 30.721] (WW) NVIDIA(0): "720x576" is specified in the EDID; however, the EDID's
[ 30.721] (WW) NVIDIA(0): valid VertRefresh range (56.000-75.000 Hz) would exclude
[ 30.721] (WW) NVIDIA(0): this mode's VertRefresh (50.0 Hz); ignoring VertRefresh
[ 30.721] (WW) NVIDIA(0): check for mode "720x576".
[ 30.816] (II) NVIDIA(0): Assigned Display Device: DFP-1
[ 30.816] (==) NVIDIA(0):
[ 30.816] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[ 30.816] (==) NVIDIA(0): will be used as the requested mode.
[ 30.816] (==) NVIDIA(0):
[ 30.816] (II) NVIDIA(0): Validated modes:
[ 30.816] (II) NVIDIA(0): "nvidia-auto-select"
[ 30.816] (II) NVIDIA(0): Virtual screen size determined to be 1680 x 1050
[ 30.823] (--) NVIDIA(0): DPI set to (80, 88); computed from "UseEdidDpi" X config
[ 30.823] (--) NVIDIA(0): option
[ 30.823] (--) Depth 24 pixmap format is 32 bpp
[ 30.823] (II) NVIDIA: Using 768.00 MB of virtual memory for indirect memory access.
[ 30.830] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[ 30.830] (II) NVIDIA(0): may not be running or the "AcpidSocketPath" X
[ 30.830] (II) NVIDIA(0): configuration option may not be set correctly. When the
[ 30.830] (II) NVIDIA(0): ACPI event daemon is available, the NVIDIA X driver will
[ 30.830] (II) NVIDIA(0): try to use it to receive ACPI event notifications. For
[ 30.830] (II) NVIDIA(0): details, please see the "ConnectToAcpid" and
[ 30.830] (II) NVIDIA(0): "AcpidSocketPath" X configuration options in Appendix B: X
[ 30.830] (II) NVIDIA(0): Config Options in the README.
[ 30.833] (II) NVIDIA(0): Setting mode "nvidia-auto-select"
[ 30.882] (II) Loading extension NV-GLX
[ 30.939] (==) NVIDIA(0): Disabling shared memory pixmaps
[ 30.939] (==) NVIDIA(0): Backing store disabled
[ 30.939] (==) NVIDIA(0): Silken mouse enabled
[ 30.939] (**) NVIDIA(0): DPMS enabled
[ 30.939] (II) Loading extension NV-CONTROL
[ 30.940] (II) Loading extension XINERAMA
[ 30.940] (II) Loading sub module "dri2"
[ 30.940] (II) LoadModule: "dri2"
[ 30.940] (II) Loading /usr/lib64/xorg/modules/extensions/libdri2.so
[ 30.940] (II) Module dri2: vendor="X.Org Foundation"
[ 30.940] compiled for 1.10.2, module version = 1.2.0
[ 30.940] ABI class: X.Org Server Extension, version 5.0
[ 30.940] (II) NVIDIA(0): [DRI2] Setup complete
[ 30.940] (==) RandR enabled


Also er findet einfach den Laptop-Monitor nicht?!

kreol
10.06.11, 09:38
Zum einen sieht das Log nicht komplett aus, zum anderen:

[ 30.709] (WW) NVIDIA(0): No TwinView "MetaModes" specified; will fall back to Display
[ 30.709] (WW) NVIDIA(0): SubSection modes.
[ 30.709] (**) NVIDIA(0): TwinView enabledDaran krankt es wohl.

Hast Du es schon mit nvidia-xconfig und nvidia-settings versucht?

Ansonsten: Es erstaunt mich etwas, dass in einem NB zwei GraKa verbaut sind. Bist Du sicher, dass beide Anschlüsse über dieselbe laufen? Sonst wäre die (hier unverifizierte) Aussage von undefined in #3 zu überlegen bzw. in der xorg.conf die 2. GraKa anzusprechen.

Hier (http://www.nvidia.de/Download/index.aspx?lang=de) warst Du sicher schon. Da findet sich auch ein umfangreiches (englischsprachiges) HowTo.


Kreol

Borland
10.06.11, 16:24
Also wie gesagt mein Laptop hat eine Intel und eben die Nvidia Grafik.

-> Externen Monitor über HDMI und NVIDIA verwenden ist kein Problem

Nachdem ich das Internet nochmalsdurchforstet habe und keinen Rat gefunden habe, beide Bildschirme zu verwenden habe ich mich erstmal damit begnügt nur einen jeweils zu verwenden.

So aber da ist das Problem: Wenn der externe NICHT angeschlossen ist, dann findet der nvidia Treiber meinen Laptop Monitor genauso wenig! Erst wenn ich den Treiber "nvidia" auskommentiere funktioniert der Laptop Monitor.
Wie bekomme ich jetzt nvidia mit dem Laptop Monitor zum Laufen??

Borland
10.06.11, 17:10
So, ich habe nun dank des folgendes Links alle oben genannten Probleme lösen können.
Bei mir läuft jetzt der Laptop Monitor und der externe mit NVIDIA Karte, einzeln und im Twinview :)
http://www.linuxquestions.org/questions/slackware-14/ee-failed-to-initialize-the-nvidia-graphics-device-on-startx-with-slackware-13-1-a-828165/page3.html

Diesen step musste ich tätigen: change the SATA option in the bios from enhanced to compatibility

Kann mir jemand erklären was es nun damit auf sich hat?