This is the error I encountered trying to run the command sudo akmods --force
2024/04/06 19:30:39 akmods: Building and installing nvidia-470xx-kmod
2024/04/06 19:30:39 akmods: Building RPM using the command '/usr/sbin/akmodsbuild --kernels 6.8.4-200.fc39.x86_64 /usr/src/akmods/nvidia-470xx-kmod.latest'
2024/04/06 19:31:42 akmods: Building rpms failed; see /var/cache/akmods/nvidia-470xx/470.223.02-2-for-6.8.4-200.fc39.x86_64.failed.log for details
2024/04/06 19:31:42 akmods: Hint: Some kmods were ignored or failed to build or install.
2024/04/06 19:31:42 akmods: You can try to rebuild and install them by by calling
2024/04/06 19:31:42 akmods: '/usr/sbin/akmods --force' as root.
2024/04/06 19:44:28 akmods: Checking kmods exist for 6.7.11-200.fc39.x86_64
This has been reported as RPMFusion bug 6904, which indicates that Nvidia knows about the bug. There are often delays getting Nvidia fixes than then RPMFusion package. Nouveau is working for me with Wayland, but with Xorg I see a black screen with an X cursor.
Note: You may need to edit /etc/gdm/custom.conf to add comment out the WaylandEnable=false line (I presume this was set because Nvida 470xx doesnāt do Wayland). I normally use nouveau+Wayland, and switch to Nvidia+Xorg when I need Xorg.
That shows the proper driver for that GPU.
Your title implies that the driver is not properly built for the newer kernel
Please post the output of uname -r and dnf list installed \*nvidia\*
There are circumstances where the driver may become corrupted with new kernel installs and driver builds. (often caused by rebooting too soon during the updates). This can usually be solved by doing the recovery as follows.
sudo dnf remove kmod-nvidia-6.8.4-200.fc39.x86_64
then rebuild that driver with
sudo akmods --force --kernels 6.8.4-200.fc39.x86_64
following which a reboot should show a full repair.
As you can see there is no module kmod-nvidia-470xx for the latest kernel, so itās not possible to remove it and probably because of the bug reported on the first comment of this thread, the other command you suggested fails during the building process
~ sudo akmods --force --kernels 6.8.4-200.fc39.x86_64
[sudo] password di paco:
Checking kmods exist for 6.8.4-200.fc39.x86_64 [ OK ]
Building and installing nvidia-470xx-kmod [FALLITO]
Building rpms failed; see /var/cache/akmods/nvidia-470xx/470.223.02-2-for-6.8.4-200.fc39.x86_64.failed.log for details
Hint: Some kmods were ignored or failed to build or install.
You can try to rebuild and install them by by calling
'/usr/sbin/akmods --force' as root.
I assume that the logs provided are not that different from those already posted.
Same problem here. Iāve got an ancient Athlon II processor but it seems the problem is with a header file used when compiling the kmod. As the driver code seems to be unchanged maybe a packaging error at rpmfusion?
In file included from /tmp/akmodsbuild.Dy9sO2UZ/BUILD/nvidia-470xx-kmod-470.223.02/_kmod_build_6.8.4-200.fc39.x86_64/nvidia-drm/nvidia-drm-drv.c:60:
/tmp/akmodsbuild.Dy9sO2UZ/BUILD/nvidia-470xx-kmod-470.223.02/_kmod_build_6.8.4-200.fc39.x86_64/nvidia-drm/nvidia-drm-drv.c:748:40: error: āDRM_UNLOCKEDā undeclared here (not in a function); did you mean āVM_LOCKEDā?
748 | DRM_RENDER_ALLOW|DRM_UNLOCKED),
| ^~~~~~~~~~~~
@iznogud78@hooston Hi.
It can be resolved by downloading the latest nvidia 470 driver from the nvidia website.
The driver also asks whether to install in the dkms for automatic recompilation with future kernels.
The only annoyance I had was to, is download drivers first, blacklist nouveau, reboot, and install from console (and ignore the messages about the absence of the X configuration file).
Honestly I am seriously starting to consider buying an AMD video card instead, also because Iām also experiencing the same problem with kernel version 6.8.5-201
Itās unfortunate, though all too understandable, that for NVIDIA video cards there is still no open source driver that has provided decent graphics acceleration.
Unfortunately nouveau has always had this limitation, otherwise we wouldnāt be here fretting about closed source drivers that fail to compile the module on the latest kernel.
I hope that Nova will be able to address this limitation, but I fear that by that time my video card may be too outdated to appreciate any improvements.
Linux on Nvidia hardware is āhigh maintenanceā, which diverts resources from other linux development and orphaned packages for older Nvidia hardware.
The flaw is present in M1, M2, and M3 chips, and because the failing is part of > the architecture of the chips, thereās no way for Apple to fix it in current devices.
Iām thinking of replacing my Nvidia card with an AMD card.
Mine is old enough (GeForce GT 740 4GB DDR3 PCI Express 3.0 x16) to require the 470xx driver which is not running with the current kernel.
If any one has any recommendations for a decent AMD card with similar of better specs (for a low price) ⦠please comment.
Mine has the previous graphics processor model, a GeForce GT 730 but with half the VRAM and PCIe link width. Itās indeed quite old and its already been supported only by legacy drivers for a few years now.
in any case I agree that any advice on a discrete video card (AMD would be preferable) that can replace it is welcome.
For nvidia, anything of the 1650 or newer (2000 and up series) would also work well. My laptop has a 1650, my daily driver has a 3050, and my server runs 2 discrete 1050s. I have never had an issue with any of those and the newer drivers.
Given the spotty Linux support from Nvidia, Iām not buying another one of their boards. I donāt want to be in the same spot three years down the road.
Iām also having this issue, so Iāve been researching solutions. I found good news and bad.
It seems this is an issue caused by the lack of a maintainer at RPM Fusion for this driver. RPM Fusion packages Nvidia drivers and utilities for the 470 series for Fedora 39 with a version from late 2023 (ver. 470.223.02-1.fc39). Package list here. Latest Nvidia drivers are from February 2024, and it seems they include patches for compatibility with Linux 6.8.
The RPM Fusion bug report linked in Georgeās post above mentions that some have had success installing Nvidiaās drivers on Fedora 39, but as of the time of this post, the newest drivers are not packaged by RPM Fusion due to a lack of maintainer. Anyone wanna volunteer?
I am always sorry to learn that there is a lack of a manteiner for such a useful project for us users.
As mentioned above, I hope that whoever is working on the Nova drivers may be able to release an open source driver that can replace the proprietary drivers once and for all.
I will definitely try to install the officially released drivers from NVIDIA, but I seriously plan to replace my graphics card with a better supported model.