HDMI port not detected Leap 15.6, only built in display

I am trying to connect an external monitor to my ROG G513RC laptop on Leap 15.6. It is not detecting the HDMI port at all in xrandr. I have been able to use the HDMI port on Windows, first time trying on Leap and it is not working. I have updated to the most recent version and restarted multiple times.

inxi -GSa output:

miah@localhost:~> inxi -GSa
System:
  Host: localhost.localdomain Kernel: 6.4.0-150600.23.7-default arch: x86_64
    bits: 64 compiler: gcc v: 7.5.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.4.0-150600.23.7-default
    root=UUID=1846b231-a94c-4140-89ce-ec6e2f5b1a4c splash=silent preempt=full
    mitigations=auto quiet security=apparmor
  Desktop: GNOME v: 45.3 tk: GTK v: 3.24.39 wm: gnome-shell dm: GDM
    v: 45.0.1 Distro: openSUSE Leap 15.6
Graphics:
  Device-1: NVIDIA GA107M [GeForce RTX 3050 Mobile] vendor: ASUSTeK
    driver: N/A alternate: nouveau, nvidia_drm, nvidia non-free: 530.xx+
    status: current (as of 2023-05) arch: Ampere code: GAxxx
    process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s lanes: 8
    link-max: lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:25a2 class-ID: 0300
  Device-2: AMD Rembrandt [Radeon 680M] vendor: ASUSTeK driver: amdgpu
    v: kernel arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm) built: 2020-22
    pcie: gen: 4 speed: 16 GT/s lanes: 16 ports: active: eDP-1 empty: DP-1,
    DP-2, DP-3, DP-4, DP-5 bus-ID: 05:00.0 chip-ID: 1002:1681 class-ID: 0300
    temp: 43.0 C
  Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.4
    compositor: gnome-shell driver: gpu: amdgpu display-ID: 0
  Monitor-1: eDP-1 model: Najing CEC Panda 0x004d built: 2019 res: 1920x1080
    dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
    ratio: 16:9 modes: max: 1920x1080 min: 640x480
  API: OpenGL v: 4.6 Mesa 23.3.4 renderer: AMD Radeon Graphics (radeonsi
    rembrandt LLVM 17.0.6 DRM 3.57 6.4.0-150600.23.7-default)
    direct-render: Yes
miah@localhost:~> xrandr
Screen 0: minimum 16 x 16, current 1920 x 1080, maximum 32767 x 32767
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
   1920x1080    143.88*+
   1440x1080    143.80  
   1400x1050    143.89  
   1280x1024    143.79  
   1280x960     143.86  
   1152x864     143.92  
   1024x768     143.87  
   800x600      143.83  
   640x480      143.85  
   320x240      142.05  
   1680x1050    143.88  
   1440x900     143.86  
   1280x800     143.84  
   1152x720     143.77  
   960x600      143.72  
   928x580      143.50  
   800x500      143.68  
   768x480      143.69  
   720x480      143.85  
   640x400      143.37  
   320x200      141.40  
   1600x900     143.93  
   1368x768     143.77  
   1280x720     143.67  
   1024x576     143.91  
   864x486      143.63  
   720x400      143.88  
   640x350      143.57  
miah@localhost:~> lsdev
Device            DMA   IRQ  I/O Ports
------------------------------------------------
0  ACPI:Event            25 
0000:01:00.0                 0000-0000
0000:03:00.0                 0000-0000
0000:05:00.0                 0000-0000
24  ACPI:Event           32 
29  ACPI:Event           31 
54  ACPI:Event           30 
58  ACPI:Event           28 
59  ACPI:Event           29 
61  ACPI:Event           26 
62  ACPI:Event           27 
91  ASUE120A:00          63 
acpi                      9 
ACPI                         0000-0000 0000-0000 0000-0000 0000-0000 0000-0000
ACP_PCI_IRQ              64 
aerdrv                33 34 35 36 38 
AMD-Vi                   24 
amdgpu                   62 
AMDI0010:00              10 
AMDI0010:01              11 
cascade             4       
dma                          0000-0000
dma1                         0000-0000
dma2                         0000-0000
eth0                     65 
fpu                          0000-0000
i8042                     1 
keyboard                     0000-0000 0000-0000
mt7921e                  68 
nvme0q0                  43 
nvme0q1                  54 
nvme0q2                  55 
nvme0q3                  56 
nvme0q4                  57 
nvme0q5                  58 
nvme0q6                  59 
nvme0q7                  60 
nvme0q8                  61 
PCI                          0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000
PCIe PME              33 34 35 36 37 38 
pciehp                   33 
pic1                         0000-0000
pic2                         0000-0000
piix4_smbus                  0000-0000 0000-0000
pinctrl_amd               7 
pnp                          0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000 0000-0000
PNP0800:00                   0000-0000
psp-1                    40 
rtc0                      8  0000-0000
snd_hda_intel:card0         52 
snd_hda_intel:card1         66 
timer                     0 
timer0                       0000-0000
timer1                       0000-0000
xhci_hcd              45 47 49 51 53 
miah@localhost:~> 

@khaim0919 Hi and welcome to the Forum :smile:
So the nvidia GPU is 3D or VGA (see the driver is N/A), can you post the output from /sbin/lspci -nnk | grep -EA3 "VGA|Display|3D Can you also check if suse-prime is installed?

Thank you!

Here is the output of sbin/lspci -nnk | grep -EA3 "VGA|Display|3D"

miah@localhost:~> /sbin/lspci -nnk | grep -EA3 "VGA|Display|3D"
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] [10de:25a2] (rev a1)
	Subsystem: ASUSTeK Computer Inc. Device [1043:1b5c]
	Kernel modules: nouveau, nvidia_drm, nvidia
01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:2291] (rev a1)
--
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] [1002:1681] (rev c8)
	Subsystem: ASUSTeK Computer Inc. Device [1043:1b5c]
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu

I checked with trying the prime-select command and it is not installed on my computer but I have the option to through zypper.

@khaim0919 OK, no, you shouldn’t need, but need to work out why the driver for the nvidia GPU, which since it’s VGA is likely powering the HDMI port. If you log out from GNOME and select GNOME on Xorg. Does it start working? xrandr --listproviders and xrandr --listmonitors should show everything?

@khaim0919 also where did the 530 driver come from, it’s not an rpm version, did you install via the run file or cuda run file?

Opened with GNOME on Xorg and it does show more. It says I have 0 providers on the regular GNOME but 1 on the GNOME on Xorg. Heres the dump:

miah@localhost:~> xrandr --listproviders 
Providers: number : 1
Provider 0: id: 0x48; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 4; outputs: 6; associated providers: 0; name: modesetting
    output eDP-1
    output DP-1
    output DP-2
    output DP-3
    output DP-4
    output DP-5
miah@localhost:~> xrandr --listmonitors
Monitors: 1
 0: +*eDP-1 1920/344x1080/194+0+0  eDP-1
miah@localhost:~> xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080    144.00*+  60.01   120.00    96.00    72.00    60.00    50.01    48.00    59.97    59.96    60.00    59.93  
   1680x1050    144.00    59.95    59.88  
   1400x1050     74.76    59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024    144.00    85.02    75.02    60.02  
   1440x900     144.00  
   1400x900      59.96    59.88  
   1280x960      85.00    60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1280x800     144.00    59.99    59.97    59.81    59.91  
   1152x864      75.00  
   1280x720     144.00    60.00    59.99    59.86    59.74  
   1024x768     144.00    85.00    75.05    60.04    85.00    75.03    70.07    60.00  
   1024x768i     86.96  
   960x720       85.00    75.00    60.00  
   928x696       75.00    60.05  
   896x672       75.05    60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   832x624       74.55  
   960x540       59.96    59.99    59.63    59.82  
   800x600      144.00    85.00    75.00    70.00    65.00    60.00    85.14    72.19    75.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       74.76    59.98  
   800x450       59.95    59.82  
   640x512       85.02    75.02    60.02  
   700x450       59.96    59.88  
   640x480      144.00    85.09    60.00    85.01    72.81    75.00    59.94  
   720x405       59.51    58.99  
   720x400       85.04  
   684x384       59.88    59.85  
   640x400       59.88    59.98    85.08  
   576x432       75.00  
   640x360       59.86    59.83    59.84    59.32  
   640x350       85.08  
   512x384       85.00    75.03    70.07    60.00  
   512x384i      87.06  
   512x288       60.00    59.92  
   416x312       74.66  
   480x270       59.63    59.82  
   400x300       85.27    72.19    75.12    60.32    56.34  
   432x243       59.92    59.57  
   320x240       85.18    72.81    75.00    60.05  
   360x202       59.51    59.13  
   360x200       85.04  
   320x200       85.27  
   320x180       59.84    59.32  
   320x175       85.27  
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)

The 530 driver was from the asus website for my specific laptop. It was the Mediatek Bluetooth Driver as I was having issues with bluetooth, after installation bluetooth started to work well.

@khaim0919 You need to install the ones for openSUSE… I suspect then things will run right. Bluetooth is another issue not related to the GPU, maybe was soft blocked via the keyboard keys, can check that with rfkill list

rfkill list reads no blocks as it did before adding the bluetooth driver. When I try to install the new recommended it says that it is already installed.

@khaim0919 It’s hard to tell if that wheter is a MUX or MUXless vga for the Nvidia…

So, all those drivers are for Windows, not Linux? How did you install the 530 driver?

It came as an .exe and I was just able to run it fine. Just an install wizard. I’m thinking I should wipe everything and try again. It hasn’t been too long with this and I was expecting it to take a while to get into Linux. Might have messed something up with downloading and running the Windows driver even though it worked for part of the system.

@khaim0919 don’t know what you did then, maybe wine or such, but exe files are for windows…

Anyway, you should add the Nvidia repositories and install the rpm versions see https://en.opensuse.org/SDB:NVIDIA_drivers and have a read first there is a Leap section for adding the repository etc.