首先查看RandR版本
第一行一般都是1.3.5,但是第二行要1.4才可以继续,如果第二行是1.3的话你换个系统吧,ubuntu 13.04和linux mint 15都是1.4的xrandr -v
startx
第一行不是1.4.0的要自己编译
X Server需要1.13版本以上
先安装必要的包:
然后下载源码:sudo apt-get install autoconf automake utils-dev libtool libxrandr-dev
安装好后看看xrandr版本,确认2行的版本都在1.4以上git clone http://anongit.freedesktop.org/git/xorg/app/xrandr.git
cd xrandr
./autogen.sh
make
sudo make install
然后编辑/etc/default/grub
GRUB_CMDLINE_LINUX那行里面添加
重启后按正常的安装NV 官方驱动GRUB_CMDLINE_LINUX="rdblacklist=nouveau nouveau.modeset=0"
sudo update-grub
装好后别重启,重新运行X Windows Server,编辑/etc/X11/xorg.conf
按照下面的格式,根据自己的机器生成的xorg.conf改
保存然后在Home目录下新建文档.xinitrc,里面内容:Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "<BusID for NVIDIA device here>"
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
然后重启,如果成功了,重启后就能进入桌面xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
如果不成功的话,提示X Server启动失败。。。。
查看kern.log
如果像我这样提示的:cat /var/log/kern.log | grep NVRM
恭喜你,等主板BIOS升级或者NV升级驱动吧,没戏了,我搞了好多天,BIOS选项设置了N次了,都失败了,硬件问题我木办法NVRM: failed to copy vbios to system memory.
NVRM: RmInitAdapter failed! (0x30:0xffffffff:858)
NVRM: rm_init_adapter(0) failed