I'm trying to prevent next disaster with nvidia driver/kernel combination.
I'm running "nvidia" driver and installed "nouveau" as module. If for any
reason nvidia or nouveau will stop working I want to just run a sript and use other one.
Here is my configuration:
cat /etc/modprobe.d/blacklist.conf
blacklist nouveau
cat /etc/X11/xorg.conf
Section "Device"
Identifier "Nvidia card"
Driver "nvidia"
EndSection
eselect opengl list
Available OpenGL implementations:
[1] nvidia *
[2] xorg-x11
In order to switch it to "nouveau" I would need to unload the nvidia module, but I can not do it when it is in use so I need to stop "xdm" first, am I correct?
/etc/init.d/xdm stop (X crashes at this moment)
modprobe -r nvidia
mv /etc/modprobe.d/blacklist.conf /etc/modprobe.d/blacklist.conf_backup
mv /etc/X11/xorg.conf /etc/X11/xorg.conf_nvidia
eselect opengl set xorg-x11
modprobe nouveau
mv /etc/X11/xorg.conf_nouveau /etc/X11/xorg.conf
/etc/init.d/xdm start (at this moment I should have login screen)
Did I miss anything? Will it work if I put it into a bash script?
--
Joseph