Fedora 36 Nvidia as primary GPU

Everything looks fine there. Your machine is almost identical to mine.

I would assume you did not set the nvidia as primary thus the intel is running until and unless you start an app that requires the additional power of the nvidia GPU.

Mine shows

$ glxinfo | egrep -i 'Opengl renderer|OpenGL vendor'
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2

and I have the nvidia set as primary by following these steps from rpmfusion.

cp -p /usr/share/X11/xorg.conf.d/nvidia.conf /etc/X11/xorg.conf.d/nvidia.conf
And edit the file to use: Option "PrimaryGPU" "yes"

I chose to place that Option in both stanzas of that file under /etc and am running the nvidia GPU as primary so it is always active. Yours is the same as mine was before I made the nvidia primary.

Thank you for your time Jeff, that procedure was already carried out, I just re-check it and everything is fine, even so, it is not as primary yet.

cat /etc/X11/xorg.conf.d/nvidia.conf
#This file is provided by xorg-x11-drv-nvidia
#Do not edit

Section "OutputClass"
	Identifier "nvidia"
	MatchDriver "nvidia-drm"
	Driver "nvidia"
	Option "AllowEmptyInitialConfiguration"
	Option "SLI" "Auto"
	Option "BaseMosaic" "on"
	Option "PrimaryGPU" "yes"
EndSection

Section "ServerLayout"
	Identifier "layout"
	Option "AllowNVIDIAGPUScreens"
	Option "PrimaryGPU" "yes"
EndSection

You may have to reboot a couple times before everything stabilizes.

I’ll wait then…

Now, this is a general knowledge question:

How I know if the loaded modules are active in the output bellow?

lsmod | grep -iE 'nvidia|nouveau'
nvidia_drm             73728  1
nvidia_modeset       1163264  2 nvidia_drm
nvidia_uvm           1191936  0
nvidia              39145472  106 nvidia_uvm,nvidia_modeset
drm_kms_helper        335872  2 nvidia_drm,i915
drm                   606208  18 drm_kms_helper,nvidia,thinkpad_acpi,nvidia_drm,i915,ttm

If those modules are loaded they are active.

You may need a full update of F36 as well, using sudo dnf upgrade to get the latest packages (if not already done)

Everything is up to date until now… But still doesn’t update nvidia as primary.

Nvidia does not load as primary yet.

journalctl -b | grep 'nvidia'
May 13 18:51:15 rog kernel: Command line: BOOT_IMAGE=(hd0,gpt6)/root/boot/vmlinuz-5.17.6-300.fc36.x86_64 root=UUID=f177f295-ae66-4808-ab45-ba78b72f5774 ro rootflags=subvol=root resume=UUID=9b4f4402-c22a-495d-890e-bbaa0fd1a279 rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
May 13 18:51:15 rog kernel: Kernel command line: BOOT_IMAGE=(hd0,gpt6)/root/boot/vmlinuz-5.17.6-300.fc36.x86_64 root=UUID=f177f295-ae66-4808-ab45-ba78b72f5774 ro rootflags=subvol=root resume=UUID=9b4f4402-c22a-495d-890e-bbaa0fd1a279 rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
May 13 18:51:15 rog dracut-cmdline[314]: Using kernel command line parameters:  rd.driver.pre=btrfs   BOOT_IMAGE=(hd0,gpt6)/root/boot/vmlinuz-5.17.6-300.fc36.x86_64 root=UUID=f177f295-ae66-4808-ab45-ba78b72f5774 ro rootflags=subvol=root resume=UUID=9b4f4402-c22a-495d-890e-bbaa0fd1a279 rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
May 13 17:51:17 rog kernel: nvidia-gpu 0000:01:00.3: enabling device (0000 -> 0002)
May 13 17:51:18 rog systemd[1]: Starting nvidia-powerd.service - nvidia-powerd service...
May 13 17:51:18 rog /usr/bin/nvidia-powerd[962]: nvidia-powerd version:1.0(build 1)
May 13 17:51:18 rog kernel: nvidia-gpu 0000:01:00.3: i2c timeout error e0000000
May 13 17:51:18 rog kernel: nvidia: loading out-of-tree module taints kernel.
May 13 17:51:18 rog kernel: nvidia: module license 'NVIDIA' taints kernel.
May 13 17:51:18 rog kernel: nvidia: module verification failed: signature and/or required key missing - tainting kernel
May 13 17:51:18 rog kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 509
May 13 17:51:18 rog kernel: nvidia 0000:01:00.0: enabling device (0006 -> 0007)
May 13 17:51:18 rog kernel: nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
May 13 17:51:19 rog systemd-udevd[601]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c 195 255'' failed with exit code 1.
May 13 17:51:19 rog systemd-udevd[601]: nvidia: Process '/usr/bin/bash -c 'for i in $(cat /proc/driver/nvidia/gpus/*/information | grep Minor | cut -d \  -f 4); do /usr/bin/mknod -Z -m 666 /dev/nvidia${i} c 195 ${i}; done'' failed with exit code 1.
May 13 17:51:19 rog kernel: nvidia_uvm: module uses symbols from proprietary module nvidia, inheriting taint.
May 13 17:51:19 rog kernel: nvidia-uvm: Loaded the UVM driver, major device number 507.
May 13 17:51:19 rog kernel: nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  510.68.02  Wed Apr 20 21:04:10 UTC 2022
May 13 17:51:19 rog kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
May 13 17:51:20 rog /usr/bin/nvidia-powerd[962]: SBIOS support not found for NVPCF GET_SUPPORTED function
May 13 17:51:20 rog /usr/bin/nvidia-powerd[962]: No matching GPU found
May 13 17:51:20 rog /usr/bin/nvidia-powerd[962]: Failed to initialize RM Client
May 13 17:51:20 rog systemd[1]: nvidia-powerd.service: Main process exited, code=exited, status=1/FAILURE
May 13 17:51:20 rog systemd[1]: nvidia-powerd.service: Failed with result 'exit-code'.
May 13 17:51:20 rog systemd[1]: Failed to start nvidia-powerd.service - nvidia-powerd service.
May 13 17:51:20 rog 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=failed'
May 13 17:51:20 rog systemd[1]: nvidia-powerd.service: Consumed 2.066s CPU time.
May 13 17:51:20 rog kernel: [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0
May 13 17:51:20 rog systemd[1]: nvidia-fallback.service - Fallback to nouveau as nvidia did not load was skipped because of a failed condition check (ConditionPathExists=!/sys/module/nvidia)
May 13 17:51:25 rog gnome-shell[1522]: Added device '/dev/dri/card0' (nvidia-drm) using non-atomic mode setting.
May 13 17:51:34 rog gnome-shell[2589]: Added device '/dev/dri/card0' (nvidia-drm) using non-atomic mode setting.
May 13 17:51:37 rog systemd[2375]: Started app-glib-nvidia\x2dsettings\x2duser-3209.scope - Application launched by gnome-session-binary.
May 13 17:51:37 rog systemd[2375]: Started app-gnome-nvidia\x2dsettings\x2duser-3209.scope - Application launched by gnome-session-binary.

May 13 17:51:20 rog systemd[1]: nvidia-fallback.service - Fallback to nouveau as nvidia did not load was skipped because of a failed condition check (ConditionPathExists=!/sys/module/nvidia)

Did you investigate what was shown in that line.? or the few errors reported just above that?

Can you give us details of why you conclude it is not being treated as primary? It certainly was loaded in your earlier post.

In advance, super grateful for investing your time in helping us and teaching us. I have learned a lot with you.

glxinfo | egrep "OpenGL vendor|OpenGL renderer"
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CFL GT2)

I have seen that all my packages are up to date with my kernel version.

sudo dnf list installed *kernel* *nvidia*
Installed Packages
abrt-addon-kerneloops.x86_64                                                              2.15.1-1.fc36                                                       @anaconda                       
akmod-nvidia.x86_64                                                                       3:510.68.02-1.fc36                                                  @rpmfusion-nonfree-nvidia-driver
kernel.x86_64                                                                             5.17.5-300.fc36                                                     @anaconda                       
kernel.x86_64                                                                             5.17.6-300.fc36                                                     @updates                        
kernel-core.x86_64                                                                        5.17.5-300.fc36                                                     @anaconda                       
kernel-core.x86_64                                                                        5.17.6-300.fc36                                                     @updates                        
kernel-devel.x86_64                                                                       5.17.6-300.fc36                                                     @updates                        
kernel-devel-matched.x86_64                                                               5.17.6-300.fc36                                                     @updates                        
kernel-headers.x86_64                                                                     5.17.6-300.fc36                                                     @updates                        
kernel-modules.x86_64                                                                     5.17.5-300.fc36                                                     @anaconda                       
kernel-modules.x86_64                                                                     5.17.6-300.fc36                                                     @updates                        
kernel-modules-extra.x86_64                                                               5.17.5-300.fc36                                                     @anaconda                       
kernel-modules-extra.x86_64                                                               5.17.6-300.fc36                                                     @updates                        
kernel-srpm-macros.noarch                                                                 1.0-14.fc36                                                         @fedora                         
kernel-tools.x86_64                                                                       5.17.6-300.fc36                                                     @updates                        
kernel-tools-libs.x86_64                                                                  5.17.6-300.fc36                                                     @updates                        
kmod-nvidia-5.17.6-300.fc36.x86_64.x86_64                                                 3:510.68.02-1.fc36                                                  @@commandline                   
libreport-plugin-kerneloops.x86_64                                                        2.17.1-1.fc36                                                       @anaconda                       
nvidia-settings.x86_64                                                                    3:510.68.02-1.fc36                                                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                                                                3:510.68.02-1.fc36                                                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64                                                      3:510.68.02-1.fc36                                                  @rpmfusion-nonfree              
xorg-x11-drv-nvidia-kmodsrc.x86_64                                                        3:510.68.02-1.fc36                                                  @rpmfusion-nonfree              
xorg-x11-drv-nvidia-libs.i686                                                             3:510.68.02-1.fc36                                                  @rpmfusion-nonfree              
xorg-x11-drv-nvidia-libs.x86_64                                                           3:510.68.02-1.fc36                                                  @rpmfusion-nonfree              
xorg-x11-drv-nvidia-power.x86_64          

About this:

May 13 17:51:20 rog systemd[1]: Failed to start nvidia-powerd.service - nvidia-powerd service.

You told me that is already had to do with rpm fusion.

journalctl -b | grep 'nvidia
Bug compilation:

May 13 17:51:18 rog kernel: nvidia-gpu 0000:01:00.3: i2c timeout error e0000000
May 13 17:51:18 rog kernel: nvidia: module verification failed: signature and/or required key missing - tainting kernel
May 13 17:51:19 rog systemd-udevd[601]: nvidia: Process '/usr/bin/bash -c '/usr/bin/mknod -Z -m 666 /dev/nvidiactl c 195 255'' failed with exit code 1.
May 13 17:51:19 rog systemd-udevd[601]: nvidia: Process '/usr/bin/bash -c 'for i in $(cat /proc/driver/nvidia/gpus/*/information | grep Minor | cut -d \  -f 4); do /usr/bin/mknod -Z -m 666 /dev/nvidia${i} c 195 ${i}; done'' failed with exit code 1.
May 13 17:51:20 rog /usr/bin/nvidia-powerd[962]: Failed to initialize RM Client
May 13 17:51:20 rog systemd[1]: nvidia-powerd.service: Main process exited, code=exited, status=1/FAILURE
May 13 17:51:20 rog systemd[1]: nvidia-powerd.service: Failed with result 'exit-code'.
May 13 17:51:20 rog systemd[1]: Failed to start nvidia-powerd.service - nvidia-powerd service.
May 13 17:51:20 rog 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=failed'
May 13 17:51:20 rog systemd[1]: nvidia-fallback.service - Fallback to nouveau as nvidia did not load was skipped because of a failed condition check (ConditionPathExists=!/sys/module/nvidia)

I wanna know what more can I do?
I would like to know why it is no loading as primary and why these errors?

@isudoajl

I recently upgraded from F35 to F36 and seemed to have all of the same issues, with the INTEL graphics being used as the primary even though I had all of the correct settings and packages installed like you.

I believe it was around F34 that once you went through the Fedora Docs tutorial to make Nvidia Graphics your primary, it would automatically log you into Gnome on X11 session. I noticed that with F36 this was not happening. Have you checked to make sure that you are logging into Gnome on X11 and that you are not logged into Gnome on Wayland or just “Gnome” as it is listed in the session manager?

Once I switched to “Gnome on X11” I was running off of my Nvidia Graphics according to:

glxinfo | egrep "OpenGL vendor|OpenGL renderer"
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce 940MX/PCIe/SSE2

Sorry for the late response. I was traveling for some time and failed to see this post until now.

First, the nvidia driver seems to be properly installed but not loading. That is likely due to having ‘secure boot’ enabled in the bios, and can be easily fixed by either booting into the bios during startup and turning off secure boot (easiest) or by using the kmodgen utils and actually signing the modules when they are created (more complex).

Second, setting the nvidia GPU as primary seems to only work when running gnome with xorg, and does not work when using the wayland DE which is default with Fedora 35 & 36.

So your first step is to disable secure boot then

  1. verify the nvidia modules are properly loading
    a. lsmod | grep -iE 'nvidia|nouveau' should return a list of nvidia modules. If not then use the next step.
    b. dmesg | grep -iE 'secure|nvidia|nouveau'
    if this returns something that says secure boot is enabled and almost nothing about nvidia then again you need to go back and disable secure boot.
  2. Once you know the nvidia modules are loading and have properly configured the /etc/X11/xorg.conf.d/nvidia.conf file to make the nvidia GPU primary then when you log in, at the password entry screen use the gear at the bottom right of the screen to select ‘gnome on xorg’ and after that the nvidia GPU should always be primary when you log in. The selection of xorg remains until you change it.

Thank you.

In fact I could notice that it only works with Xorg and not with Wayland. So far I’ve left it like this, I’m in Wayland and everything is running fine even though I don’t have her as a primary.

@computersavvy Hello :wave: I have also trouble setting up Nvidia graphics card. Maybe you could help? In systems summary there is only integrated GPU. After I’ve set primary gpu option in nvidia.conf, login screen, which I assume runs on X11, it’s just a black screen. Wayland runs on intel. Don’t know what else to say. I’ve followed steps from here, including rpm-ostree kargs. I don’t see an option in context menu to run on external gpu.

A list of terminal outputs:

glxinfo | egrep -i 'Opengl renderer|OpenGL vendor'
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 5500 (BDW GT2)
inxi -Fzx
System:
  Kernel: 5.18.18-200.fc36.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.37-27.fc36 Desktop: KDE Plasma v: 5.25.4
    Distro: Fedora release 36 (Thirty Six)
Machine:
  Type: Laptop System: ASUSTeK product: X555LB v: 1.0
    serial: <superuser required>
  Mobo: ASUSTeK model: X555LB v: 1.0 serial: <superuser required>
    UEFI: American Megatrends v: X555LB.505 date: 08/24/2015
Battery:
  ID-1: BAT0 charge: 19.0 Wh (97.4%) condition: 19.5/37.3 Wh (52.2%)
    volts: 7.6 min: 7.6 model: ASUSTeK ASUS Battery status: not charging
CPU:
  Info: dual core model: Intel Core i3-5010U bits: 64 type: MT MCP
    arch: Broadwell rev: 4 cache: L1: 128 KiB L2: 512 KiB L3: 3 MiB
  Speed (MHz): avg: 808 high: 836 min/max: 500/2000 cores: 1: 799 2: 836
    3: 799 4: 799 bogomips: 16777
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel HD Graphics 5500 vendor: ASUSTeK driver: i915 v: kernel
    arch: Gen8 bus-ID: 00:02.0
  Device-2: NVIDIA GM108M [GeForce 940M] vendor: ASUSTeK driver: nvidia
    v: 515.65.01 arch: Maxwell bus-ID: 04:00.0
  Device-3: Chicony USB2.0 VGA UVC WebCam type: USB driver: uvcvideo
    bus-ID: 1-5:2
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 22.1.3
    compositor: kwin_wayland driver: X: loaded: modesetting,nvidia
    unloaded: fbdev,nouveau,vesa gpu: i915,nvidia resolution: 1954x1098
  OpenGL: renderer: Mesa Intel HD Graphics 5500 (BDW GT2)
    v: 4.6 Mesa 22.1.7 direct render: Yes
Audio:
  Device-1: Intel Broadwell-U Audio vendor: ASUSTeK driver: snd_hda_intel
    v: kernel bus-ID: 00:03.0
  Device-2: Intel Wildcat Point-LP High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
  Sound Server-1: ALSA v: k5.18.18-200.fc36.x86_64 running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.56 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK driver: r8169 v: kernel port: 4000 bus-ID: 02:00.0
  IF: enp2s0 state: down mac: <filter>
  Device-2: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter
    vendor: AzureWave driver: ath9k v: kernel bus-ID: 03:00.0
  IF: wlp3s0 state: up mac: <filter>
Bluetooth:
  Device-1: IMC Networks type: USB driver: btusb v: 0.8 bus-ID: 1-6:5
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
  Local Storage: total: 931.51 GiB used: 40.11 GiB (4.3%)
  ID-1: /dev/sda vendor: Samsung model: ST1000LM024 HN-M101MBB
    size: 931.51 GiB
Partition:
  ID-1: /boot size: 973.4 MiB used: 86.5 MiB (8.9%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 598.8 MiB used: 9.8 MiB (1.6%) fs: vfat
    dev: /dev/sda1
  ID-3: /var size: 929.93 GiB used: 40.01 GiB (4.3%) fs: btrfs
    dev: /dev/sda3
Swap:
  ID-1: swap-1 type: zram size: 3.73 GiB used: 2.2 MiB (0.1%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 43.0 C pch: 42.0 C mobo: N/A
  Fan Speeds (RPM): cpu: 2500
Info:
  Processes: 238 Uptime: 12m Memory: 3.73 GiB used: 2.18 GiB (58.4%)
  Init: systemd target: graphical (5) Compilers: gcc: 12.1.1 Packages: 24
  note: see --pkg Shell: Bash v: 5.1.16 inxi: 3.3.19
lsmod | grep -iE 'nvidia|nouveau'
nvidia_drm             73728  2
nvidia_modeset       1146880  2 nvidia_drm
nvidia_uvm           1286144  0
nvidia              40849408  154 nvidia_uvm,nvidia_modeset
uname -a

Linux fedora 5.18.18-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 17 16:02:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

rpm-ostree status
State: idle
Deployments:
● fedora:fedora/36/x86_64/kinoite
                  Version: 36.20220820.0 (2022-08-20T01:17:56Z)
               BaseCommit: a83047db8881b1dda5803cf71a53078908f514f32388c5b1e398a31a76e99273
             GPGSignature: Valid signature by 53DED2CB922D8B8D9E63FD18999F7CBF38AB71F4
          LayeredPackages: akmod-nvidia bismuth inxi libnsl touchegg xorg-x11-drv-nvidia-cuda
            LocalPackages: rpmfusion-free-release-36-1.noarch rpmfusion-nonfree-release-36-1.noarch

  fedora:fedora/36/x86_64/kinoite
                  Version: 36.20220820.0 (2022-08-20T01:17:56Z)
               BaseCommit: a83047db8881b1dda5803cf71a53078908f514f32388c5b1e398a31a76e99273
             GPGSignature: Valid signature by 53DED2CB922D8B8D9E63FD18999F7CBF38AB71F4
          LayeredPackages: akmod-nvidia bismuth libnsl touchegg xorg-x11-drv-nvidia-cuda
            LocalPackages: rpmfusion-free-release-36-1.noarch rpmfusion-nonfree-release-36-1.noarch
dmesg | grep -iE 'secure|nvidia'
[    0.000000] Command line: BOOT_IMAGE=(hd0,gpt2)/ostree/fedora-8ab35513876eff9b9a6009345610c3cfd83f221c67720ed094be802f61dbaeeb/vmlinuz-5.18.18-200.fc36.x86_64 rhgb quiet root=UUID=56a9ae54-bce7-4da3-aa4d-122c6d761e54 rootflags=subvol=root ostree=/ostree/boot.1/fedora/8ab35513876eff9b9a6009345610c3cfd83f221c67720ed094be802f61dbaeeb/0 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
[    0.000000] secureboot: Secure boot disabled
[    0.013398] secureboot: Secure boot disabled
[    0.047567] Kernel command line: BOOT_IMAGE=(hd0,gpt2)/ostree/fedora-8ab35513876eff9b9a6009345610c3cfd83f221c67720ed094be802f61dbaeeb/vmlinuz-5.18.18-200.fc36.x86_64 rhgb quiet root=UUID=56a9ae54-bce7-4da3-aa4d-122c6d761e54 rootflags=subvol=root ostree=/ostree/boot.1/fedora/8ab35513876eff9b9a6009345610c3cfd83f221c67720ed094be802f61dbaeeb/0 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
[   18.826632] nvidia: loading out-of-tree module taints kernel.
[   18.826655] nvidia: module license 'NVIDIA' taints kernel.
[   18.845330] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[   18.871648] nvidia-nvlink: Nvlink Core is being initialized, major device number 511
[   18.871658] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  515.65.01  Wed Jul 20 14:00:58 UTC 2022
[   19.190498] nvidia_uvm: module uses symbols from proprietary module nvidia, inheriting taint.
[   19.205967] nvidia-uvm: Loaded the UVM driver, major device number 509.
[   19.287183] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  515.65.01  Wed Jul 20 13:43:59 UTC 2022
[   19.308409] [drm] [nvidia-drm] [GPU ID 0x00000400] Loading driver
[   19.708270] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:04:00.0 on minor 1
cat /etc/X11/xorg.conf.d/nvidia.conf
#This file is provided by xorg-x11-drv-nvidia
#Do not edit

Section "OutputClass"
        Identifier "nvidia"
        MatchDriver "nvidia-drm"
        Driver "nvidia"
        Option "AllowEmptyInitialConfiguration"
        Option "SLI" "Auto"
        Option "BaseMosaic" "on"
        Option "PrimaryGPU" "yes"
EndSection

Section "ServerLayout"
        Identifier "layout"
        Option "AllowNVIDIAGPUScreens"
        Option "PrimaryGPU" "yes"
EndSection

~ Thanks

  1. inxi -Fzx
System:
  Kernel: 5.19.4-200.fc36.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.37-27.fc36 Desktop: GNOME v: 42.4
    Distro: Fedora release 36 (Thirty Six)
Machine:
  Type: Laptop System: ASUSTeK product: ASUS TUF Dash F15 FX516PM_FX516PM
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: FX516PM v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: FX516PM.321 date: 08/20/2021
Battery:
  ID-1: BAT0 charge: 42.2 Wh (65.7%) condition: 64.2/76.0 Wh (84.5%)
    volts: 15.8 min: 15.8 model: ASUSTeK ASUS Battery status: charging
CPU:
  Info: quad core model: 11th Gen Intel Core i7-11370H bits: 64 type: MT MCP
    arch: Tiger Lake rev: 1 cache: L1: 320 KiB L2: 5 MiB L3: 12 MiB
  Speed (MHz): avg: 2384 high: 3300 min/max: 400/4800 cores: 1: 593 2: 3300
    3: 3300 4: 3300 5: 3300 6: 1056 7: 925 8: 3300 bogomips: 52838
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] vendor: ASUSTeK
    driver: i915 v: kernel arch: Gen12.1 bus-ID: 0000:00:02.0
  Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: ASUSTeK
    driver: nvidia v: 515.65.01 arch: Ampere bus-ID: 0000:01:00.0
  Display: wayland server: X.Org v: 1.22.1.3 with: Xwayland v: 22.1.3
    compositor: gnome-shell driver: X: loaded: modesetting,nvidia
    unloaded: fbdev,nouveau,vesa gpu: i915 resolution: 1920x1080~240Hz
  OpenGL: renderer: Mesa Intel Xe Graphics (TGL GT2) v: 4.6 Mesa 22.1.7
    direct render: Yes
Audio:
  Device-1: Intel Tiger Lake-LP Smart Sound Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 0000:00:1f.3
  Device-2: NVIDIA GA106 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 0000:01:00.1
  Sound Server-1: ALSA v: k5.19.4-200.fc36.x86_64 running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.56 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX201 driver: iwlwifi v: kernel
    bus-ID: 0000:00:14.3
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK driver: r8169 v: kernel port: 3000 bus-ID: 0000:2e:00.0
  IF: eno2 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 3-10:3
  Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
    v: 0.6 bus-ID: 0000:00:0e.0
Drives:
  Local Storage: total: 476.94 GiB used: 71.23 GiB (14.9%)
  ID-1: /dev/nvme0n1 vendor: SK Hynix model: HFM512GD3JX013N
    size: 476.94 GiB temp: 40.9 C
Partition:
  ID-1: / size: 458.31 GiB used: 70.95 GiB (15.5%) fs: btrfs
    dev: /dev/nvme0n1p4
  ID-2: /boot size: 1.9 GiB used: 272.9 MiB (14.0%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 1022 MiB used: 14 MiB (1.4%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 458.31 GiB used: 70.95 GiB (15.5%) fs: btrfs
    dev: /dev/nvme0n1p4
Swap:
  ID-1: swap-1 type: partition size: 15.62 GiB used: 0 KiB (0.0%)
    dev: /dev/nvme0n1p3
  ID-2: swap-2 type: zram size: 8 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 47.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 740 Uptime: 24m Memory: 15.31 GiB used: 4.09 GiB (26.7%)
  Init: systemd target: graphical (5) Compilers: gcc: 12.2.1 Packages: 21
  note: see --pkg Shell: Bash v: 5.1.16 inxi: 3.3.19
[pradeep@fedora ~]$ lsmod | grep -iE 'nvidia|nouveau'
nvidia_drm             73728  1
nvidia_modeset       1146880  2 nvidia_drm
nvidia_uvm           1286144  0
nvidia              40849408  157 nvidia_uvm,nvidia_modeset
[pradeep@fedora ~]$ sudo dnf list installed *nvidia*
[sudo] password for pradeep: 
Installed Packages
akmod-nvidia.x86_64                                                                        3:515.65.01-1.fc36                                                 @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-5.18.17-200.fc36.x86_64.x86_64                                                 3:515.65.01-1.fc36                                                 @@commandline                   
kmod-nvidia-5.18.18-200.fc36.x86_64.x86_64                                                 3:515.65.01-1.fc36                                                 @@commandline                   
kmod-nvidia-5.19.4-200.fc36.x86_64.x86_64                                                  3:515.65.01-1.fc36                                                 @@commandline                   
nvidia-persistenced.x86_64                                                                 3:515.65.01-1.fc36                                                 @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                                                                     3:515.65.01-1.fc36                                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                                                                 3:515.65.01-1.fc36                                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64                                                            3:515.65.01-1.fc36                                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64                                                       3:515.65.01-1.fc36                                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64                                                         3:515.65.01-1.fc36                                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64                                                            3:515.65.01-1.fc36                                                 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64                                                           3:515.65.01-1.fc36                                                 @rpmfusion-nonfree-nvidia-driver
[pradeep@fedora ~]$

Continuing the discussion from Fedora 36 Nvidia as primary GPU:

i followed this steps to install and configure, still i’m unable to set my nvidia as primary gpu

[ 0.000000] Command line: BOOT_IMAGE=(hd1,gpt2)/vmlinuz-5.19.4-200.fc36.x86_64 root=UUID=467650c6-65c3-4690-921e-8aba867f9bc1 ro rootflags=subvol=root rhgb quiet rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 initcall_blacklist=simpledrm_platform_driver_init
[ 0.000000] secureboot: Secure boot disabled
[ 0.018603] secureboot: Secure boot disabled
[ 0.062833] Kernel command line: BOOT_IMAGE=(hd1,gpt2)/vmlinuz-5.19.4-200.fc36.x86_64 root=UUID=467650c6-65c3-4690-921e-8aba867f9bc1 ro rootflags=subvol=root rhgb quiet rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 initcall_blacklist=simpledrm_platform_driver_init
[ 5.638277] Bluetooth: hci0: Secure boot is enabled
[ 5.727381] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input23
[ 5.727424] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input24
[ 5.727465] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input25
[ 5.727497] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input26
[ 6.579408] nvidia: loading out-of-tree module taints kernel.
[ 6.579417] nvidia: module license ‘NVIDIA’ taints kernel.
[ 6.588783] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 6.643888] nvidia-nvlink: Nvlink Core is being initialized, major device number 510
[ 6.644543] nvidia 0000:01:00.0: enabling device (0006 → 0007)
[ 6.644635] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[ 6.690748] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 515.65.01 Wed Jul 20 14:00:58 UTC 2022
[ 6.744665] nvidia_uvm: module uses symbols nvUvmInterfaceDisableAccessCntr from proprietary module nvidia, inheriting taint.
[ 6.762121] nvidia-uvm: Loaded the UVM driver, major device number 508.
[ 6.804900] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 515.65.01 Wed Jul 20 13:43:59 UTC 2022
[ 6.808877] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[ 7.414968] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1

i have a same issue please help me out too?

I have taken the opportunity to edit your posts and add the </> Preformatted text tags so they are readable and formatted as seen on-screen.

However, you have not posted any information other than the command outputs.

  1. What release are you using?
  2. What problem are you posting about?
  3. How may we help?

In general, if you have a problem, unless it is directly tied to the problem that is being worked on for the OP it is always better to open a new thread specifically related to your issue and give enough info that members may know the problem, what you have tried, and where the sticking points are.

1 Like

For the fix given in that link to work the user must be using xorg, which is selected with the gear in the lower right corner of the login screen where the password is entered.

[balaji@fedora ~]$ glxinfo | egrep "OpenGL vendor|OpenGL renderer"
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CFL GT2)
[balaji@fedora ~]$

How can i change opengl vendor and renderer to Nvidia?
even though i set "primaryGPU" "yes"
it's remains the same.