NVIDIA Linux libraries seem to cause issues
NVIDIA driver version used: 525.78.01 (newer versions 530+ have weird artifact issues on my GPU) OS: FreeBSD 13.2-RELEASE
Apparently when installing this fork of nvidia-driver, all appears fine at first. I can use the driver for normal things such as running a window manager with compositing, hardware acceleration, etc. anything you'd normally be able to do on FreeBSD. nvidia.ko, nvidia-modeset.ko, and nvidia-drm.ko are all present and work just fine.
However, when trying to run something like Steam via Linuxulator or something like glxgears in /compat/linux/bin/glxgears, it fails to load anything. For Steam, I get a segmentation fault presumably due to library issues; for glxgears, I get an X Error relating to OpenGL which also hints to weird library issues. Here's what I get:
[~] % /compat/linux/bin/glxgears
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 36
Current serial number in output stream: 37
I'm not sure how to attempt fixing this issue because I've tried this with AND without the linux-nvidia-libs package, both with the same result. Is it possible to get this working without resorting to manually installing the NVIDIA libs for a different Linuxulator chroot (like one with Ubuntu for example)?
Thanks in advance.
Thanks for reporting! Two relevant things:
- The reason for your problem is that this repository uses the NVIDIA installer, which does not actually install 64-bit Linux libraries, only 32-bit Linux ones. You've probably installed the
linux-nvidia-libsport, which has libs of a different version that do not match the kernel modules. I'm guessingdmesgwill show some warning messages saying that. - 32-bit Linux applications look like they segfault, which I think is unrelated but will look into. This doesn't affect much unless you use steam like I do sometimes, in which case it's pretty obnoxious
You can install the nvidia-driver, nvidia-drm-515-kmod, and ports from https://github.com/amshafer/freebsd-ports and update linux-nvidia-libs port from pkg so they are all at 535.54.03 and that should resolve the conflict.
Does the order matter when installing your nvidia-driver port and the updated linux-nvidia-libs package, or should it be fine?