Nvidia 驱动安装资讯收集(附N卡驱动安装后可能出现的常见问题,仅供参考 2008-jun-28更新)
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
- skyx
- 论坛版主
- 帖子: 9202
- 注册时间: 2006-12-23 13:46
- 来自: Azores Islands
- 联系:
-
- 帖子: 48
- 注册时间: 2007-09-08 19:01
服了,在ubuntu下面安装nvidia的驱动,居然搞到如此复杂。。。
你们真能搞啊。。。
1,去nvidia官网下载最新的驱动。
2,安装linux-headers。(编译需要)(这个包总要装的,vmware也需要呢)
3,删除系统自带的nvidia驱动(如果有的话)
4,退出X,安装nvidia的官方驱动。
5,修改xorg.conf
6,重启gdm。
就这样搞定了,那有那么复杂。
我的xorg.conf,支持beryl, 支持双显示器,支持挂起后唤醒可以回到GUI界面,换了显示器要改Monitor那一段,如果是台式机要关掉touchpad:
Section "Files"
EndSection
Section "Module"
#use "glx" to replace "dri" & "GLCore", depending on the instruction of Nvidia Driver
# Load "dri"
# Load "GLCore"
Load "glx"
Load "extmod"
SubSection "extmod"
# Don't initialise the DGA extension
Option "omit XFree86-DGA"
EndSubSection
Load "dbe"
Load "freetype"
Load "bitmap"
Load "vbe"
Load "i2c"
Load "ddc"
Load "int10"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
Option "SHMConfig" "on"
EndSection
Section "Device"
Identifier "Nvidia Video Card"
# Package "nvidia-glx" is required to enable it.
Driver "nvidia"
BusID "PCI:1:0:0"
Option "NvAGP" "1"
# Option "NoLogo"
# Screen 0
# Enable AIGLX/Compiz nvidia dirver (> 1.0-9629)
Option "AllowGLXWithComposite" "true"
Option "AddARGBGLXVisuals" "true"
# For ATI driver card
## Option "XAANoOffscreenPixmaps" "true"
# Following options should be added when use TwinView to implement double monitor,
# otherwise close option "TwinView"
Option "TwinView" "true"
Option "DynamicTwinView" "true"
Option "UseEdidFreqs" "true"
Option "RenderAccel" "true"
Option "MetaModes" "1280x800,1024x768"
# the value of Option "UseDisplayDevice": DFP(DVI port), CRT(VGA port), TV
Option "UseDisplayDevice" "DFP, DFP"
# Option "ConnectedMonitor" "CRT-0, CRT-1"
# If option "TwinView" is "false", following options will not have effect.
# "LeftOf" means the poisition of second display relative to the first.
# Others :"RightOf"(the default) "Above" "Below" "Clone"
Option "TwinViewOrientation" "RightOf"
# Option "TwinViewOrientation" "CRT-0 LeftOf CRT-1"
Option "RandRRotation" "true"
EndSection
Section "Monitor"
Identifier "z99jn Monitor"
Option "DPMS"
# 14 inch
# HorizSync 28-33
# VertRefresh 43-72
# auto
# HorizSync 28-64
# VertRefresh 43-60
# 1280x960
HorizSync 30-60
VertRefresh 50-75
# 1024x768
# HorizSync 30-70
# VertRefresh 50-160
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Nvidia Video Card"
Monitor "z99jn Monitor"
DefaultDepth 24
SubSection "Display"
Depth 16
Modes "1280x800" "1280x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x800" "1280x768"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
# Use Xinerma
# Option "Xinerama" "true"
# Screen 0 "First Screen"
# Screen 1 "Second Screen" RightOf "First Screen"
# Enable AIGLX
Option "AIGLX" "true"
EndSection
Section "Extensions"
# Enable AIGLX/Compiz
Option "Composite" "Enable"
Option "RENDER" "true"
Option "DAMAGE" "true"
EndSection
你们真能搞啊。。。
1,去nvidia官网下载最新的驱动。
2,安装linux-headers。(编译需要)(这个包总要装的,vmware也需要呢)
3,删除系统自带的nvidia驱动(如果有的话)
4,退出X,安装nvidia的官方驱动。
5,修改xorg.conf
6,重启gdm。
就这样搞定了,那有那么复杂。
我的xorg.conf,支持beryl, 支持双显示器,支持挂起后唤醒可以回到GUI界面,换了显示器要改Monitor那一段,如果是台式机要关掉touchpad:
Section "Files"
EndSection
Section "Module"
#use "glx" to replace "dri" & "GLCore", depending on the instruction of Nvidia Driver
# Load "dri"
# Load "GLCore"
Load "glx"
Load "extmod"
SubSection "extmod"
# Don't initialise the DGA extension
Option "omit XFree86-DGA"
EndSubSection
Load "dbe"
Load "freetype"
Load "bitmap"
Load "vbe"
Load "i2c"
Load "ddc"
Load "int10"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
Option "SHMConfig" "on"
EndSection
Section "Device"
Identifier "Nvidia Video Card"
# Package "nvidia-glx" is required to enable it.
Driver "nvidia"
BusID "PCI:1:0:0"
Option "NvAGP" "1"
# Option "NoLogo"
# Screen 0
# Enable AIGLX/Compiz nvidia dirver (> 1.0-9629)
Option "AllowGLXWithComposite" "true"
Option "AddARGBGLXVisuals" "true"
# For ATI driver card
## Option "XAANoOffscreenPixmaps" "true"
# Following options should be added when use TwinView to implement double monitor,
# otherwise close option "TwinView"
Option "TwinView" "true"
Option "DynamicTwinView" "true"
Option "UseEdidFreqs" "true"
Option "RenderAccel" "true"
Option "MetaModes" "1280x800,1024x768"
# the value of Option "UseDisplayDevice": DFP(DVI port), CRT(VGA port), TV
Option "UseDisplayDevice" "DFP, DFP"
# Option "ConnectedMonitor" "CRT-0, CRT-1"
# If option "TwinView" is "false", following options will not have effect.
# "LeftOf" means the poisition of second display relative to the first.
# Others :"RightOf"(the default) "Above" "Below" "Clone"
Option "TwinViewOrientation" "RightOf"
# Option "TwinViewOrientation" "CRT-0 LeftOf CRT-1"
Option "RandRRotation" "true"
EndSection
Section "Monitor"
Identifier "z99jn Monitor"
Option "DPMS"
# 14 inch
# HorizSync 28-33
# VertRefresh 43-72
# auto
# HorizSync 28-64
# VertRefresh 43-60
# 1280x960
HorizSync 30-60
VertRefresh 50-75
# 1024x768
# HorizSync 30-70
# VertRefresh 50-160
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Nvidia Video Card"
Monitor "z99jn Monitor"
DefaultDepth 24
SubSection "Display"
Depth 16
Modes "1280x800" "1280x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x800" "1280x768"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
# Use Xinerma
# Option "Xinerama" "true"
# Screen 0 "First Screen"
# Screen 1 "Second Screen" RightOf "First Screen"
# Enable AIGLX
Option "AIGLX" "true"
EndSection
Section "Extensions"
# Enable AIGLX/Compiz
Option "Composite" "Enable"
Option "RENDER" "true"
Option "DAMAGE" "true"
EndSection
- skyx
- 论坛版主
- 帖子: 9202
- 注册时间: 2006-12-23 13:46
- 来自: Azores Islands
- 联系:
- uusky
- 帖子: 159
- 注册时间: 2006-09-02 10:02
有必要总结!
也有必要统计失败的做法,以便发现规律的,找出真正的完全之策。我的FX 5200显卡也是不停的有问题。总觉得折腾成功了,也有些偶然性!也不知道为什么成功,为什么不成功。郁闷咧!望楼主早日前去我的帖子分析状况!9595995!!!
昨天晚上试到2点的,结果:发现删除xorg.conf就可以进入X了!!!!
楼主是个高人,道德高尚,真是个好人啊!(绝非是想让楼主帮忙才说的。我搜索类似的帖子。楼主的名字出现了N次!这点足见楼主很热心的!且楼主的帖子很严谨,可见楼主很专业!)
也有必要统计失败的做法,以便发现规律的,找出真正的完全之策。我的FX 5200显卡也是不停的有问题。总觉得折腾成功了,也有些偶然性!也不知道为什么成功,为什么不成功。郁闷咧!望楼主早日前去我的帖子分析状况!9595995!!!
昨天晚上试到2点的,结果:发现删除xorg.conf就可以进入X了!!!!
楼主是个高人,道德高尚,真是个好人啊!(绝非是想让楼主帮忙才说的。我搜索类似的帖子。楼主的名字出现了N次!这点足见楼主很热心的!且楼主的帖子很严谨,可见楼主很专业!)
- skyx
- 论坛版主
- 帖子: 9202
- 注册时间: 2006-12-23 13:46
- 来自: Azores Islands
- 联系:
1。我用过的N卡很有限,这个帖子的大部分内容收集自网络,很多验证都来自其他u fan ,所以相关的url收集也多。
2. 很多问题的解决,以前的经验也许在新的系统,新的环境就不再合适
3。对于ubuntu 7.10 ,我推荐全新安装,是不是升级安装的问题我不清楚,但我会怀疑,如果我的怀疑是正确的,那全新安装比升级还更省事。
4。本帖所有的资讯收集,都基于ubuntu 7.04,对于ubuntu 7.10, 仅供参考。
5不要拘泥于nvida-glx-new ,不妨试下nvida-glx 或legacy 之类的,只要驱动列表支持的,都可以通过新立得或apt-get进行尝试。
6我收集的url中就有用5200的网友,也许和他们联系一下是最快捷的方式。
7。手动安装的驱动要完全卸载,才能保证从源中apt安装或受限驱动打钩的方法安装成功
2. 很多问题的解决,以前的经验也许在新的系统,新的环境就不再合适
3。对于ubuntu 7.10 ,我推荐全新安装,是不是升级安装的问题我不清楚,但我会怀疑,如果我的怀疑是正确的,那全新安装比升级还更省事。
4。本帖所有的资讯收集,都基于ubuntu 7.04,对于ubuntu 7.10, 仅供参考。
5不要拘泥于nvida-glx-new ,不妨试下nvida-glx 或legacy 之类的,只要驱动列表支持的,都可以通过新立得或apt-get进行尝试。
6我收集的url中就有用5200的网友,也许和他们联系一下是最快捷的方式。
7。手动安装的驱动要完全卸载,才能保证从源中apt安装或受限驱动打钩的方法安装成功
no security measure is worth anything if an attacker has physical access to the machine
- uusky
- 帖子: 159
- 注册时间: 2006-09-02 10:02
这几点受教了啊!呵呵。不知道楼主又没有写过linux驱动或者看过类似的东西,因为有两个问题想请楼主和各位知情人士指点!!!skyx 写了: 2. 很多问题的解决,以前的经验也许在新的系统,新的环境就不再合适
5不要拘泥于nvida-glx-new ,不妨试下nvida-glx 或legacy 之类的,只要驱动列表支持的,都可以通过新立得或apt-get进行尝试。
6我收集的url中就有用5200的网友,也许和他们联系一下是最快捷的方式。
7。手动安装的驱动要完全卸载,才能保证从源中apt安装或受限驱动打钩的方法安装成功
1:xorg.conf文件Section "Device"中,Driver真实指定的是什么呢?是不是指定显卡驱动的模块名?
2:/etc/default/linux-restricted-modules-common中的DISABLED_MODULES指定的是不是禁止载入的模块名?
如果两个问题回答都是yes的话。
那么Driver指定的东西出现在DISABLED_MODULES中话,是不是X启动就会失败呢? (昨天晚上没有来得及试!)
- zhuqin_83
- 帖子: 10606
- 注册时间: 2006-05-13 4:02
- 联系:
- woainba15
- 帖子: 833
- 注册时间: 2006-11-11 17:14
- 来自: 浙江宁波
- 联系:
gusty安装驱动出现了问题,我是通过代理上网的,apt是可以正常使用的,但是在受限驱动管理器里勾上钩子安装nvidia-glx-new的时候并不顺利,说找不到包,我想是因为它直接联网寻找包而没通过代理的原因吧,sudo apt-get install nvidia-glx-new sudo nvidia-xconfig后,安装完后重启就出现问题了,文字界面跳了几下就提示x出现问题了,出现一个对话框,我点了continue,还是顺利进入x了,但是分辨率和刷新率都不对了
http://www.imkeke.cn/?p=315
http://www.imkeke.cn/?p=315
时间过得快啊!
- skyx
- 论坛版主
- 帖子: 9202
- 注册时间: 2006-12-23 13:46
- 来自: Azores Islands
- 联系:
老N卡的话(从楼上的注册日期推测的),也可试下nvidia-glx
对于8系显卡,老早就有人安装成功,url 在这个帖子中就有收集,但我还是做了一次更新:
手动安装部分我做过一次更新(红色部分),以前我自己安装是不用像这样的,但手动安装前我卸载过源中的驱动,安装记录我曾在一个回帖中全部帖出来了。
也许是我手上的N卡安装太简单了吧,我的确没碰到这样或那样的问题。我介绍的几种方法我都实践过
所以我打算以后换显卡,我就换难度稍大的ATI .
Via我还是不敢,Via性能也不好
对于8系显卡,老早就有人安装成功,url 在这个帖子中就有收集,但我还是做了一次更新:
手动安装部分我做过一次更新(红色部分),以前我自己安装是不用像这样的,但手动安装前我卸载过源中的驱动,安装记录我曾在一个回帖中全部帖出来了。
也许是我手上的N卡安装太简单了吧,我的确没碰到这样或那样的问题。我介绍的几种方法我都实践过
所以我打算以后换显卡,我就换难度稍大的ATI .
Via我还是不敢,Via性能也不好
no security measure is worth anything if an attacker has physical access to the machine
-
- 帖子: 32
- 注册时间: 2007-03-21 17:26
我是NVIDIA Geforce 8400M GS GPU的卡。我的ubuntu是64AMD的。我从NIVIDA网站上下载了NVIDIA NVIDIA-Linux-x86_64-100.14.19-pkg2.run文件。并按照楼主第三个方法安张,在运行:sudo sh NVIDIA-Linux-???-???.??.??-pkg1.run后,编译过程中我选择不从网络下载。结果出现了一下错误:
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this kernel module was built against the wrong or improperly configured kernelsources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb/nvidiafb is present and prevens the NVIDIA kernel module from obtaining ownership of the NVIDIA graphic(s).
Please see the log entries 'Kernel module load error' and 'Kernel messages' at the end of the file '/var/log/nvidia-installer.log' for more information.
不知道我该怎么解决?
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this kernel module was built against the wrong or improperly configured kernelsources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb/nvidiafb is present and prevens the NVIDIA kernel module from obtaining ownership of the NVIDIA graphic(s).
Please see the log entries 'Kernel module load error' and 'Kernel messages' at the end of the file '/var/log/nvidia-installer.log' for more information.
不知道我该怎么解决?
- skyx
- 论坛版主
- 帖子: 9202
- 注册时间: 2006-12-23 13:46
- 来自: Azores Islands
- 联系:
回33楼:
确保操作没问题的情况下,那就先把源中的N卡驱动卸载再说,另外,备注部分我做过更新。
对于7.10,8系显卡应该是可以从源中安装驱动的。
手动安装,你还可以参考下:
http://www.nvnews.net/vbulletin/showthread.php?t=72490
https://help.ubuntu.com/community/NvidiaManual
回34楼,你在虚拟环境下安装ubuntu ,和原生的硬体没有任何关系,一般来说,原生驱动程式没办法在虚拟环境下灌入的。
提示的意思应是编译环境不对,不过从接下来的一句话来看,最大的可能是你没关掉GDM服务with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb/nvidiafb is present and prevens the NVIDIA kernel module from obtaining ownership of the NVIDIA graphic(s).
确保操作没问题的情况下,那就先把源中的N卡驱动卸载再说,另外,备注部分我做过更新。
对于7.10,8系显卡应该是可以从源中安装驱动的。
手动安装,你还可以参考下:
http://www.nvnews.net/vbulletin/showthread.php?t=72490
https://help.ubuntu.com/community/NvidiaManual
回34楼,你在虚拟环境下安装ubuntu ,和原生的硬体没有任何关系,一般来说,原生驱动程式没办法在虚拟环境下灌入的。
no security measure is worth anything if an attacker has physical access to the machine