Issues with missing menu options on nvidia-settings on arch linux

After installing the nvidia-lts drivers and nvidia-settings as instructed on the arch wiki, the xorg server starts fine and there are isn’t any apparent problem. However this error pops on apon execution of nvidia-settings via a terminal

ERROR: nvidia-settings could not find the registry key file or the X server is not accessible. This file should have
       been installed along with this driver at /usr/share/nvidia/nvidia-application-profiles-key-documentation. The
       application profiles will continue to work, but values cannot be prepopulated or validated, and will not be
       listed in the help text. Please see the README for possible values and descriptions.

and viewing the settings shows that on the left side menu shows I’m lacking

X server information
X server Display configuration
X screen 0

and finally PRIME profiles.

though that error goes away when i copy the nvidia-application-profiles-470.63.01-key-documentation into the same folder under the name nvidia-application-profiles-key-documentation though that doesnt actually fix the problem of lacking the menu enteries.

I have tried moving to the standard nvidia package and the standard kernel as well and the issue still exists.

I have also tried to run under sudo and the problem persists.

I did not need to run nvidia-xconf. My xorg.conf is empty. Running nvidia-xconf made startx freeze upon restart.

I have enabled DRM in the kernel boot parameters

I can run things specific apps on the gpu with PRIME fine. but i lack the menu option,

running nvidia-smi returns

Wed Aug 25 13:00:52 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.63.01    Driver Version: 470.63.01    CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   40C    P8     4W /  N/A |      5MiB /  5944MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A       662      G   /usr/lib/Xorg                       4MiB |
+-----------------------------------------------------------------------------+

here is my .xinitrc

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

xrandr --setprovideroutputsource modesetting NVIDIA-G0
xrandr --auto
setxkbmap -option caps:escape
xsetroot -cursor_name left_ptr &
exec dwm

the output of

glxinfo -B

is

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) UHD Graphics (CML GT2) (0x9bc4)
    Version: 21.2.1
    Accelerated: yes
    Video memory: 3072MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics (CML GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 21.2.1
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 21.2.1
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.2.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20


lspci -k returns

00:00.0 Host bridge: Intel Corporation 10th Gen Core Processor Host Bridge/DRAM Registers (rev 02)
        Subsystem: Hewlett-Packard Company Device 8741
        Subsystem: Hewlett-Packard Company Device 8741
        Kernel driver in use: proc_thermal
        Kernel modules: processor_thermal_device
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
        Subsystem: Hewlett-Packard Company Device 8741
00:12.0 Signal processing controller: Intel Corporation Comet Lake PCH Thermal Controller
        Subsystem: Hewlett-Packard Company Device 8741
        Kernel driver in use: intel_pch_thermal
        Kernel modules: intel_pch_thermal
00:14.0 USB controller: Intel Corporation Comet Lake USB 3.1 xHCI Host Controller
        Subsystem: Hewlett-Packard Company Device 8741
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
00:14.2 RAM memory: Intel Corporation Comet Lake PCH Shared SRAM
        Subsystem: Hewlett-Packard Company Device 8741
00:15.0 Serial bus controller [0c80]: Intel Corporation Comet Lake PCH Serial IO I2C Controller #0
        Subsystem: Hewlett-Packard Company Device 8741
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:15.1 Serial bus controller [0c80]: Intel Corporation Comet Lake PCH Serial IO I2C Controller #1
        Subsystem: Hewlett-Packard Company Device 8741
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci
00:16.0 Communication controller: Intel Corporation Comet Lake HECI Controller
        Subsystem: Hewlett-Packard Company Device 8741
        Kernel driver in use: mei_me
        Kernel modules: mei_me
00:17.0 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode]
        Subsystem: Hewlett-Packard Company Device 8741
        Kernel driver in use: ahci
00:1d.0 PCI bridge: Intel Corporation Comet Lake PCI Express Root Port #9 (rev f0)
        Kernel driver in use: pcieport
00:1d.5 PCI bridge: Intel Corporation Device 06b5 (rev f0)
        Kernel driver in use: pcieport
00:1d.6 PCI bridge: Intel Corporation Device 06b6 (rev f0)
        Kernel driver in use: pcieport
00:1d.7 PCI bridge: Intel Corporation Device 06b7 (rev f0)
        Kernel driver in use: pcieport
00:1f.0 ISA bridge: Intel Corporation Comet Lake LPC Controller
        Subsystem: Hewlett-Packard Company Device 8741
00:1f.3 Audio device: Intel Corporation Comet Lake PCH cAVS
        Subsystem: Hewlett-Packard Company Device 8741
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel, snd_soc_skl, snd_sof_pci
00:1f.4 SMBus: Intel Corporation Comet Lake PCH SMBus Controller
        Subsystem: Hewlett-Packard Company Device 8741
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801
00:1f.5 Serial bus controller [0c80]: Intel Corporation Comet Lake PCH SPI Controller
        Subsystem: Hewlett-Packard Company Device 8741
        Kernel driver in use: intel-spi
        Kernel modules: intel_spi_pci
01:00.0 VGA compatible controller: NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] (rev a1)
        Subsystem: Hewlett-Packard Company Device 8741
        Kernel driver in use: nvidia
        Kernel modules: nouveau, nvidia_drm, nvidia
01:00.1 Audio device: NVIDIA Corporation TU116 High Definition Audio Controller (rev a1)
        Subsystem: Hewlett-Packard Company Device 8741
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
01:00.2 USB controller: NVIDIA Corporation TU116 USB 3.1 Host Controller (rev a1)
        Subsystem: Hewlett-Packard Company Device 85fb
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
01:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU116 USB Type-C UCSI Controller (rev a1)
        Subsystem: Hewlett-Packard Company Device 85fb
        Kernel driver in use: nvidia-gpu
        Kernel modules: i2c_nvidia_gpu
06:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
        Subsystem: Samsung Electronics Co Ltd Device a801
        Kernel driver in use: nvme
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 16)
        DeviceName: Realtek Gaming GBE Family Controller
        Subsystem: Hewlett-Packard Company Device 8741
        Kernel driver in use: r8169
        Kernel modules: r8169
08:00.0 Unassigned class [ff00]: Alcor Micro AU6625 PCI-E Flash card reader controller
        Subsystem: Hewlett-Packard Company Device 8741
        Kernel driver in use: alcor_pci
        Kernel modules: alcor_pci
09:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter
        DeviceName: WLAN
        Subsystem: Hewlett-Packard Company Device 85f7
        Kernel driver in use: rtw_8822ce
        Kernel modules: rtw88_8822ce

here is my current nvidia-settings

if any other command output or info is needed ask.