[SOLVED] Upgrading to 24.04.1 LTS after installing Nvidia legacy 340xx driver

Hello, I have a simple question to ask.

I have an old laptop running ubuntu 22.04.5 LTS and it works pretty well.

And im thinking about installing the nvidia legacy 340xx driver before upgrading to 24.04.1.

Specs:

  • Dell Inspiron 1720
  • Nvidia Geforce 8600M GT
  • Intel Core 2 Duo T7250
  • 4GB of RAM

Even if 24.04.1 cut support for legacy drivers, would it still work to install these legacy drivers, then upgrade to the latest ubuntu LTS release once its finished downloading the drivers? Thanks.

-Mohammad

Hi there! Good question!

Firstly, I’m impressed you’re getting good use out of a laptop from 2010 with only 4GB RAM!

If it’s working on 22.04, I’d be inclined to stay with that, if I were you. Is there some compelling feature or bugfix that you’re expecting in 24.04?

In answer to your question, I suspect that if you have a working nvidia 340 driver on 22.04, when you upgrade to 24.04 you’ll get migrated to the open source xserver-xorg-video-nouveau package.

In fact I’d be surprised if you’re not already using that package on 22.04, given the migration happened in that package in March 2021 (if my reading of the packages is correct).

Does lsmod | grep nv show the nvidia driver loaded?

Does dpkg -l xserver-xorg-video-nouveau show the nouveau driver already installed on your system?

Links:

well it didnt work in the first place, but after doing some tweaking, it did actually work!

Ill basically mark this as solved

1 Like

@msedge4433 the nvidia-legacy 340 driver is not currently working on kernels > 5.17.0. I have just upgraded to 24.04 and it stopped working. So suggest you stick with 22.04 for now.

Hey there,

In the future, if there is a solution, changing the title to [SOLVED] is great, but also in Discourse there’s a checkbox for which post is the solution. Check that and it helps mark which one is correct for other people to see (I have done this for you).

Cheers!

i installed the drivers from kelebec333’s ppa and without changing the kernel to an older version (im using 6.8.0-51-generic) it works fine.

Hi Mohammad,

I have exactly the same machine, but no luck for me using kelebek333 legacy driver on fresh install Lubuntu 24.04.1 LTS and kernel 6.8.0-51-generic. Basically getting black screen and tried copying over /etc/X11/xorg.conf from my working Lubuntu 22.04 LTS to no avail.

Could you please share what tweaks did you do to fix the issue?

I have just been through this on an old machine going up to 22.04, these were the steps…

If you are still looking for an answer, the solution is: ppa:kelebek333/nvidia-legacy

Installing the drivers from PPA, nvidia-updates-340 is available.

So, install the PPA:

sudo add-apt-repository ppa:kelebek333/nvidia-legacy

sudo apt update

next, you need to install the packages:

sudo apt install nvidia-340-updates nvidia-340-updates-dev xorg-modulepath-fix

Then, reboot. You should have the NVidia drivers 340.108 running fine.

1 Like

On 24.04. I did the above to add 340 driver support via PPA. When i reboot i still have a black screen. Even in recovery mode from GRUB menu -
I can ssh from another computer in to my 24.04 machine.

I seem to be in the same predicament as pglee. Followed steps from melonski and have a 24.04 that I can ssh into, see Xorg running 100% but I have no X display. The NVidia logo flashes briefly during boot up.
Did anyone get this working on 24.04?

I have the same issue unfortunately. Nvidia logo, then a distorted/black screen. It’s a 2009 Mac Mini with Geforce 9400.

Hi,
This do not work on my Dell Precision m4500. Your steps are different from one present/listed after “sudo apt update” (second step). I go strait according to your suggestion with "sudo apt install nvidia-340-updates … " and then, reboot. Unfortunately now even recovery mode is not working :frowning:

Hi everyone,

This is how I made it work on my Ubuntu 24.04 install after hitting my head against the wall for a long time… :slight_smile:

Nouveau is extremely buggy on my system, with visual glitches that ultimately render the desktop unusable, so that was not an option for me.

I installed the recommended ppa ( ppa:kelebek333/nvidia-legacy) that used to work for me in previous ubuntu versions (including 22.04) but this time did not work for me: the nvidia driver loaded in the kernel, but I got the infamous black login screen.

Reading on Linux Mint forums, I noticed Butterfly (the username for the kelebek333 ppas) asked a user with issues to try it’s build ppa (where the packages from Debian Sid are located), and that actually worked for me:

sudo add-apt-repository ppa:kelebek333/build
sudo apt install nvidia-legacy-340xx-driver

That got me to the login screen and I was able to start a new visual session, but there was a problem when launching some applications (including Nautilus!): the windows would not show.

After a lot of research, I found that the GTK4 renderer needed to be forced to cairo to make it work, and the way to do that globally is to edit the environment file:

sudo nano /etc/environment

and adding the following line of code to it:

GSK_RENDERER=cairo

After rebooting most things are working properly (I am having issues with flutter apps like RuskDesk), but everthing else seems to be working file.

What I didn’t try was to force the rendered to cairo with the original ppa:kelebek333/nvidia-legacy repository: it might work, but I am not touching my system any longer! :crazy_face:

I hope that helps people getting the black login screen.