How to install Nvidia Geforce 9400 driver in 24.04.1 LTS?

Here is the output of that command:

System:
  Host: MS-7309 Kernel: 6.8.0-47-generic arch: x86_64 bits: 64 compiler: gcc
    v: 13.2.0 clocksource: hpet avail: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.8.0-47-generic
    root=UUID=1065ddaa-13dd-45d4-889e-5d5fb29868cd ro quiet splash
    vt.handoff=7
  Desktop: MATE v: 1.26.2 wm: marco v: 1.26.2 with: mate-panel,plank
    tools: mate-screensaver vt: 7 dm: LightDM v: 1.30.0 Distro: MATE 24.04.1
    LTS (Noble Numbat) base: Ubuntu
Machine:
  Type: Desktop Mobo: MSI model: K9N6PGM2-V2 (MS-7309) v: 2.0
    serial: <superuser required> uuid: <superuser required>
    BIOS: American Megatrends v: 2.7 date: 11/22/2010
Battery:
  Message: No system battery data found. Is one present?
Memory:
  System RAM: total: 4 GiB available: 3.82 GiB used: 2.14 GiB (56.0%)
  Message: For most reliable report, use superuser + dmidecode.
  Array-1: capacity: 8 GiB slots: 2 modules: 2 EC: None
    max-module-size: 4 GiB note: est.
  Device-1: DIMM1 type: DDR2 detail: synchronous size: 2 GiB speed: 800 MT/s
    volts: N/A width (bits): data: 64 total: 72 manufacturer: Transcend
    part-no: JM800QLU-2G serial: 11110000
  Device-2: DIMM2 type: DDR2 detail: synchronous size: 2 GiB speed: 800 MT/s
    volts: N/A width (bits): data: 64 total: 72 manufacturer: Transcend
    part-no: JM800QLU-2G serial: 30280900
PCI Slots:
  Permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: AMD Athlon 64 X2 4600+ bits: 64 type: MCP arch: K8 level: v1
    built: 2004-06 process: AMD 90nm family: 0xF (15) model-id: 0x4B (75)
    stepping: 2 microcode: 0x62
  Topology: cpus: 1x cores: 2 smt: <unsupported> cache: L1: 256 KiB
    desc: d-2x64 KiB; i-2x64 KiB L2: 1024 KiB desc: 2x512 KiB
  Speed (MHz): avg: 1000 min/max: 1000/2400 scaling: driver: powernow-k8
    governor: schedutil cores: 1: 1000 2: 1000 bogomips: 9643
  Flags: 3dnow 3dnowext 3dnowprefetch apic clflush cmov cmp_legacy cpuid
    cr8_legacy cx16 cx8 de extapic extd_apicid fpu fxsr fxsr_opt ht lahf_lm
    lm mca mce mmx mmxext msr mtrr nopl nx pae pat pge pni pse pse36 rdtscp
    rep_good sep sse sse2 svm syscall tsc vme vmmcall
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass status: Not affected
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines; STIBP: disabled; RSB filling;
    PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA G96C [GeForce 9400 GT] vendor: CardExpert driver: nouveau
    v: kernel alternate: nvidiafb non-free: series: 340.xx
    status: legacy (EOL~2019-12-xx) last: release: 340.108 kernel: 5.4
    xorg: 1.20 arch: Tesla process: 40-80nm built: 2006-2013 pcie: gen: 1
    speed: 2.5 GT/s lanes: 16 ports: active: VGA-1
    empty: DVI-I-1,HDMI-A-1,VGA-2 bus-ID: 02:00.0 chip-ID: 10de:0641
    class-ID: 0300 temp: 56.0 C
  Display: x11 server: X.Org v: 21.1.11 compositor: marco v: 1.26.2 driver:
    X: loaded: modesetting unloaded: fbdev,vesa dri: nouveau gpu: nouveau
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1440x900 s-dpi: 96 s-size: 381x238mm (15.00x9.37")
    s-diag: 449mm (17.69")
  Monitor-1: VGA-1 model: BenQ GL951A serial: H2E01859019 built: 2014
    res: 1440x900 hz: 60 dpi: 90 gamma: 1.2 chroma: red: x: 0.643 y: 0.349
    green: x: 0.310 y: 0.627 blue: x: 0.149 y: 0.059 white: x: 0.314 y: 0.329
    size: 408x255mm (16.06x10.04") diag: 481mm (18.9") ratio: 16:10
    modes: 1440x900, 1280x800, 1152x864, 1280x720, 1024x768, 832x624,
    800x600, 640x480, 720x400
  API: EGL v: 1.5 hw: drv: nvidia nouveau platforms: device: 0 egl: 1.4
    drv: nouveau device: 1 drv: swrast gbm: egl: 1.4 drv: nouveau surfaceless:
    egl: 1.4 drv: nouveau x11: egl: 1.4 drv: nouveau inactive: wayland
  API: OpenGL v: 4.5 compat-v: 3.3 vendor: mesa v: 24.0.9-0ubuntu0.2
    glx-v: 1.4 direct-render: yes renderer: NV96 device-ID: 10de:0641
    memory: 494.1 MiB unified: no
Audio:
  Device-1: NVIDIA MCP61 High Definition Audio driver: snd_hda_intel v: kernel
    bus-ID: 00:05.0 chip-ID: 10de:03f0 class-ID: 0403
  Device-2: C-Media CMI8738/CMI8768 PCI Audio driver: snd_cmipci v: kernel
    bus-ID: 01:09.0 chip-ID: 13f6:0111 class-ID: 0401
  API: ALSA v: k6.8.0-47-generic status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: PipeWire v: 1.0.5 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active tools: pw-cat,pw-cli,wpctl
Network:
  Device-1: NVIDIA MCP61 Ethernet vendor: Micro-Star MSI type: network bridge
    driver: forcedeth v: kernel port: c480 bus-ID: 00:07.0 chip-ID: 10de:03ef
    class-ID: 0680
  IF: enp0s7 state: up speed: 100 Mbps duplex: full mac: 00:24:21:ed:55:cf
  IP v4: 192.168.211.101/24 type: dynamic noprefixroute scope: global
    broadcast: 192.168.211.255
  IP v6: fe80::fd55:fa70:61b4:793b/64 type: noprefixroute scope: link
  IF-ID-1: tun0 state: unknown speed: 10000 Mbps duplex: full mac: N/A
  IP v4: 10.98.0.2/16 type: noprefixroute scope: global
    broadcast: 10.98.255.255
  IP v6: fe80::be14:1532:cc1f:974/64 virtual: stable-privacy scope: link
  Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
  WAN IP: 169.150.196.74
Bluetooth:
  Message: No bluetooth data found.
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 521.66 GiB used: 205.65 GiB (39.4%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Patriot model: Burst size: 223.57 GiB
    block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s tech: SSD
    serial: C8B30706178100047128 fw-rev: 61.3 scheme: MBR
  ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital
    model: WD3200AUDX-56WNHY0 size: 298.09 GiB block-size: physical: 4096 B
    logical: 512 B speed: 3.0 Gb/s tech: N/A serial: WD-WMC1U4713041
    fw-rev: 1A01 scheme: MBR
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 110.66 GiB size: 108.37 GiB (97.92%)
    used: 18.09 GiB (16.7%) fs: ext4 dev: /dev/sda3 maj-min: 8:3 label: N/A
    uuid: 1065ddaa-13dd-45d4-889e-5d5fb29868cd
  ID-2: /media/xxx/DATA1 raw-size: 99.56 GiB size: 99.56 GiB (100.00%)
    used: 88.74 GiB (89.1%) fs: ntfs dev: /dev/sdb1 maj-min: 8:17 label: DATA1
    uuid: 3253680E779DF4A4
  ID-3: /media/xxx/DATA2 raw-size: 100.46 GiB size: 100.46 GiB (100.00%)
    used: 98.66 GiB (98.2%) fs: ntfs dev: /dev/sdb2 maj-min: 8:18 label: DATA2
    uuid: 3BEFAF3D162DD37A
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: partition size: 2 GiB used: 161.5 MiB (7.9%)
    priority: -2 dev: /dev/sda2 maj-min: 8:2 label: N/A
    uuid: 3dd8a994-618b-4925-a6e7-6d26fcd5cb58
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 110.91 GiB fs: ntfs label: WINDOWS
    uuid: 70221DD9221DA4DE
  ID-2: /dev/sdb3 maj-min: 8:19 size: 98.07 GiB fs: ntfs label: DATA3
    uuid: 4590CA2634F62354
USB:
  Hub-1: 1-0:1 info: full speed or root hub ports: 10 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-2: 2-0:1 info: full speed or root hub ports: 10 rev: 1.1
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 chip-ID: 1d6b:0001
    class-ID: 0900
  Device-1: 2-3:2 info: Pixart Imaging Optical Mouse type: mouse
    driver: hid-generic,usbhid interfaces: 1 rev: 2.0
    speed: 1.5 Mb/s (183 KiB/s) lanes: 1 mode: 1.0 power: 100mA
    chip-ID: 093a:2510 class-ID: 0301
Sensors:
  System Temperatures: cpu: 40.0 C mobo: N/A gpu: nouveau temp: 56.0 C
  Fan Speeds (rpm): N/A gpu: nouveau fan: 0
Repos:
  Packages: 2244 pm: dpkg pkgs: 2226 libs: 1244 tools: apt,apt-get,synaptic
    pm: snap pkgs: 18
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/kelebek333-ubuntu-nvidia-legacy-noble.sources
  Active apt repos in: /etc/apt/sources.list.d/ubuntu.sources
    1: deb http://archive.ubuntu.com/ubuntu/ noble noble-updates noble-backports main restricted universe multiverse
    2: deb http://security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse
Processes:
  CPU top: 5 of 271
  1: cpu: 200% command: ps pid: 15921 mem: 4.12 MiB (0.1%)
  2: cpu: 22.6% command: brave pid: 15832 mem: 255.1 MiB (6.5%)
  3: cpu: 21.5% command: brave pid: 15531 mem: 465.4 MiB (11.8%)
  4: cpu: 5.9% command: brave pid: 13806 mem: 212.6 MiB (5.4%)
  5: cpu: 5.8% command: mate-terminal pid: 15889 mem: 48.0 MiB (1.2%)
  Memory top: 5 of 271
  1: mem: 465.4 MiB (11.8%) command: brave pid: 15531 cpu: 21.5%
  2: mem: 415.6 MiB (10.6%) command: brave pid: 13759 cpu: 5.7%
  3: mem: 271.2 MiB (6.9%) command: brave pid: 13897 cpu: 2.3%
  4: mem: 255.1 MiB (6.5%) command: brave pid: 15832 cpu: 22.6%
  5: mem: 212.6 MiB (5.4%) command: brave pid: 13806 cpu: 5.9%
Info:
  Processes: 271 Power: uptime: 2h 22m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 1 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 1.48 GiB services: mate-power-manager,upowerd
    Init: systemd v: 255 target: graphical (5) default: graphical
    tool: systemctl
  Compilers: gcc: 13.2.0 Shell: Bash v: 5.2.21 running-in: mate-terminal
    inxi: 3.3.34

You might want to read about fixes for Random lockups with kernel error messages

Or rather the whole page on the Arch linux wiki:
https://wiki.archlinux.org/title/Nouveau

4 Likes

The driver was last updated almost decade ago, so:

  1. The kernel is likely not compatible any more; that's a peculiarity of Linux deployment - it's not "stable" the same way Windows is; over time, if a driver isn't kept up to date with kernel changes, it will break (as much as the kernel devs try to stick to a "don't break user space" principle).
  2. The tools and file-paths that scripts rely on often evolve over time. This is why the nvidia installer scripts eventually break, too.

The nouveau drivers really aren't a long-term solution (in my view) for running a desktop with an nvidia card.

I managed to resurrect a laptop with a Geforce GTS 360M - which is about 2 years later than the GeForce 9400 - by running Debian 11, with MATE desktop, along with these instructions for legacy drivers: [WORKAROUND] Debian 11 (Bullseye) and nvidia-legacy-340xx... - Debian User Forums

There was an issue with screen tearing which I resolved by using ForceFullCompositionPipeline when I was using an external monitor (via HDMI, duplicated display); see some of the answers here: manjaro - How to automatically force full composition pipeline for Nvidia GPU driver? - Unix & Linux Stack Exchange

I haven't yet fixed the tearing on a non-duplicated display. When I've confirmed a fix for that, I'll write it down somewhere.

1 Like

I'm curious if the rest of the system is as vintage as the graphics card? I have a multimedia Shuttle (SG31G2 circa 2007 or 2008) XPC that is used for analog and digital content. It is hooked to the stereo, TV, etc - and I run it using Ubuntu Studio 20.04.6 LTS - Graphics are the 1Gb nVidia 8400GS Which I had to use to continue to run the existing vintage attached hardware. nvidia driver is NVIDIA-Linux-x86_64-340.108 - I couldn't get it to any newer driver. Kernel is 5.4 That agrees with the output Thom's (tkn) command line shows.

If the nouveau driver doesn't work - then get a newer PCIe card. They usually are backward compatible to your v2 card slot. I'm just spitballing, but I like getting old hardware working.

Good luck
Jim

3 Likes