You sometimes need to set the coolbits value to overclock your GPU on Linux
You’ll need to install nvidia-xconfig
sudo dnf install nvidia-xconfig
Then you can set the cool bits value with the following command. Change 24 to the appropriate cool bits value. Refer to the link below.
sudo nvidia-xconfig --cool-bits=28
It’ll create a new xorg config file. Reboot to take advantage of cool bits being enabled.
Multiple GPUs
If you have multiple GPUs, you will need to do the following to enable cool bits on each GPU.
sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration
https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks#Enabling_overclocking