NVIDIA Optimus [Use NVIDIA graphics only] [GDM] [LightDM] [SDDM] + hardware acceleration for chrome/edge
The proprietary NVIDIA driver can be configured to be the primary rendering provider. based on https://wiki.archlinux.org/title/NVIDIA_Optimus#Use_NVIDIA_graphics_only
- git clone or manual download https://github.com/JonathanSanfilippo/nvidia-scripts-Archlinux.git
- cd nvidia-scripts-Archlinux
- [choose your Display Manager] cd GDM-DisplayManger
- chmod +x *
- ./nvidia.sh
- reboot
- add flags in usr/share/applications/microsoft-edge.desktop --enable-features=VaapiVideoEncoder