Nvidia Prime 450 second monitor is black

hey folks,

Trying to get my second monitor working with my hybrid GPU laptop but I am not just able yet. so here is the spec:
inxi -SCGxx

System:    Host: xo Kernel: 5.7.17-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 Desktop: KDE Plasma 5.19.4 
           tk: Qt 5.15.0 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
CPU:       Topology: 8-Core model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64 type: MT MCP arch: Zen rev: 1 
           L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 92658 
           Speed: 1397 MHz min/max: 1400/2900 MHz Core speeds (MHz): 1: 1397 2: 1397 3: 1397 4: 1397 5: 1397 6: 1397 7: 1397 
           8: 1396 9: 1397 10: 1396 11: 1397 12: 1397 13: 1397 14: 1397 15: 1397 16: 1404 
Graphics:  Device-1: NVIDIA TU116M [GeForce GTX 1650 Ti Mobile] vendor: Tongfang Hongkong Limited driver: nvidia v: 450.66 
           bus ID: 01:00.0 chip ID: 10de:2192 
           Device-2: Advanced Micro Devices [AMD/ATI] Renoir vendor: Tongfang Hongkong Limited driver: amdgpu v: kernel 
           bus ID: 06:00.0 chip ID: 1002:1636 
           Device-3: Chicony HD Webcam type: USB driver: uvcvideo bus ID: 3-4:4 chip ID: 04f2:b642 
           Display: x11 server: X.Org 1.20.8 compositor: kwin_x11 driver: amdgpu,nvidia FAILED: ati 
           unloaded: modesetting,nouveau alternate: fbdev,nv,vesa resolution: 1: 1920x1080~120Hz 2: 2560x1600~60Hz s-dpi: 96 
           OpenGL: renderer: AMD RENOIR (DRM 3.37.0 5.7.17-2-MANJARO LLVM 10.0.1) v: 4.6 Mesa 20.1.6 direct render: Yes 

nvidia-smi
Mon Aug 31 21:47:57 2020
±----------------------------------------------------------------------------+
| NVIDIA-SMI 450.66 Driver Version: 450.66 CUDA Version: 11.0 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce GTX 165… Off | 00000000:01:00.0 On | N/A |
| N/A 46C P8 5W / N/A | 6MiB / 3911MiB | 0% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+

    +-----------------------------------------------------------------------------+
    | Processes:                                                                  |
    |  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
    |        ID   ID                                                   Usage      |
    |=============================================================================|
    |    0   N/A  N/A      1284      G   /usr/lib/Xorg                       4MiB |
    +-----------------------------------------------------------------------------+

mhwd -li
    > Installed PCI configs:
    --------------------------------------------------------------------------------
                      NAME               VERSION          FREEDRIVER           TYPE
    --------------------------------------------------------------------------------
    video-hybrid-amd-nvidia-450xx-prime            2019.10.25               false            PCI
               video-linux            2018.05.04                true            PCI

xrandr
Screen 0: minimum 320 x 200, current 4480 x 1600, maximum 16384 x 16384
eDP connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1920x1080 120.04*+ 48.01
1680x1050 120.04
1280x1024 120.04
1440x900 120.04
1280x800 120.04
1280x720 120.04
1024x768 120.04
800x600 120.04
640x480 120.04
DP-1-0 connected 2560x1600+1920+0 641mm x 401mm
2560x1600 59.97*+
1920x1440 60.00
1920x1200 59.88
1920x1080 60.00 59.94 50.00 23.98
1600x1200 60.00
1280x1024 75.02 60.02
1280x800 59.81
1280x720 60.00 59.94 50.00
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.93 59.94
DP-1-1 disconnected
DP-1-2 disconnected
DP-1-3 disconnected
HDMI-1-0 disconnected

So on the face of it I am expecting this to work but unfortunately my second monitor is pitch black but I know I can move the move mouse across (can’t see it) and also the display recognises it.

How could I get this last puzzle working?

Current conf settings:
10-amdgpu-nvidia-drm …conft
Section “ServerLayout”
Identifier “layout”
Option “AllowNVIDIAGPUScreens”
EndSection

    Section "OutputClass"
        Identifier "AMDgpu"
        MatchDriver "amdgpu"
        Driver "amdgpu"
    EndSection

    Section "OutputClass"
        Identifier "nvidia"
        MatchDriver "nvidia-drm"
        Driver "nvidia"
        Option "AllowEmptyInitialConfiguration"
        ModulePath "/usr/lib/nvidia/xorg"
        ModulePath "/usr/lib/xorg/modules"
    EndSection

10-amdgpu.conf
Section “OutputClass”
Identifier “AMDgpu”
MatchDriver “amdgpu”
Driver “amdgpu”
EndSection

not sure why but I also have this genereated:

10-intel-nvidia-drm-outputclass.conf

Section "ServerLayout"
    Identifier "layout"
    Option "AllowNVIDIAGPUScreens"
EndSection

Section "OutputClass"
    Identifier "intel"
    MatchDriver "i915"
    Driver "modesetting"
EndSection

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    ModulePath "/usr/lib/nvidia/xorg"
    ModulePath "/usr/lib/xorg/modules"
EndSection

Many thanks

p.s. I am not a gamer and particularity fussed with GX GPU as long as I can get one one them to work with monitors it’s really fine with me.

Hello,

Do any of this comments help?



1 Like

I have Matrix RP-17 which has an AMD 4800h and RTX 2060 (mobile) and I was having the same problem, after distro hopping and scouring forums for a week, I found this to work:
github-com/dglt1/optimus-switch-amd-sddm*

No problems just ran the ~set-nvidia.sh~ and it worked.

I got it from: forum-manjaro-org/t/no-hdmi-output-on-amd-nvidia-hybrid-laptop/15242/3*

*can’t post links but you can figure it out I’m sure.