Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] switching between "nvidia / nouveau" drivers
Date: Mon, 25 Feb 2013 15:35:11
Message-Id: CAEH5T2MG7xCQwRYeWSYWrB-gPnsZ3FMTODoyB7htVf1SV1MB+g@mail.gmail.com
In Reply to: Re: [gentoo-user] switching between "nvidia / nouveau" drivers by Paul Hartman
1 On Mon, Feb 25, 2013 at 9:10 AM, Paul Hartman
2 <paul.hartman+gentoo@×××××.com> wrote:
3 > On Sat, Feb 23, 2013 at 10:30 PM, Joseph <syscon780@×××××.com> wrote:
4 >> I'm trying to prevent next disaster with nvidia driver/kernel combination.
5 >> I'm running "nvidia" driver and installed "nouveau" as module. If for any
6 >> reason nvidia or nouveau will stop working I want to just run a sript and
7 >> use other one.
8 >>
9 >> Here is my configuration:
10 >>
11 >> cat /etc/modprobe.d/blacklist.conf
12 >> blacklist nouveau
13 >>
14 >> cat /etc/X11/xorg.conf
15 >> Section "Device"
16 >> Identifier "Nvidia card"
17 >> Driver "nvidia"
18 >> EndSection
19 >>
20 >> eselect opengl list
21 >> Available OpenGL implementations:
22 >> [1] nvidia *
23 >> [2] xorg-x11
24 >>
25 >> In order to switch it to "nouveau" I would need to unload the nvidia module,
26 >> but I can not do it when it is in use so I need to stop "xdm" first, am I
27 >> correct?
28 >> /etc/init.d/xdm stop (X crashes at this moment)
29 >> modprobe -r nvidia
30 >> mv /etc/modprobe.d/blacklist.conf /etc/modprobe.d/blacklist.conf_backup
31 >> mv /etc/X11/xorg.conf /etc/X11/xorg.conf_nvidia
32 >> eselect opengl set xorg-x11
33 >> modprobe nouveau
34 >> mv /etc/X11/xorg.conf_nouveau /etc/X11/xorg.conf
35 >> /etc/init.d/xdm start (at this moment I should have login screen)
36 >>
37 >> Did I miss anything? Will it work if I put it into a bash script?
38 >
39 > What about console framebuffer (if you use one) and KMS? I wonder if
40 > you need to do something about those.
41
42 I found some info about toggling KMS and framebuffer in the nouveau wiki:
43
44 http://nouveau.freedesktop.org/wiki/KernelModeSetting