nvidia-legacy-304xx driver for Debian 10 (Buster)

Kernels & Hardware, configuring network, installing services

Re: nvidia-legacy-304xx driver for Debian 10 (Buster)

Postby stevepusser » 2019-11-24 01:16

How have you tested the card to see that it's working with that driver on antiX?

And how much would a used card cost that is new enough to build with the legacy drivers, anyway?
MX Linux packager and developer
User avatar
Posts: 12136
Joined: 2009-10-06 05:53

nvidia-legacy-304xx driver for Debian 10 (Buster)

Postby Len E. » 2019-11-24 05:50

Further to your questions, steven:

Since completing the Antix installation, with the indications from lshw and inxi
that the nvidia driver is active, I have no formal test program, with only about
1/2 hour of normal activity on Antix, with no apparent problems.
I always make a point of doing some browsing with Firefox, which I've found
in the past to most frequently cause crashes while using a nouveau driver.

I have no proficiency with internal PC hardware, so I've never considered a
replacement Graphics card. My understanding is that the nvidia card on each
of my 2 machines are an integral part of the motherboard, so I'm not knowledgeable
as to whether or not a new separate card could be installed.

Len E.
Posts: 20
Joined: 2018-02-12 18:48

Re: nvidia-legacy-304xx driver for Debian 10 (Buster)

Postby Len E. » 2019-12-30 03:42

(To all viewers: if you are PC-hardware-adept, stevepusser's recommendation
of a newer, replacement graphics card is likely the most sensible solution to
all of this. On the other hand, if you are PC-hardware-inept as I am, you might
find the following of some interest).

I've installed the nvidia-legacy-304xx driver on Debian 10 (32-bit, LXDE) in the following dubious manner:
1) revert to xserver-xorg_1.19.2 as described earlier in this post, 2019-11-21, 20:45
2) kernel replacement
-install 4.9.200-antix.1-686-smp-pae headers and image
-reboot, under advanced options, select the antix image
-remove 4.19 image and headers
-reboot into antix image, the only one left
3) follow EXACTLY the July 17, 2018 steps in the "nvidia-304 won't install" post,
except: leave out the patch.

I call this procedure dubious because, although I succeeded on the LXDE desktop, I
failed previously in trying to do the same thing on MX19, which uses the XFCE desktop, i.e.
it's not clear if it will work on Debian 10 on other than LXDE.

Len E.
Len E.
Posts: 20
Joined: 2018-02-12 18:48

nvidia-legacy-304xx driver for Debian 10 (Buster)

Postby Len E. » 2020-01-01 06:09

(Further to my update of 2019-12-29 19:42)

I repeated the process used for Debian 10 (32-bit, LXDE) on
Debian 10 (32-bit, XFCE) and it worked fine, with both
sudo lshw -C video and sudo inxi -Gxx commands indicating that
the nvidia driver was in place.

Len E.
Len E.
Posts: 20
Joined: 2018-02-12 18:48

nvidia-legacy-304xx driver for Debian 10 (Buster)

Postby Len E. » 2020-04-14 15:12

A recent development:

dolphin_oracle, an MX Linux expert, identified a solution to the subject problems
mentioned herein with MX 19:
from Settings -----> Window Manager Tweaks ----> Compositor,
disable the compositor before the actual nvidia driver installation.

With this adjustment, the results with MX 19 are successful and
consistent with the successes reported with Debian-10.n.0.

Len E.
Len E.
Posts: 20
Joined: 2018-02-12 18:48

Re: nvidia-legacy-304xx driver for Debian 10 (Buster)

Postby burrezo » 2020-11-15 15:38

Hi all, my two cents...

This is the way i've managed to resurrect an upgraded dinosaur: Asus P5N73-AM (chipset NForce 610i, integrated nvidia 7050) + Xeon x5450 [775 mod] + 4Gb Ram + SSD


[1] Fresh install debian-10.6.0-amd64-netinst.iso , base install, no apps, no extra packages, no desktop environment.... nothing. Once finished, update/upgrade as root:
Code: Select all
apt-get update && apt-get upgrade

[2] As root:
Code: Select all
apt install sudo neovim wget patch git binutils gcc make linux-headers-$(uname -r) libgtk2.0-0

[3] As root:
Code: Select all
usermod add -aG sudo YourUserName

[4] As root, edit your repository list (/etc/apt/sources.list), comment everything, and at the end, add: deb http://deb.debian.org/debian stretch main contrib non-free

[5] As root:
Code: Select all
apt-get update

[6] As root:
Code: Select all
apt install xserver-xorg-core xinit dwm suckelss-tools stterm

This will install Xorg v1.19 from stretch repositories (the packages dwm, suckless-tools and stterm only needed for a dwm tiling window manager installation)

[7] Edit your repository list (/etc/apt/sources.list), un-comment everything previously commented, and comment the last line you added before: #deb http://deb.debian.org/debian stretch main contrib non-free , and then, again, as root:
Code: Select all
apt-get update

[8] Reboot, and login as YourUserName

[9] Download de Nvidia official proprietary driver for your old nvidia GPU, in this case is a 7050, but I suppose this method will work with A LOT of old chipsets/cards ( https://www.nvidia.es/Download/driverRe ... px/123847/ <- 'SUPPORTED PRODUCTS' tab )
Code: Select all
wget https://us.download.nvidia.com/XFree86/Linux-x86_64/304.137/NVIDIA-Linux-x86_64-304.137.run

[10] Make the file executable:
Code: Select all
chmod +x NVIDIA-Linux-x86_64-304.137.run

[11] Extract, NOT execute, the file (note the '-x' at the end):
Code: Select all
./NVIDIA-Linux-x86_64-304.137.run -x

Directory 'NVIDIA-Linux-x86_64-304.137' is created.

[11] Get some patches from Jorge Maidana ( https://github.com/jorgem-seq ) FOLLOW & LIKE/STAR HIS WORK PLEASE!
Code: Select all
git clone https://github.com/jorgem-seq/NVIDIA-Linux-304.137-patches.git

[12] Navigate into the 'NVIDIA-Linux-x86_64-304.137' directory, and apply the patches, IN ORDER, up to the patch needed, depending on the kernel installed, so, in this case, with a clean install, the kernel is 4.19.0, so, only patches 0001, 0002, 0003, 0004 and 0005 are needed (adjust your path when patching, depending on where the files were downloaded, extracted, cloned, etc...)
Code: Select all
patch -p1 <../NVIDIA-Linux-x86_64-304.137-patches/patches/0001-disable-mtrr-4.3.patch
patch -p1 <../NVIDIA-Linux-x86_64-304.137-patches/patches/0002-pud-offset-4.12.patch
patch -p1 <../NVIDIA-Linux-x86_64-304.137-patches/patches/0003-nvidia-drm-pci-init-4.14.patch
patch -p1 <../NVIDIA-Linux-x86_64-304.137-patches/patches/0004-timer-4.15.patch
patch -p1 <../NVIDIA-Linux-x86_64-304.137-patches/patches/0005-usercopy-4.16.patch

[13] we need to execute the nvidia installer twice:
Code: Select all
sudo ./nvidia-installer
, the first time, will disable the nouveau drivers, and need to reboot:
Code: Select all
sudo reboot
, the second time, the installer return a fake warning about modprobe location, but will install nvidia drivers and modules ok, we need a final reboot.

[14] Check for nvidia modules:
Code: Select all
lsmod | grep nvidia

[15] Mark xorg and xinit as NOT upgradeable:
Code: Select all
sudo apt-mark hold xserver-xorg-core xinit

For listing packages status:
Code: Select all
dpkg –get-selections

[16] Edit/create your .xinitrc depending on your desktop environment and start the X server:
Code: Select all



[P:S.] If you want more resolution at tty when booting the pc, first, you need to know the available resolutions for your gpu:

Code: Select all
sudo apt install hwinfo
sudo hwinfo --framebuffer

Choose one supported by your monitor, and edit /etc/default/grub , un-comment / add:


Save/quit and:

Code: Select all
sudo update-grub
sudo reboot

Its recommended to increase font size:
Code: Select all
sudo dpkg-reconfigure console-setup

Choose font Terminus, size 14x28, for example.


Mod Note: oversized images replaced with plain links, please consider forum users with limited bandwidth — HoaS
Last edited by burrezo on 2020-11-18 09:22, edited 1 time in total.
User avatar
Posts: 1
Joined: 2020-11-15 12:00

Re: nvidia-legacy-304xx driver for Debian 10 (Buster)

Postby JaredPuffin » 2020-11-17 12:38

Len E. wrote:To stevenpusser:

I came across your comments on xorg upgrades or downgrades in a post
from the MXlinux forum: specifically in

Given your expertise in xorg upgrades and downgrades,
is it practical to downgrade the Buster xorg version to
the Stretch xorg version, such that the buster
xserver-xorg-core version 2.1.20-4-1 is in fact
repaced by the stretch xserver-xorg-core version, thereby solving my problem ??

If this approach is feasible, could you specify the
steps required to make it happen ??

Please advise.
Len E.

Even if nvidia-support and nvidia-kernel-common installed without
incident does not mean it was no incedent. Basicly instalation path could be broken
Posts: 1
Joined: 2020-11-17 12:13


Return to System configuration

Who is online

Users browsing this forum: No registered users and 26 guests