Difference between revisions of "Create a boot option for easy nvidia or nouveau display driver switching"

(boot-update)
(xcfgmaker deamon)
Line 59: Line 59:
  
 
Then create a new daemon:
 
Then create a new daemon:
<console>
+
{{File
###i## nano /etc/init.d/xcfgmaker  
+
|/etc/init.d/xcfgmaker |<pre>
 
#!/sbin/runscript
 
#!/sbin/runscript
  
Line 104: Line 104:
 
}
 
}
  
</console>
+
</pre>}}
  
 
Do not forget:
 
Do not forget:
Line 111: Line 111:
 
###i## rc-update add xcfgmaker boot
 
###i## rc-update add xcfgmaker boot
 
</console>
 
</console>
 
That's all kids ;)
 
  
 
=Additional links=
 
=Additional links=

Revision as of 15:03, January 28, 2014

This howto describes how to use nvidia and nouveau drivers on the same computer and kernel.

Note

{{{1}}}

You must know how to install NVIDIA Linux Display Drivers and x11-drivers/nouveau (package not on wiki - please add) (references at the end of the page). First, you need to configure your kernel and install nvidia drivers and nouveau. We assume that this stage is successfully passed.

boot-update

Next, the most important change:

{{{name}}}
{{{body}}}

After boot-update with the new settings, you should have something like:

# grep menuentry /boot/grub/grub.cfg | wc -l
2
# grep menuentry /boot/grub/grub.cfg
menuentry "Funtoo Linux [nouveau] - vmlinuz-2.6.32.71_p14-rh" {
menuentry "Funtoo Linux [nvidia] - vmlinuz-2.6.32.71_p14-rh" {

xcfgmaker deamon

# mkdir /etc/X11/video/;
# cd /etc/X11/video/;
# nano 10-monitor.conf.nouveau # make default config for nouveau. or copy existing config… 
# nano 10-monitor.conf.nvidia # also for nvidia

Then create a new daemon:

{{{name}}}
{{{body}}}

Do not forget:

# chmod +x /etc/init.d/xcfgmaker
# rc-update add xcfgmaker boot

Additional links