inttf NVIDIA 340.108 / 390.154 Patcher for Kernel 6.2/6.1/6.0/5.19/5.18/5.17/5.16/5.15/5.14/5.13 [BASH Script] - Comment Page: 9
This is a BASH script, which download NVIDIA installer, extract it, patch it and make new patched installer package. This is very quickly tested alpha version so if you have any problems please let me know or if this works as it should you can also let me know. I use here currently ARCH Linux Patches + my own patches. Currently this works with NVIDIA 340.108 / 390.154 / 418.113 / 435.21 drivers and latest 6.2, 6.1, 6.0, 5.19, 5.18, 5.17, 5.16, 5.15, 5.14, 5.13, 5.12, 5.11, 5.10 and 5.9 kernels.
This should work with any distribution. You just need install wget and patch packages.
Check video version of guide:
Watch More Videos and Subscribe to
if-not-true-then-false.com Youtube...
I have Ubuntu 22.04.1 with kernel 5.15 and after installing the 340.108 driver (I have Nvidia 320M on a Macbook Pro 2010), I get the screen “Oh no, something has gone wrong” (gdm3 fails). I tried installing lightdm and sddm and get the same issue. Any idea?
Hi Sarah,
So you can’t start lightdm or sddm at all?
Could you post full xorg log and gdm log example to pastebin?
I have been going back and forth between this patch, and another patch, and both yield the same errors. See here for details: https://github.com/MeowIce/nvidia-legacy/issues/8
Hi JR,
I tried again, but still when I do (as root)
./NVIDIA-Linux-x86_64-390.154-patched-kernel-6.0.run I get (when run from anywhere):
Verifying archive integrity… OK
Uncompressing NVIDIA driver 390.154 patched for kernel 6.0+
gzip: stdin: not in gzip format
Extraction failed.
I thought I posted the above, but never saw it posted, and never saw any reply either.
lspci | grep VGA shows
01:00.0 VGA compatible controller: NVIDIA Corporation GK208B [GeForce GT 710] (rev a1)
uname -a shows
Linux localhost 5.19.16-602.inttf.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Oct 17 16:51:38 EEST 2022 x86_64 x86_64 x86_64 GNU/Linux
Thanks for any information.
Hi again JR,
I forgot to say that
nvidia-installer -v | grep version shows
nvidia-installer: version 390.154 ([email protected]) Wed Jun 22
I can start lightdm and sddm, but not gdm3. I also can’t log into gnome (can log into other desktop environments). For the DEs I can log into, I can start nvidia-settings, but it gives me a warning, “You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run ‘nvidia-xconfig’ as root) and restart the X server.”
I gave up and tried Ubuntu 20.04.5 and all seemed well until I try to start the window manager. The screen goes black (like the screen is off; not even the “bright” lit up black like when the screen is on), never to recover (not even TTY). In recovery, I looked at ~/.xession-errors and it showed”
gnome-session: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Same with xfce (I had tried that afterwards; it will say xfce-session: Fatal IO). There’s other errors, like “Failed to set the background” and “Gtk-WARNING **” Negative content width -3 (allocation 1, extens 2×2) while allocating gadget (node button, owner PowerManagerButton).
I checked Xorg.0.log and everything looks fine; the NVIDIA modules all loaded.
So I am not entirely sure what is happening.
Devuan Ceres kernel 6.0.0.5
340.108 diver, DKMS compilation failed
https://imgur.com/a/WFW84UC
https://pastebin.com/JqQBYX6V
https://pastebin.com/MuzLMj3w
Do you have secureboot enabled?
not, i am on old pc
c2q q6600, 4gb ram, gf9800, hdd
Ok, do you have Linux kernel headers package installed?
Yes installed. This yours script previously working good, this is firtst issue for me after updating Devuan to 6.0.0.5 kernel
SOLVED!
i am install default init for Devuan – sysv, now all installation and dkms compilation too working good
ps i am experimenting and before install runit insted sysv
Just wanted to say that the current patch is still working on KERNEL 6.1! 8)
Thank you for the great work JR.
Linux Mint 21 kernel 5.15 (gf9800-340.108)
Driver installation failed
https://pastebin.com/raw/JbNm4Wva
Just for info, I mean if anyone wants to port them :-), Debian SID already has drivers patched for kernel 6.1 called nvidia-legacy-340xx-driver.
Please check it out here:
https://metadata.ftp-master.debian.org/changelogs//non-free/n/nvidia-graphics-drivers-legacy-340xx/nvidia-graphics-drivers-legacy-340xx_340.108-17_changelog
LoadModule: “nvidia”
[ 56.199] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 56.346] (II) Module nvidia: vendor=”NVIDIA Corporation”
[ 56.346] compiled for 4.0.2, module version = 1.0.0
[ 56.346] Module class: X.Org Video Driver
[ 56.346] ================ WARNING WARNING WARNING WARNING ================
[ 56.346] This server has a video driver ABI version of 25.2 that this
driver does not officially support. Please check
http://www.nvidia.com/ for driver updates or downgrade to an X
server with a supported driver ABI.
[ 56.346] =================================================================
[ 56.346] (EE) NVIDIA: Use the -ignoreABI option to override this check.
[ 56.346] (II) UnloadModule: “nvidia”
[ 56.346] (II) Unloading nvidia
[ 56.347] (EE) Failed to load module “nvidia” (unknown error, 0)
hey i get this error from xorg on Ubuntu 22.04 and running kernel 5.15.0-60, and i can’t get any refference from google :(
[ 56.199] (II) LoadModule: “nvidia”
[ 56.199] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 56.346] (II) Module nvidia: vendor=”NVIDIA Corporation”
[ 56.346] compiled for 4.0.2, module version = 1.0.0
[ 56.346] Module class: X.Org Video Driver
[ 56.346] ================ WARNING WARNING WARNING WARNING ================
[ 56.346] This server has a video driver ABI version of 25.2 that this
driver does not officially support. Please check
http://www.nvidia.com/ for driver updates or downgrade to an X
server with a supported driver ABI.
[ 56.346] =================================================================
[ 56.346] (EE) NVIDIA: Use the -ignoreABI option to override this check.
[ 56.346] (II) UnloadModule: “nvidia”
[ 56.346] (II) Unloading nvidia
[ 56.347] (EE) Failed to load module “nvidia” (unknown error, 0)
hey i am using ubuntu 22.04 and running kernel 5.15.0-60 i get this error from xorg
and when i run [nvidia-smi] it say “not supported” on process section.
Hi gigih,
Try to add following to your /etc/X11/xorg.conf:
kernel-6.2.patch
https://aur.archlinux.org/packages/nvidia-340xx
Thank you Alexander, I will add this soon to script!