Nvidia 340.108 driver is not working newer kernel series than 5.10.x
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nvidia-graphics-drivers-340 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
As usual I have opened this (no more) new bug report...
As ALWAYS happened in the past, EVERY TWO MONTHS new patches are needed for old Nvidia 340.108 drivers, that is, with each release of a new kernel...
Nvidia 340.108 fails to install with kernels 5.11.x - new patches needeed
Just to inform develepers that a new patch for Nvidia 340.108 and kernel 5.11 is not yet available here:
https:/
Anyway thanks for your great contribution to community and hope you publish new patched drivers without having to always report the same bug...
Good day to all the developers.
description: | updated |
ppp (pigeonskiller) wrote : | #1 |
ppp (pigeonskiller) wrote : | #2 |
Update 2
All patches for 340.108 are available here:
https:/
Launchpad Janitor (janitor) wrote : | #3 |
Status changed to 'Confirmed' because the bug affects multiple users.
Changed in nvidia-graphics-drivers-340 (Ubuntu): | |
status: | New → Confirmed |
ppp (pigeonskiller) wrote : | #4 |
Update 3
Great Butterfly (kelebek333) again!
For those tired to wait for very late official drivers, here's where to find the unofficial drivers:
https:/
Testing updated drivers since yesterday and working great!
Butterfly (kelebek333) wrote : | #5 |
Hi,
Nvidia-340 driver added to PPA for hirsute (21.04) base. You can install nvdia-340 driver from PPA. The driver in PPA repository currently supports up to 5.12 of Linux kernel . https:/
PPA repository supports bionic, focal, groovy and hirsute bases.
-------
Nvidia-340 driver's official support for hirsute base is no longer available.
nvidia-
* Drop support for the 340 driver, in favour of the nouveau driver
since it is no longer supported by NVIDIA:
https:/
-- Alberto Milone <...> Wed, 10 Mar 2021 17:18:43 +0100
ppp (pigeonskiller) wrote : Kernel 5.12 patch for Nvidia 340.108 | #6 |
Hi Butterfly,
thanks for the info. Actually I am on Kubuntu 20.04 with kernel 5.11.8 but I'll test your drivers on Hirsute in a month as soon as it becomes available.
Just for info there is already a patch for kernel 5.12.
If interested you may take a look here:
http://
Have a nice day.
-------
> Il 21/03/2021 00:23 Butterfly <email address hidden> ha scritto:
>
>
> Hi,
>
> Nvidia-340 driver added to PPA for hirsute (21.04) base. You can install
> nvdia-340 driver from PPA. The driver in PPA repository currently
> supports up to 5.12 of Linux kernel .
> https:/
>
> PPA repository supports bionic, focal, groovy and hirsute bases.
>
> -------
>
> Nvidia-340 driver's official support for hirsute base is no longer
> available.
>
> nvidia-
>
> * Drop support for the 340 driver, in favour of the nouveau driver
> since it is no longer supported by NVIDIA:
> https:/
>
> -- Alberto Milone <...> Wed, 10 Mar 2021 17:18:43 +0100
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> Nvidia 340.108 fails to install with kernels 5.11.x - new patches
> needeed
>
> Status in nvidia-
> Confirmed
>
> Bug description:
> As usual I have opened this (no more) new bug report...
>
> As ALWAYS happened in the past, EVERY TWO MONTHS new patches are
> needed for old Nvidia 340.108 drivers, that is, with each release of a
> new kernel...
>
> Nvidia 340.108 fails to install with kernels 5.11.x - new patches
> needeed
>
> Just to inform develepers that a new patch for Nvidia 340.108 and
> kernel 5.11 is not yet available here:
>
> https:/
>
> Anyway thanks for your great contribution to community and hope you
> publish new patched drivers without having to always report the same
> bug...
>
> Good day to all the developers.
>
> To manage notifications about this bug go to:
> https:/
Butterfly (kelebek333) wrote : Re: Nvidia 340.108 fails to install with kernels 5.11.x - new patches needeed | #7 |
Hi @pigeonskiller,
nvidia-340 driver is not required any patch for kernel 5.12.
Ejmarkow (ejmarkow) wrote : | #8 |
Hi Butterfly (kelebek333),
On the contrary, an Nvidia 340.108 patch is probably required for Linux Kernel 5.12.
I've been testing Linux kernel 5.12 with the all the Nvidia 340.108 patches including for kernel 5.11) and I'm getting random 'core dump' crashes. It works fine with kernel 5.11, but not with 5.12.
Here is some info:
uname -a:
Linux galicia 5.12.0-
dmesg:
NVRM: loading NVIDIA UNIX x86_64 Kernel Module 340.108 Wed Dec 11 11:06:58 PST 2019
nvidia_uvm: Loaded the UVM driver, major device number 243
lsmod:
Both nvidia & nvidia_uvm modules are loaded fine
The issue:
Interesting thing is, the shim build for nvidia.ko and nvidia_uvm.ko is compiling FINE, with NO ERRORS during or after the build. So, no problem there.
The problem is, I'm getting a random 'core dump' when navigating in the Google Chrome browser. Chrome isn't the problem though because it is not mentioned in the 'core dump', but "nvidia_drv.so" is mentioned.
What happens is: Chrome will close first, Xorg will crash and then I'm logged out of Lightdm.
Both Xorg.bin and Lightdm are mentioned in the following 'core dump', along with Nvidia. Here is the output for journalctl and dmesg (also link to pastebin [ https:/
# journalctl
Apr 09 01:15:50 galicia systemd[1]: Starting Hostname Service...
Apr 09 01:15:51 galicia dbus-daemon[457]: [system] Successfully activated service 'org.freedeskto
Apr 09 01:15:51 galicia systemd[1]: Started Hostname Service.
Apr 09 01:16:21 galicia systemd[1]: systemd-
Apr 09 01:20:30 galicia nscd[476]: 476 checking for monitored file `/etc/services': No such file or directory
Apr 09 01:20:45 galicia nscd[476]: 476 checking for monitored file `/etc/services': No such file or directory
Apr 09 01:24:13 galicia smartd[463]: Device: /dev/sda [SAT], SMART Usage Attribute: 195 Hardware_
Apr 09 01:27:55 galicia systemd[1]: Created slice system-
Apr 09 01:27:55 galicia systemd[1]: Started Process Core Dump (PID 16933/UID 0).
Apr 09 01:27:58 galicia systemd-
Ejmarkow (ejmarkow) wrote : | #9 |
Bug Report Continued from #8:
Also included in the Core Dump is "libglx.so", related to Nvidia.
So, that's 2 Nvidia files: libglx.so & nvidia_drv.so
galicia:/home/ejm # cd /usr/lib64/
galicia:
libglx.so libglx.so.340.108 libvnc.so xorg
galicia:
total 16840
drwxr-xr-x 3 root root 4096 Apr 5 09:18 .
drwxr-xr-x 5 root root 4096 Apr 5 09:18 ..
lrwxrwxrwx 1 root root 17 Apr 5 09:18 libglx.so -> libglx.so.340.108
-rwxr-xr-x 1 root root 16603688 Apr 5 09:18 libglx.so.340.108
-rwxr-xr-x 1 root root 625424 Mar 26 07:39 libvnc.so
drwxr-xr-x 2 root root 4096 Mar 13 17:35 xorg
galicia:
galicia:
fbdev_drv.so modesetting_drv.so nouveau_drv.so nv_drv.so nvidia_drv.so vesa_drv.so
galicia:
total 10104
drwxr-xr-x 2 root root 4096 Apr 5 09:18 .
drwxr-xr-x 5 root root 4096 Apr 5 09:18 ..
-rwxr-xr-x 1 root root 27792 Mar 9 04:05 fbdev_drv.so
-rwxr-xr-x 1 root root 115504 Mar 10 12:42 modesetting_drv.so
-rwxr-xr-x 1 root root 212536 Mar 26 04:09 nouveau_drv.so
-rwxr-xr-x 1 root root 176072 Mar 26 04:08 nv_drv.so
-rwxr-xr-x 1 root root 9761088 Apr 5 09:18 nvidia_drv.so
-rwxr-xr-x 1 root root 36040 Mar 26 04:04 vesa_drv.so
Butterfly (kelebek333) wrote : | #10 |
Not required any patch for Linux 5.12 series. Did you read the explanations about module-path on PPA? https:/
Ejmarkow (ejmarkow) wrote : | #11 |
Thank you so much for this information Butterfly (kelebek333), worked perfectly!
All I needed was a simple 10-line xorg.conf file in /etc/X11. Fantastic!
Rüdiger Kupper (ruediger.kupper) wrote : | #12 |
Package from Butterfly (kelebek333) works with Hirsute. Thanks for the work, guys!!
Butterfly (kelebek333) wrote : | #13 |
No patch required for kernel 5.13.
Batwam (batwam) wrote : | #14 |
I've encountered the same issue upon recent update to the 5.11 kernel with Ubuntu LTS. I restarted, selected the 5.8 kernal and it worked again. I am not sure everyone will work that out and it could be difficult for new starters to trouble shoot from a system which doesn't boot properly.
Considering that there is an incompatobility between the linux-image-5.11 and the nvidia-340 packages, should this be flagged as some sort of incompatibility so the kernel doesn't get updated if the nvidia-340 package is already installed? this way, this update would be skipped until 5.12/5.13 are released if these packages don't require patching.
ivanmara (aesthete2005) wrote : | #15 |
Is there a solution for kernel 5.11.x and nvidia 340.108 ? ... i have the same problem!
Freedom Bacon (freedombacon) wrote : | #16 |
I switched to using the generic kernel. If you're hardware is so old 340 is the latest graphics driver you can use, you probably don't need Focal's HWE. The generic kernel is supported until 2025. I expect I'll replace this device by then either due to getting sick of the driver's poor performance on Ubuntu or hardware failure.
Dominique Breton (freewee) wrote : | #17 |
Hi
I finally managed to have working 20.04.3 kernel 5.11 with nvidia 340.108 with your help, thank you!
I try to ask you something!
With kernel 5.08, I had a script for getting 3D Vision enabled (option stereo from "0" to "10"), but with 5.11, and the changes made, the script is no more working:
#!/bin/sh
sudo -s <<eof
nvidia-xconfig --stereo=10
service gdm restart
eof
The line nvidia-xconfig --stereo=10 in a terminal says the new file is generated, but it is not modified!!!
The file can be modified without problem with NVidia Xserver settings...
Have you an idea?
Thanks
Dominique Breton (freewee) wrote : | #18 |
I removed xorg-modulepath
Many thanks
Butterfly (kelebek333) wrote (last edit ): | #19 |
@freewee, xorg-modulepath-fix package is not require for installing nvidia-340 package. xorg-modulepath-fix package is only automatically modify xorg.conf file for adding module-path fixes. If you do not need to create xorg.conf file or you have already added module-path fix by manually to xorg.conf file, you do not need to install the xorg-modulepath-fix package.
Note: I updated xorg-modulepath-fix package to use nvidia-xconfig command options.
Nvidia-340 package in the PPA repository has supports up to kernel 5.15 and also supports bionic, focal, hirsute and impish bases.
https:/
-------
Edit: I added kernel 5.16 build patch to nvidia-340 package.
Batwam (batwam) wrote : | #21 |
this is excellent for those with old hardware who still want to be able to update to the latest version of Ubuntu!
for info, I received the following minor error during the update:
Setting up nvidia-340 (340.108-
dpkg: error: version '-' has bad syntax: revision number is empty
dpkg: error: version '-' has bad syntax: revision number is empty
update-initramfs: deferring update (trigger activated)
Batwam (batwam) wrote : | #22 |
this is excellent! Please note that I got the following minor error during the install during the setup phase:
Setting up nvidia-340 (340.108-
dpkg: error: version '-' has bad syntax: revision number is empty
dpkg: error: version '-' has bad syntax: revision number is empty
update-initramfs: deferring update (trigger activated)
ppp (pigeonskiller) wrote (last edit ): | #23 |
- Nvidia 340.108 patched by ppa:kelebek333/nvidia-legacy does NOT compile on new kernel 5.18 Edit (970.3 KiB, text/plain)
Patched Nvidia 340.108 drivers supplied by Butterfly (kelebek333) at https:/
Unfortunately Nvidia 340.108 patched by ppa:kelebek333/
Here is terminal output during compilation:
Building module:
cleaning build area...
[ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; make -k module KERNDIR=
ERROR (dkms apport): kernel package linux-headers-
Error! Bad return status for module build on kernel: 5.18-051800-generic (x86_64)
Consult /var/lib/
You may find a make.log file attached to find more details..
Just to inform you that updated patches for Nvidia 340.108 and kernel 5.18 are available here:
minimyth2/
The site https:/
Thanks in advance to a willing developer who will endeavor to compile a new working driver...
summary: |
- Nvidia 340.108 fails to install with kernels 5.11.x - new patches - needeed + Nvidia 340.108 fails to install with kernels 5.1x - new patches needeed |
summary: |
- Nvidia 340.108 fails to install with kernels 5.1x - new patches needeed + Nvidia 340.108 fails to install with kernels 5.11.x - new patches needed |
ppp (pigeonskiller) wrote : Re: Nvidia 340.108 fails to install with kernels 5.11.x - new patches needed | #24 |
So, four months passed since my last post and no one answered.
I confirm that patched Nvidia 340.108 drivers supplied by Butterfly (kelebek333) at https:/
The site https:/
summary: |
- Nvidia 340.108 fails to install with kernels 5.11.x - new patches needed + Nvidia 340.108 driver provided by Butterfly (kelebek333) works very well + till kernel 5.17.x but not beyond |
Wiktor Tomczak (wiktortomczak) wrote : Re: Nvidia 340.108 driver provided by Butterfly (kelebek333) works very well till kernel 5.17.x but not beyond | #25 |
I confirm too, nvidia-340 package by kelebek333 works great with kernel 5.15, unlike the nvidia-340 available by default (340.108-
Kevin K (stafio) wrote : | #26 |
There are also patches available at https:/
ppp (pigeonskiller) wrote (last edit ): | #27 |
Just for info, I mean if anyone wants to port them :-), Debian SID already has drivers patched for kernel 6.1 called nvidia-
Please check it out here:
https:/
Drivers may be found here:
https:/
I tried to add Debian repo to Ubuntu as a joke in the past but obviously it was unsuccessful.
Anyway I will try again to look for errors that prevent it from installing coming soon.
If someone has already succeeded, please notify others and post the method used.
Kevin K (stafio) wrote : | #28 |
You can download the necessary deb's and install them on *buntu 22.10. Make sure you have dkms installed first.
There is a download link at the bottom of each of the pages below. The order of them does matter in order to satisfy the dependencies. Going in this order worked for me:
- https:/
- https:/
- https:/
- https:/
- https:/
- https:/
- https:/
- https:/
- https:/
- https:/
- https:/
- https:/
- https:/
- https:/
- https:/
- https:/
- https:/
- https:/
- https:/
- https:/
- https:/
ppp (pigeonskiller) wrote : | #29 |
@Kevin K (stafio)
Thank you very much. That worked for me on Kubuntu 22.10, kernel 6.1.8 and GeForce 9800 GT.
Could you please provide a bash script to help newbies?
Waqas (waqas-ilyas) wrote : | #30 |
Hi,
I am having a hard time getting NVidia drivers and CUDA installed on this my laptop. It is kind of old (Precision M4800) with Nvidia Quadro K1100M. I installed fresh Ubuntu 20.04, and I have been through many forums and articles on installing Nvidia drivers, but so far no success. It either fails to install, or fails to boot. And I am using timeshift to go back a snapshot.
I tried installing all packages listed above (2 messages ago) and I couldn't go beyond libnvidia-
I also tried the kelebek333 PPA, but my machine fails to boot to UI (I can SSH into the machine though so I reverted back to previous snapshot).
Here are some details of my machine:
- Linux alm-waqas-lnx 5.15.0-60-generic #66~20.04.1-Ubuntu SMP Wed Jan 25 09:41:30 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
- Ubuntu 20.04.5 LTS
- GK107GLM [Quadro K1100M]
lshw -c == /sys/devices/
modalias : pci:v000010DEd0
vendor : NVIDIA Corporation
model : GK107GLM [Quadro K1100M]
driver : nvidia-340 - distro non-free recommended
driver : nvidia-
driver : nvidia-driver-390 - distro non-free
driver : xserver-
Any suggestions would be highly appreciated because i am stuck on this.
When installing the Ubuntu for the first time I didn't pay attention to that MOK enrollment, and I think I just selected to enroll. Could that be a factor here?
ppp (pigeonskiller) wrote : | #31 |
@ Waqas (waqas-ilyas)
I think you installed a wrong driver version for your card: version 418.113 is the right version for you.
I suggest you remove previous driver and try this patched one:
Waqas (waqas-ilyas) wrote : | #32 |
That is strange that Ubuntu recommended the 390 driver to me.
$ ubuntu-drivers devices
modalias : pci:v000010DEd0
vendor : NVIDIA Corporation
model : GK107GLM [Quadro K1100M]
driver : nvidia-340 - distro non-free recommended
driver : nvidia-driver-390 - distro non-free
driver : nvidia-
driver : xserver-
I had seen on nvidia's website that 418 was the supported driver. However that did not work either (by downloading from nvidia's website).
However, I had opened a post on Nvidia's forums as well[1], and they recommended I install 470, although didn't mention from where. But I managed to install it by adding the PPA ppa:graphics-
Thanks a lot for the help. Any ideas what's different between the PPA I used, and the repo you suggested?
ppp (pigeonskiller) wrote (last edit ): | #33 |
@ Waqas (waqas-ilyas)
Happy you solved your problem.
For your question about differences you have to ask the developer on GitHub (that's not me).
This is a bug report for nvidia-
Regards
summary: |
- Nvidia 340.108 driver provided by Butterfly (kelebek333) works very well - till kernel 5.17.x but not beyond + Nvidia 340.108 driver is not working newer kernel series than 5.10.x |
Günter Knauer (gknauer) wrote (last edit ): | #34 |
It would be great to have at least for the Ubuntu LTS Releases (today 24.04, kernel 6.8) a Nvidia 340.108 update ... or I (and many others) have to shredder my 'mature' but still well running Lenovo ThinkPad hardware.
In detail:
I am able to link the 340 driver with the kernel 6.8 an NVIDIA FX 880M, but at system start the display keeps black
and ssh to the system shows in-responsiveness for long time slices.
I guesss the driver is successfully installed and executed:
sudo apt install nvidia-340
returns:
"nvidia-340 ... version (340.108-
kern.log shows:
kernel: watchdog: BUG: soft lockup - CPU#2 stuck for 26s! [Xorg:2154]
kernel: Hardware name: LENOVO 4389AP5/4389AP5, BIOS 6NET84WW (1.45 ) 10/03/2012
kernel: CPU: 2 PID: 2154 Comm: Xorg Tainted: P OE 6.8.0-44-generic #44-Ubuntu
/var/log/
[ 396.947] (EE) NVIDIA(GPU-0): EVO Push buffer channel allocation failed
[ 396.952] (EE) NVIDIA(GPU-0): Failed to allocate EVO core DMA push buffer
anyway ...
Thanks for your great job on this driver the last years!
Johnny Izzo (izzostar) wrote : | #35 |
Oh, my dear Precision M6500 with quadro fx2800 would love to live forever too!
Having the black screen issue :(
Offtopic:Even the default ubuntu 24.04 install is weirder than the old ones. Scrambled background for some reason.
For now, will try to install 340driver from debian on 22.10 (as per Kevin K), bcouse theres pipewire and cooler gnome on 22.10 :)
Update
For those willing to be able to compile the above drivers there is a new patch at the following address:
https:/ /raw.githubuser content. com/graysky2/ /minimyth2/ master/ script/ nvidia/ nvidia- 340.108/ files/nvidia- 340.108- fix-5.11- kernel- compile. patch
If anyone makes the new drivers available, I will be grateful and happy to act as a tester...