[HowTo] Compile old/legacy NVIDIA Proprietary Drivers [2020-12-30 Update Issue]

What’s the output of pacman -Qil linux54-nvidia-418xx?

$ pacman -Qil nvidia-418
error: package 'nvidia-418' was not found

Oops. Something is wrong. Seems like it did not get installed!

I wrote the package name incorrectly, please check again.

Name            : linux54-nvidia-418xx
Version         : 418.113-88
Description     : NVIDIA drivers for linux.
Architecture    : x86_64
URL             : http://www.nvidia.com/
Licenses        : custom
Groups          : linux54-extramodules
Provides        : nvidia=418.113
Depends On      : linux54  nvidia-418xx-utils=418.113
Optional Deps   : None
Required By     : None
Optional For    : bumblebee
Conflicts With  : linux54-nvidia-340xx  linux54-nvidia-390xx  linux54-nvidia-430xx  linux54-nvidia-435xx  linux54-nvidia-440xx  linux54-nvidia-450xx
Replaces        : None
Installed Size  : 12.32 MiB
Packager        : Unknown Packager
Build Date      : Saturday 03 April 2021 11:15:25 PM
Install Date    : Saturday 03 April 2021 11:16:58 PM
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : None

linux54-nvidia-418xx /usr/
linux54-nvidia-418xx /usr/lib/
linux54-nvidia-418xx /usr/lib/modules/
linux54-nvidia-418xx /usr/lib/modules/extramodules-5.4-MANJARO/
linux54-nvidia-418xx /usr/lib/modules/extramodules-5.4-MANJARO/nvidia-drm.ko.gz
linux54-nvidia-418xx /usr/lib/modules/extramodules-5.4-MANJARO/nvidia-modeset.ko.gz
linux54-nvidia-418xx /usr/lib/modules/extramodules-5.4-MANJARO/nvidia-uvm.ko.gz
linux54-nvidia-418xx /usr/lib/modules/extramodules-5.4-MANJARO/nvidia.ko.gz

That looks OK. What’s the output of sudo modprobe nvidia?

$ sudo modprobe nvidia
modprobe: FATAL: Module nvidia not found in directory /lib/modules/5.4.101-1-MANJARO

During the build process, I also got an error regarding modules not found. I solved it by using version 5.4.105-1-MANJARO for extramodules.

Is it that creating the problem?

That might be it. What did you do exactly? And what’s the output of uname -r?

$ uname -r
5.4.101-1-MANJARO

My original version file contained 101 as version

$ cat /lib/modules/extramodules-5.4-MANJARO/version
5.4.101-1-MANJARO

I edited it to 105 because that is the version I had for my extramodules installation.

With 101 as version, I was getting an error Cannot build target 'modules' when I run makepkg -sif inside nvidia-418.

That probably didn’t help. What’s the output of pacman -Q linux54 linux54-headers?

$ pacman -Q linux54 linux54-headers
linux54 5.4.101-1
linux54-headers 5.4.105-1

When did you last update? The versions of those two packages should be the exact same.

Please remove the linux54-nvidia-418xx, nvidia-418xx-utils, and lib32-nvidia-418xx-utils packages, then restore the /lib/modules/extramodules-5.4-MANJARO/version file to say 5.4.101-1-MANJARO. And then update, potentially switch to a different mirror if the versions don’t match after upgrading. After that you should reboot.


I’d suggest you try GitHub - Frogging-Family/nvidia-all: Nvidia driver 460 to 396 series AIO installer. Because if you install the packages from the Manjaro GitLab, you’ll need to rebuild the kernel module each time the kernel is upgraded. With the other installer, the kernel module is rebuilt automatically.

Thanks a lot @pobrn .
I installed linux54 few months back and linux54-headers today. I guess that is causing the mismatch.
I will try your recommendation now.

Hi @pobrn , using nvidia-all installer worked smoothly after an upgrade! Thanks a lot :slight_smile:

Only issue I find is I have to use modprobe nvidia everytime after reboot before using any GPU related stuff.

Did you find a fix for the GT740M? I have the same card and the same issue. I already have my Windows 10 Pro handy to reinstall that as my graphics chip worked well there.

Even as a seasoned geek, I now have medical reasons why I can’t compile anything any more. Things need to work out of the box, really.

Yes. For me GT740M is working with optirun.

Steps I followed are

  1. Use kernel 5.4. May possibly work for newer kernels, but I did not try.
$ pacman -Q linux54 linux54-headers 
linux54 5.4.105-1
linux54-headers 5.4.105-1
  1. Use nvidia-all from GitHub - Frogging-Family/nvidia-all: Nvidia driver 460 to 396 series AIO installer. Run the script and select nvidia-418 (418 is the last version which has support for GT 740M). Also, choose dkms option when prompted, as recommended.

It will setup the following packages

nvidia-dkms-tkg 418.113-157
nvidia-egl-wayland-tkg 418.113-157
nvidia-settings-tkg 418.113-157
nvidia-utils-tkg 418.113-157

The issue now I have it upon reboot, the GPU is not detected automatically. Everytime, I have to run sudo modprobe nvidia and then only use optirun or even nvidia-smi. But this is a manageable issue for me.

Thanks for that! I use my old Macbook5.1 with its real shitty Nvidia GeForce 9400M with Manjaro KDE and Kernel 5.10.26-1 and with Nouveau drivers the display freezes with every slight graphical stress like opening a more then one window at once…
With nvidia using this patched method it works flawlessly since a few month…
Only issue I have is: software manager always shows me (regardless of me pushing “ignore that update”) to update the nvidia-340xx-dkms from 340.108.1 to 340.108.18. But when updating KBuild fails with this:

Applying patch 0004-kernel-5.10.patch…
patching file kernel/nv-drm.c
Hunk #1 succeeded at 364 (offset 42 lines).
Applying patch 0005-kernel-5.11.patch…
patching file kernel/nv-linux.h
patching file kernel/uvm/nvidia_uvm_linux.h
==> Beginne build()…
NVIDIA: calling KBUILD…
make[1]: *** /usr/src/linux: Datei oder Verzeichnis nicht gefunden. Schluss.
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** [Makefile:202: nvidia.ko] Fehler 1
==> FEHLER: Ein Fehler geschah in build().
Breche ab…

I don’t get why it tries to patch for kernel 5.11 (if I get it correctly). Of course I installed the 5.10 headers and also tried to install the 5.4 and 5.11 kernel with headers but to no avail…
Any ideas?!
Besides getting right of the annoying update message, updating if there is an update seems like a good idea right?

Is there any plan to support newer driver versions than 450?
I tried 460 and 465, but both are asking me for Gitlab credentials (I created my Gitlab account by connecting Github, so I got no clue what my username/password would be, my Github credentials won’t work).

video-nvidia in Manjaro is currently at Nvidia 470.

Sorry, I should have made it clear that I’m talking about downgrading.
I wanted to downgrade to 465, as 470 caused serious issues for me.

I did downgrade to 450 now, but the issues remain ( https://forum.manjaro.org/t/opengl-and-opencl-not-working-anymore-after-ugrading-to-nvidia-470-42-01/ ), making me think it might not be the driver at all.

1 Like