[Solved] Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills nVidia Video Drivers

Screen resolution, 3D Acceleration, nVidia, ATI
Forum rules
Before you post please read this
User avatar
roblm
Level 12
Level 12
Posts: 4065
Joined: Sun Feb 24, 2013 2:41 pm

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills Video Drivers

Post by roblm »

Hi everyone,

The Nvidia 390.116 driver does not have support for the 5.3 kernel, but the newer 390.129 version does. You can get this driver by adding the graphics-drivers PPA, or wait until it is available through an Update Manager update:

Code: Select all

sudo apt-add-repository ppa:graphics-drivers/ppa
apt update
Then open Driver Manager to install the newer driver.

This driver problem is also discussed in this topic, which is on the same page in this forum:
viewtopic.php?f=59&t=308493

peo62
Level 1
Level 1
Posts: 3
Joined: Fri Jan 17, 2020 10:03 am

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills Video Drivers

Post by peo62 »

roblm wrote:
Fri Jan 17, 2020 8:07 am
The Nvidia 390.116 driver does not have support for the 5.3 kernel, but the newer 390.129 version does.
Hi!

What about the Nvidia 340.107 driver - does it have support for the 5.3 kernel? I'm just too scared to try it myself :)

D Canard
Level 2
Level 2
Posts: 64
Joined: Sat Dec 01, 2018 11:41 am

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills Video Drivers

Post by D Canard »

roblm wrote:
Fri Jan 17, 2020 8:07 am
Hi everyone,

The Nvidia 390.116 driver does not have support for the 5.3 kernel, but the newer 390.129 version does. You can get this driver by adding the graphics-drivers PPA, or wait until it is available through an Update Manager update:

Code: Select all

sudo apt-add-repository ppa:graphics-drivers/ppa
apt update
Then open Driver Manager to install the newer driver.

This driver problem is also discussed in this topic, which is on the same page in this forum:
viewtopic.php?f=59&t=308493
Thanks, Robim.

My system seems to working nicely now with the newer 390.129 drivers. I did not have to choose this version, however. It was already selected after running the repository add syntax.

I took a snapshot first before doing anything, however.

Grub did have a bit of a hissy fit upon reboot and did a whole lot of stuff very quickly before presenting a DOS-like GUI menu, the default choice (of several) to continue with a normal boot. I chose the default and it all went fine.

Then Update Manager presented a whole lot of updates, which I installed (having a recent snapshot to fall back on).

I am not sure where the repository add takes this all. In the process of adding there was a lot of text aimed at developers, I think. If I have gone a rabbit hole on a new adventure, it seems to be an entirely functional rabbit hole at present.

Thanks again. :)

User avatar
roblm
Level 12
Level 12
Posts: 4065
Joined: Sun Feb 24, 2013 2:41 pm

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills Video Drivers

Post by roblm »

peo62 wrote: What about the Nvidia 340.107 driver - does it have support for the 5.3 kernel? I'm just too scared to try it myself :)
Yes, it does.

The Nvidia 340.108 driver was released on 12-23-19. You would need to add the graphic-drivers PPA to get it or wait until it is available through the Update Manager. There will be no more newer releases of the nvidia-340 driver.

D Canard
Level 2
Level 2
Posts: 64
Joined: Sat Dec 01, 2018 11:41 am

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills Video Drivers

Post by D Canard »

Hmmm .... I may have spoken too quickly above with regard to the 390.129 drivers.

Being innately curious and never one to leave well enough alone, I thought .... "All well and good for the nVidia drivers now but what about the Xorg ones?" So I chose the XOrg ones in the driver manager, rebooted (successfully with expected video resolution) and went and checked the driver manager again. It said no proprietary drivers in use, which it should have but showed no choices for proprietary nNvida drivers, just a blank screen.

So I have reverted to this morning's snapshot, which should have included the 5.3 kernel, but upon reboot the 5.3 kernel is gone. Weirdness reigns supreme.

But I still have an entirely functional system.

User avatar
roblm
Level 12
Level 12
Posts: 4065
Joined: Sun Feb 24, 2013 2:41 pm

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills Video Drivers

Post by roblm »

D Canard wrote: It said no proprietary drivers in use, which it should have but showed no choices for proprietary nNvida drivers, just a blank screen.
Do you mean Driver Manager was completely empty or the Nvidia driver choices were grayed out and can't be selected?

D Canard
Level 2
Level 2
Posts: 64
Joined: Sat Dec 01, 2018 11:41 am

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills Video Drivers

Post by D Canard »

roblm wrote:
Fri Jan 17, 2020 11:51 am
D Canard wrote: It said no proprietary drivers in use, which it should have but showed no choices for proprietary nNvida drivers, just a blank screen.
Do you mean Driver Manager was completely empty or the Nvidia driver choices were grayed out and can't be selected?
Completely empty of nVidia drivers. Nothing there to select.

I have restored to a snapshot and re-updated/upgraded, bringing back the 5.3 kernel, which of course brings back the video driver problem. So for the moment, I am just choosing to boot with the 5.0 kernel from the GRUB menu.

User avatar
roblm
Level 12
Level 12
Posts: 4065
Joined: Sun Feb 24, 2013 2:41 pm

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills Video Drivers

Post by roblm »

User reticulatus reported the same thing in this related topic in the Hardware forum:
viewtopic.php?f=49&t=309784

I’ve never seen that happen before. I tried to duplicate the problem but was unable to so far.

Driver Manager cannot remove the Nvidia driver completely because of a bug introduced in Mint 19/Ubuntu 18.04. The command apt autoremove has to be used in addition, or the uninstallation can be done in one step using the command apt autoremove nvidia-driver-390.

I suggest using the apt autoremove command, rebooting and checking in Driver Manager.

If nothing has changed, then try re-installing the driver with the command apt install nvidia-driver-390

User avatar
dathmar
Level 1
Level 1
Posts: 2
Joined: Fri Jan 17, 2020 11:37 am

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills Video Drivers

Post by dathmar »

roblm wrote:
Fri Jan 17, 2020 11:51 am
D Canard wrote: It said no proprietary drivers in use, which it should have but showed no choices for proprietary nNvida drivers, just a blank screen.
Do you mean Driver Manager was completely empty or the Nvidia driver choices were grayed out and can't be selected?
I have the same issue here

driver-manager is blank with the message at the bottom -
"no proprietary drivers in use"

I've remove kernel 5.3

however I do think my system is using the Nvidia driver still

Code: Select all

$sudo mintdrivers
$ Post-install mode detected
Checking connectivity or live media...
Internet connection detected
Ignoring device: NVIDIA Corporation: GK104 [GeForce GTX 760] (manually_installed)

Code: Select all

$inxi -Fxz
Graphics:  Device-1: NVIDIA GK104 [GeForce GTX 760] vendor: ASUSTeK driver: nvidia v: 435.21 bus ID: 04:00.0 
           Display: x11 server: X.Org 1.20.5 driver: nvidia unloaded: fbdev,modesetting,nouveau,vesa 
           resolution: 1680x1050~60Hz 
           OpenGL: renderer: GeForce GTX 760/PCIe/SSE2 v: 4.6.0 NVIDIA 435.21 direct render: Yes

Freshly_Minted
Level 1
Level 1
Posts: 4
Joined: Thu Jul 18, 2019 4:02 pm

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills Video Drivers

Post by Freshly_Minted »

smurphos wrote:
Fri Jan 17, 2020 1:32 am
Freshly_Minted wrote:
Fri Jan 17, 2020 1:27 am
Another 19.3 user here with an nvidia 560 card and the kernel update ate my video drivers also. :(
Reboot, access the grub menu (hold shift on the OEM splash screen is the normal way if it doesn't display on your system), select Advanced options for Linux Mint 19.3, select the 5.0.0.37 kernel and reboot. Report back if that gives you working drivers and depending on the outcome we can go through your options.
Thank you Smurphos,
I "fixed" it last night (before I saw your message) by using timeshift to revert back. It works fine for now. Thanks!

peo62
Level 1
Level 1
Posts: 3
Joined: Fri Jan 17, 2020 10:03 am

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills Video Drivers

Post by peo62 »

roblm wrote:
Fri Jan 17, 2020 11:20 am
peo62 wrote: What about the Nvidia 340.107 driver - does it have support for the 5.3 kernel? I'm just too scared to try it myself :)
Yes, it does.

The Nvidia 340.108 driver was released on 12-23-19. You would need to add the graphic-drivers PPA to get it or wait until it is available through the Update Manager. There will be no more newer releases of the nvidia-340 driver.
Thanks. I'm in no hurry, so I'll just wait for the updated driver to show up the "normal" way. 8)

User avatar
dathmar
Level 1
Level 1
Posts: 2
Joined: Fri Jan 17, 2020 11:37 am

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills Video Drivers

Post by dathmar »

I couldn't see the drivers in the driver manager

This is now fixed thanks to roblm


This worked for me

Code: Select all

apt autoremove
Once I'd removed the NVIDIA 435 packages, rebooted
I can now see the drivers in driver manager

Looks like Nvidia driver version 440 is now listed.

Thanks roblm !!!

User avatar
roblm
Level 12
Level 12
Posts: 4065
Joined: Sun Feb 24, 2013 2:41 pm

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills Video Drivers

Post by roblm »

D Canard,

I was able to reproduce the completely empty Driver Manager problem. This appears to be a new Driver Manager bug. As I said in a previous post, use the command apt autoremove and reboot and Driver Manager should be restored. User dathmar confirmed that it also worked for him.

As I previously said, if you use Driver Manager to uninstall the Nvidia driver, then it it needs to be followed by the command apt autoremove in the Terminal. Or, simply do the uninstallation in one step using the command apt autoremove nvidia-driver-xxx (xxx = Nvidia driver series number, such as 390).

Another command you may frequently see used is apt purge nvidia* or apt purge *nvidia*. Those are OK for desktop systems, but for Optimus based laptops, they will also remove nvidia-prime, which is needed to switch GPUs and the nvidia-prime-applet.

benjellos
Level 1
Level 1
Posts: 8
Joined: Fri Dec 20, 2019 7:28 pm

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills Video Drivers

Post by benjellos »

Is it safe to assume the 390.129 Nvidia driver update, should fix the upgrade to the 5.3 kernel? As in I'll be able to have a normal resolution?

I was running the 390.108 driver when I previously attempted the update.

User avatar
roblm
Level 12
Level 12
Posts: 4065
Joined: Sun Feb 24, 2013 2:41 pm

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills Video Drivers

Post by roblm »

benjellos wrote: Is it safe to assume the 390.129 Nvidia driver update, should fix the upgrade to the 5.3 kernel? As in I'll be able to have a normal resolution?

I was running the 390.108 driver when I previously attempted the update.
Probably yes, but there are always exceptions because of hardware incompatibility issues. I assume you were running the 390.116 driver. There is no 390.108.

Loufute
Level 1
Level 1
Posts: 5
Joined: Sun Oct 06, 2019 2:20 am

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills Video Drivers

Post by Loufute »

smurphos wrote:
Fri Jan 17, 2020 1:32 am
Reboot, access the grub menu (hold shift on the OEM splash screen is the normal way if it doesn't display on your system), select Advanced options for Linux Mint 19.3, select the 5.0.0.37 kernel and reboot. Report back if that gives you working drivers and depending on the outcome we can go through your options.
Hi smurphos,

FYI, I had the same issue. Updated to Kernel 5.3.0-26 yesterday and today at boot the NVIDIA driver did not work anymore (I directly knew as I had to create a .xprofile file in order to have the correct resolution for my video-projector, and when Nouveau is active it gives me an error).
Anyway, I followed the advises here and booted with the previous kernel (5.0.0-37) ; all is back to normal.

Driver : 390.116 (from what I understood, more recent ones do not support my card)
Dual-Card : NVIDIA Corporation GF108GLM [NVS 5200M] and Intel Corporation 3rd Gen Core processor Graphics Controller

Cheers,

Loufute

D Canard
Level 2
Level 2
Posts: 64
Joined: Sat Dec 01, 2018 11:41 am

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills Video Drivers

Post by D Canard »

This all has turned into a total kazoo and gong show for me. The show is not the direct fault of the nVidia driver issue. The driver issue is the catalyst which set off an extremely annoying chain of events for me yesterday.

I do not think the driver issue here is a surprise to developers. Some aspects of it have been foreseen since July of last year if not earlier: https://www.phoronix.com/scan.php?page= ... ER-Problem

At present I would advise anyone with older nVidia chipset video cards not to install later versions of LM 19 LTS, not that the later versions can't be made to work, as has been demonstrated here. LM 19 (flat) at present seems to stay with the 4.x kernel, so just fewer headaches and potential headahces. And an older chipset doesn't mean that the chipset is not used in current production model video cards - for example, the nVida 210 cards are still readily available and are one of the most common upgrade cards for older systems. The fanless models are in sooooooo many people's media PCs (including mine), as well. And yes drivers for this card are affected, too. I have tested.

In some of my reading, I have seen a bit of finger pointing back and forth between the apologists for the Linux development community and the apologists for nVidia. Blame probably lies in the middle somewhere, but mostly on nVidia's side of the middle. There was an apocryphal quote from Linus, the man himself, about the nVidiots. The general sentiment in on the developer side of things seems to be that if nVidia would open its source code for its Linux drivers, there would be no problems.

But why push out a new kernel branch in an LTS distro when you know it is going to break a lot of systems? Just asking. :wink:

Edit: Between 2009 and 2018 nVidia has held between 15 to 30% (rounding things off) of the GPU market - very roughly close to AMD's share - nowhere near Intel's gargantuan share - still a lot of systems using nVida GPUs, though. https://www.extremetech.com/gaming/2764 ... and-nvidia

GSimpson
Level 2
Level 2
Posts: 59
Joined: Wed May 18, 2011 6:36 pm
Location: Oamaru, New Zealand

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills nVidia Video Drivers

Post by GSimpson »

Trying the earlier kernel didn't help for me but at least recovered to a high res display again.
Checking Synaptic package manager indicates broken packages.
Using repair broken packages indicates libnvidia-gl-390 (version 390.129-0ubuntu0~gpu18.04.1 needs reinstall but..
results in Error
E: /var/cache/apt/archives/libnvidia-gl-390_390.129-0ubuntu0~gpu18.04.1_amd64.deb: new libnvidia-gl-390:amd64 package pre-installation script subprocess returned error exit status 2

(Reading database ... 1435054 files and directories currently installed.)
Preparing to unpack .../libnvidia-gl-390_390.129-0ubuntu0~gpu18.04.1_amd64.deb ...
diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340
dpkg-divert: error: mismatch on package
when removing 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 by libnvidia-gl-390'
found 'diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340'
dpkg: error processing archive /var/cache/apt/archives/libnvidia-gl-390_390.129-0ubuntu0~gpu18.04.1_amd64.deb (--unpack):
new libnvidia-gl-390:amd64 package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libnvidia-gl-390_390.129-0ubuntu0~gpu18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of libnvidia-ifr1-390:amd64:
libnvidia-ifr1-390:amd64 depends on libnvidia-gl-390; however:
Package libnvidia-gl-390:amd64 is not installed.

dpkg: error processing package libnvidia-ifr1-390:amd64 (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
libnvidia-ifr1-390:amd64
HP Zbook
Intel© Core™ i7-4810MQ CPU @ 2.80GHz × 4
Linux Mint 19.3 64 bit Cinnamon
16GB ram

Graphics NVIDIA Corporation GK104GLM [Quadro K3100M]

dave0808
Level 1
Level 1
Posts: 11
Joined: Sat May 16, 2015 1:02 pm

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills nVidia Video Drivers

Post by dave0808 »

I found this thread after updating the kernel to 5.3.0 and finding a nasty 800x600 welcome screen. The nvidia drivers wouldn't install because the same version that it wanted was going to be installed. Really, that whole error message isn't helpful at all.

So I booted back to kernel 5.0.0, which gave me full resolution screen again (using nvidia-390). I decided that I'd update the driver first, then move kernels. Here's how I resolved it.

Following the suggestions here, I ran

Code: Select all

sudo apt autoremove nvidia-driver-390
That removed 46 packages, and I rebooted for good measure. At that point, I had an empty list of drivers offered to me, not quite what I expected. I persevered and tried the following, but got errors:-

Code: Select all

sudo apt-get install nvidia-driver-435
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 nvidia-driver-435 : Depends: nvidia-dkms-435 (= 435.21-0ubuntu0.18.04.2) but it is not going to be installed
                     Depends: nvidia-kernel-source-435 (= 435.21-0ubuntu0.18.04.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I don't recall having broken packages, so I tried

Code: Select all

sudo apt-get install nvidia-driver-435 nvidia-dkms-435 nvidia-kernel-source-435
What was interesting there is that it then found some -390 packages to remove:-

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libnvidia-cfg1-435 libnvidia-common-435 libnvidia-compute-435
  libnvidia-decode-435 libnvidia-encode-435 libnvidia-fbc1-435
  libnvidia-gl-435 libnvidia-ifr1-435 nvidia-compute-utils-435
  nvidia-kernel-common-435 nvidia-utils-435 xserver-xorg-video-nvidia-435
Recommended packages:
  libnvidia-compute-435:i386 libnvidia-decode-435:i386
  libnvidia-encode-435:i386 libnvidia-ifr1-435:i386 libnvidia-fbc1-435:i386
  libnvidia-gl-435:i386
The following packages will be REMOVED
  libcuda1-384 libnvidia-compute-390 nvidia-compute-utils-390 nvidia-dkms-390
  nvidia-headless-390 nvidia-headless-no-dkms-390 nvidia-kernel-common-390
  nvidia-kernel-source-390 nvidia-opencl-icd-384
The following NEW packages will be installed
  libnvidia-cfg1-435 libnvidia-common-435 libnvidia-compute-435
  libnvidia-decode-435 libnvidia-encode-435 libnvidia-fbc1-435
  libnvidia-gl-435 libnvidia-ifr1-435 nvidia-compute-utils-435 nvidia-dkms-435
  nvidia-driver-435 nvidia-kernel-common-435 nvidia-kernel-source-435
  nvidia-utils-435 xserver-xorg-video-nvidia-435
Having done that, I rebooted and had full resolution again. Finally I was able to install kernel 5.3.0 once more and everything apears to be working OK.

User avatar
roblm
Level 12
Level 12
Posts: 4065
Joined: Sun Feb 24, 2013 2:41 pm

Re: Kernel Update 5.0.0.37.95 to 5.3.0.26.95 Kills nVidia Video Drivers

Post by roblm »

GSimpson wrote: ...
diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1 to /usr/lib/x86_64-linux-gnu/libGL.so.1.distrib by nvidia-340
dpkg-divert: error: mismatch on package
...
Those diversion and dpkg-divert error messages are sometimes seen when there was a previous nvidia-340 driver installation and then a newer driver installation is attempted:

Use this command to remove those messages:

Code: Select all

for FILE in $(dpkg-divert --list | grep nvidia-340 | awk '{print $3}'); do sudo dpkg-divert --remove $FILE; done

Then try installing nvidia-driver-390 again in Driver Manager or with the command:
apt install nvidia-driver-390

If there is still a problem, then use this command: apt install --fix-broken

Post Reply

Return to “Graphics Cards & Monitors”