Getting no output in hdmi, internal display working fine in laptop

Sometime i get the HDMI output and sometime it doesn’t work. i tried to rebuild the akmods and it builds and everything is fine but still no HDMI output.
This dmesg output.

[    7.636701] r8169 0000:34:00.0 enp52s0: Link is Down
[    7.814801] ACPI BIOS Error (bug): Could not resolve symbol [\_TZ.ETMD], AE_NOT_FOUND (20230628/psargs-330)
[    7.814805] ACPI Error: Aborting method \_SB.IETM._OSC due to previous error (AE_NOT_FOUND) (20230628/psparse-529)
[    7.937646] Bluetooth: hci0: Waiting for firmware download to complete
[    7.938298] Bluetooth: hci0: Firmware loaded in 1458054 usecs
[    7.938391] Bluetooth: hci0: Waiting for device to boot
[    7.954293] Bluetooth: hci0: Device booted in 15598 usecs
[    7.954320] Bluetooth: hci0: Malformed MSFT vendor event: 0x02
[    7.954568] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-0040-0041.ddc
[    7.957412] Bluetooth: hci0: Applying Intel DDC parameters completed
[    7.960513] Bluetooth: hci0: Firmware timestamp 2023.42 buildtype 1 build 73111
[    8.034694] Bluetooth: MGMT ver 1.22
[    8.039001] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x24:0x72:1436)
[    8.039055] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[    8.039212] [drm:nv_drm_load [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NvKmsKapiDevice
[    8.039406] [drm:nv_drm_probe_devices [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to register device
[   11.479399] r8169 0000:34:00.0 enp52s0: Link is Up - 1Gbps/Full - flow control rx/tx

But GPU works fine, i see loads in the gpu when run any games.

nvidia-smi
Fri Dec 29 13:04:09 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.06              Driver Version: 545.29.06    CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+
| 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 GeForce RTX 3070 ...    Off | 00000000:01:00.0 Off |                  N/A |
| N/A   40C    P0             752W / 115W |      1MiB /  8192MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|  No running processes found                                                           |
+---------------------------------------------------------------------------------------+

Wayland and x11 both have results

Check that you do not have a hardware issue:
try a different HDMI cable.
try plugging into a different port in the GPU
try a difference monitor.

monitor works fine if i move to dGPU only. also the hdmi is directly connected to the dGPU.

it seems monitor works fine with 6.6.8-200.fc39.x86_64, it doesn’t work in latest kernel.

Do you see any logs in dmesg for the failing kernel related to the CPU?

Now 6.6.8-200.fc39.x86_64 is not working, it’s so random

here is the dmesg, Linux 6.6.8-200.fc39.x86_64 pastbin

This looks like the important log lines:

[    7.915310] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[    7.915467] [drm:nv_drm_load [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NvKmsKapiDevice
[    7.915628] [drm:nv_drm_probe_devices [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to register device

web search show you are not allow with seeing this as a random failure.

Maybe try the work around in ubuntu - NVRM: RmInitAdapter failed: Xid: 79, GPU has fallen off the bus - Stack Overflow ?

Try adding pcie_aspm=off to the kernel command line.

didn’t worked

[    7.788532] Bluetooth: hci0: Firmware timestamp 2023.42 buildtype 1 build 73111
[    7.821776] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x24:0x72:1436)
[    7.821841] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[    7.822042] [drm:nv_drm_load [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NvKmsKapiDevice
[    7.822156] [drm:nv_drm_probe_devices [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to register device
[    7.862583] Bluetooth: MGMT ver 1.22
[   11.787122] r8169 0000:34:00.0 enp52s0: Link is Up - 1Gbps/Full - flow control rx/tx

used this cmd

sudo grubby --update-kernel /boot/vmlinuz-6.6.8-200.fc39.x86_64 --args="pcie_aspm=off"

did you try anything else to make it work? I have the same problem, but only the 6.6.2-201 works for me, later kernel are borked.