Cannot use external monitor and laptop display at the same time after installing hybrid AMD/NVIDIA driver

Hello,

I have an Asus FX505DT with Ryzen 7 3750H and Nvidia GTX 1650, so I installed the "video-hybrid-amd-nvidia-440xx-prime" driver throught mhwd. I normally use my laptop with an external monitor, but after the driver installation only the internal display was working. I notice that the original 90-mhwd.conf file on the /etc/X11/xorg.conf.d/ directory changed to this:

##
## Generated by mhwd - Manjaro Hardware Detection
##

If I edit the file with the configutation I found after installing Manjaro and then reboot, my monitor start working but my internal display stay in a black screen( but if I change to tty2, this works on the internal display NOT on the monitor)

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 440.82

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
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"
EndSection

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

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
	Option "NoLogo" "1"
EndSection
 
Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection

 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Here is my inxi output:

$ inxi -Fxxxz
System:    Host: Manjaro Kernel: 5.6.16-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0 Desktop: KDE Plasma 5.18.5 
           tk: Qt 5.15.0 wm: kwin_x11 dm: SDDM Distro: Manjaro Linux 
Machine:   Type: Laptop System: ASUSTeK product: TUF Gaming FX505DT_FX505DT v: 1.0 serial: <filter> 
           Mobo: ASUSTeK model: FX505DT v: 1.0 serial: <filter> UEFI: American Megatrends v: FX505DT.308 date: 09/19/2019 
Battery:   ID-1: BAT0 charge: 42.8 Wh condition: 44.1/48.2 Wh (91%) volts: 12.9/11.9 model: FX50442 type: Li-ion 
           serial: <filter> status: Charging 
CPU:       Topology: Quad Core model: AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx bits: 64 type: MT MCP arch: Zen+ rev: 1 
           L2 cache: 2048 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 36747 
           Speed: 1271 MHz min/max: 1400/2300 MHz boost: enabled Core speeds (MHz): 1: 1177 2: 1176 3: 2774 4: 2944 5: 1178 
           6: 1177 7: 1178 8: 1175 
Graphics:  Device-1: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: ASUSTeK driver: nvidia v: 440.82 bus ID: 01:00.0 
           chip ID: 10de:1f91 
           Device-2: Advanced Micro Devices [AMD/ATI] Picasso vendor: ASUSTeK driver: amdgpu v: kernel bus ID: 05:00.0 
           chip ID: 1002:15d8 
           Display: x11 server: X.Org 1.20.8 driver: nvidia compositor: kwin_x11 resolution: 1920x1080~60Hz 
           OpenGL: renderer: GeForce GTX 1650/PCIe/SSE2 v: 4.6.0 NVIDIA 440.82 direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus ID: 05:00.6 chip ID: 1022:15e3 
           Sound Server: ALSA v: k5.6.16-1-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK driver: r8169 v: kernel port: e000 
           bus ID: 02:00.0 chip ID: 10ec:8168 
           IF: enp2s0 state: down mac: <filter> 
           Device-2: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter vendor: AzureWave driver: rtw_pci v: N/A 
           port: d000 bus ID: 04:00.0 chip ID: 10ec:c822 
           IF: wlp4s0 state: up mac: <filter> 
Drives:    Local Storage: total: 476.94 GiB used: 21.52 GiB (4.5%) 
           ID-1: /dev/nvme0n1 vendor: Micron model: 2200V MTFDHBA512TCK size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 
           serial: <filter> rev: P1MA0V4 scheme: GPT 
Partition: ID-1: / size: 29.40 GiB used: 13.17 GiB (44.8%) fs: ext4 dev: /dev/nvme0n1p6 
           ID-2: /home size: 43.98 GiB used: 8.22 GiB (18.7%) fs: ext4 dev: /dev/nvme0n1p8 
           ID-3: swap-1 size: 2.00 GiB used: 105.5 MiB (5.2%) fs: swap dev: /dev/nvme0n1p7 
Sensors:   System Temperatures: cpu: 61.5 C mobo: N/A 
           Fan Speeds (RPM): cpu: 0 
           GPU: device: nvidia screen: :0.0 temp: 45 C device: amdgpu temp: 61 C 
Info:      Processes: 297 Uptime: 3h 04m Memory: 7.28 GiB used: 4.39 GiB (60.3%) Init: systemd v: 245 Compilers: gcc: 10.1.0 
           Shell: zsh v: 5.8 running in: terminator inxi: 3.0.37

And the driver installed

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


Warning: No installed USB configs!

I want to use internal display and external monitor at the same time, and be able to use the power of the Nvidia GPU. I'll really appreciate your help to find the solution to this issue.

No, optimus is designed to handle intel and nvidia combinations. it doesn't support amd.
here is a description how to setup amd-nvidia hybrids:

btw. using the forum search function and search for "amd nvidia" will bring up results

I see thats too bad,thanks for the information.

here is a description how to setup amd-nvidia hybrids:

btw. using the forum search function and search for "amd nvidia" will bring up results

Thanks for the reply @olli, but I already tried to do that with no luck. Using the video-hybrid-amd-nvidia-xxxxx-prime driver allowed me to use the internal monitor, but my external monitor don't. Same thing happens when I intalled the video-hybrid-intel-nvidia-440xx-prime or just the video-nvidia-440xx from mhwd .

When I remove all the drivers, except the video-linux that was installed with the video-nvidia-440xx after manjaro installation, I can see internal display working, and the external monitor works but it's stuck in a black screen where I can only see the mouse pointer.

Right now, in order to use the external monitor, the drivers installed are:

❯ mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
    video-nvidia-440xx            2019.10.25               false            PCI
           video-linux            2018.05.04                true            PCI

and the xorg conf is this:

❯ cat /etc/X11/xorg.conf.d/90-mhwd.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 440.82

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
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"
EndSection

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

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
	Option "NoLogo" "1"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "COMPOSITE" "Enable"
EndSection

 
Section "InputClass"
    Identifier          "Keyboard Defaults"
    MatchIsKeyboard        "yes"
    Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

but my internal display looks like this:
internal_display_not_working _on_manjaro

Just by deleting the xorg file and restart , the internal display works perfectly but the external monitor stops working, so it has to be something around my Xorg config file, but I dont know how to fix it ...

Hello, I'm very sorry because I'm no help to this. What i know from my experience with nvidia/intel drivers is worse. this whole settings are a pain in the ass.

Hi!
I make it work following this post, go to the "solved" one

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by