1 |
On 02/25/13 09:10, Paul Hartman wrote: |
2 |
>On Sat, Feb 23, 2013 at 10:30 PM, Joseph <syscon780@×××××.com> wrote: |
3 |
>> I'm trying to prevent next disaster with nvidia driver/kernel combination. |
4 |
>> I'm running "nvidia" driver and installed "nouveau" as module. If for any |
5 |
>> reason nvidia or nouveau will stop working I want to just run a sript and |
6 |
>> use other one. |
7 |
>> |
8 |
>> Here is my configuration: |
9 |
>> |
10 |
>> cat /etc/modprobe.d/blacklist.conf |
11 |
>> blacklist nouveau |
12 |
>> |
13 |
>> cat /etc/X11/xorg.conf |
14 |
>> Section "Device" |
15 |
>> Identifier "Nvidia card" |
16 |
>> Driver "nvidia" |
17 |
>> EndSection |
18 |
>> |
19 |
>> eselect opengl list |
20 |
>> Available OpenGL implementations: |
21 |
>> [1] nvidia * |
22 |
>> [2] xorg-x11 |
23 |
>> |
24 |
>> In order to switch it to "nouveau" I would need to unload the nvidia module, |
25 |
>> but I can not do it when it is in use so I need to stop "xdm" first, am I |
26 |
>> correct? |
27 |
>> /etc/init.d/xdm stop (X crashes at this moment) |
28 |
>> modprobe -r nvidia |
29 |
>> mv /etc/modprobe.d/blacklist.conf /etc/modprobe.d/blacklist.conf_backup |
30 |
>> mv /etc/X11/xorg.conf /etc/X11/xorg.conf_nvidia |
31 |
>> eselect opengl set xorg-x11 |
32 |
>> modprobe nouveau |
33 |
>> mv /etc/X11/xorg.conf_nouveau /etc/X11/xorg.conf |
34 |
>> /etc/init.d/xdm start (at this moment I should have login screen) |
35 |
>> |
36 |
>> Did I miss anything? Will it work if I put it into a bash script? |
37 |
> |
38 |
>What about console framebuffer (if you use one) and KMS? I wonder if |
39 |
>you need to do something about those. |
40 |
|
41 |
I've solved this problem. It is not possible to switch without rebooting, so the correct procedure would be: |
42 |
|
43 |
CORRECT PROCES TO FOLLOW to switch between nvidia and noveau. |
44 |
(assuming the kernel is using "nvidia") to switch to noveau: |
45 |
|
46 |
mv /etc/modprobe.d/blacklist.conf_nvidia /etc/modprobe.d/blacklist.conf |
47 |
eselect opengl set xorg-x11 |
48 |
mv /etc/X11/xorg.conf_nouveau /etc/X11/xorg.conf |
49 |
reboot |
50 |
|
51 |
Assuming: |
52 |
cat blacklist.conf_nouveau |
53 |
blacklist nouveau |
54 |
|
55 |
cat blacklist.conf_nvidia |
56 |
blacklist nvidia |
57 |
|
58 |
cat xorg.conf_nouveau |
59 |
# uncomment when the card gets IN |
60 |
|
61 |
Section "Device" |
62 |
Identifier "nouveau" |
63 |
Driver "nouveau" |
64 |
EndSection |
65 |
|
66 |
at xorg.conf_nvidia |
67 |
Section "Device" |
68 |
Identifier "Nvidia card" |
69 |
Driver "nvidia" |
70 |
EndSection |
71 |
|
72 |
|
73 |
-- |
74 |
Joseph |