注意:
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Make.conf/VIDEO CARDS/NVIDIA and Nouveau Driver Switching
< Make.conf | VIDEO CARDS
Jump to navigation
Jump to search
Important
This page needs updates to address the use of libglvd in Funtoo 1.4+
This howto describes how to use nvidia and nouveau drivers on the same computer and kernel.
Note
You must know how to install x11-drivers/nvidia-drivers and No results (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
The most important change: edit /etc/boot.conf:
/etc/boot.conf
boot {
generate grub
default "Funtoo Linux [nvidia]"
# or
# default "Funtoo Linux [nouveau]"
timeout 3
}
color {
normal cyan/blue
highlight blue/cyan
}
display {
#gfxmode 1280x800
#font unifont.pf2
}
"Funtoo Linux [nvidia]" {
kernel vmlinuz[-v]
params += ro console=tty1 quiet <other standard boot options>
params += nouveau.blacklist=true vga=791 # nouveau.blacklist=true is important
# or
# params += nouveau.blacklist=true video=uvesafb:1440x900-8,mtrr:2
}
"Funtoo Linux [nouveau]" {
kernel vmlinuz[-v]
params += ro console=tty1 quiet <other standard boot options>
params += nvidia.blacklist=true # nvidia.blacklist=true is important
}
Next, run boot-update.
After boot-update has been run, you should have something like:
root # grep menuentry /boot/grub/grub.cfg | wc -l 2 root # 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
root # mkdir /etc/X11/video/; root # cd /etc/X11/video/; root # nano 10-monitor.conf.nouveau # make default config for nouveau. or copy existing config… root # nano 10-monitor.conf.nvidia # also for nvidia
Then create a new daemon. Edit the file /etc/init.d/xcfgmaker:
/etc/init.d/xcfgmaker
#!/sbin/openrc-run
# by http://wiki.sabayon.org/index.php?title=HOWTO:_Create_a_boot_option_for_easy_dual_to_single_display_switching
# To be placed in /etc/init.d/
# Run Command: rc-update add xcfgmaker boot
depend()
{
need localmount
before xdm-setup
before xdm
before alsasound
}
start()
{
cmdline_display_mode_exist=$(cat /proc/cmdline
Do not forget:
root # chmod +x /etc/init.d/xcfgmaker root # rc-update add xcfgmaker boot