[gelöst] - Dualview mit 2 verschiedenen GPUs (Nvidia/intel)

KDE, Gnome, Windowmanager, X11, Grafiktreiber und alles was dazu notwendig ist. Schau auch in den "Tipps und Tricks"-Bereich.
Antworten
gbomacfly
Beiträge: 5
Registriert: 01.09.2021 02:47:08

[gelöst] - Dualview mit 2 verschiedenen GPUs (Nvidia/intel)

Beitrag von gbomacfly » 01.09.2021 04:11:14

Hallo zusammen!

Ich habe ein Problem mit meinem Fujitsu Celsius H80 Laptop (Board: FJNBB5D) mit 2 integrierten Grafikkarten:

Code: Alles auswählen

~ lspci -k | grep -A 2 -E "(VGA|3D)"
00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630]
    Subsystem: Fujitsu Limited. UHD Graphics 630 (Mobile)
    Kernel driver in use: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation GP107GLM [Quadro P2000 Mobile] (rev a1)
    Subsystem: Fujitsu Limited. GP107GLM [Quadro P2000 Mobile]
    Kernel driver in use: nvidia
Der Laptop sitzt in einer Dockingstation und unter Windows und aktuellem Debian funktioniert alles prima. Internes Displays, Samsung-TV per HDMI, 1 Monitor über DVI, einer über DP, alles läuft super. Und gleichzeitig. Nur unter Kali nicht.
Die Intel-GPU ist für den Laptop-Bildschirm, für HDMI/DVI/DP braucht es die nvidia-GPU, wenn ich richtig liege. Es ist eine Kali-Neuinstallation mit XFCE4 und allen Updates.
Mein Ziel ist es, ein oder mehrere externe Displays ohne Xinerama anzuschließen. Jeder Monitor sollte einen separaten Desktop haben.

Ich habe die nvidia-Treiber mit Hilfe von https://www.kali.org/docs/general-use/i ... ali-linux/ installiert, alles scheint in Ordnung, hashcat verwendet die GPU, nvidia-smi gibt mir eine Ausgabe. Mit Hilfe von "nvidia-xconfig" habe ich es geschafft, eine halbwegs funktionierende xorg.conf zu bekommen, in der ich meine Intel-Gpu hinzugefügt habe:

Code: Alles auswählen

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 470.57.02
Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen1" 0 0
    Screen      1  "Screen0" RightOf "Screen1"
    Screen      2  "Screen0 (1)" RightOf "Screen0"
    Screen      3  "Screen0 (2)" RightOf "Screen0 (1)"
    Screen      4  "Screen0 (3)" RightOf "Screen0 (2)"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

...

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Samsung"
    ModelName      "U28E590"
    HorizSync       30.0 - 135.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Fujitsu"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "intel"
    VendorName     "Intel Corporation"
    BoardName      "UHD Graphics 630"
    BusID          "PCI:0:2:0"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro P2000"
    BusID          "PCI:1:0:0"
    Screen          0
EndSection

Section "Device"
    Identifier     "Device0 (1)"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro P2000"
    BusID          "PCI:1:0:0"
    Screen          1
EndSection

Section "Device"
    Identifier     "Device0 (2)"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro P2000"
    BusID          "PCI:1:0:0"
    Screen          2
EndSection
Section "Device"
    Identifier     "Device0 (3)"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro P2000"
    BusID          "PCI:1:0:0"
    Screen          3
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "AllowEmptyInitialConfiguration" "True"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0.2"
    Option         "metamodes" "3840x2160 +0+0"
    Option         "SLI" "Off"
    Option         "MultiGPU" "On"
    Option         "BaseMosaic" "off"
    DefaultDepth    24
    Option         "AllowEmptyInitialConfiguration" "True"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Section "Screen"
    Identifier     "Screen0 (1)"
    Device         "Device0 (1)"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "AllowEmptyInitialConfiguration" "True"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Section "Screen"
    Identifier     "Screen0 (2)"
    Device         "Device0 (2)"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "AllowEmptyInitialConfiguration" "True"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Section "Screen"
    Identifier     "Screen0 (3)"
    Device         "Device0 (3)"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "AllowEmptyInitialConfiguration" "True"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Im Moment habe ich einen Samsung U28E590 über DFP-0.2 angeschlossen.Bei deaktiviertem xinerama sehe ich einen Desktop auf dem Laptop-Bildschirm und kann damit arbeiten. Aber auf dem zweiten Monitor ist nur ein schwarzer Bildschirm. Ich kann den Mauszeiger darauf bewegen, aber sonst nichts. Ich kann keine Anwendung dorthin verschieben. Ich sehe nur den Mauszeiger. Auch wenn ich den internen HDMI-Port verwende (ohne angeschlossenes Dock), immer noch das gleiche. In den "Nvidia X Server Settings" befindet sich nur ein Bildschirm namens "X Screen 1", der sich auf meinen externen Monitor bezieht. Im xfce4-Display-Bereich befindet sich auch nur ein Bildschirm, allerdings der Laptop-Bildschirm. Ebenso xrandr:

Code: Alles auswählen

~ xrandr -q
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
eDP1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
   1920x1080     60.02*+  59.93  
   1680x1050     59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      60.00    59.95    59.82  
   1280x1024     60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1368x768      60.00    59.88    59.85  
   1360x768      59.80    59.96  
   1280x800      59.81    59.91  
   1152x864      60.00  
   1280x720      59.86    60.00    59.74  
   1024x768      60.00  
   1024x576      60.00    59.90    59.82  
   960x540       60.00    59.63    59.82  
   800x600       60.32    56.25  
   864x486       60.00    59.92    59.57  
   640x480       59.94  
   720x405       59.51    60.00    58.99  
   640x360       59.84    59.32    60.00  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
Bei aktiviertem xinerama erscheint ein großer Desktop über 2 Monitore. Aber die Auflösung ist falsch (viel zu groß) und ich kann mich nicht anmelden. Nach Eingabe meiner Zugangsdaten komme ich zurück zum Login. Aber ich denke, ich habe den richtigen Treiber und es funktioniert im Grunde.

Hier sind noch einige Konfigurationen und Ausgaben:

Code: Alles auswählen

~ uname -a
Linux fujitsukali 5.10.0-kali9-amd64 #1 SMP Debian 5.10.46-4kali1 (2021-08-09) x86_64 GNU/Linux

Code: Alles auswählen

~ dpkg -l | grep -i nvidia
ii  glx-alternative-nvidia                                      1.2.0                                  amd64        allows the selection of NVIDIA as GLX provider
ii  libaccinj64-11.2:amd64                                      11.2.152~11.2.2-3                      amd64        NVIDIA ACCINJ Library (64-bit)
ii  libcublas11:amd64                                           11.4.1.1043~11.2.2-3                   amd64        NVIDIA cuBLAS Library
ii  libcublaslt11:amd64                                         11.4.1.1043~11.2.2-3                   amd64        NVIDIA cuBLASLt Library
ii  libcuda1:amd64                                              470.57.02-2                            amd64        NVIDIA CUDA Driver Library
ii  libcudart11.0:amd64                                         11.2.152~11.2.2-3                      amd64        NVIDIA CUDA Runtime Library
ii  libcufft10:amd64                                            11.1.1+~10.4.1.152~11.2.2-3            amd64        NVIDIA cuFFT Library
ii  libcufftw10:amd64                                           11.1.1+~10.4.1.152~11.2.2-3            amd64        NVIDIA cuFFTW Library
ii  libcuinj64-11.2:amd64                                       11.2.152~11.2.2-3                      amd64        NVIDIA CUINJ Library (64-bit)
ii  libcupti-dev:amd64                                          11.2.152~11.2.2-3                      amd64        NVIDIA CUDA Profiler Tools Interface development files
ii  libcupti-doc                                                11.2.152~11.2.2-3                      all          NVIDIA CUDA Profiler Tools Interface documentation
ii  libcupti11.2:amd64                                          11.2.152~11.2.2-3                      amd64        NVIDIA CUDA Profiler Tools Interface runtime library
ii  libcurand10:amd64                                           11.1.1+~10.2.3.152~11.2.2-3            amd64        NVIDIA cuRAND Library
ii  libcusolver11:amd64                                         11.1.1+~11.1.0.152~11.2.2-3            amd64        NVIDIA cuSOLVER Library
ii  libcusolvermg11:amd64                                       11.1.1+~11.1.0.152~11.2.2-3            amd64        NVIDIA cuSOLVERmg Library
ii  libcusparse11:amd64                                         11.4.1.1152~11.2.2-3                   amd64        NVIDIA cuSPARSE Library
ii  libegl-nvidia-legacy-390xx0:amd64                           390.144-1                              amd64        NVIDIA binary EGL library (390xx legacy version)
ii  libegl-nvidia0:amd64                                        470.57.02-2                            amd64        NVIDIA binary EGL library
ii  libgl1-nvidia-glvnd-glx:amd64                               470.57.02-2                            amd64        NVIDIA binary OpenGL/GLX library (GLVND variant)
ii  libgles-nvidia1:amd64                                       470.57.02-2                            amd64        NVIDIA binary OpenGL|ES 1.x library
ii  libgles-nvidia2:amd64                                       470.57.02-2                            amd64        NVIDIA binary OpenGL|ES 2.x library
ii  libglx-nvidia-legacy-390xx0:amd64                           390.144-1                              amd64        NVIDIA binary GLX library (390xx legacy version)
ii  libglx-nvidia0:amd64                                        470.57.02-2                            amd64        NVIDIA binary GLX library
ii  libnppc11:amd64                                             11.3.2.152~11.2.2-3                    amd64        NVIDIA Performance Primitives core runtime library
ii  libnppial11:amd64                                           11.3.2.152~11.2.2-3                    amd64        NVIDIA Performance Primitives lib for Image Arithmetic and Logic
ii  libnppicc11:amd64                                           11.3.2.152~11.2.2-3                    amd64        NVIDIA Performance Primitives lib for Image Color Conversion
ii  libnppidei11:amd64                                          11.3.2.152~11.2.2-3                    amd64        NVIDIA Performance Primitives lib for Image Data Exchange and Initialization
ii  libnppif11:amd64                                            11.3.2.152~11.2.2-3                    amd64        NVIDIA Performance Primitives lib for Image Filters
ii  libnppig11:amd64                                            11.3.2.152~11.2.2-3                    amd64        NVIDIA Performance Primitives lib for Image Geometry transforms
ii  libnppim11:amd64                                            11.3.2.152~11.2.2-3                    amd64        NVIDIA Performance Primitives lib for Image Morphological operations
ii  libnppist11:amd64                                           11.3.2.152~11.2.2-3                    amd64        NVIDIA Performance Primitives lib for Image Statistics
ii  libnppisu11:amd64                                           11.3.2.152~11.2.2-3                    amd64        NVIDIA Performance Primitives lib for Image Support
ii  libnppitc11:amd64                                           11.3.2.152~11.2.2-3                    amd64        NVIDIA Performance Primitives lib for Image Threshold and Compare
ii  libnpps11:amd64                                             11.3.2.152~11.2.2-3                    amd64        NVIDIA Performance Primitives for signal processing runtime library
ii  libnvcuvid1:amd64                                           470.57.02-2                            amd64        NVIDIA CUDA Video Decoder runtime library
ii  libnvidia-cbl:amd64                                         470.57.02-2                            amd64        NVIDIA binary Vulkan ray tracing (cbl) library
ii  libnvidia-cfg1:amd64                                        470.57.02-2                            amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-compiler:amd64                                    470.57.02-2                            amd64        NVIDIA runtime compiler library
ii  libnvidia-eglcore:amd64                                     470.57.02-2                            amd64        NVIDIA binary EGL core libraries
ii  libnvidia-encode1:amd64                                     470.57.02-2                            amd64        NVENC Video Encoding runtime library
ii  libnvidia-glcore:amd64                                      470.57.02-2                            amd64        NVIDIA binary OpenGL/GLX core libraries
ii  libnvidia-glvkspirv:amd64                                   470.57.02-2                            amd64        NVIDIA binary Vulkan Spir-V compiler library
ii  libnvidia-legacy-390xx-cfg1:amd64                           390.144-1                              amd64        NVIDIA binary OpenGL/GLX configuration library (390xx legacy version)
ii  libnvidia-legacy-390xx-cuda1:amd64                          390.144-1                              amd64        NVIDIA CUDA Driver Library (390xx legacy version)
ii  libnvidia-legacy-390xx-eglcore:amd64                        390.144-1                              amd64        NVIDIA binary EGL core libraries (390xx legacy version)
ii  libnvidia-legacy-390xx-fatbinaryloader:amd64                390.144-1                              amd64        NVIDIA FAT binary loader (390xx legacy version)
ii  libnvidia-legacy-390xx-glcore:amd64                         390.144-1                              amd64        NVIDIA binary OpenGL/GLX core libraries (390xx legacy version)
ii  libnvidia-legacy-390xx-ml1:amd64                            390.144-1                              amd64        NVIDIA Management Library (NVML) runtime library (390xx legacy version)
ii  libnvidia-legacy-390xx-ptxjitcompiler1:amd64                390.144-1                              amd64        NVIDIA PTX JIT Compiler library (390xx legacy version)
ii  libnvidia-ml-dev:amd64                                      11.2.152~11.2.2-3                      amd64        NVIDIA Management Library (NVML) development files
ii  libnvidia-ml1:amd64                                         470.57.02-2                            amd64        NVIDIA Management Library (NVML) runtime library
ii  libnvidia-ptxjitcompiler1:amd64                             470.57.02-2                            amd64        NVIDIA PTX JIT Compiler library
ii  libnvidia-rtcore:amd64                                      470.57.02-2                            amd64        NVIDIA binary Vulkan ray tracing (rtcore) library
ii  libnvjpeg11:amd64                                           11.4.0.152~11.2.2-3                    amd64        NVIDIA JPEG library (nvJPEG)
ii  libnvrtc11.2:amd64                                          11.2.152~11.2.2-3                      amd64        CUDA Runtime Compilation (NVIDIA NVRTC Library)
ii  libnvtoolsext1:amd64                                        11.2.152~11.2.2-3                      amd64        NVIDIA Tools Extension Library
ii  libnvvm4:amd64                                              11.2.152~11.2.2-3                      amd64        NVIDIA NVVM Library
ii  nsight-compute                                              2020.3.1.4~11.2.2-3                    amd64        NVIDIA Nsight Compute
ii  nsight-compute-target:amd64                                 2020.3.1.4~11.2.2-3                    amd64        NVIDIA Nsight Compute (target specific libraries)
ii  nsight-systems                                              2020.4.3.7~11.2.2-3                    amd64        NVIDIA Nsight Systems
ii  nsight-systems-target:amd64                                 2020.4.3.7~11.2.2-3                    amd64        NVIDIA Nsight Systems (target specific libraries)
ii  nvidia-alternative                                          470.57.02-2                            amd64        allows the selection of NVIDIA as GLX provider
ii  nvidia-cuda-dev:amd64                                       11.2.2-3                               amd64        NVIDIA CUDA development files
ii  nvidia-cuda-gdb                                             11.2.152~11.2.2-3                      amd64        NVIDIA CUDA Debugger (GDB)
ii  nvidia-cuda-toolkit                                         11.2.2-3                               amd64        NVIDIA CUDA development toolkit
ii  nvidia-cuda-toolkit-doc                                     11.2.2-3                               all          NVIDIA CUDA and OpenCL documentation
ii  nvidia-driver                                               470.57.02-2                            amd64        NVIDIA metapackage
ii  nvidia-driver-bin                                           470.57.02-2                            amd64        NVIDIA driver support binaries
ii  nvidia-driver-libs:amd64                                    470.57.02-2                            amd64        NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)
ii  nvidia-egl-common                                           470.57.02-2                            amd64        NVIDIA binary EGL driver - common files
ii  nvidia-egl-icd:amd64                                        470.57.02-2                            amd64        NVIDIA EGL installable client driver (ICD)
ii  nvidia-installer-cleanup                                    20151021+13                            amd64        cleanup after driver installation with the nvidia-installer
ii  nvidia-kernel-common                                        20151021+13                            amd64        NVIDIA binary kernel module support files
ii  nvidia-kernel-dkms                                          470.57.02-2                            amd64        NVIDIA binary kernel module DKMS source
ii  nvidia-kernel-support                                       470.57.02-2                            amd64        NVIDIA binary kernel module support files
ii  nvidia-legacy-390xx-alternative                             390.144-1                              amd64        allows the selection of NVIDIA as GLX provider (390xx legacy version)
ii  nvidia-legacy-390xx-kernel-dkms                             390.144-1                              amd64        NVIDIA binary kernel module DKMS source (390xx legacy version)
ii  nvidia-legacy-390xx-kernel-support                          390.144-1                              amd64        NVIDIA binary kernel module support files (390xx legacy version)
ii  nvidia-legacy-390xx-smi                                     390.144-1                              amd64        NVIDIA System Management Interface (390xx legacy version)
ii  nvidia-legacy-390xx-vdpau-driver:amd64                      390.144-1                              amd64        Video Decode and Presentation API for Unix - NVIDIA driver (390xx legacy)
ii  nvidia-legacy-390xx-vulkan-icd:amd64                        390.144-1                              amd64        NVIDIA Vulkan installable client driver (ICD) (390xx legacy version)
ii  nvidia-legacy-check                                         470.57.02-2                            amd64        check for NVIDIA GPUs requiring a legacy driver
ii  nvidia-modprobe                                             470.57.02-1                            amd64        utility to load NVIDIA kernel modules and create device nodes
ii  nvidia-opencl-common                                        470.57.02-2                            amd64        NVIDIA OpenCL driver - common files
ii  nvidia-opencl-dev:amd64                                     11.2.2-3                               amd64        NVIDIA OpenCL development files
ii  nvidia-opencl-icd:amd64                                     470.57.02-2                            amd64        NVIDIA OpenCL installable client driver (ICD)
ii  nvidia-openjdk-8-jre                                        9.+8u292-b10-3~11.2.2-3                amd64        Obsolete OpenJDK Java runtime, for NVIDIA applications
ii  nvidia-persistenced                                         470.57.02-1                            amd64        daemon to maintain persistent software state in the NVIDIA driver
ii  nvidia-profiler                                             11.2.152~11.2.2-3                      amd64        NVIDIA Profiler for CUDA and OpenCL
ii  nvidia-settings                                             470.57.02-2                            amd64        tool for configuring the NVIDIA graphics driver
ii  nvidia-smi                                                  470.57.02-2                            amd64        NVIDIA System Management Interface
ii  nvidia-support                                              20151021+13                            amd64        NVIDIA binary graphics driver support files
ii  nvidia-vdpau-driver:amd64                                   470.57.02-2                            amd64        Video Decode and Presentation API for Unix - NVIDIA driver
ii  nvidia-visual-profiler                                      11.2.152~11.2.2-3                      amd64        NVIDIA Visual Profiler for CUDA and OpenCL
ii  nvidia-vulkan-common                                        470.57.02-2                            amd64        NVIDIA Vulkan driver - common files
ii  nvidia-vulkan-icd:amd64                                     470.57.02-2                            amd64        NVIDIA Vulkan installable client driver (ICD)
ii  nvidia-xconfig                                              470.57.02-1                            amd64        deprecated X configuration tool for non-free NVIDIA drivers
ii  xserver-xorg-video-nvidia                                   470.57.02-2                            amd64        NVIDIA binary Xorg driver
Kann mich bitte jemand auf den richtigen Weg bringen? Ich habe jetzt mehrere Tage experimentiert, viel gegooglet und Foren gelesen, ich komm auf keinen grünen Zweig.
Entweder bekomme ich die interne Grafik oder die externe, aber nie beide zusammen. Wo liegt mein Fehler?

Danke schonmal!
Zuletzt geändert von gbomacfly am 02.09.2021 18:40:09, insgesamt 1-mal geändert.

Benutzeravatar
hikaru
Moderator
Beiträge: 13585
Registriert: 09.04.2008 12:48:59

Re: Dualview mit 2 verschiedenen GPUs (Nvidia/intel)

Beitrag von hikaru » 01.09.2021 09:17:42

Die verlinkte Anleitung zur Installation des Nvidia-Treibers erscheint mir auf den ersten Blick solide.
Ich habe nur begrenzte Erfahrung mit Nvidia und keine mit einem 4-Monitor-Setup oder Multi-GPU-Setups, aber irgendetwas erscheint mir an deier xorg.conf schräg:
Da gibt es für den Intel-Chip die Kombination Device1/Monitor1/Screen1, was vermutlich letztendlich auf dem Laptopbildschirm landet.

Für die Nvidia-GPU hast du aber nicht drei, sondern vier Einträge:

Code: Alles auswählen

Device0    /Monitor0/Screen0
Device0 (1)/Monitor0/Screen0 (1)
Device0 (2)/Monitor0/Screen0 (2)
Device0 (3)/Monitor0/Screen0 (3)
Außerdem landen die alle auf Monitor0, nicht etwa Monitor0 (1-3).
Ist das so korrekt oder eine Fehlkonfiguration?

Auch deine xrandr-Ausgabe erscheint mir etwas "dünn", falls sie vollständig ist. Warum ist da nur ein Output zu sehen?
Mit der xorg.conf stehe ich etwas auf Kriegsfuß. Ich versuche normalerweise alles über xrandr zu lösen, was für meine einfachen Setups ausreicht. Schieb doch bitte mal deine xorg.conf zur Seite und poste die vollständige Ausgabe von xrandr!

Als generelles Vorgehen würde ich vorschlagen, nicht zu versuchen alles auf einmal zu konfigurieren, sondern sich Monitor für Monitor vorzuarbeiten und jeden Zwischenschritt auf korrekte Funktion zu prüfen.

gbomacfly
Beiträge: 5
Registriert: 01.09.2021 02:47:08

Re: Dualview mit 2 verschiedenen GPUs (Nvidia/intel)

Beitrag von gbomacfly » 02.09.2021 15:38:13

Hallo und erstmal Danke für deine Hilfe.

Ich hab jetzt die xorg.conf umbenannt, wirkt also gerade nicht. Angeschlossen ist DVI (LG Monitor), DP1 (Samsung Monitor) und HDMI (Denon AVR), xrandr gibt folgende Ausgabe:

Code: Alles auswählen

~ xrandr -q
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080     60.02*+  60.01    59.97    59.96    59.93  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1360x768      59.80    59.96  
   1280x800      59.99    59.97    59.81    59.91  
   1152x864      60.00  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   800x512       60.17  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   720x450       59.89  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   680x384       59.80    59.96  
   640x400       59.88    59.98  
   576x432       60.06  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
Auch nachdem ich "modprobe nvidia" ausgeführt hab.

"NVIDIA X Server Settings" allerdings zeigt alle angeschlossenen Monitore an, erkennt sie auch richtig.

Als nächstes hab ich die xorg.conf eingedampft und etwas geordnet, intel-GPU ist jetzt alles mit 0 und nvidia mit 1:

Code: Alles auswählen

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    Option         "Xinerama" "0"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Fujitsu"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Samsung"
    ModelName      "U28E590"
    HorizSync       30.0 - 135.0
    VertRefresh     56.0 - 75.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "intel"
    VendorName     "Intel Corporation"
    BoardName      "UHD Graphics 630"
    BusID          "PCI:0:2:0"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Quadro P2000"
    BusID          "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
EndSection
Jetzt hab ich nen Cursor, der über alle 4 Monitore wandern kann, aber immer noch dasselbe Ergebnis :(
Ich mag xorg auch nicht wirklich, jedesmal der Ärger damit :(

Benutzeravatar
hikaru
Moderator
Beiträge: 13585
Registriert: 09.04.2008 12:48:59

Re: Dualview mit 2 verschiedenen GPUs (Nvidia/intel)

Beitrag von hikaru » 02.09.2021 15:44:23

Wirklich anfangen kann ich mit der Situation nichts. Ist Debianbumblebee-nvidia installiert?

willy4711

Re: Dualview mit 2 verschiedenen GPUs (Nvidia/intel)

Beitrag von willy4711 » 02.09.2021 15:56:31

Kann man überhaupt zwei unterschiedliche GraKa's gleichzeitig betreiben?
Bumblebee hat doch auch nur die Möglichkeit eines entweder oder.

Einfallen würde mir (wenn auch noch nicht realisiert): Pci passthrough via VM

gbomacfly
Beiträge: 5
Registriert: 01.09.2021 02:47:08

Re: Dualview mit 2 verschiedenen GPUs (Nvidia/intel)

Beitrag von gbomacfly » 02.09.2021 16:06:54

bumblebee-nvidia war nicht installiert. Hab ich getan und service gestartet.
Leider auch da keine Verbesserung :(

Benutzeravatar
hikaru
Moderator
Beiträge: 13585
Registriert: 09.04.2008 12:48:59

Re: Dualview mit 2 verschiedenen GPUs (Nvidia/intel)

Beitrag von hikaru » 02.09.2021 16:32:42

willy4711 hat geschrieben: ↑ zum Beitrag ↑
02.09.2021 15:56:31
Kann man überhaupt zwei unterschiedliche GraKa's gleichzeitig betreiben?
Prinzipiell wohl ja. Vor geschätzt 10 Jahren hatte ich dazu mal was gelesen. Aber es klang komliziert. Und das war noch vor Optimus/Bumblebee.
Mir fehlt hier aber die Erfahrung, weil ich um solche Architekturen immer einen Bogen gemacht habe.

gbomacfly
Beiträge: 5
Registriert: 01.09.2021 02:47:08

Re: Dualview mit 2 verschiedenen GPUs (Nvidia/intel)

Beitrag von gbomacfly » 02.09.2021 16:54:36

Ich hab jetzt mal zum Test ein ct' desinfect gestartet. Am Anfang kommt auf allen Monitoren der selbe Startscreen, danach geht allerdings wieder nur der Laptopscreen.
Allerdings spuckt jetzt xrandr mehr aus:

Code: Alles auswählen

desinfect@desinfect:~/Desktop$ xrandr -q
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080     60.02*+  60.01    59.97    59.96    59.93  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1360x768      59.80    59.96  
   1280x800      59.99    59.97    59.81    59.91  
   1152x864      60.00  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   800x512       60.17  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   720x450       59.89  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   680x384       59.80    59.96  
   640x400       59.88    59.98  
   576x432       60.06  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +  50.00    59.94    30.00    25.00    24.00    29.97    23.98  
   4096x2160     30.00    25.00    24.00    29.97    23.98  
   3840x2160     30.00    25.00    24.00    29.97    23.98  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.88  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x800      59.91  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  
DP-1-4 disconnected (normal left inverted right x axis y axis)
DP-1-5 disconnected (normal left inverted right x axis y axis)
DP-1-6 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +
   1680x1050     59.88  
   1400x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x800      59.91  
   1152x864      75.00  
   1280x720      60.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   640x480       75.00    59.94  
   720x400       70.08  
DP-1-7 connected (normal left inverted right x axis y axis)
   3840x2160     60.00 +  30.00    29.97  
   2560x1440     59.95  
   1920x1080     60.00    59.94  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x800      59.81  
   1152x864      75.00  
   1280x720      60.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  
DP-1-8 disconnected (normal left inverted right x axis y axis)
  1680x1050 (0x61) 119.000MHz +HSync -VSync
        h: width  1680 start 1728 end 1760 total 1840 skew    0 clock  64.67KHz
        v: height 1050 start 1053 end 1059 total 1080           clock  59.88Hz
  1280x1024 (0x64) 108.000MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock  63.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  60.02Hz
  1280x800 (0x66) 71.000MHz +HSync -VSync
        h: width  1280 start 1328 end 1360 total 1440 skew    0 clock  49.31KHz
        v: height  800 start  803 end  809 total  823           clock  59.91Hz
  1024x768 (0x6d) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  800x600 (0x71) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  640x480 (0x79) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz
  1680x1050 (0x7e) 146.250MHz -HSync +VSync
        h: width  1680 start 1784 end 1960 total 2240 skew    0 clock  65.29KHz
        v: height 1050 start 1053 end 1059 total 1089           clock  59.95Hz
  1440x900 (0x7f) 106.500MHz -HSync +VSync
        h: width  1440 start 1520 end 1672 total 1904 skew    0 clock  55.93KHz
        v: height  900 start  903 end  909 total  934           clock  59.89Hz
  1280x800 (0x80) 83.500MHz -HSync +VSync
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock  49.70KHz
        v: height  800 start  803 end  809 total  831           clock  59.81Hz
  800x600 (0x81) 36.000MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock  35.16KHz
        v: height  600 start  601 end  603 total  625           clock  56.25Hz

Benutzeravatar
hikaru
Moderator
Beiträge: 13585
Registriert: 09.04.2008 12:48:59

Re: Dualview mit 2 verschiedenen GPUs (Nvidia/intel)

Beitrag von hikaru » 02.09.2021 17:35:02

Eben so eine xrandr-Ausgabe hätte ich erwartet.

Setz mal im Terminal innerhalb der X-Session als normaler User das ab:

Code: Alles auswählen

xrandr --output eDP-1  --mode 1920x1080 \
       --output DP-1-3 --mode 1920x1080 --right-of eDP-1  \
       --output DP-1-6 --mode 1920x1080 --right-of DP-1-3 \
       --output DP-1-7 --mode 1920x1080 --right-of DP-1-6
Dann solltest du ein Setup bekommen, das dem Gewünschten zumindest ähnelt.

gbomacfly
Beiträge: 5
Registriert: 01.09.2021 02:47:08

Re: Dualview mit 2 verschiedenen GPUs (Nvidia/intel)

Beitrag von gbomacfly » 02.09.2021 18:39:30

Erfolg!

Ich hab mal ein bisschen mit xrandr rumgespielt und fand --listproviders. Daraufhin konnte ich Google befragen und ich festgestellt, dass ein Kommando fehlte:

Code: Alles auswählen

xrandr --setprovideroutputsource 1 0 
Anschliessend gab xrandr -q eine Ausgabe.
Danach konnte ich folgendes machen:

Code: Alles auswählen

xrandr --output eDP-1  --mode 1920x1080 \
--output DP-1-0.2 --mode 3840x2160 --right-of eDP-1 \
--output DP-1-0.1 --mode 1920x1080 --right-of DP-1-0.2 \
--output DP-1-3 --mode 1920x1080 --above eDP-1
Jetzt funktioniert es, wie es soll :)

Vielen Dank an euch!

Benutzeravatar
hikaru
Moderator
Beiträge: 13585
Registriert: 09.04.2008 12:48:59

Re: Dualview mit 2 verschiedenen GPUs (Nvidia/intel)

Beitrag von hikaru » 02.09.2021 19:05:47

Sehr schön! Man lernt immer noch was Neues.

Antworten