You can check. If you need the libXNVCtrl library, here’s how to compile it manually:
- Clone the NVIDIA settings repository:
git clone --branch 470 https://github.com/NVIDIA/nvidia-settings.git
cd nvidia-settings/src/libXNVCtrl
- Compile the static library (optional):
make
.
This produces libXNVCtrl.a (static lib), but many tools require the dynamic .so version.
- To build the dynamic shared library:
gcc -fPIC -c NVCtrl.c -o NVCtrl.o
gcc -shared -o libXNVCtrl.so NVCtrl.o
- Install the library to a system path:
sudo cp libXNVCtrl.so /usr/lib64/
sudo ldconfig
- Verify the library is recognized:
ldconfig -p | grep XNVCtrl
If it doesn't work, remove it.
sudo rm /usr/lib64/libXNVCtrl.so
sudo ldconfig
Remove the source folder: ~/nvidia-settings