ERROR: NVIDIA driver is not loaded

When I run nvidia-settings, the output is:

ERROR: NVIDIA driver is not loaded


(nvidia-settings:5176): GLib-GObject-CRITICAL **: 10:48:57.256: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

** (nvidia-settings:5176): CRITICAL **: 10:48:57.258: ctk_powermode_new: assertion '(ctrl_target != NULL) && (ctrl_target->h != NULL)' failed

Information other people wanted for similar issues:

inxi -G                                                                                   11:02:55
Graphics:
  Device-1: Intel CometLake-H GT2 [UHD Graphics] driver: i915 v: kernel
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] driver: nouveau
    v: kernel
  Device-3: Microdia USB 2.0 Camera type: USB driver: N/A
  Display: wayland server: X.Org v: 22.1.8 with: Xwayland v: 22.1.8
    compositor: kwin_wayland driver: X: loaded: modesetting unloaded: fbdev,vesa
    dri: iris gpu: i915 resolution: 1920x1080~120Hz
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel UHD Graphics (CML GT2)
dnf list installed *nvidia*                                                               11:05:33
zsh: no matches found: *nvidia*
sudo dnf install akmod-nvidia                                                             11:08:22
[sudo] password for lucius: 
Last metadata expiration check: 3:26:27 ago on Wed 01 Mar 2023 07:43:58 AM EST.
Package akmod-nvidia-3:525.89.02-1.fc37.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
lsmod | grep -E 'nvidia|nouveau'                                                          11:03:03
nouveau              2703360  1
mxm_wmi                16384  1 nouveau
drm_ttm_helper         16384  1 nouveau
drm_display_helper    180224  2 i915,nouveau
ttm                    94208  3 drm_ttm_helper,i915,nouveau
video                  65536  4 dell_wmi,dell_laptop,i915,nouveau
wmi                    45056  10 dell_wmi_sysman,video,intel_wmi_thunderbolt,alienware_wmi,dell_wmi,wmi_bmof,dell_smbios,dell_wmi_descriptor,mxm_wmi,nouveau

<edited to remove “advice” based on my misreading what was originally posted, sorry!>

Just checking, when installing were you following the guide from the RPMFusion maintainers?

https://rpmfusion.org/Howto/NVIDIA#Current_GeForce.2FQuadro.2FTesla

I’m asking that since I’ve seen several other guides online that have missed out on important things, like waiting after the dnf command finishes to then run the modinfo -F version nvidia command and make sure it finished prior to rebooting.

Also, do you have Secure Boot enabled on your PC? If so, there are some additional steps to create a signed key that Secure Boot will accept after driver installation:

https://rpmfusion.org/Howto/Secure%20Boot?highlight=(\bCategoryHowto\b)

If Secure Boot isn’t a factor, then it might be helpful to uninstall all those nvidia driver packages and reinstall (I had to do that once a while back).

Hope that helps!

You may need to change that to dnf list installed '*nvidia*' since the shell first looks at the local directory to see if there are any matching files for the glob before it sends the info to dnf. The quotes prevent that globbing by the shell.