Fedora lower refresh rate after installing nvidia driver

Hello everyone. I have been using Fedora on Asus tuf fx 505du with 1660ti GPU dual-boot with Windows. My secondary monitor is Asus VA229QSB a 21-inch monitor. But I am facing some weird issues with the fedora. I will list a few,
I use a secondary monitor with my laptop. My Laptop’s monitor supports 120Hz and my secondary monitor supports 75Hz. Recently I have installed Nvidia drivers using “akmod-nvidia”.

nvidia-smi

[druglord@fedora ~]$ nvidia-smi
Sun Nov 12 13:19:33 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.129.03             Driver Version: 535.129.03   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 GeForce GTX 1660 Ti     Off | 00000000:01:00.0  On |                  N/A |
| N/A   47C    P8               8W /  80W |    278MiB /  6144MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A    110037      G   /usr/bin/gnome-shell                          1MiB |
|    0   N/A  N/A    111144    C+G   ...seed-version=20231110-130113.867000      255MiB |
+---------------------------------------------------------------------------------------+

xrandr

[druglord@fedora ~]$ xrandr
Screen 0: minimum 16 x 16, current 3840 x 1080, maximum 32767 x 32767
XWAYLAND0 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 480mm x 270mm
   1920x1080     74.91*+
   1440x1080     74.92  
   1400x1050     74.87  
   1280x1024     74.90  
   1280x960      74.86  
   1152x864      74.82  
   1024x768      74.90  
   800x600       74.91  
   640x480       74.77  
   320x240       73.82  
   1680x1050     74.89  
   1440x900      74.98  
   1280x800      74.93  
   720x480       74.51  
   640x400       74.23  
   320x200       73.70  
   1600x900      74.89  
   1368x768      74.90  
   1280x720      74.78  
   1024x576      74.80  
   864x486       74.45  
   720x400       74.23  
   640x350       74.53  
XWAYLAND1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
   1920x1080    119.93*+
   1440x1080    119.92  
   1400x1050    119.90  
   1280x1024    119.96  
   1280x960     119.89  
   1152x864     119.77  
   1024x768     119.80  
   800x600      119.85  
   640x480      119.52  
   320x240      117.34  
   1680x1050    119.89  
   1440x900     119.94  
   1280x800     119.85  
   720x480      119.65  
   640x400      119.64  
   320x200      117.55  
   1600x900     119.95  
   1368x768     119.83  
   1280x720     119.86  
   1024x576     119.85  
   864x486      119.69  
   720x400      119.54  
   640x350      119.24 

lspci | grep -i nvidia

[druglord@fedora ~]$ lspci | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation TU116 High Definition Audio Controller (rev a1)
01:00.2 USB controller: NVIDIA Corporation TU116 USB 3.1 Host Controller (rev a1)
01:00.3 Serial bus controller: NVIDIA Corporation TU116 USB Type-C UCSI Controller (rev a1)
[druglord@fedora ~]$ 

In the settings menu, both monitor are set to their maximum refresh rate(120 and 75). A few days back, I was installing Cuda and messed up my whole system. I had to reinstall Fedora 38. In the previous version, I downloaded the .run file and installed Nvidia-driver. But after messing up Cuda, and digging I got to know downloading Nvidia-driver from RPM is better. So in the current f38, I installed Nvidia-driver using “akmod-nvidia”. Since then the refresh rate for the secondary monitor has been stuck at 35Hz and the main monitor is 75Hz. However, the refresh rate for both monitors is okay and also working well on my Windows dual boot OS.

To enable both monitors, I have to select GNOME from the lock screen. Both monitors work but the refresh rate issue arises. To fix this screen refresh rate issue(most probably screen flickering?) I tried to install Wayland (GNOME on Xorg?). On the previous version, installing Wayland fixed the refresh rate issue somewhat. But now, when I am selecting other options, either my laptop’s monitor is disabled or my secondary monitor is disabled.

Here I have enabled GNOME on Xorg. My laptop’s screen is black/disabled(120Hz) but the secondary monitor is active. I have added a few screenshots. The refresh rate is showing 75hz which is my secondary monitor’s refresh rate. No screen flickering. Everything is smooth. Even no choppiness and everything runs smoothly.
Enabling those options fixes the screen flickering issue on the active monitor and if I press “xrandr” while only one monitor is active(HDMI is still plugged in), It lists only one monitor.

Gnome on Xorg: Only secondary monitor enabled. No refresh rate issue.

xrandr (GNOME on Xorg)

[druglord@fedora ~]$ xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 480mm x 270mm
   1920x1080     60.00 +  75.00*   74.91    59.94    50.00  
   1680x1050     59.95  
   1440x900      59.89  
   1366x768      59.79  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93 

Another thing, only the “GNOME” turns on the night light for both my displays. Other options don’t.

Lastly, it may be weird, the Nvidia x server setting does not show all the options on GNOME, but when I select GNOME on Xorg, it shows more options.

After enabling GNOME, when I check my refresh rate for both monitors,

If I press "xrandr" It shows

xrandr

[druglord@fedora ~]$ xrandr
Screen 0: minimum 16 x 16, current 3840 x 1080, maximum 32767 x 32767
XWAYLAND0 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 480mm x 270mm
   1920x1080     74.91*+
   1440x1080     74.92  
   1400x1050     74.87  
   1280x1024     74.90  
   1280x960      74.86  
   1152x864      74.82  
   1024x768      74.90  
   800x600       74.91  
   640x480       74.77  
   320x240       73.82  
   1680x1050     74.89  
   1440x900      74.98  
   1280x800      74.93  
   720x480       74.51  
   640x400       74.23  
   320x200       73.70  
   1600x900      74.89  
   1368x768      74.90  
   1280x720      74.78  
   1024x576      74.80  
   864x486       74.45  
   720x400       74.23  
   640x350       74.53  
XWAYLAND1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
   1920x1080    119.93*+
   1440x1080    119.92  
   1400x1050    119.90  
   1280x1024    119.96  
   1280x960     119.89  
   1152x864     119.77  
   1024x768     119.80  
   800x600      119.85  
   640x480      119.52  
   320x240      117.34  
   1680x1050    119.89  
   1440x900     119.94  
   1280x800     119.85  
   720x480      119.65  
   640x400      119.64  
   320x200      117.55  
   1600x900     119.95  
   1368x768     119.83  
   1280x720     119.86  
   1024x576     119.85  
   864x486      119.69  
   720x400      119.54  
   640x350      119.24 

I really like GNOME. I don’t have plans to move to XFCE or KDE. But is there any way to fix this issue?