Yes, I installed the nvidia drivers following the instructions in https://rpmfusion.org/Howto/NVIDIA.
I addition to that I made my nvidia graphics card - gtx 1060 6GB mobile - as primary gpu following the instruction in here https://rpmfusion.org/Howto/Optimus. I had to do this because my laptop was stuttering when I connected a 4K monitor and moved my windows in there. When I made the nvidia my primary gpu it consumed a lot more battery but it fixed this issue.
I hoped it gives you a clearer view of my problem.
Thanks!
Output of command Xorg :1 -configure :
X.Org X Server 1.20.14
X Protocol Version 11, Revision 0
Build Operating System: 5.18.10-200.fc36.x86_64
Current Operating System: Linux fedora 5.19.14-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 5 21:31:17 UTC 2022 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-5.19.14-200.fc36.x86_64 root=UUID=0f8ee1ff-580e-4bb0-a7fb-ad6598291993 ro rootflags=subvol=root rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 initcall_blacklist=simpledrm_platform_driver_init rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 initcall_blacklist=simpledrm_platform_driver_init
Build Date: 12 July 2022 12:00:00AM
Build ID: xorg-x11-server 1.20.14-7.fc36
Current version of pixman: 0.40.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Fri Oct 14 16:49:52 2022
List of video drivers:
amdgpu
ati
intel
nouveau
nvidia
openchrome
qxl
radeon
vmware
modesetting
fbdev
vesa
(++) Using config file: "/root/xorg.conf.new"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Number of created screens does not match number of detected devices.
Configuration failed.
(EE) Server terminated with error (2). Closing log file.
Log File:
[ 6972.644]
X.Org X Server 1.20.14
X Protocol Version 11, Revision 0
[ 6972.644] Build Operating System: 5.18.10-200.fc36.x86_64
[ 6972.644] Current Operating System: Linux fedora 5.19.14-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 5 21:31:17 UTC 2022 x86_64
[ 6972.645] Kernel command line: BOOT_IMAGE=/vmlinuz-5.19.14-200.fc36.x86_64 root=UUID=0f8ee1ff-580e-4bb0-a7fb-ad6598291993 ro rootflags=subvol=root rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 initcall_blacklist=simpledrm_platform_driver_init rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 initcall_blacklist=simpledrm_platform_driver_init
[ 6972.645] Build Date: 12 July 2022 12:00:00AM
[ 6972.645] Build ID: xorg-x11-server 1.20.14-7.fc36
[ 6972.645] Current version of pixman: 0.40.0
[ 6972.645] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 6972.645] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 6972.645] (==) Log file: "/var/log/Xorg.1.log", Time: Fri Oct 14 16:49:52 2022
[ 6972.645] (II) Loader magic: 0x560f29514a80
[ 6972.645] (II) Module ABI versions:
[ 6972.645] X.Org ANSI C Emulation: 0.4
[ 6972.645] X.Org Video Driver: 24.1
[ 6972.645] X.Org XInput driver : 24.1
[ 6972.645] X.Org Server Extension : 10.0
[ 6972.646] (--) using VT number 1
[ 6972.646] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 6972.646] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 6972.647] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 6972.647] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[ 6972.649] (--) PCI:*(0@0:2:0) 8086:3e9b:1462:1215 rev 0, Mem @ 0xa2000000/16777216, 0x80000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/131072
[ 6972.649] (--) PCI: (1@0:0:0) 10de:1c20:1462:1215 rev 161, Mem @ 0xa3000000/16777216, 0x90000000/268435456, 0xa0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/524288
[ 6972.649] List of video drivers:
[ 6972.650] amdgpu
[ 6972.650] ati
[ 6972.650] intel
[ 6972.650] nouveau
[ 6972.650] nvidia
[ 6972.650] openchrome
[ 6972.650] qxl
[ 6972.650] radeon
[ 6972.650] vmware
[ 6972.650] modesetting
[ 6972.650] fbdev
[ 6972.650] vesa
[ 6972.650] (II) LoadModule: "amdgpu"
[ 6972.650] (II) Loading /usr/lib64/xorg/modules/drivers/amdgpu_drv.so
[ 6972.653] (II) Module amdgpu: vendor="X.Org Foundation"
[ 6972.653] compiled for 1.20.14, module version = 22.0.0
[ 6972.653] Module class: X.Org Video Driver
[ 6972.653] ABI class: X.Org Video Driver, version 24.1
[ 6972.653] (II) LoadModule: "ati"
[ 6972.653] (II) Loading /usr/lib64/xorg/modules/drivers/ati_drv.so
[ 6972.653] (II) Module ati: vendor="X.Org Foundation"
[ 6972.653] compiled for 1.20.14, module version = 19.1.0
[ 6972.653] Module class: X.Org Video Driver
[ 6972.653] ABI class: X.Org Video Driver, version 24.1
[ 6972.653] (II) LoadModule: "intel"
[ 6972.653] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[ 6972.656] (II) Module intel: vendor="X.Org Foundation"
[ 6972.656] compiled for 1.20.14, module version = 2.99.917
[ 6972.656] Module class: X.Org Video Driver
[ 6972.656] ABI class: X.Org Video Driver, version 24.1
[ 6972.656] (II) LoadModule: "nouveau"
[ 6972.656] (II) Loading /usr/lib64/xorg/modules/drivers/nouveau_drv.so
[ 6972.657] (II) Module nouveau: vendor="X.Org Foundation"
[ 6972.657] compiled for 1.20.14, module version = 1.0.17
[ 6972.657] Module class: X.Org Video Driver
[ 6972.657] ABI class: X.Org Video Driver, version 24.1
[ 6972.657] (II) LoadModule: "nvidia"
[ 6972.657] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[ 6972.659] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 6972.659] compiled for 1.6.99.901, module version = 1.0.0
[ 6972.659] Module class: X.Org Video Driver
[ 6972.659] (II) LoadModule: "openchrome"
[ 6972.659] (II) Loading /usr/lib64/xorg/modules/drivers/openchrome_drv.so
[ 6972.661] (II) Module openchrome: vendor="https://www.freedesktop.org/wiki/Openchrome/"
[ 6972.661] compiled for 1.20.14, module version = 0.6.400
[ 6972.661] Module class: X.Org Video Driver
[ 6972.661] ABI class: X.Org Video Driver, version 24.1
[ 6972.661] (II) LoadModule: "qxl"
[ 6972.661] (II) Loading /usr/lib64/xorg/modules/drivers/qxl_drv.so
[ 6972.661] (II) Module qxl: vendor="X.Org Foundation"
[ 6972.661] compiled for 1.20.11, module version = 0.1.5
[ 6972.661] Module class: X.Org Video Driver
[ 6972.661] ABI class: X.Org Video Driver, version 24.1
[ 6972.661] (II) LoadModule: "radeon"
[ 6972.661] (II) Loading /usr/lib64/xorg/modules/drivers/radeon_drv.so
[ 6972.663] (II) Module radeon: vendor="X.Org Foundation"
[ 6972.663] compiled for 1.20.14, module version = 19.1.0
[ 6972.663] Module class: X.Org Video Driver
[ 6972.663] ABI class: X.Org Video Driver, version 24.1
[ 6972.663] (II) LoadModule: "vmware"
[ 6972.663] (II) Loading /usr/lib64/xorg/modules/drivers/vmware_drv.so
[ 6972.693] (II) Module vmware: vendor="X.Org Foundation"
[ 6972.693] compiled for 1.20.11, module version = 13.2.1
[ 6972.693] Module class: X.Org Video Driver
[ 6972.693] ABI class: X.Org Video Driver, version 24.1
[ 6972.693] (II) LoadModule: "modesetting"
[ 6972.693] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[ 6972.693] (II) Module modesetting: vendor="X.Org Foundation"
[ 6972.693] compiled for 1.20.14, module version = 1.20.14
[ 6972.693] Module class: X.Org Video Driver
[ 6972.693] ABI class: X.Org Video Driver, version 24.1
[ 6972.693] (II) LoadModule: "fbdev"
[ 6972.693] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so
[ 6972.694] (II) Module fbdev: vendor="X.Org Foundation"
[ 6972.694] compiled for 1.20.14, module version = 0.5.0
[ 6972.694] Module class: X.Org Video Driver
[ 6972.694] ABI class: X.Org Video Driver, version 24.1
[ 6972.694] (II) LoadModule: "vesa"
[ 6972.694] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
[ 6972.694] (II) Module vesa: vendor="X.Org Foundation"
[ 6972.694] compiled for 1.20.14, module version = 2.5.0
[ 6972.694] Module class: X.Org Video Driver
[ 6972.694] ABI class: X.Org Video Driver, version 24.1
[ 6972.694] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 6972.695] (II) intel: Driver for Intel(R) HD Graphics
[ 6972.695] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[ 6972.695] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[ 6972.695] (II) NOUVEAU driver
[ 6972.695] (II) NOUVEAU driver for NVIDIA chipset families :
[ 6972.695] RIVA TNT (NV04)
[ 6972.695] RIVA TNT2 (NV05)
[ 6972.695] GeForce 256 (NV10)
[ 6972.695] GeForce 2 (NV11, NV15)
[ 6972.695] GeForce 4MX (NV17, NV18)
[ 6972.695] GeForce 3 (NV20)
[ 6972.695] GeForce 4Ti (NV25, NV28)
[ 6972.695] GeForce FX (NV3x)
[ 6972.695] GeForce 6 (NV4x)
[ 6972.695] GeForce 7 (G7x)
[ 6972.695] GeForce 8 (G8x)
[ 6972.695] GeForce 9 (G9x)
[ 6972.695] GeForce GTX 2xx/3xx (GT2xx)
[ 6972.695] GeForce GTX 4xx/5xx (GFxxx)
[ 6972.695] GeForce GTX 6xx/7xx (GKxxx)
[ 6972.695] GeForce GTX 9xx (GMxxx)
[ 6972.695] GeForce GTX 10xx (GPxxx)
[ 6972.695] (II) NVIDIA dlloader X Driver 515.76 Mon Sep 12 19:18:09 UTC 2022
[ 6972.695] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 6972.695] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 6972.695] (II) FBDEV: driver for framebuffer: fbdev
[ 6972.695] (II) VESA: driver for VESA chipsets: vesa
[ 6972.729] (++) Using config file: "/root/xorg.conf.new"
[ 6972.729] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 6972.729] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 6972.729] (==) ServerLayout "layout"
[ 6972.729] (**) |-->Screen "Screen0" (0)
[ 6972.729] (**) | |-->Monitor "Monitor0"
[ 6972.729] (**) | |-->Device "Card0"
[ 6972.729] (**) | |-->GPUDevice "Card1"
[ 6972.729] (==) Automatically adding devices
[ 6972.729] (==) Automatically enabling devices
[ 6972.729] (==) Automatically adding GPU devices
[ 6972.729] (==) Automatically binding GPU devices
[ 6972.729] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 6972.729] (**) FontPath set to:
catalogue:/etc/X11/fontpath.d,
built-ins,
catalogue:/etc/X11/fontpath.d,
built-ins
[ 6972.729] (**) ModulePath set to "/usr/lib64/xorg/modules"
[ 6972.729] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 6972.729] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20201103
[ 6972.730] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -2
[ 6972.730] Number of created screens does not match number of detected devices.
Configuration failed.
[ 6972.730] (EE) Server terminated with error (2). Closing log file.