I don't know the exact solution for your problem, but if I were you I would focus on two things:
Double check that you enabled Nvidia Optimus in your BIOS.
Double check that your nvidia card actually runs (activated). Try something like optimus-manager in a hybrid mode and run your xrandr --listproviders again.
Before you blindly run any command that is offered by folks in this thread, double check the list of packages you are going to delete. For some obvious reasons your fonts, GUI themes and other UI elements may be treated as "unused" by the package manager.
Errors in journalctl are marked with a red color (or display errors only by using a -p err flag. Errors in Xorg logs are marked with EE letters and warnings with WW letters.
Your "spare" RAM is not really "spare". Linux utilizes unused RAM for kernel cache and other things (mostly for inode).
A bonus: https://www.linuxatemyram.com/
I don't know the exact solution for your problem, but if I were you I would focus on two things:
optimus-managerin ahybridmode and run yourxrandr --listprovidersagain.Before you blindly run any command that is offered by folks in this thread, double check the list of packages you are going to delete. For some obvious reasons your fonts, GUI themes and other UI elements may be treated as "unused" by the package manager.
Errors in
journalctlare marked with a red color (or display errors only by using a-p errflag. Errors in Xorg logs are marked withEEletters and warnings withWWletters.