Fedora 36 Nvidia as primary GPU

I have always disliked using the gnome software tool and almost exclusively use dnf for my updates.

You may try sudo dnf distro-sync to see if that will solve the issue. You also could use pkcon refresh --force to ensure that the gnome software tool is fully synced with the system status and the repo as well. I would recommend that you do both to ensure your current messages are suppressed.

me too, i didn’t use it but i get a message from it anyway.

i get an error doing “sudo dnf distro-sync”, i did skip broken but i got the same result.

Last metadata expiration check: 0:48:57 ago on Thu 28 Apr 2022 19:31:37 +04.
Error: 
 Problem 1: package python3-gobject-base-noarch-3.42.1-1.fc36.noarch requires python3-gobject-base = 3.42.1-1.fc36, but none of the providers can be installed
  - python3-gobject-base-3.42.1-1.fc36.x86_64 does not belong to a distupgrade repository
  - problem with installed package python3-gobject-base-noarch-3.42.1-1.fc36.noarch
 Problem 2: package sssd-idp-2.7.0-1.fc36.x86_64 requires sssd-common = 2.7.0-1.fc36, but none of the providers can be installed
  - sssd-common-2.7.0-1.fc36.x86_64 does not belong to a distupgrade repository
  - problem with installed package sssd-idp-2.7.0-1.fc36.x86_64
(try to add '--skip-broken' to skip uninstallable packages)

pkcon refresh --force
–force returned as an unknown option so i did it without --force

Try adding the options --best --allowerasing to the dnf command. It should fix that error and likely will also solve the message from gnome-software.

1 Like

ok it worked, updated a lot of things, stopped the error message but Nvidia is still missing.

In post 18 you showed nvidia was working. Now you say it is not.
Please help us understand exactly what is happening and what you expect.

from my little knowledge i check in the settings and screenfetch to see if there is Nvidia listed, it isn’t.

i understand if you have enough of this, i just hope it is because of the beta and it will work as well on F36 than it used to work on F35, i still can use Xorg until the end of the beta.

To check if nvidia is in use repeat the commands I gave you above.
lsmod | grep nvidia
If that returns a list of modules that are active then the nvidia driver is in use.
Also please post the output from cat /etc/X11/xorg.conf.d/nvidia.conf

lsmod | grep nvidia

nvidia_drm             69632  11
nvidia_modeset       1163264  4 nvidia_drm
nvidia_uvm           1204224  0
nvidia              39145472  341 nvidia_uvm,nvidia_modeset

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 "Primary" "yes"
EndSection

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

you are right, Nvidia works, it just doesn’t show where i used to look for some reason.
thank you very much for your help and time.

1 Like

Excellent.
This means nvidia is working properly and you should be able to switch back to wayland with no problems.

Good luck.

thank you very much.

i don’t want to bother you but do you know anything about blender looking totally broken, is it related to my video card ?

different subject, please open a new thread.

ok thank you

I have a similar configuration system (Thinkpad T15 Gen1 - Intel i915+Nvidia Geforce MX330)

But this command:

glxinfo | egrep "OpenGL vendor|OpenGL renderer"

shows me:

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

all the debug info…

inxi -SCGzxx
System:
  Kernel: 5.17.4-200.fc35.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.37-10.fc35 Desktop: GNOME v: 41.4 tk: GTK v: 3.24.31 wm: gnome-shell
    dm: GDM Distro: Fedora release 35 (Thirty Five)
CPU:
  Info: quad core model: Intel Core i7-10610U bits: 64 type: MT MCP
    arch: Comet/Whiskey Lake note: check rev: C cache: L1: 256 KiB L2: 1024 KiB
    L3: 8 MiB
  Speed (MHz): avg: 1247 high: 2687 min/max: 400/4900 cores: 1: 1123 2: 800
    3: 2687 4: 1855 5: 800 6: 800 7: 1115 8: 800 bogomips: 36799
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel CometLake-U GT2 [UHD Graphics] vendor: Lenovo driver: i915
    v: kernel ports: active: eDP-1 empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2
    bus-ID: 00:02.0 chip-ID: 8086:9b41
  Device-2: NVIDIA GP108M [GeForce MX330] vendor: Lenovo driver: nvidia
    v: 510.60.02 pcie: speed: 2.5 GT/s lanes: 4 bus-ID: 2d:00.0
    chip-ID: 10de:1d16
  Device-3: Chicony Integrated Camera type: USB driver: uvcvideo
    bus-ID: 1-8:2 chip-ID: 04f2:b6d0
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 21.1.4
    compositor: gnome-shell driver: X: loaded: modesetting,nvidia
    unloaded: fbdev,nouveau,vesa alternate: nv gpu: i915 display-ID: 0
  Monitor-1: eDP-1 model: BOE Display 0x0809 res: 3840x2160 dpi: 279
    diag: 398mm (15.7")
  OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 21.3.8
    direct render: Yes
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"
EndSection

@computersavvy Are you sure that the option it’s “Primary” or “PrimaryGPU”?
And Its required that the key Primary will be included only within OutputClass section or both?

dmesg | grep -iE 'secure|nvidia'
[    0.000000] Command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-5.17.4-200.fc35.x86_64 root=UUID=35d3d5e5-9b4b-4777-b9b6-69f490c997e6 ro rootflags=subvol=root rd.luks.uuid=luks-fd943b8d-65cb-40dd-abcd-6bd4b874b055 rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
[    0.000000] secureboot: Secure boot disabled
[    0.013731] secureboot: Secure boot disabled
[    0.170092] Kernel command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-5.17.4-200.fc35.x86_64 root=UUID=35d3d5e5-9b4b-4777-b9b6-69f490c997e6 ro rootflags=subvol=root rd.luks.uuid=luks-fd943b8d-65cb-40dd-abcd-6bd4b874b055 rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
[   18.653194] nvidia: loading out-of-tree module taints kernel.
[   18.653207] nvidia: module license 'NVIDIA' taints kernel.
[   18.672627] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[   18.712439] nvidia-nvlink: Nvlink Core is being initialized, major device number 508
[   18.713171] nvidia 0000:2d:00.0: enabling device (0006 -> 0007)
[   18.904629] Bluetooth: hci0: Secure boot is enabled
[   18.929046] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  510.60.02  Wed Mar 16 11:24:05 UTC 2022
[   18.991939] nvidia_uvm: module uses symbols from proprietary module nvidia, inheriting taint.
[   19.017477] nvidia-uvm: Loaded the UVM driver, major device number 506.
[   19.044776] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  510.60.02  Wed Mar 16 11:17:28 UTC 2022
[   19.062247] [drm] [nvidia-drm] [GPU ID 0x00002d00] Loading driver
[   20.015450] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:2d:00.0 on minor 1
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

Regards

I am testing to be sure what works for me and what conditions I see. Will update tomorrow

I tested and cannot tell any difference between having the Option "PrimaryGPU" "yes" in both or only in the “ServerLayout” section. In fact I can see little difference in having it by itself in either section. Since the docs on either fedora quick docs or rpmfusion do not specify in which section it belongs so I placed it in both quite some time back.

The only issue I see with the nvidia GPU is that with wayland the external monitor does not function, whether nvidia is set as primary or not. When I use xorg both monitors work properly, either mirrored or independently.

I did have mine as Option "Primary" "yes" and have switched it to Option "PrimaryGPU" "yes" per the referenced sites with no noticeable difference.

1 Like

ok, thanks for the clarification

I’ve read this entire thread, very nutritous to keep learning. Thanks for you support and teaching us @computersavvy

Apparently I think everything is “almost” fine in my system, just a few question that I pose at the end:

Debug info:

uname -a

Linux rog 5.17.6-300.fc36.x86_64 #1 SMP PREEMPT Mon May 9 15:47:11 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

inxi -Fzxx

  Kernel: 5.17.6-300.fc36.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.37-27.fc36 Desktop: GNOME v: 42.0 tk: GTK v: 3.24.31 wm: gnome-shell
    dm: GDM Distro: Fedora release 36 (Thirty Six)
Machine:
  Type: Laptop System: ASUSTeK product: ROG Strix G731GU_G731GU v: 1.0
    serial: <superuser required>
  Mobo: ASUSTeK model: G731GU v: 1.0 serial: <superuser required>
    UEFI: American Megatrends v: G731GU.312 date: 02/19/2021
Battery:
  ID-1: BAT0 charge: 29.6 Wh (61.0%) condition: 48.5/66.0 Wh (73.5%)
    volts: 15.7 min: 15.7 model: ASUSTeK ASUS Battery serial: N/A
    status: not charging
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse B330/M330/M331
    serial: <filter> charge: 55% (should be ignored) status: discharging
CPU:
  Info: 6-core model: Intel Core i7-9750H bits: 64 type: MT MCP
    arch: Coffee Lake rev: A cache: L1: 384 KiB L2: 1.5 MiB L3: 12 MiB
  Speed (MHz): avg: 836 high: 896 min/max: 800/4500 cores: 1: 800 2: 825
    3: 850 4: 802 5: 864 6: 849 7: 866 8: 801 9: 808 10: 896 11: 833 12: 849
    bogomips: 62399
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: ASUSTeK
    driver: i915 v: kernel ports: active: eDP-1 empty: none bus-ID: 00:02.0
    chip-ID: 8086:3e9b
  Device-2: NVIDIA TU116M [GeForce GTX 1660 Ti Mobile] vendor: ASUSTeK
    driver: nvidia v: 510.68.02 pcie: speed: 2.5 GT/s lanes: 8 ports:
    active: none empty: DP-1,HDMI-A-1 bus-ID: 01:00.0 chip-ID: 10de:2191
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 22.1.1
    compositor: gnome-shell driver: gpu: i915 display-ID: 0
  Monitor-1: eDP-1 model: AU Optronics 0x409d res: 1920x1080 dpi: 128
    diag: 438mm (17.3")
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2)
    v: 4.6 Mesa 22.0.3 direct render: Yes
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: ASUSTeK driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a348
  Device-2: NVIDIA TU116 High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 2.5 GT/s lanes: 8
    bus-ID: 01:00.1 chip-ID: 10de:1aeb
  Sound Server-1: ALSA v: k5.17.6-300.fc36.x86_64 running: yes
  Sound Server-2: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:a370
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
    port: 3000 bus-ID: 03:00.0 chip-ID: 10ec:8168
  IF: eno2 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
    driver: btusb v: 0.8 bus-ID: 1-14:4 chip-ID: 8087:0aaa
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
  Local Storage: total: 1.14 TiB used: 600.06 GiB (51.3%)
  ID-1: /dev/nvme0n1 vendor: Western Digital
    model: PC SN520 SDAPNUW-256G-1002 size: 238.47 GiB speed: 15.8 Gb/s
    lanes: 2 serial: <filter> temp: 35.9 C
  ID-2: /dev/sda vendor: Seagate model: ST1000LX015-1U7172 size: 931.51 GiB
    speed: 6.0 Gb/s serial: <filter> temp: 35 C
Partition:
  ID-1: / size: 71.65 GiB used: 7.86 GiB (11.0%) fs: btrfs
    dev: /dev/nvme0n1p6
  ID-2: /boot/efi size: 96 MiB used: 39.6 MiB (41.3%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: partition size: 5 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p5
  ID-2: swap-2 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 47.0 C pch: 47.0 C mobo: N/A
  Fan Speeds (RPM): cpu: 2300
Info:
  Processes: 353 Uptime: 1h 37m Memory: 15.47 GiB used: 3.51 GiB (22.7%)
  Init: systemd v: 250 runlevel: 5 target: graphical.target Compilers:
  gcc: 12.1.1 Packages: note: see --pkg flatpak: 3 Shell: Bash v: 5.1.16
  running-in: gnome-terminal inxi: 3.3.14

sudo dnf list installed *nvidia*

Installed Packages
akmod-nvidia.x86_64                                                                       3:510.68.02-1.fc36                                                  @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-5.17.6-300.fc36.x86_64.x86_64                                                 3:510.68.02-1.fc36                                                  @@commandline                   
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                                                          3:510.68.02-1.fc36                                                  @rpmfusion-nonfree-nvidia-driver

lsmod | grep -iE 'nvidia|nouveau

nvidia_drm             69632  1
nvidia_modeset       1167360  2 nvidia_drm
nvidia_uvm           1204224  0
nvidia              39153664  121 nvidia_uvm,nvidia_modeset
i2c_nvidia_gpu         16384  0

dmesg | grep -iE 'secure|nvidia'

[    0.000000] 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
[    0.000000] secureboot: Secure boot disabled
[    0.017386] secureboot: Secure boot disabled
[    0.071641] 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
[    3.524851] nvidia-gpu 0000:01:00.3: enabling device (0000 -> 0002)
[    3.917242] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input33
[    3.917289] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input34
[    3.918841] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input35
[    3.918909] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input36
[    3.918965] input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input37
[    4.925954] nvidia-gpu 0000:01:00.3: i2c timeout error e0000000
[    4.949167] nvidia: loading out-of-tree module taints kernel.
[    4.949175] nvidia: module license 'NVIDIA' taints kernel.
[    4.955384] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[    4.967786] nvidia-nvlink: Nvlink Core is being initialized, major device number 509
[    4.968247] nvidia 0000:01:00.0: enabling device (0006 -> 0007)
[    4.968338] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[    5.020478] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  510.68.02  Wed Apr 20 21:10:34 UTC 2022
[    5.775719] nvidia_uvm: module uses symbols from proprietary module nvidia, inheriting taint.
[    5.784454] nvidia-uvm: Loaded the UVM driver, major device number 507.
[    5.845062] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  510.68.02  Wed Apr 20 21:04:10 UTC 2022
[    5.927247] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    6.556132] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0

Is this bug significant? :
[ 4.925954] nvidia-gpu 0000:01:00.3: i2c timeout error e0000000
dnf list installed kernel-devel kernel-headers
[ 4.955384] nvidia: module verification failed: signature and/or required key missing - tainting kernel

dnf list installed kernel-*devel* kernel-headers

Installed Packages
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  

glxinfo | egrep "OpenGL vendor|OpenGL renderer"

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

Why is
Mesa Intel(R) UHD Graphics 630 (CFL GT2)
instead
GeForce GTX 1660 Ti Mobile ?

Is everything working fine in my system?

1 Like