External monitor doesn't work on HP laptop with nvidia GPU

Hello!

I’m trying to switch from windows to fedora, but I have trouble getting my HDMI port to work. I have looked at other people posts with this problem, but although I follow their solutions it doesn’t seem to work for me.

I have a HP Zbook Power G9 mobile workstation, it has a i7-12700H and a Nvidia A1000 GPU.
Its running fedora 38 workstation (I don’t know if I can see the specific version somewhere) with the wayland windowing system.

I saw people using these commands to provide information so I ran them while I was plugged in with my HDMI cable:

[bwassenaar@smart-potato ~]$ nvidia-smi
Mon Sep 18 14:54:47 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.104.05             Driver Version: 535.104.05   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| 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  NVIDIA RTX A1000 Laptop GPU    Off | 00000000:01:00.0 Off |                  N/A |
| N/A   44C    P3              N/A /  30W |      4MiB /  4096MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      2410      G   /usr/bin/gnome-shell                          1MiB |
+---------------------------------------------------------------------------------------+
[bwassenaar@smart-potato ~]$ inxi -Fzxx
System:
  Kernel: 6.4.15-200.fc38.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.39-9.fc38 Desktop: GNOME v: 44.4 tk: GTK v: 3.24.38 wm: gnome-shell
    dm: GDM Distro: Fedora release 38 (Thirty Eight)
Machine:
  Type: Laptop System: HP product: HP ZBook Power 15.6 inch G9 Mobile
    Workstation PC v: N/A serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 89C0 v: KBC Version 11.61.00 serial: <superuser required>
    UEFI: HP v: U97 Ver. 01.07.01 date: 04/06/2023
Battery:
  ID-1: BAT0 charge: 28.1 Wh (43.6%) condition: 64.4/83.0 Wh (77.6%)
    volts: 10.8 min: 11.6 model: Hewlett-Packard Primary serial: <filter>
    status: discharging
CPU:
  Info: 14-core (6-mt/8-st) model: 12th Gen Intel Core i7-12700H bits: 64
    type: MST AMCP arch: Alder Lake rev: 3 cache: L1: 1.2 MiB L2: 11.5 MiB
    L3: 24 MiB
  Speed (MHz): avg: 2074 high: 2700 min/max: 400/4600:4700:3500 cores:
    1: 2700 2: 2700 3: 400 4: 2700 5: 417 6: 2700 7: 1038 8: 2700 9: 401
    10: 2700 11: 400 12: 2700 13: 2700 14: 2700 15: 2700 16: 2700 17: 1030
    18: 2700 19: 2700 20: 2700 bogomips: 107520
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Gen-12.2 ports: active: eDP-1
    empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 00:02.0 chip-ID: 8086:4626
  Device-2: NVIDIA GA107GLM [RTX A1000 Laptop GPU] vendor: Hewlett-Packard
    driver: nvidia v: 535.104.05 arch: Ampere pcie: speed: 16 GT/s lanes: 8
    bus-ID: 01:00.0 chip-ID: 10de:25b9
  Device-3: Quanta HP HD Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 3-1:2 chip-ID: 0408:534c
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 22.1.9
    compositor: gnome-shell driver: X: loaded: modesetting,nvidia
    unloaded: fbdev,nouveau,vesa alternate: nv dri: iris gpu: i915
    display-ID: 0
  Monitor-1: eDP-1 model-id: CSO 0x1506 res: 1920x1080 dpi: 142
    diag: 395mm (15.5")
  API: OpenGL v: 4.6 Mesa 23.1.7 renderer: Mesa Intel Graphics (ADL GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio
    vendor: Hewlett-Packard driver: sof-audio-pci-intel-tgl bus-ID: 00:1f.3
    chip-ID: 8086:51c8
  API: ALSA v: k6.4.15-200.fc38.x86_64 status: kernel-api
  Server-1: PipeWire v: 0.3.79 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:51f0
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Intel Ethernet I219-V vendor: Hewlett-Packard driver: e1000e
    v: kernel port: N/A bus-ID: 00:1f.6 chip-ID: 8086:1a1f
  IF: eno1 state: down mac: <filter>
Bluetooth:
  Device-1: Intel driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 bus-ID: 3-10:4 chip-ID: 8087:0033
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.3
    lmp-v: 12
Drives:
  Local Storage: total: 476.94 GiB used: 45.25 GiB (9.5%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVL2512HCJQ-00BH1
    size: 476.94 GiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 34.9 C
Partition:
  ID-1: / size: 475.35 GiB used: 44.94 GiB (9.5%) fs: btrfs
    dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 303.8 MiB (31.2%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 17.4 MiB (2.9%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 475.35 GiB used: 44.94 GiB (9.5%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 47.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Processes: 626 Uptime: 20m Memory: total: 16 GiB note: est.
  available: 15.24 GiB used: 3.62 GiB (23.8%) Init: systemd v: 253
  target: graphical (5) default: graphical Compilers: gcc: 13.2.1 Packages:
  pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 17 Shell: Bash v: 5.2.15
  running-in: gnome-terminal inxi: 3.3.29
[bwassenaar@smart-potato ~]$ dmesg | grep secure
[    0.000000] secureboot: Secure boot disabled
[    0.005388] secureboot: Secure boot disabled
[bwassenaar@smart-potato ~]$ dnf list installed '*nvidia*'
Installed Packages
akmod-nvidia.x86_64                                                                                               3:535.104.05-1.fc38                                                                         @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.4.15-200.fc38.x86_64.x86_64                                                                         3:535.104.05-1.fc38                                                                         @@commandline                   
nvidia-gpu-firmware.noarch                                                                                        20230804-153.fc38                                                                           @updates                        
nvidia-persistenced.x86_64                                                                                        3:535.104.05-1.fc38                                                                         @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                                                                                            3:535.104.05-1.fc38                                                                         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                                                                                        3:535.104.05-1.fc38                                                                         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64                                                                                   3:535.104.05-1.fc38                                                                         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64                                                                              3:535.104.05-1.fc38                                                                         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64                                                                                3:535.104.05-1.fc38                                                                         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64                                                                                   3:535.104.05-1.fc38                                                                         @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64                                                                                  3:535.104.05-1.fc38                                                                         @rpmfusion-nonfree-nvidia-driver

I hope you guys can help me! (and lets hope I didn’t do something stupid)

The only thing I am sure of with what was posted is that the drivers are installed, seem to be loaded, and the nvidia gpu is not in use (smi shows 0%)

This is normally the default for dual-gpu systems since they use the intergrated gpu (iGPU) unless told to use the dGPU.

In my experience (I am not yet a wayland fan) it seems very easy to use the dGPU if you follow the instructions in the link below. Step 8 would be the only one required because you already have the drivers installed.

After you reboot, the procedure there takes effect when you log in with the xorg DE and are not functional when using the wayland DE.

Some have provided instructions to force use of the nvidia dGPU when using wayland, but I do not have a link to those posts and others seem to avoid using that method.

For me, using that linked method and using xorg just works.

1 Like

Be careful with other people’s “solutions” – many are workarounds for bugs that have been fixed and only cause new problems, and mean that others with the same hardware may not be able to reproduce your issue. Please make sure that your have reversed the non-working “solutions” so you have the same Fedora configuration as other users.

I have tried following the link that you send, but although its definetly using the nvidia GPU now (checked it with the verification instructions in the link). My HDMI port still doesn’t work.

Has this changed? There is no HDMI port listed, but lots of DP’s. Did the HDMI port work in Windows? Does your HDMI cable work with a different source and the same monitor (my wife is a macOS user and can provide USB-C-DP and HDMI test signals and cables).

Linux Fix for HDMI No Signal says some vendors have the HDMI port connected to the Nvidia GPU so it is only available with Nvidia active. If that is your case, enabling the Nvidia GPU should have changed the inxi output to add an HDMI port for “Device-2”.

Glitches in linux support for video, sound, and networking are not unusual due to vendors focusing on Windows. I have a bunch of USB dongles for wifi, BT, and sound that get used when internal devices stop working with upgrades. I recently added video adapters (USB-C+DP to HDMI, DP to HDMI).

I have run the command again and I don’t think the HDMI port showed up (HDMI is not plugged in on the moment). In windows I have used an external display with this laptop over the HDMI port or/and over the USB-C port. I have a external hard drive on which I can install windows to double check that the HDMI port works for sure.

[bwassenaar@smart-potato ~]$ inxi -Fzxx
System:
  Kernel: 6.4.15-200.fc38.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.39-9.fc38 Desktop: GNOME v: 44.4 tk: GTK v: 3.24.38 wm: gnome-shell
    dm: GDM Distro: Fedora release 38 (Thirty Eight)
Machine:
  Type: Laptop System: HP product: HP ZBook Power 15.6 inch G9 Mobile
    Workstation PC v: N/A serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 89C0 v: KBC Version 11.61.00 serial: <superuser required>
    UEFI: HP v: U97 Ver. 01.07.01 date: 04/06/2023
Battery:
  ID-1: BAT0 charge: 63.2 Wh (99.1%) condition: 63.8/83.0 Wh (76.8%)
    volts: 12.2 min: 11.6 model: Hewlett-Packard Primary serial: <filter>
    status: discharging
CPU:
  Info: 14-core (6-mt/8-st) model: 12th Gen Intel Core i7-12700H bits: 64
    type: MST AMCP arch: Alder Lake rev: 3 cache: L1: 1.2 MiB L2: 11.5 MiB
    L3: 24 MiB
  Speed (MHz): avg: 2615 high: 3104 min/max: 400/4600:4700:3500 cores:
    1: 2700 2: 2700 3: 1142 4: 2700 5: 2700 6: 2700 7: 2700 8: 2700 9: 2700
    10: 2700 11: 2700 12: 2700 13: 2700 14: 2700 15: 2700 16: 3104 17: 2700
    18: 2700 19: 2165 20: 2700 bogomips: 107520
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Gen-12.2 ports: active: eDP-1
    empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 00:02.0 chip-ID: 8086:4626
  Device-2: NVIDIA GA107GLM [RTX A1000 Laptop GPU] vendor: Hewlett-Packard
    driver: nvidia v: 535.104.05 arch: Ampere pcie: speed: 16 GT/s lanes: 8
    bus-ID: 01:00.0 chip-ID: 10de:25b9
  Device-3: Quanta HP HD Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 3-1:2 chip-ID: 0408:534c
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 22.1.9
    compositor: gnome-shell driver: X: loaded: modesetting,nvidia
    unloaded: fbdev,nouveau,vesa alternate: nv dri: iris gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: eDP-1 mapped: eDP-1-1 model-id: CSO 0x1506 res: 1920x1080
    dpi: 142 diag: 395mm (15.5")
  API: OpenGL v: 4.6.0 NVIDIA 535.104.05 renderer: NVIDIA RTX A1000 Laptop
    GPU/PCIe/SSE2 direct-render: Yes
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio
    vendor: Hewlett-Packard driver: sof-audio-pci-intel-tgl bus-ID: 00:1f.3
    chip-ID: 8086:51c8
  API: ALSA v: k6.4.15-200.fc38.x86_64 status: kernel-api
  Server-1: PipeWire v: 0.3.79 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:51f0
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Intel Ethernet I219-V vendor: Hewlett-Packard driver: e1000e
    v: kernel port: N/A bus-ID: 00:1f.6 chip-ID: 8086:1a1f
  IF: eno1 state: down mac: <filter>
Bluetooth:
  Device-1: Intel driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 bus-ID: 3-10:4 chip-ID: 8087:0033
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.3
    lmp-v: 12
Drives:
  Local Storage: total: 476.94 GiB used: 45.01 GiB (9.4%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVL2512HCJQ-00BH1
    size: 476.94 GiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 28.9 C
Partition:
  ID-1: / size: 475.35 GiB used: 44.69 GiB (9.4%) fs: btrfs
    dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 303.8 MiB (31.2%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 17.4 MiB (2.9%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 475.35 GiB used: 44.69 GiB (9.4%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 33.0 C mobo: N/A gpu: nvidia temp: 34 C
  Fan Speeds (rpm): N/A
Info:
  Processes: 485 Uptime: 1m Memory: total: 16 GiB note: est.
  available: 15.24 GiB used: 2.62 GiB (17.2%) Init: systemd v: 253
  target: graphical (5) default: graphical Compilers: gcc: 13.2.1 Packages:
  pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 17 Shell: Bash v: 5.2.15
  running-in: gnome-terminal inxi: 3.3.29

Here, inxi -Fzxx includes HDMI ports in the “empty” field for graphics devices:

Graphics:
  Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] vendor: Dell
    driver: i915 v: kernel arch: Gen-9.5 ports: active: DP-1 empty: DP-2,
    HDMI-A-1, HDMI-A-2, HDMI-A-3 bus-ID: 00:02.0 chip-ID: 8086:3e92

It doesn’t seem like my device-2 lists any ports at all were as my device-1 only lists DP ports. I will reinstall windows tomorrow to see if the HDMI port works at all. And then install fedora again just in case i messed something up with other people’s “solutions” which I tried earlier. I will let you guys know how it went.

Monitors, input devices, and network are activated before any OS is loaded. This laptop displays BIOS messages on an external (HDMI) monitor at boot time if the lid is closed. There may be “BIOS” settings to choose how BIOS messages are displayed. Sometimes the behaviour of these devices changes when warm booting to linux from Windows versus booting directly to linux.

There are often glitches with drivers that have code sections that have not been updated to run with recent kernels. If the glitch only affects a rarely used hardware configuration it is easily overlooked by kernel developers. I’ve encountered these several times – in every case another user had already encountered and reported the bug, but it takes some time before a fix is available (which is where adapters are a useful interim “solution”).

So I have done three things today, tried with a docking station, checked if the HDMI port worked on windows and reinstalled fedora and driver following the guide mentioned in Jeff V’s first reply.

First of all I tried using a docking station at my work to see if the external monitor would work and it didn’t. The mouse, keyboard and ethernet worked but the external display didn’t show up I ran inxi -Fzxx while connected for both wayland and X11.

"inxi -Fzxx" while using X11
[bwassenaar@smart-potato ~]$ inxi -Fzxx
System:
  Kernel: 6.4.15-200.fc38.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.39-9.fc38 Desktop: GNOME v: 44.4 tk: GTK v: 3.24.38 wm: gnome-shell
    dm: GDM Distro: Fedora release 38 (Thirty Eight)
Machine:
  Type: Laptop System: HP product: HP ZBook Power 15.6 inch G9 Mobile
    Workstation PC v: N/A serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 89C0 v: KBC Version 11.61.00 serial: <superuser required>
    UEFI: HP v: U97 Ver. 01.07.01 date: 04/06/2023
Battery:
  ID-1: BAT0 charge: 35.3 Wh (57.0%) condition: 61.9/83.0 Wh (74.6%)
    volts: 10.6 min: 11.6 model: Hewlett-Packard Primary serial: <filter>
    status: discharging
CPU:
  Info: 14-core (6-mt/8-st) model: 12th Gen Intel Core i7-12700H bits: 64
    type: MST AMCP arch: Alder Lake rev: 3 cache: L1: 1.2 MiB L2: 11.5 MiB
    L3: 24 MiB
  Speed (MHz): avg: 2493 high: 4515 min/max: 400/4600:4700:3500 cores:
    1: 400 2: 2700 3: 2239 4: 2700 5: 2885 6: 2700 7: 4515 8: 2700 9: 2700
    10: 2700 11: 3503 12: 2700 13: 2700 14: 2700 15: 651 16: 2700 17: 2700
    18: 2700 19: 2700 20: 570 bogomips: 107520
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Gen-12.2 ports: active: eDP-1
    empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 00:02.0 chip-ID: 8086:4626
  Device-2: NVIDIA GA107GLM [RTX A1000 Laptop GPU] vendor: Hewlett-Packard
    driver: nvidia v: 535.104.05 arch: Ampere pcie: speed: 5 GT/s lanes: 8
    bus-ID: 01:00.0 chip-ID: 10de:25b9
  Device-3: Quanta HP HD Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 3-1:2 chip-ID: 0408:534c
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 22.1.9
    compositor: gnome-shell driver: X: loaded: modesetting,nvidia
    unloaded: fbdev,nouveau,vesa alternate: nv dri: iris gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: eDP-1 mapped: eDP-1-1 model-id: CSO 0x1506 res: 1920x1080
    dpi: 142 diag: 395mm (15.5")
  API: OpenGL v: 4.6.0 NVIDIA 535.104.05 renderer: NVIDIA RTX A1000 Laptop
    GPU/PCIe/SSE2 direct-render: Yes
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio
    vendor: Hewlett-Packard driver: sof-audio-pci-intel-tgl bus-ID: 00:1f.3
    chip-ID: 8086:51c8
  Device-2: DisplayLink Kensington Dock (Composite Device)
    driver: cdc_ncm,snd-usb-audio type: USB rev: 3.2 speed: 5 Gb/s lanes: 1
    bus-ID: 4-1.1:3 chip-ID: 17e9:430f
  API: ALSA v: k6.4.15-200.fc38.x86_64 status: kernel-api
  Server-1: PipeWire v: 0.3.79 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:51f0
  IF: wlp0s20f3 state: down mac: <filter>
  Device-2: Intel Ethernet I219-V vendor: Hewlett-Packard driver: e1000e
    v: kernel port: N/A bus-ID: 00:1f.6 chip-ID: 8086:1a1f
  IF: eno1 state: down mac: <filter>
  IF-ID-1: enp0s20f0u1u1i5 state: up speed: 1000 Mbps duplex: half
    mac: <filter>
Bluetooth:
  Device-1: Intel driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 bus-ID: 3-10:6 chip-ID: 8087:0033
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.3
    lmp-v: 12
Drives:
  Local Storage: total: 476.94 GiB used: 45.15 GiB (9.5%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVL2512HCJQ-00BH1
    size: 476.94 GiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 28.9 C
Partition:
  ID-1: / size: 475.35 GiB used: 44.83 GiB (9.4%) fs: btrfs
    dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 303.8 MiB (31.2%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 17.4 MiB (2.9%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 475.35 GiB used: 44.83 GiB (9.4%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 44.0 C mobo: N/A gpu: nvidia temp: 43 C
  Fan Speeds (rpm): N/A
Info:
  Processes: 510 Uptime: 5m Memory: total: 16 GiB note: est.
  available: 15.24 GiB used: 2.41 GiB (15.8%) Init: systemd v: 253
  target: graphical (5) default: graphical Compilers: gcc: 13.2.1 Packages:
  pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 17 Shell: Bash v: 5.2.15
  running-in: gnome-terminal inxi: 3.3.29
"inxi -Fzxx" while using Wayland
[bwassenaar@smart-potato ~]$ inxi -Fzxx
System:
  Kernel: 6.4.15-200.fc38.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.39-9.fc38 Desktop: GNOME v: 44.4 tk: GTK v: 3.24.38 wm: gnome-shell
    dm: GDM Distro: Fedora release 38 (Thirty Eight)
Machine:
  Type: Laptop System: HP product: HP ZBook Power 15.6 inch G9 Mobile
    Workstation PC v: N/A serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 89C0 v: KBC Version 11.61.00 serial: <superuser required>
    UEFI: HP v: U97 Ver. 01.07.01 date: 04/06/2023
Battery:
  ID-1: BAT0 charge: 35.9 Wh (58.0%) condition: 61.9/83.0 Wh (74.6%)
    volts: 10.8 min: 11.6 model: Hewlett-Packard Primary serial: <filter>
    status: discharging
CPU:
  Info: 14-core (6-mt/8-st) model: 12th Gen Intel Core i7-12700H bits: 64
    type: MST AMCP arch: Alder Lake rev: 3 cache: L1: 1.2 MiB L2: 11.5 MiB
    L3: 24 MiB
  Speed (MHz): avg: 2647 high: 4677 min/max: 400/4600:4700:3500 cores:
    1: 723 2: 2700 3: 2700 4: 2700 5: 2700 6: 2700 7: 4677 8: 2700 9: 2700
    10: 2700 11: 2700 12: 2700 13: 2700 14: 1655 15: 2700 16: 2700 17: 2700
    18: 2700 19: 2700 20: 2700 bogomips: 107520
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Gen-12.2 ports: active: eDP-1
    empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 00:02.0 chip-ID: 8086:4626
  Device-2: NVIDIA GA107GLM [RTX A1000 Laptop GPU] vendor: Hewlett-Packard
    driver: nvidia v: 535.104.05 arch: Ampere pcie: speed: 2.5 GT/s lanes: 8
    bus-ID: 01:00.0 chip-ID: 10de:25b9
  Device-3: Quanta HP HD Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 3-1:2 chip-ID: 0408:534c
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 22.1.9
    compositor: gnome-shell driver: X: loaded: modesetting,nvidia
    unloaded: fbdev,nouveau,vesa alternate: nv dri: iris gpu: i915
    display-ID: 0
  Monitor-1: eDP-1 model-id: CSO 0x1506 res: 1920x1080 dpi: 142
    diag: 395mm (15.5")
  API: OpenGL v: 4.6 Mesa 23.1.7 renderer: Mesa Intel Graphics (ADL GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio
    vendor: Hewlett-Packard driver: sof-audio-pci-intel-tgl bus-ID: 00:1f.3
    chip-ID: 8086:51c8
  Device-2: DisplayLink Kensington Dock (Composite Device)
    driver: cdc_ncm,snd-usb-audio type: USB rev: 3.2 speed: 5 Gb/s lanes: 1
    bus-ID: 4-1.1:3 chip-ID: 17e9:430f
  API: ALSA v: k6.4.15-200.fc38.x86_64 status: kernel-api
  Server-1: PipeWire v: 0.3.79 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:51f0
  IF: wlp0s20f3 state: down mac: <filter>
  Device-2: Intel Ethernet I219-V vendor: Hewlett-Packard driver: e1000e
    v: kernel port: N/A bus-ID: 00:1f.6 chip-ID: 8086:1a1f
  IF: eno1 state: down mac: <filter>
  IF-ID-1: enp0s20f0u1u1i5 state: up speed: 1000 Mbps duplex: half
    mac: <filter>
Bluetooth:
  Device-1: Intel driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 bus-ID: 3-10:6 chip-ID: 8087:0033
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.3
    lmp-v: 12
Drives:
  Local Storage: total: 476.94 GiB used: 45.13 GiB (9.5%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVL2512HCJQ-00BH1
    size: 476.94 GiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 27.9 C
Partition:
  ID-1: / size: 475.35 GiB used: 44.81 GiB (9.4%) fs: btrfs
    dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 303.8 MiB (31.2%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 17.4 MiB (2.9%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 475.35 GiB used: 44.81 GiB (9.4%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 38.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Processes: 494 Uptime: 2m Memory: total: 16 GiB note: est.
  available: 15.24 GiB used: 2.59 GiB (17.0%) Init: systemd v: 253
  target: graphical (5) default: graphical Compilers: gcc: 13.2.1 Packages:
  pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 17 Shell: Bash v: 5.2.15
  running-in: gnome-terminal inxi: 3.3.29

Second of all I have reinstalled windows to check if the HDMI port works at all and it does. When windows was installed I had no trouble connecting to my external display.

Third of all I went back to reinstall fedora and drivers using the guide in Jeff V’s reply and changed the X11 config again. On fedora the display never showed up. Below again the command “inxi -Fzxx” after reinstall and drivers and such

"inxi -Fzxx" after reinstall
[bwassenaar@fedora ~]$ inxi -Fzxx
System:
  Kernel: 6.4.15-200.fc38.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.39-9.fc38 Desktop: GNOME v: 44.5 tk: GTK v: 3.24.38 wm: gnome-shell
    dm: GDM Distro: Fedora release 38 (Thirty Eight)
Machine:
  Type: Laptop System: HP product: HP ZBook Power 15.6 inch G9 Mobile
    Workstation PC v: N/A serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 89C0 v: KBC Version 11.63.00 serial: <superuser required>
    UEFI: HP v: U97 Ver. 01.08.00 date: 06/26/2023
Battery:
  ID-1: BAT0 charge: 46.0 Wh (74.4%) condition: 61.8/83.0 Wh (74.4%)
    volts: 11.6 min: 11.6 model: Hewlett-Packard Primary serial: <filter>
    status: discharging
CPU:
  Info: 14-core (6-mt/8-st) model: 12th Gen Intel Core i7-12700H bits: 64
    type: MST AMCP arch: Alder Lake rev: 3 cache: L1: 1.2 MiB L2: 11.5 MiB
    L3: 24 MiB
  Speed (MHz): avg: 2501 high: 2700 min/max: 400/4600:4700:3500 cores:
    1: 2700 2: 2700 3: 2700 4: 2700 5: 700 6: 2700 7: 2700 8: 2700 9: 729
    10: 2700 11: 2700 12: 2700 13: 2700 14: 2700 15: 2700 16: 2700 17: 2700
    18: 2700 19: 2700 20: 2700 bogomips: 107520
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Gen-12.2 ports: active: eDP-1
    empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 00:02.0 chip-ID: 8086:4626
  Device-2: NVIDIA GA107GLM [RTX A1000 Laptop GPU] vendor: Hewlett-Packard
    driver: nvidia v: 535.104.05 arch: Ampere pcie: speed: 2.5 GT/s lanes: 8
    bus-ID: 01:00.0 chip-ID: 10de:25b9
  Device-3: Quanta HP HD Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 3-1:2 chip-ID: 0408:534c
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 22.1.9
    compositor: gnome-shell driver: X: loaded: modesetting,nvidia
    unloaded: fbdev,nouveau,vesa alternate: nv dri: iris gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: eDP-1 mapped: eDP-1-1 model-id: CSO 0x1506 res: 1920x1080
    dpi: 142 diag: 395mm (15.5")
  API: OpenGL v: 4.6.0 NVIDIA 535.104.05 renderer: NVIDIA RTX A1000 Laptop
    GPU/PCIe/SSE2 direct-render: Yes
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio
    vendor: Hewlett-Packard driver: sof-audio-pci-intel-tgl bus-ID: 00:1f.3
    chip-ID: 8086:51c8
  API: ALSA v: k6.4.15-200.fc38.x86_64 status: kernel-api
  Server-1: PipeWire v: 0.3.80 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:51f0
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Intel Ethernet I219-V vendor: Hewlett-Packard driver: e1000e
    v: kernel port: N/A bus-ID: 00:1f.6 chip-ID: 8086:1a1f
  IF: eno1 state: down mac: <filter>
Bluetooth:
  Device-1: Intel driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 bus-ID: 3-10:4 chip-ID: 8087:0033
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.3
    lmp-v: 12
Drives:
  Local Storage: total: 476.94 GiB used: 6.61 GiB (1.4%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVL2512HCJQ-00BH1
    size: 476.94 GiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 38.9 C
Partition:
  ID-1: / size: 475.35 GiB used: 6.36 GiB (1.3%) fs: btrfs dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 243.8 MiB (25.0%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 17.4 MiB (2.9%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 475.35 GiB used: 6.36 GiB (1.3%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 47.0 C mobo: N/A gpu: nvidia temp: 50 C
  Fan Speeds (rpm): N/A
Info:
  Processes: 439 Uptime: 18m Memory: total: 16 GiB note: est.
  available: 15.24 GiB used: 2.54 GiB (16.7%) Init: systemd v: 253
  target: graphical (5) default: graphical Compilers: gcc: 13.2.1 Packages:
  pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 7 Shell: Bash v: 5.2.15
  running-in: gnome-terminal inxi: 3.3.29

Should I report a bug and if yes where?

Looks like it has been reported to freedesktop.org:
HP Zbook HDMI detection patch provides a workaround for what appears to be a bug in the BIOS. HP seems uninterested in fixing their BIOS:
HP Zbook HDMI detection, but if HP doesn’t have a reason for this they may eventually fix it when they update the BIOS. The alternative would be to add options to the linux module, but in general linux.org avoids vendor-specific workarounds.

Nvidia has skin in the game, and is in a position to pressure vendors to properly support linux. Check to see if the issue has been mentioned in Nvidia forums both for your HP model and for other vendors who supply the same Nvidia hardware.

Your best short-term solution an adapter that allows your monitor to use one of the other ports.

I have tested the mainline version of the kernel 6.6-rc2 and then it does indeed work.

Thnx for all the help!