amshafer / nvidia-driver

Fork of the Nvidia FreeBSD driver to port the nvidia-drm.ko module from Linux
43 stars 5 forks source link

NVIDIA Linux libraries seem to cause issues #15

Open TeknosQuet opened 12 months ago

TeknosQuet commented 12 months ago

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.

amshafer commented 11 months ago

Thanks for reporting! Two relevant things:

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.

TeknosQuet commented 11 months ago

Does the order matter when installing your nvidia-driver port and the updated linux-nvidia-libs package, or should it be fine?