Black output on Monitor, Hybrid AMD/Nvidia Laptop with HDMI on dGpu under Nvidia 450 driver

I had this working sort of in the 440 drivers, but it was clugy, with the 450 drivers figured I’d give it another try, and it’s… better

inxi -Fza gives the following

System:    Kernel: 5.8.3-2-MANJARO x86_64 bits: 64 compiler: N/A 
               parameters: ro root=UUID=8594e875-8120-4304-a9cc-9952e2b21290 
               initrd=boot\initramfs-5.8-x86_64.img 
               Desktop: KDE Plasma 5.19.4 tk: Qt 5.15.0 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
    Machine:   Type: Laptop System: Acer product: Nitro AN515-44 v: V1.01 serial: <filter> 
               Mobo: RO model: Stonic_RNS v: V1.01 serial: <filter> UEFI: Insyde v: 1.01 
               date: 04/16/2020 
    Battery:   ID-1: BAT1 charge: 56.3 Wh condition: 56.3/57.5 Wh (98%) volts: 17.3/15.4 
               model: LGC AP18E8M type: Li-ion serial: <filter> status: Full 
    CPU:       Topology: 6-Core model: AMD Ryzen 5 4600H with Radeon Graphics bits: 64 type: MT MCP 
               arch: Zen family: 17 (23) model-id: 60 (96) stepping: 1 microcode: 8600103 
               L2 cache: 3072 KiB 
               flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
               bogomips: 71899 
               Speed: 1741 MHz min/max: 1400/3000 MHz boost: enabled Core speeds (MHz): 1: 1457 
               2: 1398 3: 1397 4: 1397 5: 1397 6: 1397 7: 1442 8: 1397 9: 1397 10: 1397 11: 1398 
               12: 1396 
               Vulnerabilities: Type: itlb_multihit status: Not affected 
               Type: l1tf status: Not affected 
               Type: mds status: Not affected 
               Type: meltdown status: Not affected 
               Type: spec_store_bypass 
               mitigation: Speculative Store Bypass disabled via prctl and seccomp 
               Type: spectre_v1 
               mitigation: usercopy/swapgs barriers and __user pointer sanitization 
               Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, IBRS_FW, STIBP: 
               conditional, RSB filling 
               Type: srbds status: Not affected 
               Type: tsx_async_abort status: Not affected 
    Graphics:  Device-1: NVIDIA TU117M vendor: Acer Incorporated ALI driver: nvidia v: 450.66 
               alternate: nouveau,nvidia_drm bus ID: 01:00.0 chip ID: 10de:1f99 
               Device-2: AMD Renoir vendor: Acer Incorporated ALI driver: amdgpu v: kernel 
               bus ID: 05:00.0 chip ID: 1002:1636 
               Device-3: Chicony HD User Facing type: USB driver: uvcvideo bus ID: 3-3:2 
               chip ID: 04f2:b64f serial: <filter> 
               Display: x11 server: X.Org 1.20.8 compositor: kwin_x11 driver: amdgpu,nvidia 
               FAILED: ati unloaded: modesetting,nouveau alternate: fbdev,nv,vesa display ID: :0 
               screens: 1 
               Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1013x285mm (39.9x11.2") 
               s-diag: 1052mm (41.4") 
               Monitor-1: eDP res: 1920x1080 hz: 60 dpi: 142 size: 344x194mm (13.5x7.6") 
               diag: 395mm (15.5") 
               Monitor-2: HDMI-1-0 res: 1920x1080 hz: 60 dpi: 96 size: 510x287mm (20.1x11.3") 
               diag: 585mm (23") 
               OpenGL: renderer: AMD RENOIR (DRM 3.38.0 5.8.3-2-MANJARO LLVM 10.0.1) 
               v: 4.6 Mesa 20.1.6 direct render: Yes 
    Audio:     Device-1: AMD Raven/Raven2/FireFlight/Renoir Audio Processor 
               vendor: Acer Incorporated ALI driver: snd_rn_pci_acp3x v: kernel 
               alternate: snd_pci_acp3x bus ID: 05:00.5 chip ID: 1022:15e2 
               Device-2: AMD Family 17h HD Audio vendor: Acer Incorporated ALI 
               driver: snd_hda_intel v: kernel bus ID: 05:00.6 chip ID: 1022:15e3 
               Sound Server: ALSA v: k5.8.3-2-MANJARO 
    Network:   Device-1: Realtek vendor: Acer Incorporated ALI driver: r8169 v: kernel port: 2000 
               bus ID: 03:00.0 chip ID: 10ec:2600 
               IF: enp3s0 state: down mac: <filter> 
               Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: 2000 bus ID: 04:00.0 
               chip ID: 8086:2723 
               IF: wlp4s0 state: up mac: <filter> 
    Drives:    Local Storage: total: 704.24 GiB used: 294.22 GiB (41.8%) 
               SMART Message: Unable to run smartctl. Root privileges required. 
               ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN530 SDBPNPZ-256G-1014 
               size: 238.47 GiB block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s 
               lanes: 4 serial: <filter> rev: 21103900 scheme: GPT 
               ID-2: /dev/sda vendor: Western Digital model: WD5000LPVT-08G33T1 size: 465.76 GiB 
               block size: physical: 4096 B logical: 512 B speed: 3.0 Gb/s rotation: 5400 rpm 
               serial: <filter> rev: 1A02 scheme: GPT 
    Partition: ID-1: / raw size: 60.00 GiB size: 58.81 GiB (98.01%) used: 9.88 GiB (16.8%) fs: ext4 
               dev: /dev/sda1 
               ID-2: /home raw size: 30.00 GiB size: 29.40 GiB (98.01%) used: 1.75 GiB (6.0%) 
               fs: ext4 dev: /dev/sda2 
    Swap:      Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
               ID-1: swap-1 type: partition size: 8.00 GiB used: 0 KiB (0.0%) priority: -2 
               dev: /dev/sda4 
    Sensors:   System Temperatures: cpu: 46.8 C mobo: N/A gpu: amdgpu temp: 36 C 
               Fan Speeds (RPM): N/A 
    Info:      Processes: 295 Uptime: 14m Memory: 30.80 GiB used: 1.80 GiB (5.8%) Init: systemd 
               v: 246 Compilers: gcc: 10.2.0 Packages: pacman: 1203 lib: 317 flatpak: 0 Shell: Zsh 
               v: 5.8 running in: konsole inxi: 3.1.05 

xrandr --verbose the following

 Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
    eDP connected primary 1920x1080+0+0 (0x55) normal (normal left inverted right x axis y axis) 344mm x 194mm
        Identifier: 0x53
        Timestamp:  670512
        Subpixel:   unknown
        Gamma:      1.0:1.0:1.0
        Brightness: 1.0
        Clones:    
        CRTC:       0
        CRTCs:      0 1 2 3
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        EDID: 
                00ffffffffffff0009e5180800000000
                201c0104a522137802c9a0955d599429
                24505400000001010101010101010101
                010101010101953b803671383c403020
                360058c21000001a0000000000000000
                00000000000000000000000000fe0042
                4f452043510a202020202020000000fe
                004e5631353646484d2d4e34380a0049
        GAMMA_LUT_SIZE: 4096 
                range: (0, -1)
        DEGAMMA_LUT_SIZE: 4096 
                range: (0, -1)
        GAMMA_LUT: 0 
                range: (0, 65535)
        CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 
                0 1 
        DEGAMMA_LUT: 0 
                range: (0, 65535)
        TearFree: auto 
                supported: off, on, auto
        HDCP Content Type: HDCP Type0 
                supported: HDCP Type0, HDCP Type1
        Content Protection: Undesired 
                supported: Undesired, Desired, Enabled
        vrr_capable: 0 
                range: (0, 1)
        abm level: 0 
                range: (0, 4)
        max bpc: 16 
                range: (8, 16)
        underscan vborder: 0 
                range: (0, 128)
        underscan hborder: 0 
                range: (0, 128)
        underscan: off 
                supported: off, on, auto
        scaling mode: None 
                supported: None, Full, Center, Full aspect
        link-status: Good 
                supported: Good, Bad
        CONNECTOR_ID: 64 
                supported: 64
        non-desktop: 0 
                range: (0, 1)
      1920x1080 (0x55) 152.530MHz +HSync -VSync *current +preferred
        h: width  1920 start 1968 end 2000 total 2230 skew    0 clock  68.40KHz
        v: height 1080 start 1083 end 1089 total 1140           clock  60.00Hz
      1680x1050 (0x56) 152.530MHz +HSync -VSync
        h: width  1680 start 1968 end 2000 total 2230 skew    0 clock  68.40KHz
        v: height 1050 start 1083 end 1089 total 1140           clock  60.00Hz
      1280x1024 (0x57) 152.530MHz +HSync -VSync
        h: width  1280 start 1968 end 2000 total 2230 skew    0 clock  68.40KHz
        v: height 1024 start 1083 end 1089 total 1140           clock  60.00Hz
      1440x900 (0x58) 152.530MHz +HSync -VSync
        h: width  1440 start 1968 end 2000 total 2230 skew    0 clock  68.40KHz
        v: height  900 start 1083 end 1089 total 1140           clock  60.00Hz
      1280x800 (0x59) 152.530MHz +HSync -VSync
        h: width  1280 start 1968 end 2000 total 2230 skew    0 clock  68.40KHz
        v: height  800 start 1083 end 1089 total 1140           clock  60.00Hz
      1280x720 (0x5a) 152.530MHz +HSync -VSync
        h: width  1280 start 1968 end 2000 total 2230 skew    0 clock  68.40KHz
        v: height  720 start 1083 end 1089 total 1140           clock  60.00Hz
      1024x768 (0x5b) 152.530MHz +HSync -VSync
        h: width  1024 start 1968 end 2000 total 2230 skew    0 clock  68.40KHz
        v: height  768 start 1083 end 1089 total 1140           clock  60.00Hz
      800x600 (0x5c) 152.530MHz +HSync -VSync
        h: width   800 start 1968 end 2000 total 2230 skew    0 clock  68.40KHz
        v: height  600 start 1083 end 1089 total 1140           clock  60.00Hz
      640x480 (0x5d) 152.530MHz +HSync -VSync
        h: width   640 start 1968 end 2000 total 2230 skew    0 clock  68.40KHz
        v: height  480 start 1083 end 1089 total 1140           clock  60.00Hz
    HDMI-1-0 connected 1920x1080+1920+0 (0x1fc) normal (normal) 510mm x 287mm
        Identifier: 0x1fb
        Timestamp:  670512
        Subpixel:   unknown
        Gamma:      1.0:1.0:1.0
        Brightness: 1.0
        Clones:    
        CRTC:       4
        CRTCs:      4 5 6 7
        Transform:  1.000000 0.000000 0.000000
                    0.000000 1.000000 0.000000
                    0.000000 0.000000 1.000000
                   filter: 
        PRIME Synchronization: 1 
                supported: 0, 1
        CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 
                0 1 
        CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
        EDID: 
                00ffffffffffff0010ac72404c583348
                0e17010380331d78eadd45a3554fa027
                125054a54b00714f8180d1c001010101
                010101010101023a801871382d40582c
                4500fe1f1100001e000000ff00324746
                4b4e3334314833584c0a000000fc0044
                454c4c205532333132484d0a000000fd
                00384c1e5311000a202020202020000f
        BorderDimensions: 4 
                supported: 4
        Border: 0 0 0 0 
                range: (0, 65535)
        SignalFormat: TMDS 
                supported: TMDS
        ConnectorType: HDMI 
        ConnectorNumber: 2 
        _ConnectorLocation: 2 
        non-desktop: 0 
                supported: 0, 1
      1920x1080 (0x1fc) 148.500MHz +HSync +VSync *current +preferred
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.50KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  60.00Hz
      1280x1024 (0x1fd) 135.000MHz +HSync +VSync
        h: width  1280 start 1296 end 1440 total 1688 skew    0 clock  79.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  75.02Hz
      1280x1024 (0x1fe) 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
      1152x864 (0x1ff) 108.000MHz +HSync +VSync
        h: width  1152 start 1216 end 1344 total 1600 skew    0 clock  67.50KHz
        v: height  864 start  865 end  868 total  900           clock  75.00Hz
      1024x768 (0x200) 78.750MHz +HSync +VSync
        h: width  1024 start 1040 end 1136 total 1312 skew    0 clock  60.02KHz
        v: height  768 start  769 end  772 total  800           clock  75.03Hz
      1024x768 (0x201) 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 (0x202) 49.500MHz +HSync +VSync
        h: width   800 start  816 end  896 total 1056 skew    0 clock  46.88KHz
        v: height  600 start  601 end  604 total  625           clock  75.00Hz
      800x600 (0x203) 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 (0x204) 31.500MHz -HSync -VSync
        h: width   640 start  656 end  720 total  840 skew    0 clock  37.50KHz
        v: height  480 start  481 end  484 total  500           clock  75.00Hz
      640x480 (0x205) 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

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


Warning: No installed USB configs!

Seems similar to others, so, will continue to monitor. The monitor does display in “Display configurations” under KDE and is selected as “enabled” if I disable it, the monitor goes into power-saving, so it’s getting some sort of signal, but not what it needs to display anything.

It works fine under windows.

What do you mean by “working sort of”?

What do you mean by “it’s better”?

Asking because we can help you better if you can tell us the full issue / story

So it was working sort of in that I had some sort of script that I’d installed (optimus switching if I recall) that let me switch between the two GPU’s that are in this machine, so if I wanted to use the monitor, if I swtiched to the Nvidia GPU (and rebooted) then I could use the monitor, and then when I wanted to use the laptop by itself (and didn’t need the Nvidia) I could switch back to the AMD GPU (and reboot) it would work power-saving.

Edit: Think it was this GitHub - dglt1/optimus-switch-amd-sddm: WIP optimus-switch for amd/nvidia hybrid laptops using SDDM. that I was using to switch between the two GPU’s

What’s better (and not sure if it’s the 450 drivers, or the 5.8 Kernel) is it does now detect the HDMI port (it didn’t used to see it at all). Appreciate any thoughts.

One further note, I did try the 5.9 kernel just for curiosity, that seemed to be worse, didn’t even seem to see the monitor (no power-cycling)

Hi!
Using optimus switch is just other way to use dual graphics, it isn’t worse or better, just other way. I’ve been using it for a year without problems, imho, it’s more better than prime or others ways to use dual graphics. It help you to save a lot of battery, but like my pop used to say, for likes… asses, everyone have one!!

But Optimus Switch requires that I reboot every time I change, to me that’s worse, I want to go from using the AMD graphics because I’m using the laptop as a real laptop, to using it more like a desktop (plugged into a monitor) to playing some games using the Nvidia graphics, back to using it as a laptop without having to constantly reboot.

Hi|
Yeah, that’s right! Depends of you needs or your likes (like a said in my previous post ). Im usually use it as “laptop” and I’m no gamer so igpu is enough for me. I use dgpu only when I need the hdmi output so I rather switch than other way.

About 450, did you use the hybrid driver?

Yes, the two drivers installed are the video-hybrid-amd-nvidia-450xx-prime and video-linux. Video-linux is only there because it was a dependency for the other driver.

I’m also has this problem - black screen on HDMI output.
I have Ryzen 5 with Vega 8 and NVidia 1650 Max-Q (with HDMI) on my laptop, and after installing driver “video-hybrid-amd-nvidia-450xx-prime”, I have features to work with my dgpu. But, when I plug in HDMI display, there is just black screen. It’s detecting by “xrandr” as “HDMI-1-0” (with correct info about display), but also “HDMI-1” detecting as “disconnected”. In GNOME System Settings in Display menu it also available. And it changes correct when I disconnect HDMI display, and reconnect again. It works when I add line

Option "PrimaryGPU" "Yes"

in “10-amdgpu-nvidia-drm-outputclass.conf” at “nvidia” line, but after rebooting login screen appears at HDMI, and all apps running using NVidia card, there is no more AMD. Any ideas, how to activate NVidia card at HDMI port, but use default graphics as AMD?

has anyone reported it upstream? and where exactly would be “upstream” - nvidia or amdgpu?