[i=s] 本帖最后由 大宝 于 2010-10-16 11:23 编辑 [/i]
最近发现,10.04 之后搞不定 Nvidia 官方驱动的人又多起来了
现在就教大家如何来安装 Nvidia 驱动
[color=Red]10.10 也可参考此教程[/color]
1、屏蔽掉已经集成的 nouveau 模块,这是关键点!
Ctrl + Alt + T,启动终端,输入以下内容:[code]sudo gedit /etc/modprobe.d/blacklist.conf[/code]在文末另起段落,添加:[code]#nvidia
blacklist nouveau[/code]2、如果之前从源中安装过闭源驱动的,使用以下命令移除驱动
若没有安装过,则跳入下一条[code]sudo apt-get --purge remove nvidia-*[/code]3、进入 Nvidia 官方网站查找并下载符合自己显卡型号的最新驱动:http://www.nvidia.cn/Download/Find.aspx?lang=cn
[attach]32474[/attach]
显卡型号可用此命令查看:[code]lspci|grep VGA[/code]4、将驱动放置于自己的家目录中,Ctrl + Alt + F1 切入终端模式,使用以下命令进行安装[code]sudo /etc/init.d/gdm stop
sudo chmod +x NVIDIA-Linux-x86-260.19.12.run
sudo ./NVIDIA-Linux-x86-260.19.12.run[/code]注意:“NVIDIA-Linux-x86-260.19.12.run”是我的显卡驱动名,你的驱动不一定叫这个名字,请自己看清楚了
安装过程中的选择操作,请参考我之前发过的教程帖,此处不再赘述:http://www.linuxdiyf.com/bbs/thread-170056-1-1.html
5、最后使用以下命令重启电脑,OK
[code]sudo reboot[/code]
若不想重启电脑,也可使用以下命令启动显卡
[code]sudo /etc/init.d/gdm start[/code]
[attach]32473[/attach]
skybuler 于 2012-04-19 12:25:42发表:
好贴。
zyzhang12 于 2012-03-09 11:20:10发表:
很悲崔的是 试过之后还是无法startx
唉 卸载安装程序 重新安装原始驱动。。。
装上附加驱动 就重启黑屏只能在控制台 进入恢复模式查看日志:
::::::::::::::
/var/log/Xorg.0.log
::::::::::::::
[ 66.380]
X.Org X Server 1.9.0
Release Date: 2010-08-20
[ 66.380] X Protocol Version 11, Revision 0
[ 66.380] Build Operating System: Linux 2.6.24-27-server i686 Ubuntu
[ 66.380] Current Operating System: Linux zyzhang 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686
[ 66.380] Kernel command line: BOOT_IMAGE=/vmlinuz-2.6.35-22-generic root=UUID=c10e7a66-4e41-4e40-bfb5-6ed679c7b24a ro quiet splash
[ 66.381] Build Date: 16 September 2010 05:39:22PM
[ 66.381] xorg-server 2:1.9.0-0ubuntu7 (For technical support please see http://www.ubuntu.com/support)
[ 66.381] Current version of pixman: 0.18.4
[ 66.381] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 66.381] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 66.381] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Mar 9 08:37:30 2012
[ 66.381] (==) Using config file: "/etc/X11/xorg.conf"
[ 66.381] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 66.381] (==) No Layout section. Using the first Screen section.
[ 66.381] (**) |-->Screen "Default Screen" (0)
[ 66.381] (**) | |-->Monitor "
[ 66.382] (==) No device specified for screen "Default Screen".
Using the first device section listed.
[ 66.382] (**) | |-->Device "Default Device"
[ 66.382] (==) No monitor specified for screen "Default Screen".
Using a default monitor configuration.
[ 66.382] (==) Automatically adding devices
[ 66.382] (==) Automatically enabling devices
[ 66.382] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 66.382] Entry deleted from font path.
[ 66.382] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,
built-ins
[ 66.382] (==) ModulePath set to "/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[ 66.382] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 66.382] (II) Loader magic: 0x81f8e00
[ 66.382] (II) Module ABI versions:
[ 66.382] X.Org ANSI C Emulation: 0.4
[ 66.382] X.Org Video Driver: 8.0
[ 66.382] X.Org XInput driver : 11.0
[ 66.382] X.Org Server Extension : 4.0
[ 66.383] (--) PCI:*(0:0:2:0) 8086:0046:1025:0371 rev 24, Mem @ 0xf0000000/4194304, 0xd0000000/268435456, I/O @ 0x00001800/8
[ 66.383] (--) PCI: (0:2:0:0) 10de:0df4:1025:0371 rev 161, Mem @ 0xac000000/16777216, 0xb0000000/268435456, 0xae000000/33554432, I/O @ 0x00002000/128
[ 66.383] (II) Open ACPI successful (/var/run/acpid.socket)
[ 66.383] (II) "extmod" will be loaded by default.
[ 66.383] (II) "dbe" will be loaded by default.
[ 66.383] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[ 66.383] (II) "record" will be loaded by default.
[ 66.383] (II) "dri" will be loaded by default.
[ 66.383] (II) "dri2" will be loaded by default.
[ 66.383] (II) LoadModule: "glx"
[ 66.383] (II) Loading /usr/lib/xorg/extra-modules/libglx.so
[ 66.399] (II) Module glx: vendor="NVIDIA Corporation"
[ 66.399] compiled for 4.0.2, module version = 1.0.0
[ 66.399] Module class: X.Org Server Extension
[ 66.399] (II) NVIDIA GLX Module 295.20 Mon Feb 6 20:47:25 PST 2012
[ 66.399] (II) Loading extension GLX
[ 66.399] (II) LoadModule: "extmod"
[ 66.399] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[ 66.399] (II) Module extmod: vendor="X.Org Foundation"
[ 66.399] compiled for 1.9.0, module version = 1.0.0
[ 66.399] Module class: X.Org Server Extension
[ 66.399] ABI class: X.Org Server Extension, version 4.0
[ 66.399] (II) Loading extension MIT-SCREEN-SAVER
[ 66.399] (II) Loading extension XFree86-VidModeExtension
[ 66.399] (II) Loading extension XFree86-DGA
[ 66.399] (II) Loading extension DPMS
[ 66.399] (II) Loading extension XVideo
[ 66.399] (II) Loading extension XVideo-MotionCompensation
[ 66.399] (II) Loading extension X-Resource
[ 66.399] (II) LoadModule: "dbe"
[ 66.399] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[ 66.399] (II) Module dbe: vendor="X.Org Foundation"
[ 66.399] compiled for 1.9.0, module version = 1.0.0
[ 66.399] Module class: X.Org Server Extension
[ 66.399] ABI class: X.Org Server Extension, version 4.0
[ 66.399] (II) Loading extension DOUBLE-BUFFER
[ 66.399] (II) LoadModule: "record"
[ 66.399] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[ 66.399] (II) Module record: vendor="X.Org Foundation"
[ 66.399] compiled for 1.9.0, module version = 1.13.0
[ 66.399] Module class: X.Org Server Extension
[ 66.399] ABI class: X.Org Server Extension, version 4.0
[ 66.399] (II) Loading extension RECORD
[ 66.399] (II) LoadModule: "dri"
[ 66.400] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[ 66.400] (II) Module dri: vendor="X.Org Foundation"
[ 66.400] compiled for 1.9.0, module version = 1.0.0
[ 66.400] ABI class: X.Org Server Extension, version 4.0
[ 66.400] (II) Loading extension XFree86-DRI
[ 66.400] (II) LoadModule: "dri2"
[ 66.400] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[ 66.400] (II) Module dri2: vendor="X.Org Foundation"
[ 66.400] compiled for 1.9.0, module version = 1.2.0
[ 66.400] ABI class: X.Org Server Extension, version 4.0
[ 66.400] (II) Loading extension DRI2
[ 66.400] (II) LoadModule: "nvidia"
[ 66.400] (II) Loading /usr/lib/xorg/extra-modules/nvidia_drv.so
[ 66.400] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 66.400] compiled for 4.0.2, module version = 1.0.0
[ 66.400] Module class: X.Org Video Driver
[ 66.400] (II) NVIDIA dlloader X Driver 295.20 Mon Feb 6 20:27:19 PST 2012
[ 66.400] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 66.400] (--) using VT number 8
[ 66.404] (EE) No devices detected.
[ 66.404]
Fatal server error:
[ 66.404] no screens found
[ 66.404]
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 66.404] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 66.404]
taotaoyan 于 2010-11-25 10:58:42发表:
怎么编译的 怎么做啊!
startdream 于 2010-11-24 15:25:57发表:
good,好。
我爱小姑 于 2010-11-17 21:23:07发表:
感谢了。 受教了慢慢研究
大宝 于 2010-10-18 09:30:19发表:
10# 假装睡觉的猫
1、请自行把重复的帖子删了
2、是不是你下载驱动与显卡不匹配?若还是不能搞定,请自己添加 PPA 源,手动添加驱动
[code]sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current nvidia-current-modaliases nvidia-settings[/code]
若使用 PPA 源速度很慢,请参考此处:http://michelbond.blog.hexun.com/57543065_d.html
假装睡觉的猫 于 2010-10-17 00:38:52发表:
我是ubuntu10。10 按照你的方法做了 可是重启后直接进了控制台 进不了桌面了 怎么办呢?startx?
假装睡觉的猫 于 2010-10-17 00:38:51发表:
我是ubuntu10。10 按照你的方法做了 可是重启后直接进了控制台 进不了桌面了 怎么办呢?startx?
假装睡觉的猫 于 2010-10-17 00:38:50发表:
我是ubuntu10。10 按照你的方法做了 可是重启后直接进了控制台 进不了桌面了 怎么办呢?startx?
假装睡觉的猫 于 2010-10-17 00:38:44发表:
我是ubuntu10。10 按照你的方法做了 可是重启后直接进了控制台 进不了桌面了 怎么办呢?startx?
Mr.R 于 2010-10-16 21:33:33发表:
感谢了。 受教了。。。
大宝 于 2010-10-16 20:40:19发表:
2# 王中云
源里的驱动必须考虑考虑通用性
所以感觉从源里装的闭源驱动不太好用,效率有点低,而且玩 3D 游戏及使用 Compiz 磨砂透明等效果时容易出问题
所以还是喜欢自己编译的
rfusrdx 于 2010-10-16 15:04:45发表:
受教了
lvtongyuan 于 2010-10-16 13:07:32发表:
谢谢分享。
不知道linux什么时候支持双显卡切换,这个问题让人很纠结。。。
王中云 于 2010-10-16 12:19:31发表:
[attach]32475[/attach]