How to change from dropped legacy nvidia to nouveau?

I have been digging into various scripts, not my forte so it is tedious and arduous.

So it looks like all I have to do is remove the nonfree stuff, denylisting, etc, and then nouveau will “just work”, is that correct?
(because I already have video-linux installed, via auto install of open-source driver)

I haven’t yet found the uninstall magic, so might need to just make a list of what the installers do and work backwards. Best bet looks to be the post_remove() function in pci/graphic_drivers/nvidia/MHWDCONFIG · master · Applications / mhwd-db · GitLab (needs more followup)

Notes about files to look into from rummaging around gitlab:

/etc/X11/mhwd.d/nvidia.conf
/etc/modprobe.d/mhwd-gpu.conf
/etc/modules-load.d/mhwd-gpu.conf
/etc/mhwd-x86_64.conf
/etc/X11/xorg.conf.d/90-mhwd.conf

To do:

  • Check files
  • More review of scripts
  • Look into modset
  • Look xorg config
  • Make list of packages
  • Look for older gitlab (from before dropped) to see if exceptions for 340 drivers

Sources: