Fedora is not smooth with dual monitors (Nvidia not activating)

Hey there, i’m new to fedora and linux. So far I love it. Problem is this: When my secondary monitor is attached experience is not smooth. It is clumsy and laggy. You know what I mean, the smoothness of animations, window movements and even cursor movement, not smooth. When I unplug secondary monitor, wow smooth like butter. I have default Intel graphics card and Nvidia RTX 2060 on my laptop. I suspect that primary card is intel and it cannot handle dual monitors. On windows 11, it uses 2060 to render secondary monitor.

You may ask about my nvidia drivers, I have installed them, but not sure if everything is as it should be.
if necessary glxinfo | egrep “OpenGL vendor|OpenGL renderer” promts:

OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics (CML GT2)

and nvidia-smi:

Sun Aug 25 23:29:37 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 555.58.02              Driver Version: 555.58.02      CUDA Version: 12.5     |
|-----------------------------------------+------------------------+----------------------+
| 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 2060        Off |   00000000:01:00.0  On |                  N/A |
| N/A   45C    P8              7W /   90W |      52MiB /   6144MiB |      5%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+                                                                                       
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      2366      G   /usr/bin/gnome-shell                           41MiB |
+-----------------------------------------------------------------------------------------+ 

I edited your post to use the preformatted text tags </> instead of the block quote as originally posted. It reverted the displayed text to exactly as seen on-screen. Please remember to do that with future posts so formatting is retained.

Nvidia-smi appears to show the drivers properly loaded and that gnome is using it.
Please post the output of both inxi -Fzxx and dnf list installed \*nvidia\* so we may see the full details.

Thanks for the edit. So I solved the issue. I followed the guide in the link until the choosing Gnome XORG step : Guide

But not further. Btw I have fedora 40 so there is only Gnome, Gnome Classic, Gnome XORG and Gnome Classic XORG options. There was no x11 option like in the guide. I did not make any configurations or so on. I just rebooted my laptop, chose Gnome XORG, and in the opening everything was smooth. Primary gpu is still integrated intel. But nvidia x-server started to detect my monitor. As much as I understand now my primary display is rendered by İntel gpu and my secondary display is rendered by Nvidia gpu. So far my problem is solved so I won’follow the rest of the guide. (Even if I want I think the guide may be old and fedora using wayland, dont think there is x11 in my device.) You are the experts you know better but maybe the issue is about Wayland. everything is smooth even when glxinfo | egrep "OpenGL vendor|OpenGL renderer" promting:

OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics (CML GT2)

Those are both the X11 DE. It is there just with a different name.

That is normal with most dual GPU laptops.

That guide is accurate but somewhat dated and the instructions in step 8 only apply if using the X11 DE. Everything up thru step 7 apply fully for both DEs since they are about setting up the drivers
If you want the nvidia gpu to manage both screens copy the file as noted in step 8 then reboot and log back in.
If you also want the nvidia gpu to be used as the primary GPU then edit the copied version of that file as also noted in step 8.

Disable animations; this has been a consistent-but-random problem for me for years on GNOME since 2016 Intel/AMD/NVIDIA/Triple-buffering/Wayland/Xorg/Fedora/Ubuntu/openSUSE and today (F40), and it’s easier to hide it, and speed-up UX interactions at the same time :stuck_out_tongue:

gsettings set 'org.gnome.desktop.interface' 'enable-animations' 'false'