External monitor keeps disconnecting and reconnecting on fresh install after nvidia drivers install

Hello, just installed Fedora 42 KDE with dualboot to W11 till I’m ready to make the full transition. After installing the dual boot with fedora i updated everything, then used the rpmfusion guide, first with rpmfusion/Configuration, then with rpmfusion/HowtoSecureBoot and then with rpmfusionHowtoNVIDIA. I have an MSI Pulse GL76 laptop running an intel cpu with an nvidia gpu and from what I see the driver install worked but it “bricked” my external monitor (LG 27gn600b) that I use with mouse and keyboard as a “desktop”. I keep hearing a connect and disconnect sound from the speakers and in display settings in fedora i can see the monitor appearing and disappearing every few seconds. The driver seems to be installed and secure boot to be working. There were no issues before the drivers installation, is there something I can do? Thank you so much in advance!

We need more details. A fresh install of F4 KDE likely has a long list of updates. Please make sure the system is fully updated so we aren’t wasting time on a solved problem.

If updates don’t solve your issue, please run inxi -Gzxx in a terminal to get details of the Nvidia GPU model and driver version. Post the output as pre-formatted text (use the </> button). There may be more details of the disconnecting and reconnecting available using journalctl in a terminal. Start with:

  • journalctl --no-hostname -b -p 3 for the most important error messages, then
  • journalctl --no-hostname -b -g nvidia for messages that mention Nvidia

If there are overly long lines (they end in >), run the command(s)s again after adding | cat at the end so the long lines will wrap. If there are long blocks repeating the same message, please post one example block.

Fully updated with dnf update, the details:

Graphics:
  Device-1: Intel Alder Lake-P GT2 [Iris Xe Graphics] vendor: Micro-Star MSI
    driver: i915 v: kernel arch: Xe ports: active: eDP-1 empty: none
    bus-ID: 00:02.0 chip-ID: 8086:46a6
  Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q]
    vendor: Micro-Star MSI driver: nvidia v: 575.57.08 arch: Ampere pcie:
    speed: 2.5 GT/s lanes: 8 ports: active: none off: HDMI-A-1 empty: none
    bus-ID: 01:00.0 chip-ID: 10de:2520
  Device-3: Bison HD Webcam driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 1-6:4 chip-ID: 5986:211b
  Display: wayland server: X.org v: 1.21.1.16 with: Xwayland v: 24.1.6
    compositor: kwin_wayland driver: gpu: i915,nvidia,nvidia-nvswitch
    d-rect: 1920x1080 display-ID: 0
  Monitor-1: HDMI-A-1 pos: primary model: LG (GoldStar) ULTRAGEAR
    res: 1920x1080 hz: 144 dpi: 81 diag: 690mm (27.2")
  Monitor-2: eDP-1 pos: primary model: ChiMei InnoLux 0x176e res: 1920x1080
    hz: 144 dpi: 128 diag: 437mm (17.2")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 2 drv: iris
    device: 3 drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia wayland:
    drv: iris x11: drv: iris inactive: device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 25.0.7 glx-v: 1.4
    direct-render: yes renderer: Mesa Intel Iris Xe Graphics (ADL GT2)
    device-ID: 8086:46a6 display-ID: :0.0
  API: Vulkan v: 1.4.313 surfaces: N/A device: 0 type: integrated-gpu
    driver: mesa intel device-ID: 8086:46a6 device: 1 type: discrete-gpu
    driver: nvidia device-ID: 10de:2520 device: 2 type: cpu
    driver: mesa llvmpipe device-ID: 10005:0000
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
    wl: wayland-info x11: xdriinfo, xdpyinfo, xprop, xrandr

Also, I did journalctl -f before and I got every few seconds:

Jun 09 23:04:25 fedora kwin_wayland[2130]: kwin_scene_opengl: 0x502: GL_INVALID_OPERATION error generated. <image> and <target> are incompatible
Jun 09 23:04:25 fedora kwin_wayland[2130]: kwin_scene_opengl: Invalid framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"
Jun 09 23:04:25 fedora kwin_wayland[2130]: kwin_wayland_drm: Failed to create framebuffer: Invalid argument
Jun 09 23:04:25 fedora kwin_wayland[2130]: kwin_wayland_drm: Failed to create framebuffer: Invalid argument
Jun 09 23:04:36 fedora kwin_wayland[2130]: kwin_scene_opengl: 0x500: GL_INVALID_ENUM error generated. Invalid <face>.
Jun 09 23:04:36 fedora kwin_wayland[2130]: kwin_scene_opengl: Invalid framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT"

then

journalctl --no-hostname -b -p 3
Jun 10 03:02:35 kernel: usbhid 1-1:1.3: couldn't find an input interrupt endpoint
Jun 10 03:02:35 kernel: psmouse serio1: synaptics: Unable to initialize device.
Jun 10 03:02:36 kernel: i915 0000:00:02.0: [drm] *ERROR* CPU pipe A FIFO underrun
Jun 10 00:02:37 kernel: 
Jun 10 00:02:43 chronyd[1222]: Could not add source 128.138.140.44 : Already in use
Jun 10 00:06:33 kwin_wayland[2138]: kwin_scene_opengl: Invalid framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT"
Jun 10 00:06:33 kwin_wayland[2138]: kwin_scene_opengl: Invalid framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"

and

journalctl --no-hostname -b -g nvidia
Jun 10 00:02:37 kernel: nvidia: loading out-of-tree module taints kernel.
Jun 10 00:02:37 kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 509
Jun 10 00:02:37 kernel: nvidia 0000:01:00.0: enabling device (0000 -> 0003)
Jun 10 00:02:37 kernel: nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
Jun 10 00:02:37 kernel: NVRM: loading NVIDIA UNIX Open Kernel Module for x86_64  575.57.08  Release Build  (dvs-builder@U22-I3-H04-01-5)  Sat May 24 07:03:13 UTC 2025
Jun 10 00:02:38 kernel: nvidia-modeset: Loading NVIDIA UNIX Open Kernel Mode Setting Driver for x86_64  575.57.08  Release Build  (dvs-builder@U22-I3-H04-01-5)  Sat May 24 06:53:21 UTC 2025
Jun 10 00:02:38 kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
Jun 10 00:02:38 kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input32
Jun 10 00:02:38 kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input33
Jun 10 00:02:38 kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input34
Jun 10 00:02:38 kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input35
Jun 10 00:02:38 systemd[1]: Started nvidia-powerd.service - nvidia-powerd service.
Jun 10 00:02:38 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=nvidia-powerd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 10 00:02:38 nvidia-powerd[1156]: nvidia-powerd version:2.0 (build 1)
Jun 10 00:02:40 kernel: [drm] Initialized nvidia-drm 0.0.0 for 0000:01:00.0 on minor 0
Jun 10 00:02:40 kernel: nvidia 0000:01:00.0: [drm] fb1: nvidia-drmdrmfb frame buffer device
Jun 10 00:02:40 systemd[1]: nvidia-fallback.service - Fallback to nouveau as nvidia did not load was skipped because of an unmet condition check (ConditionPathExists=!/sys/module/nvidia).
Jun 10 00:02:49 systemd[1872]: Starting app-nvidia\x2dsettings\x2duser@autostart.service - nvidia-settings...
Jun 10 00:02:49 systemd[1872]: Started app-nvidia\x2dsettings\x2duser@autostart.service - nvidia-settings.
damian@fedora:~$ 

Thanks for helping!

ports:
active: none
off: HDMI-A-1
empty: none

have you tried to disconnect the monitor from the system?
Disconnect, run inxi -Gxx to see if HDMI-A-1 port status changes to empty and reconnect.

This is what i get when disconnecting the external monitor.

Graphics:
  Device-1: Intel Alder Lake-P GT2 [Iris Xe Graphics] vendor: Micro-Star MSI
    driver: i915 v: kernel arch: Xe ports: active: eDP-1 empty: none
    bus-ID: 00:02.0 chip-ID: 8086:46a6
  Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q]
    vendor: Micro-Star MSI driver: nvidia v: 575.57.08 arch: Ampere pcie:
    speed: 2.5 GT/s lanes: 8 ports: active: none empty: HDMI-A-1
    bus-ID: 01:00.0 chip-ID: 10de:2520
  Device-3: Bison HD Webcam driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 1-6:4 chip-ID: 5986:211b
  Display: wayland server: X.org v: 1.21.1.16 with: Xwayland v: 24.1.6
    compositor: kwin_wayland driver: gpu: i915 display-ID: 0
  Monitor-1: eDP-1 model: ChiMei InnoLux 0x176e res: 1920x1080 hz: 144
    dpi: 128 diag: 437mm (17.2")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 2 drv: iris
    device: 3 drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia wayland:
    drv: iris x11: drv: iris inactive: device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 25.0.7 glx-v: 1.4
    direct-render: yes renderer: Mesa Intel Iris Xe Graphics (ADL GT2)
    device-ID: 8086:46a6 display-ID: :0.0
  API: Vulkan v: 1.4.313 surfaces: N/A device: 0 type: integrated-gpu
    driver: mesa intel device-ID: 8086:46a6 device: 1 type: discrete-gpu
    driver: nvidia device-ID: 10de:2520 device: 2 type: cpu
    driver: mesa llvmpipe device-ID: 10005:0000
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
    wl: wayland-info x11: xdriinfo, xdpyinfo, xprop, xrandr

I don’t know what to do, I changed so I run only by gpu so when I run this

glxinfo | egrep "OpenGL vendor|OpenGL renderer"

i now have nvidia gpu there instead of intel integrated and now it wont even see my hdmi connection, it appears when connected:

Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q]
    vendor: Micro-Star MSI driver: nvidia v: 575.57.08 arch: Ampere pcie:
    speed: 2.5 GT/s lanes: 8 ports: active: none empty: HDMI-A-1
    bus-ID: 01:00.0 chip-ID: 10de:2520

This could be a driver bug with the NVIDIA open source kernel modules.

The 3060 is also supported by the closed source kernel modules.

sudo sh -c 'echo "%_without_kmod_nvidia_detect 1" > /etc/rpm/macros.nvidia-kmod'
sudo akmods --kernels $(uname -r) --rebuild

modinfo -l nvidia should now report ‘NVIDIA’ instead of ‘Dual MIT/GPL
Reboot

It does report “NVIDIA” but nothing changed. Booting from live usb the external display works, I even reinstalled fedora and again, after installing the nvidia drivers the external monitor stops working and it just connects-disconnects non stop and it’s a black screen. I tried dnf downgrade or smth on akmod-nvidia and still nothing changed. Also tried another external display and nothing. I have the rpm fusion repositories, the secureboot tutorial worked cause i can see it activated with (mokutil --sb-state) and the drivers seem to be the latest, I don’t know what could cause this..

pls post

journalctl --no-hostname --no-pager -b0  -k -g "nvidia|nvrm|fbcon"
dnf list \*nvidia\* --installed
journalctl --no-hostname --no-pager -b0  -k -g "nvidia|nvrm|fbcon"
dnf list \*nvidia\* --installed
Jun 10 16:39:26 kernel: fbcon: Deferring console take-over
Jun 10 16:39:28 kernel: fbcon: i915drmfb (fb0) is primary device
Jun 10 16:39:28 kernel: fbcon: Deferring console take-over
Jun 10 13:39:30 kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input30
Jun 10 13:39:30 kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input31
Jun 10 13:39:30 kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input32
Jun 10 13:39:30 kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input33
Jun 10 13:39:30 kernel: nvidia: loading out-of-tree module taints kernel.
Jun 10 13:39:30 kernel: nvidia: module license 'NVIDIA' taints kernel.
Jun 10 13:39:30 kernel: nvidia: module license taints kernel.
Jun 10 13:39:30 kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 509
Jun 10 13:39:30 kernel: nvidia 0000:01:00.0: enabling device (0000 -> 0003)
Jun 10 13:39:30 kernel: nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
Jun 10 13:39:30 kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  575.57.08  Sat May 24 07:21:16 UTC 2025
Jun 10 13:39:30 kernel: nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
Jun 10 13:39:30 kernel: nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  575.57.08  Sat May 24 06:52:56 UTC 2025
Jun 10 13:39:30 kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
Jun 10 13:39:32 kernel: [drm] Initialized nvidia-drm 0.0.0 for 0000:01:00.0 on minor 0
Jun 10 13:39:32 kernel: fbcon: Deferring console take-over
Jun 10 13:39:32 kernel: nvidia 0000:01:00.0: [drm] fb1: nvidia-drmdrmfb frame buffer device
Installed packages
akmod-nvidia.x86_64                       3:575.57.08-2.fc42 rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.14.9-300.fc42.x86_64.x86_64 3:575.57.08-2.fc42 @commandline
nvidia-gpu-firmware.noarch                20250509-1.fc42    updates
nvidia-modprobe.x86_64                    3:575.57.08-1.fc42 rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64                3:575.57.08-1.fc42 rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                    3:575.57.08-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                3:575.57.08-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64           3:575.57.08-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686        3:575.57.08-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64      3:575.57.08-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64        3:575.57.08-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686             3:575.57.08-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64           3:575.57.08-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64          3:575.57.08-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-xorg-libs.x86_64      3:575.57.08-1.fc42 rpmfusion-nonfree-nvidia-driver

Linux support on MSI is mainly user contributions – https://www.phoronix.com/forums/forum/software/mobile-linux/1380776-msi-laptops-to-enjoy-better-linux-support-beginning-with-the-6-4-kernel so Fedora may not have the “special sauce” users have provided on other distros.

With the Live USB you can install inxi and compare the inxi -Gzxx results. Laptops have used many different systems to manage switching display connections between the iGPU and dGPU, and many now only use the iGPU with the dGPU rendering complex elements that are passed through the iGPU. Yours uses “Nvidia Optimus”.

Use the LHDB to see which distros have good support (nearly all devices working). There are sometimes user comments detailing configuration steps. You may get useful hints if you run a Live USB installer for another distro and compare inxi output.

I’d suggest downgrading to the stable 570.153 driver.

sudo rm -f /etc/rpm/macros.nvidia-kmod
sudo dnf install rpmfusion-packager

mkdir $HOME/Downloads/nvidia-570.153.02
cd  $HOME/Downloads/nvidia-570.153.02


koji-rpmfusion list-tagged f42-nonfree-updates | \
 awk '/nvidia.*570.153.02/ { print $1 }' | \
 xargs -n1 koji-rpmfusion download-build -a x86_64 -a i686

downgrade with

cd  $HOME/Downloads/nvidia-570.153.02
sudo dnf downgrade ./*rpm  --allowerasing

don’t reboot yet but wait for a few minutes until

rpm -qa kmod-nvidia\*
prints a line like this

kmod-nvidia-6.14.9-300.fc42.x86_64-570.153.02-1.fc42.x86_64

reboot


I actually did run it in live usb a few hours ago. Thanks for the insight!


Thank you! I managed to downgrade but it seems the external display keeps having the same issue where it disconnects and then reconnects and kind of lags the screen for a few ms. Is this issue because of kde and wayland? Should i reinstall with gnome and see if i have this problem?

open display settings and try to set refresh rate to 60Hz and disable VRR and HDR if enabled.

so it still keeps disconnecting?

it appeared on 60hz, but what do i do now?:)) i usually have 144hz (i plan to use the external only when at home) it kept disappearing and i struggled a little to change to 60hz but that seems to be an issue, any idea why?

even 100 or 120hz seem to work actually, just 144 doesn’t

So keep it at 120 or 100 if it’s stable.
DisplayPort is the better option, but it seems the system has none.

thank you so much! probably linux doesn’t have as strong as a compatibility with hdmi as windows has (there i can run this setup).

DP is the preferred solution to connect displays to systems. It’s better supported.

here is the documentation for this driver,
most of this stuff is X11 related, your KDE plasma session runs on Wayland, but you want to read chapter 16, 17, 34, 35, 36 and the Optimus howto on rpmfussion

be careful with updates, you def. want to exclude akmod-nvidia from updates.