Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] switching between "nvidia / nouveau" drivers
Date: Sun, 24 Feb 2013 04:30:23
Message-Id: 20130224043002.GB3200@syscon7.inet
1 I'm trying to prevent next disaster with nvidia driver/kernel combination.
2 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.
3
4 Here is my configuration:
5
6 cat /etc/modprobe.d/blacklist.conf
7 blacklist nouveau
8
9 cat /etc/X11/xorg.conf
10 Section "Device"
11 Identifier "Nvidia card"
12 Driver "nvidia"
13 EndSection
14
15 eselect opengl list
16 Available OpenGL implementations:
17 [1] nvidia *
18 [2] xorg-x11
19
20 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?
21
22 /etc/init.d/xdm stop (X crashes at this moment)
23 modprobe -r nvidia
24 mv /etc/modprobe.d/blacklist.conf /etc/modprobe.d/blacklist.conf_backup
25 mv /etc/X11/xorg.conf /etc/X11/xorg.conf_nvidia
26 eselect opengl set xorg-x11
27 modprobe nouveau
28 mv /etc/X11/xorg.conf_nouveau /etc/X11/xorg.conf
29 /etc/init.d/xdm start (at this moment I should have login screen)
30
31 Did I miss anything? Will it work if I put it into a bash script?
32
33 --
34 Joseph

Replies

Subject Author
Re: [gentoo-user] switching between "nvidia / nouveau" drivers Paul Hartman <paul.hartman+gentoo@×××××.com>