Support for legacy driver for dietpi bullseye -

workaround discussion?

not sure how much this will help

this is also a github workaround discussion

@MichaIng, thanks for this information and for taking the time investigating this issue to help me.

@MichaIng , @Joulinar and @pulpe. I really appreciate all your input, advice an recommendations. Thank you all, very kind!.

It took me some time, to finally find and alternative and definitive solution, for this issue after having tested nouveau driver.

As I had the card working on slackware 14.1 current, I got and interesting clue from this discussion. They pointed to this site providing: "a BASH script, which download NVIDIA installer, extract it, patch it and make new patched installer package. Currently this works with NVIDIA 340.108 / 390.157 / 418.113 / 435.21 / 470.182.03 drivers and latest 6.3, 6.2, 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. "

A treasure to solve this problem!!!. I tested this solution and worked perfect and flawlessly!!!. Site: inttf NVIDIA 340.xx, 390.xx, 470.xx Patcher for Kernel 6.3/6.2/5.19/5.14/5.13 [BASH Script] :: If Not True Then False

Check that site and video, to review the patch and compilation procedure.

I would like to reproduce the procedure to test this solution on stable DietPi current release, so others in DietPi community can benefit from this discussion.

  1. Download NVIDIA Legacy Driver.
#Download 340 NVIDIA legacy driver from:
Downloaded 340XX  Legacy Driver:
                                 Linux x64 (AMD64/EM64T) Display Driver
                                 Version:        340.108
                                 Release Date:   2019.12.23
                                 Operating System:       Linux 64-bit
                                 Language:       English (US)
                                 File Size:      66.92 MB
  1. Patch, compile and install
#Create working directory.
mkdir -p ~/NVIDIA
#Download NVIDIA legacy Driver at ~/NVIDIA.
#install dependencies.
# I upgraded DietPI current kernel to a supported 5.19. kernel. Not yet tested with other kernels. It should work as advertised.
sudo apt install linux-image-5.19.0-0.deb11.2-amd64-unsigned
sudo apt install linux-headers-$(uname -r) linux-source
systemctl reboot
sudo apt install wget patch
#depends to compile see: above @Joulinar response. 
sudo apt install binutils make apt install gcc build-essential
wget -O
chmod +x 
#patch legacy kernel.
./ -v 340.108
#compile and install patched driver
#follow instructions to deactivate nouveau driver.
sudo ./ 
#check results
less /var/log/nvidia-installer.log 
systemctl reboot
#Check boot dmesg messages to confirm 340 nvidia driver loading process.
  1. This was the card and testing environment information:
# cat /proc/cpuinfo | grep model | head -2
model           : 4
model name      : Intel(R) Pentium(R) 4 CPU 3.00GHz
NVRM: loading NVIDIA UNIX x86_64 Kernel Module  340.108  
Pached Driver:
Linux DietPi 5.19.0-0.deb11.2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.19.11-1~bpo11+1 (2022-10-03) x86_64 GNU/Linux
nvidia-installer:  version 340.108
NVIDIA(0): NVIDIA GPU GeForce 210 (GT218) at PCI:1:0:0 (GPU-0)
NVIDIA(0): Memory: 1048576 kBytes

Again to all of you, MANY THANKS for your help and support on this issue.

Thanks DietPi for bringing new air and health to this old and lovely PC station.

Enjoying iptv HD iptv streamming now… :slight_smile:

Best Regards.



Is this sufficient?

sudo apt install linux-headers-amd64

Also on Bullseye without backports this is the supported Linux 5.10. This explicitly pulls the x86_64 kernel headers for the kernel that is installed already, and as a meta package will be automatically upgraded whenever the kernel itself is. These instructions assure that ARM users do no unintentionally install the Debian kernel (which usually does not work without further changes to the bootloader).

These minimal toolchain should be sufficient:

sudo apt install make gcc libc6-dev

I haven’t had a closer look, but is the last part of the file name not the kernel version and should hence be 5.19, or 5.10 with default Debian Bulllseye kernel? If it is only about disabling nouveau, this should work regardless which kernel is used:

echo 'blacklist nouveau' > /etc/modprobe.d/disable-nouveau.conf

Since less is not installed OOTB:

pager /var/log/nvidia-installer.log

And systemctl reboot can be replaced with just reboot :slightly_smiling_face:.

1 Like