External monitor's screen is black

Hello. I had a newly installed Gnome Manjaro with proprietary drivers installed on amd + nvidia laptop.

When I connected external display it was black, though i could see it with xrandr, also xrandr --listproviders showed 2 providers. I read that I need to enable my nvidia gpu with optimus manager, so I installed optimus-manager, optimus-manager-qt and switched to x11 from wayland.

After reboot gdm doesnt boot with first attempt anymore, but it boots after switching to another tty and backwards. Also xrandr only shows 1 display and 1 provider now.

Also nvidia-settings output is:

ERROR: Unable to load info from any available system
and optimus-manager-qt output is:

Unable to detect GPU
zsh: abort (core dumped) optimus-manager-qt
So I cant use optimus-manager to switch to nvidia gpu

glxinfo | grep OpenGL

OpenGL vendor string: AMD
OpenGL renderer string: AMD RENOIR (DRM 3.39.0, 5.9.16-1-MANJARO, LLVM 11.0.1)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.3.3
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.3.3
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.3.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

mhwd -li

> Installed PCI configs:
                  NAME               VERSION          FREEDRIVER           TYPE
video-hybrid-amd-nvidia-prime            2020.11.30               false            PCI
           video-linux            2018.05.04                true            PCI

Warning: No installed USB configs!

inxi -Fxxz

  Kernel: 5.9.16-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1 
  Desktop: GNOME 3.38.3 tk: GTK 3.24.24 wm: gnome-shell dm: GDM 
  Distro: Manjaro Linux 
  Type: Laptop System: HP product: HP Pavilion Gaming Laptop 15-ec1xxx 
  v: N/A serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: HP model: 87B2 v: 31.19 serial: <filter> UEFI: AMI v: F.10 
  date: 06/20/2020 
  ID-1: BAT0 charge: 47.7 Wh condition: 47.7/47.7 Wh (100%) volts: 12.9/11.6 
  model: Hewlett-Packard Primary serial: N/A status: Full 
  Device-1: hidpp_battery_0 
  model: Logitech G305 Lightspeed Wireless Gaming Mouse serial: <filter> 
  charge: 100% (should be ignored) status: Discharging 
  Info: 6-Core model: AMD Ryzen 5 4600H with Radeon Graphics bits: 64 
  type: MT MCP arch: Zen 2 rev: 1 L2 cache: 3 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 71894 
  Speed: 1409 MHz min/max: 1400/3000 MHz boost: enabled Core speeds (MHz): 
  1: 1409 2: 1435 3: 1397 4: 1397 5: 1419 6: 2566 7: 1423 8: 1590 9: 1397 
  10: 1397 11: 1397 12: 1397 
  Device-1: NVIDIA TU117M [GeForce GTX 1650 Ti Mobile] 
  vendor: Hewlett-Packard driver: nvidia v: 460.32.03 bus ID: 01:00.0 
  chip ID: 10de:1f95 
  Device-2: AMD Renoir vendor: Hewlett-Packard driver: amdgpu v: kernel 
  bus ID: 05:00.0 chip ID: 1002:1636 
  Device-3: Luxvisions Innotech Limited HP TrueVision HD Camera type: USB 
  driver: uvcvideo bus ID: 3-3:3 chip ID: 30c9:0013 
  Display: x11 server: X.org 1.20.10 compositor: gnome-shell driver: 
  loaded: amdgpu,ati unloaded: modesetting alternate: fbdev,vesa 
  resolution: <missing: xdpyinfo> 
  OpenGL: renderer: AMD RENOIR (DRM 3.39.0 5.9.16-1-MANJARO LLVM 11.0.1) 
  v: 4.6 Mesa 20.3.3 direct render: Yes 
  Device-1: AMD Raven/Raven2/FireFlight/Renoir Audio Processor 
  vendor: Hewlett-Packard driver: N/A bus ID: 05:00.5 chip ID: 1022:15e2 
  Device-2: AMD Family 17h HD Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel bus ID: 05:00.6 chip ID: 1022:15e3 
  Sound Server: ALSA v: k5.9.16-1-MANJARO 
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Hewlett-Packard driver: r8169 v: kernel port: e000 bus ID: 02:00.0 
  chip ID: 10ec:8168 
  IF: eno1 state: down mac: <filter> 
  Device-2: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter 
  vendor: Hewlett-Packard driver: rtw_8822ce v: N/A port: d000 
  bus ID: 03:00.0 chip ID: 10ec:c822 
  IF: wlo1 state: up mac: <filter> 
  Local Storage: total: 462.05 GiB used: 9.53 GiB (2.1%) 
  ID-1: /dev/nvme0n1 vendor: Western Digital 
  model: PC SN520 SDAPNUW-256G-1006 size: 238.47 GiB speed: 15.8 Gb/s 
  lanes: 2 serial: <filter> temp: 38.9 C 
  ID-2: /dev/sda vendor: Ricoh model: R5SL240G size: 223.57 GiB 
  speed: 6.0 Gb/s serial: <filter> 
  ID-1: / size: 47.81 GiB used: 9.32 GiB (19.5%) fs: ext4 dev: /dev/sda2 
  ID-2: /boot/efi size: 511 MiB used: 312 KiB (0.1%) fs: vfat dev: /dev/sda1 
  ID-3: /home size: 170.51 GiB used: 213.5 MiB (0.1%) fs: ext4 
  dev: /dev/sda3 
  Alert: No Swap data was found. 
  System Temperatures: cpu: 59.6 C mobo: N/A gpu: amdgpu temp: 52.0 C 
  Fan Speeds (RPM): N/A 
  Processes: 289 Uptime: 19m Memory: 15.07 GiB used: 2.37 GiB (15.7%) 
  Init: systemd v: 247 Compilers: gcc: 10.2.0 Packages: pacman: 1238 
  Shell: Zsh v: 5.8 running in: gnome-terminal inxi: 3.2.02 


xrandr -q
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080     60.01*+  40.00  
   1680x1050     60.01  
   1280x1024     60.01  
   1440x900      60.01  
   1280x800      60.01  
   1280x720      60.01  
   1024x768      60.01  
   800x600       60.01  
   640x480       60.01  

xrandr --listproviders  
Providers: number : 1
Provider 0: id: 0x54 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 1 associated providers: 0 name:Unknown AMD Radeon GPU @ pci:0000:05:00.0

Appreciate any help! And thank you in advance!

Okay, all I had to do is install optimus-manager-qt-git and optimus-manager-git in order to work with amd igpu, then i switched gpu with optimus manager and now it works. But gdm problem is still here