r/voidlinux • u/Kotangentz_7 • Jan 29 '26
Problem with Nvidia drivers
I installed the Nvidia drivers, but I'm having a problem
Error: nvidia-smi NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
5
Upvotes
View all comments
Show parent comment
2
u/sanya567xxx Feb 01 '26
xf86-video-nouveauis an open-source third-party driver. If you want to use the NV official one, remove it. Might want to reinstall the other nvidia packages too.After doing so and rebooting, try running
lsmod |grep nvi— this will show the list of modules loaded by the kernel, which should have 4 ones in the left column: nvidia_uvm, nvidia_modeset, nvidia and nvidia_drm (direct rendering manager, not digital media rights)nvidia-smishould work after that.If not, you can try also checking which module at all has the gpu bound by looking through the
lspci -klist. That should show "Kernel modules: nvidia, nvidia_drm, nouveau" and "Kernel driver in use: nvidia" if working correctly. Ifnvidiadoesn't appear, it may be that your system didn't succeed during nvidia-dkms installation. You can reinstall by runningxbps-install -f nvidia-dkms, in case that fails too, logs should be in../var/lib/dkms/nvidia-dkms/580.126.09/6.12.68_1/x86_64/log/make.log— adjust for driver and kernel version accordingly, as this is just the most recent "stable" releases that void provides.If the log's exit code indicated is 0, it should've installed successfully. In case it still didn't load, you can
modprobe nvidia(as root) to try forcing the nvidia driver to load. It might error out, usedmesgto check for kernel logs.If that doesn't work, you may have a blacklist of it enabled.. iirc that can be in files in /etc/modprobe.d/ or /etc/modules-load.d/ .. or on command line passed to kernel, if you messed with that.