Wayland forced to use software rendering

Hi, it’s me again…
After making this post (Firefox lags my entire system) I found out about nvidia_drm.modeset, while going through this https://github.com/elFarto/nvidia-vaapi-driver.
When i configured my kernel properties to enable this modeset, I find my desktop environment giving me a notification that it’s using software rendering. Then i proceeded to mess around trying to fix it for 3 hours straight (and meeting problems ranging from EGL not wanting to work, desktop environment disappearing sometimes, even being stuck on boot after a plymouth animation). In the end i managed to gain back everything by disabling the modeset but still end up with that software rendering thing, and essentially my whole system now runs far worse than it’s meant to be.

Notes:

  • I have a laptop using the nvidia optimus technology. (which i didn’t account for while enabling those hardware acceleration stuff)
  • I reinstalled the nvidia and nvidia-dkms drivers multiple times (ultimely ended up with nvidia-dkms)
  • xrandr --listproviders shows 0 providers but glxinfo | grep "OpenGL renderer" shows mesa intel (https://0x0.st/82yQ.txt) and nvidia-smi shows gpu info like normal (https://0x0.st/82ye.txt)
  • doing eglinfo gives me a really weird error, while doing eglinfo -p wayland seems to be fine.