Nvidia-settings not working properly on Ubuntu 22.04

I have an RTX 2060 and it worked just fine in Ubuntu 20.04, but the moment I went to 22.04 it stopped working. I reinstalled the drivers and nvidia-smi seems to have a normal output, but nvidia-settings doesn’t display any of the settings I had before, even after making sure secure boot was disabled and deleting the xorg.conf