I'm trying to figure out a good way to automatically use the nouveau driver when I boot the xen kernel but use the proprietary nvidia driver when I boot the non-xen kernel.
Have others done this? I was thinking I could use rdblacklist=nouveau in grub.cfg when booting xen and then have a startup script that checks if the nouveau driver is loaded. This script could symlink xorg.conf to the nvdia config file when the nouveau module is not loaded and remove the symlink if it exists when the nouveau module is loaded. Would this approach work? Is there a better way to do it?