wangchaoran 写了:13.4试过319.49的驱动(据说从319.12即开始支持双显卡),但是系统不幸壮烈牺牲,比用大黄蜂还惨(用大黄蜂3D效果虽然挂掉了,但至少分辨率正常,用319.49的驱动,分辨率变成了600x480),不过NVIDIA-319-setting中确实有关于双卡切换的选项。
贴吧里看到的,不知道有没有仁兄实验过啊
我的系统是Gentoo,其他发行版未作测试
依赖:
Linux Kernel >=3.9
xrandr >=1.4.0 (输入`xrandr --version`查看)
Xorg >=1.13 (输入`X -version`查看)
nvidia-drivers-319.12
安装好nvidia-drivers之后,配置xorg.conf:
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
#BusID这行根据实际情况填写
BusID "01:00:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
# Uncomment this line if your computer has no display devices connected to
# the NVIDIA GPU. Leave it commented if you have display devices
# connected to the NVIDIA GPU that you would like to use.
Option "UseDisplayDevice" "none"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
更改/etc/X11/xinit/xinitrc:
#加入下面两行
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
#下面根据实际填写, 我的是XFCE4
exec startxfce4
OK!输入startx即可看到桌面
补充: 1. 可能需要modesetting的X11驱动, gentoo系统的话把make.conf中改成这样VIDEO_CARDS="intel vesa modesetting nvidia"
2. 如果不用startx而是用图形登陆管理器的话,这样做会导致屏幕没有显示……因为必须在启动X后运行xrandr --setprovideroutputsource modesetting NVIDIA-0&&xrandr --auto才有图形界面