Due to the recent change to the Arch package with nvidia, I have attempted to rectified the problem by installing the nvidia-580 package like this
yay -S opencl-nvidia-580xx nvidia-580xx-utils nvidia-580xx-dkms lib32-nvidia-580xx-utils lib32-opencl-nvidia-580xx nvidia-580xx-settings
all the package are installed (I think)
I seeming gets mkinitcpio error in the process. (error attached as image)
Here is the config lines for /etc/mkinitcpio.conf
MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
SDDM seemed to be broken and no longer launch. However. I can still launch hyprland using hyprland and startplasma-wayland. Most application works, I think it's just sddm issue. But on inspection from systemctl it seemed fine.
I have no idea what I am doing.
Stuff to point out. I have also installed Nouveau package as backups. The system might have fell back to nouveau. But I have no idea if it did or not.