Problem with dualview and 2 gpus

gbomacfly

New Member
Credits
30
Hello everybody!

I have a problem with my Fujitsu Celsius H80 Laptop (Board: FJNBB5D) with 2 integrated graphic cards:
Code:
~ 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
The laptop sits in a dockingstation and all works fine under Windows and actual Debian. The intel GPU is for the laptop screen, for HDMI/DVI/DP it needs the nvidia GPU, if I'm correct.
It's a fresh kali install with xfce4 and all updates.
My goal is to connect one or two external displays without xinerama. Each Monitor should have a separate desktop.
I installed the nvidia-drivers by help of https://www.kali.org/docs/general-use/install-nvidia-drivers-on-kali-linux/, all seems ok, hascat uses the GPU, nvidia-smi gives me an output.
With the help of "nvidia-xconfig" I managed to get a half working xorg.conf in which I added my intel-gpu manually:
Code:
# 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 "Files"
EndSection
Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbLayout" "de"
    Option         "XkbVariant" "nodeadkeys"
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
At the moment I have a Samsung U28E590 connected though DFP-0.2.
With xinerama deactivated I see a desktop on the laptop screen and can work with it. But on the second Monitor is just a black screen. I can move the mousepointer to it, but nothing else. I cannot move a application to it. All I can see is the mousepointer. Even if I use the internal HDMI-Port (without the dock connected), still the same.
In the "Nvidia X Server Settings" is just one screen called "X Screen 1", refering to my external Monitor.
In the xfce4 display-section is just one screen too, but the laptop screen. Also xrandr:
Code:
~ 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)
With xinerama activated one large desktop over 2 monitors appears. But the resolution is false (way to big) and I cannot login. After entering my credentials it takes me back to the login. But i think I have the correct driver and it works basically.
Here are some configs and outputs:
Code:
~ uname -a
Linux fujitsukali 5.10.0-kali9-amd64 #1 SMP Debian 5.10.46-4kali1 (2021-08-09) x86_64 GNU/Linux
Code:
~ 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
I searched many days, read threads, but all with no luck.
Can anybody help me to find my error? Can I give some more details?

Thanks in advance!
 


gbomacfly

New Member
Credits
30
Got it!

Code:
xrandr --setprovideroutputsource 1 0

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
 

wizardfromoz

Administrator
Staff member
Gold Supporter
Credits
17,776
Thanks for sharing, @gbomacfly and welcome to linux.org ;)

Friday downunder, so

Avagudweegend and enjoy your Linux.

Chris Turner
wizardfromoz
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Top