public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] switching between "nvidia / nouveau" drivers
@ 2013-02-24  4:30 Joseph
  2013-02-25 15:10 ` Paul Hartman
  0 siblings, 1 reply; 4+ messages in thread
From: Joseph @ 2013-02-24  4:30 UTC (permalink / raw
  To: gentoo-user

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-25 19:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-24  4:30 [gentoo-user] switching between "nvidia / nouveau" drivers Joseph
2013-02-25 15:10 ` Paul Hartman
2013-02-25 15:34   ` Paul Hartman
2013-02-25 19:14   ` Joseph

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox