Somewhat lengthy topic; this is everything that I’ve tried to get NVIDIA proprietary drivers working on my system.
I’m using an NVIDIA Optimus laptop (Intel UHD 630 + GTX 1650 Max-Q). I’m running Fedora Workstation 36. I initially tried installing the drivers using the CLI initially with
dnf install akmod-nvidia, but then attempted to reinstall the drivers via nvautoinstall. The autoinstaller properly detected my graphics cards, and even though it was successfully able to install every package (to my knowledge) it still didn’t end up working on my system:
➜ ~ modinfo -F version nvidia modinfo: ERROR: Module nvidia not found.
Here is my list of active VGA devices (the command was copied from here):
➜ ~ lspci -vnnn | perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' | grep VGA 00:02.0 VGA compatible controller : Intel Corporation CoffeeLake-H GT2 [UHD Graphics 630] [8086:3e9b] (rev 02) (prog-if 00 [VGA controller]) 01:00.0 VGA compatible controller : NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] [10de:1f91] (rev a1) (prog-if 00 [VGA controller])
I tried forcing the modules to load:
➜ ~ sudo akmods --force Checking kmods exist for 5.17.5-300.fc36.x86_64 [ OK ] Files needed for building modules against kernel 5.17.5-300.fc36.x86_64 could not be found as the following directories are missing: /usr/src/kernels/5.17.5-300.fc36.x86_64/ /lib/modules/5.17.5-300.fc36.x86_64/build/Is the correct ke[FAILED]el package installed? Checking kmods exist for 5.19.8-200.fc36.x86_64 [ OK ] ➜ ~ sudo dracut --force ➜ ~ uname -r 5.17.5-300.fc36.x86_64
Here are the related packages I have installed (please scroll right to see the repositories and versions):
➜ ~ sudo dnf list installed '*nvidia*' akmods kernel-devel kernel-headers [sudo] password for nflx: Installed Packages akmod-nvidia.x86_64 3:515.65.01-1.fc36 @rpmfusion-nonfree-updates akmods.noarch 0.5.7-8.fc36 @updates kernel-devel.x86_64 5.19.7-200.fc36 @updates kernel-devel.x86_64 5.19.8-200.fc36 @updates kernel-headers.x86_64 5.19.4-200.fc36 @updates kmod-nvidia-5.19.8-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-updates nvidia-settings.x86_64 3:515.65.01-1.fc36 @rpmfusion-nonfree-updates xorg-x11-drv-nvidia.x86_64 3:515.65.01-1.fc36 @rpmfusion-nonfree-updates xorg-x11-drv-nvidia-cuda.x86_64 3:515.65.01-1.fc36 @rpmfusion-nonfree-updates xorg-x11-drv-nvidia-cuda-libs.i686 3:515.65.01-1.fc36 @rpmfusion-nonfree-updates xorg-x11-drv-nvidia-cuda-libs.x86_64 3:515.65.01-1.fc36 @rpmfusion-nonfree-updates xorg-x11-drv-nvidia-kmodsrc.x86_64 3:515.65.01-1.fc36 @rpmfusion-nonfree-updates xorg-x11-drv-nvidia-libs.i686 3:515.65.01-1.fc36 @rpmfusion-nonfree-updates xorg-x11-drv-nvidia-libs.x86_64 3:515.65.01-1.fc36 @rpmfusion-nonfree-updates xorg-x11-drv-nvidia-power.x86_64 3:515.65.01-1.fc36 @rpmfusion-nonfree-updates ➜ ~ sudo inxi -Gxx Graphics: Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Lenovo driver: i915 v: kernel arch: Gen9.5 ports: active: eDP-1 empty: none bus-ID: 00:02.0 chip-ID: 8086:3e9b Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: Lenovo driver: nouveau v: kernel arch: Turing pcie: speed: 8 GT/s lanes: 16 ports: active: none empty: DP-1, DP-2, HDMI-A-1, eDP-2 bus-ID: 01:00.0 chip-ID: 10de:1f91 Device-3: Chicony Integrated Camera type: USB driver: uvcvideo bus-ID: 1-8:3 chip-ID: 04f2:b67c Display: x11 server: X.Org v: 1.20.14 compositor: xfwm v: 4.16.1 driver: X: loaded: modesetting unloaded: fbdev,vesa gpu: i915 display-ID: :0.0 screens: 1 Screen-1: 0 s-res: 1920x1080 s-dpi: 96 Monitor-1: eDP-1 model: AU Optronics 0x42eb res: 1920x1080 dpi: 142 diag: 394mm (15.5") OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 22.1.7 direct render: Yes
Oddly enough, I have several different kernel header packages. These might have been left around from previous attempts of installing these drivers, and/or as dependents… See section below.
If it helps, I ended up forgetting to wait 5 minutes before rebooting my system as you should, but after that restart, my PC was on for a long time. If there’s a way to manually trigger whatever that does, that might be a next step.
Here’s one guess I have. Reading through these logs I’ve noticed that I have mismatched kmod versions.
Note this line in
sudo akmods --force:
Checking kmods exist for 5.19.8-200.fc36.x86_64 [ OK ]
And the package list:
kmod-nvidia-5.19.8-200.fc36.x86_64.x86_64 3:515.65.01-1.fc36 @@commandline
My kernel version is
5.17.5-300.fc36.x86_64, according to
uname -r, so this might be a mismatched kernel version… I do recall
nvinstaller targeting an older version of the drivers for some reason, and then needing to upgrade my system afterwards… I’m not sure if that was an oversight on my part or not. But upgrading that package with my system isn’t an option:
➜ ~ sudo dnf upgrade Last metadata expiration check: 0:43:47 ago # redacted timestamp Dependencies resolved. Nothing to do. Complete!
And the installer isn’t complaining about anything either:
➜ ~ sudo nvautoinstall driver [ # ] NVIDIA AUTOINSTALLER FOR FEDORA LINUX [ ★ ] CHECKING SUPERUSER PERMISSIONS... [ ✓ ] Superuser privilege acquired [ ★ ] CHECKING AVAILABILITY OF RPM FUSION NVIDIA REPOSITORY... [ ! ] RPM Fusion repository for Proprietary NVIDIA Driver was detected [ ★ ] ATTEMPTING CONNECTION TO RPM FUSION SERVERS... [ ✓ ] Connection to RPM Fusion servers was established [ ★ ] LOOKING FOR EXISTING DRIVER PACKAGES... xorg-x11-drv-nvidia-kmodsrc-515.65.01-1.fc36.x86_64 xorg-x11-drv-nvidia-cuda-libs-515.65.01-1.fc36.x86_64 xorg-x11-drv-nvidia-libs-515.65.01-1.fc36.i686 xorg-x11-drv-nvidia-libs-515.65.01-1.fc36.x86_64 nvidia-settings-515.65.01-1.fc36.x86_64 xorg-x11-drv-nvidia-power-515.65.01-1.fc36.x86_64 xorg-x11-drv-nvidia-515.65.01-1.fc36.x86_64 akmod-nvidia-515.65.01-1.fc36.x86_64 kmod-nvidia-5.19.8-200.fc36.x86_64-515.65.01-1.fc36.x86_64 nvidia-persistenced-515.65.01-1.fc36.x86_64 xorg-x11-drv-nvidia-cuda-libs-515.65.01-1.fc36.i686 xorg-x11-drv-nvidia-cuda-515.65.01-1.fc36.x86_64 [ ! ] A total of 12 driver packages were detected [ ★ ] REINSTALLING PROPRIETARY DRIVERS... Last metadata expiration check: 0:52:53 ago Package gcc-12.2.1-1.fc36.x86_64 is already installed. Package kernel-headers-5.19.4-200.fc36.x86_64 is already installed. Package kernel-devel-5.19.7-200.fc36.x86_64 is already installed. Package kernel-devel-5.19.8-200.fc36.x86_64 is already installed. Package akmod-nvidia-3:515.65.01-1.fc36.x86_64 is already installed. Package xorg-x11-drv-nvidia-3:515.65.01-1.fc36.x86_64 is already installed. Package xorg-x11-drv-nvidia-libs-3:515.65.01-1.fc36.i686 is already installed. Package xorg-x11-drv-nvidia-libs-3:515.65.01-1.fc36.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete! [ ✓ ] Driver package installation completed Please try executing `nvautoinstall plcuda` with elevated privileges now to install CUDA software [ ✗ ] Leaving installer