Hi all,
This is an update on the NVIDIA 340.108 legacy driver revival for
Manjaro, and — alongside it — the 390.157 branch, both now built
on top of the Debian patchset.
CRITICAL — read this before downloading any ISO
There are two different XLibre variants in play:
- legacy ABI XLibre (
xlibre-xserver-legacyabi) — required by
the 340.108 driver. It cannot run modern NVIDIA drivers. - normal XLibre (
xlibre-xserver) — required by 390 / 470 /
580 / latest NVIDIA drivers. It cannot load the 340.108 X
driver module.
Note about Xorg: this split only affects XLibre. If you use
plain xorg-xserver instead of XLibre, there is no ABI split —
the same server works with all NVIDIA driver generations
(340 / 390 / 470 / 580 / latest). In theory the 340.108 driver
should load and work on plain Xorg without any additional handling.
This has never been tested by us. The ISOs and all the hardware
tests in this thread use XLibre. If you try plain xorg-xserver
with any of these drivers, please report back — we are curious
whether it “just works”.
Because of this, the ISOs are split into two stacks:
| Stack | Contains | XLibre variant |
|---|---|---|
| legacy340 | only nvidia-340xx-* |
legacy ABI |
| modern | nvidia-390xx-*, nvidia-470xx-*, nvidia-580xx-*, nvidia-* (latest) |
normal |
If you boot a 340-only ISO with a modern GPU, the kernel module
will load, nvidia-smi may work, but OpenGL will silently fall
back to Mesa llvmpipe (software rendering) — because the normal
XLibre ABI is missing. You can verify this with:
glxinfo | grep -i renderer
If it says llvmpipe, you are on software rendering.
If you want to use a modern GPU with a 340-only ISO, the fix is
to replace xlibre-xserver-legacyabi with xlibre-xserver on the
installed system. That is all we will say about that — figure out
the details yourself.
Patchset base
Both nvidia-340xx-utils and nvidia-390xx-utils are built on top
of the Debian patchset instead of the Arch/Manjaro one.
- Upstream base:
salsa.debian.org/nvidia-graphics-driver,
branches340xx/mainand390xx/main, maintained by
Andreas Beckmann (anbe@debian.org). - Manjaro adaptation / fork: maintained by
Gyöngyösi Gábor (@megvadulthangyaon GitHub / Manjaro forum).
Practical consequences:
- The Debian patchset base is 1:1 transferable back to Debian.
- The Manjaro-specific parts on top of that base (follow-up patches
for kernels beyond 6.19,mhwdintegration, packaging, build
testing, CVE backports) are maintained in the fork under
github.com/megvadulthangya.
Scope
- 340.108: revived for Manjaro. Not available in the official
repos — this is a community effort. - 390.157: still available in the official Manjaro repos.
The Debian-based patchset + our follow-up patches are also
available for it here, as an alternative to the official build.
Kernel support
Both drivers build successfully on the following kernels:
- 6.1.x / 6.1-rt
- 6.6.x / 6.6-rt
- 6.12.x / 6.12-rt
- 6.18.x
- 7.1.x
- 7.2.x
- 7.3.x-rc
The follow-up patches for the 6.18 – 7.3 range:
| Patch | Purpose |
|---|---|
kernel-6.18-workqueue-flush.patch |
flush_scheduled_work() → no-op / flush_workqueue(system_wq) on 6.18+ |
kernel-6.18-prime-fence-flush.patch |
Direct flush_scheduled_work() in nvidia-drm-prime-fence.c |
kernel-7.0-screen_info.patch |
screen_info → sysfb_primary_display.screen on 6.20+ |
kernel-7.2.patch |
drm_atomic_state → drm_atomic_commit rename, strncpy → strscpy |
kernel-7.3-acpi.patch |
struct acpi_driver removal (7.3+), stub nv_acpi_init/nv_acpi_uninit |
vma-lock-7.0-plus.patch |
VMA lock API changes (VMA_LOCK_OFFSET, __is_vma_write_locked) |
fixup-warnings.patch |
-Wunused-result on refcount_sub_and_test |
Security backports
Currently 3 CVE patches from the 390.157 release are ported to 340.108:
| Patch | CVE |
|---|---|
cve-2022-34670-nv-h-IS-OFFSET.patch |
CVE-2022-34670, 34677, 34680, 42257, 42258, 42259 (integer overflow / truncation) |
cve-2022-34674-vma-size.patch |
CVE-2022-34674 (VMA size validation) |
cve-2022-34670-nv-c-usage-count-overflow.patch |
Hardening (usage_count overflow) |
More CVE backports are WIP: the plan is to harvest source-level
security fixes from the 470 branch, then port them down to 390, then
to 340.
What is available now
Package set:
nvidia-340xx-utilsopencl-nvidia-340xxlib32-nvidia-340xx-utilslib32-opencl-nvidia-340xxnvidia-340xx-dkmsnvidia-340xx-settings(legacy settings tool)mhwd-nvidia-340xxmhwd-dbfork withvideo-nvidia-340xxand
hybrid-intel-nvidia-340xx-bumblebeeprofiles- Per-kernel prebuilt module packages for current Manjaro kernels
- Meta packages for
linuxandlinux-lts nvidia-driver-assistantintegration
Same package set exists for nvidia-390xx-*.
Test ISOs
Important: the ISOs are split into two stacks because of
the legacy-ABI XLibre requirement of the 340.108 driver (see the
CRITICAL section at the top). Use the one that matches your GPU
generation.
Awesome WM
| Stack | Contents | URL |
|---|---|---|
| 340-only (legacy) | 340xx only | https://sourceforge.net/projects/manjaro-awesome-iso/files/Releases/testing-legacy340nvidia-stack/ |
| modern | 390 / 470 / 580 / latest | https://sourceforge.net/projects/manjaro-awesome-iso/files/Releases/testing-nvidia-stack/ |
Xfce + Compiz
| Stack | Contents | URL |
|---|---|---|
| 340-only (legacy) | 340xx only | https://sourceforge.net/projects/manjaro-xfce-respin/files/Releases/testing-legacy340nvidia-stack/ — not yet available, coming soon |
| modern | 390 / 470 / 580 / latest | https://sourceforge.net/projects/manjaro-xfce-respin/files/Releases/testing-nvidia-stack/ |
The ISOs ship kernel 6.18.
Desktop environment notes
- The 340-only ISOs are built with legacy-ABI XLibre
(xlibre-xserver-legacyabi) — see the CRITICAL section at the top. - The modern ISOs are built with normal XLibre
(xlibre-xserver). - Wayland has never been tested for the 340xx branch. The 340.108
driver has no atomic modesetting and no modern Wayland/EGLStreams
support, so Wayland is expected to be broken or fallback to
software rendering. - Use Xorg/XLibre sessions only.
Real hardware tests
GeForce 210 (GT218) — 340xx
Thanks to a prohardver.hu community member:
- GPU: NVIDIA GeForce 210 (GT218)
- Kernel: 6.18.45-1-MANJARO
- Environment: Manjaro live ISO, Xfce + Compiz
- mhwd profile:
video-nvidia-340xxautomatically selected - Kernel module: loaded
- nvidia-settings: starts, reports driver 340.108
- nvidia-smi: reports the GeForce 210 correctly
- OpenGL: hardware renderer (NVIDIA)
NVS 295 — 340xx
-
OpenGL via
glxgears— hardware renderer -
Enemy Territory (ETLEGACY) — playable
-
CUDA samples (cuda60, cuda65) — run correctly
GeForce GTS 450 (GF106) — 390xx
-
Environment: modern XLibre ISO, kernel 6.18
-
OpenGL:
GeForce GTS 450/PCIe/SSE2, 4.6.0 NVIDIA 390.157— hardware renderer -
nvidia-smi: reports the GTS 450 correctly
-
Kernel module: loaded,
nvidia_drmwithmodeset=Y
CUDA
Two CUDA sample packages are available, both containing Debian 8
built CUDA-sample binaries:
cuda60cuda65
Both tested on NVS 295.
(You can build anything gcc48 is available in the repo)
Tested on GTS450
- ‘cuda91’
(You can build the samples or anything, gcc6 available in the repo)
Repositories
340xx branch
| Component | URL |
|---|---|
| Kernel module | GitHub - megvadulthangya/nvidia-340xx: NVIDIA kernel modules · GitHub |
| Driver / utils | GitHub - megvadulthangya/nvidia-340xx-utils · GitHub (branch develop) |
| Settings tool | manjaro-awesome/nvidia-340xx-settings at main · megvadulthangya/manjaro-awesome · GitHub |
| lib32 utils | manjaro-awesome/lib32-nvidia-340xx-utils at main · megvadulthangya/manjaro-awesome · GitHub |
| lib32-libxvmc | manjaro-awesome/lib32-libxvmc at main · megvadulthangya/manjaro-awesome · GitHub |
| gtk2 | manjaro-awesome/gtk2 at main · megvadulthangya/manjaro-awesome · GitHub |
| CUDA 6.0 with built samples | manjaro-awesome/cuda60 at main · megvadulthangya/manjaro-awesome · GitHub |
| CUDA 6.5 with built samples | manjaro-awesome/cuda65 at main · megvadulthangya/manjaro-awesome · GitHub |
| mhwd-db fork | GitHub - megvadulthangya/mhwd-db · GitHub (branch develop) |
390xx branch
| Component | URL |
|---|---|
| Kernel module | GitHub - megvadulthangya/nvidia-390xx: Kernel module pkgbuilds for manjaro · GitHub |
| Driver / utils | GitHub - megvadulthangya/nvidia-390xx-utils · GitHub (branch develop) |
Build testing suite (WIP)
I’m also working on a GitHub Action based testing suite that:
- Builds
nvidia-340xx-utilsandnvidia-390xx-utilsfrom their
respective repos. - Builds the corresponding
nvidia-340xxandnvidia-390xxkernel
module packages (separate repos). - Builds the official Manjaro flat PKGBUILDs and extracts the
make.logfrom every driver build in one go. - Produces normalized harvest reports for LLM triage.
The companion tool is harvest-nvidia-logs — a Python 3.10+
script that walks a diag tree of DKMS make.log files, splits them
into errors / warnings / known objdump noise / suspicious lines,
normalizes each warning to a stable signature, and emits a single
INDEX.md telling you which warning, if fixed once, unblocks the
most builds.
- Repo: GitHub - megvadulthangya/harvest-nvidia-logs: A tool to harvest make.logs from manjaro nvidia kernelmodul builds. · GitHub
- The
official-resultsbranch contains the harvested logs of the
official Manjaro driver builds, updated by the GitHub Action.
(Keep in mind: these results represent the state of the NVIDIA
packages on code.manjaro.org. I am not sure whether the Manjaro
team builds from there or not.)
This is mostly useful for packagers — @philm in particular — but
anyone maintaining a legacy NVIDIA branch on Manjaro may find it
helpful.
Next steps
Publish a short guide on which repositories need to be forked
and included to spin a 340xx-enabled ISO automatically.
Build an Xfce variant of the 340xx live ISO (currently only
Awesome WM exists).
More CVE backports from 470 → 390 → 340.
Thanks to everyone who can help test this museum-class driver…!



