Hi,
About the nvidia driver (proprietary one) :
According to nvidia driver website, the last driver version supporting FX5200 is nvidia-173 and, yes, like you said, Ubuntu 14.04 was the last supporting version https://launchpad.net/ubuntu/+source/nvidia-g … .14.39-0ubuntu3
So the kernel module probably won't build in newer kernels. And without the kernel module, no hardware support.
If you really want to go this way, you should be able to configure something usable with VirtualGL + a KVM virtual machine running 14.04 + PCIe passthrough. But... that may be painfull
About Nouveau driver :
My daily computer runs Linux + Nvidia cards for around 10years, but i never ever used Nouveau. So my experience here is a bit limited.
While the proprietary driver is an all in one package providing the driver + a closed source OpenGL lib. Nouveau is a Gallium3d driver.
Gallium3D is a kind of generic API for drivers, in an attempt to standardize most free/opensource drivers code. Drivers using Gallium3D are exposing a similar API interface.
The OpenGL implementation used is Mesa. And Mesa talks to the driver using the Gallium3D API.
So (again, i can be wrong), the OpenGL api version reported by the system is probably independant from the Gallium3d driver used as backend.
So you can probably have a support for OpenGL 3.X or 4.X with any card with a decent Gallium3D driver (ATI/AMD, Intel, Nvidia, whatever).
Mesa/Gallium is doing the magic by compiling the GL operations for the card's using some generated shader code.
According to ubuntu packages list, mesa version for Ubuntu 18.04 is 19.2 and should support OpenGL 4.5 (see here https://en.wikipedia.org/wiki/Mesa_(com ... ering_APIs)
On your system, there should be something to install / configure to enable Mesa support for the GL api version you need.
Or maybe check that Gallium3D is really used (and not a software rasterizer like llvmpipe or swrast)
"Hello, my friend. Stay awhile and listen..."
My collection (not up to date)