Skip to content

WIP: add nvidia driver

Jean-Baptiste Volatier requested to merge vjb/nonguix:master into master

An effort to add the nvidia proprietary driver. Currently it looks like the kernel is able to load the modules, and Xorg the drivers but applications using hardware acceleration do not work. As an example on my machine: gdm fails with this error in the greeter.log:

libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast

I think swrast is the fallback driver in case libGL encounters errors.

Given that the nvidia kernel modules are loaded and that LoadModule: "nvidia" seems to be successful (looking at the greeter.log) I think that this is due to a library using the libGl provided by mesa instead of the one provided by nvidia-driver.

A way forward could be to be compile mesa with libglvnd support (which is already packaged in guix repos), this lib is the a "GL Vendor-Neutral Dispatch library" it looks like this is the way it works on Archlinux, then libglvnd will provide libGL.so and friends and dispatch to the correct libraries.

Merge request reports