UPDATE:
Duckducking a bit I read:
nvidia-graphics-drivers-340 (340.108-0ubuntu8) hirsute; urgency=medium
- Drop support for the 340 driver, in favour of the nouveau driver
since it is no longer supported by NVIDIA:
Support timeframes for Unix legacy GPU releases | NVIDIA
Probably a solution:
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.
Not Ubuntu, but Debian.
lsmod |grep nvi
nvidia_drm 73728 7
drm_kms_helper 278528 1 nvidia_drm
nvidia_modeset 1204224 10 nvidia_drm
nvidia 35389440 404 nvidia_modeset
drm 626688 11 drm_kms_helper,nvidia,nvidia_drm
I would look for /etc/modprob.d/ whatever conf, if there’s something that may blacklist nvidia driver?
If there is, it is the cause why the driver is not loaded.
If that was an inplace upgrade (according to my readings it was), I can imagine nvidia dirver packages were not correctly upgraded. I’m not a user of Ubuntu, so I can just guess, some process may blacklisted nvidia driver?
However, the time propietary dirver was installed, that surely blakclisted the nouveau driver, so may be this machine took a sit between two chairs?
Just guessing…
If that was my machine, I’d remove all nvidia related package, something like
apt purge nvidia*
To be sure, I’d take a system snapshot with systemback.sh
Just in case…
After apt purge, I’d look for where the nouveau is blacklisted.
It should be something like /etc/modprobe.d/nvidia-blacklists-nouveau.conf
Reads like this:
cat /etc/modprobe.d/nvidia-blacklists-nouveau.conf
# You need to run "update-initramfs -u" after editing this file.
# see #580894
blacklist nouveau
I’d rename this file, say to nvidia-blacklists-nouveau.conf.bak, so it will be ignored.
I’d issue the update-initramfs -u
command, as it is suggested.
Then reboot…
If I’m right, Ubunut should boot up with the nouveau driver…
After that I’d try to reinstall the proprietary drivers, if still needed.