[分享]N卡驱动安装启用详解

CPU/显卡/打印机/USB设备等硬件问题
头像
hethe
帖子: 3666
注册时间: 2005-08-01 9:14

[分享]N卡驱动安装启用详解

#1

帖子 hethe » 2008-01-02 0:57

0。进行一下操作前,请确保头脑清醒,并备份配置文件。

代码: 全选

sudo cp /etc/X11/xorg.conf /
如果安装显卡驱动失败,不能正常进入图形界面的,请执行以下命令恢复原配置文件

代码: 全选

sudo cp /xorg.conf /etc/X11/
1。如果是 TNT, TNT2, or older GeForce2之流的显卡, 请安装 nvidia-glx-legacy.

代码: 全选

sudo apt-get install nvidia-glx-legacy
2。如果是 GeForce4, 请安装 nvidia-glx.

代码: 全选

sudo apt-get install nvidia-glx
3。否则,使用 nvidia-glx-new。

代码: 全选

sudo apt-get install nvidia-glx-new
4。启用驱动

代码: 全选

sudo nvidia-glx-config enable
5。对于nvidia-glx,与nvidia-glx-new,可以开启3D桌面(compiz之类)。
方法是:

代码: 全选

sudo nvidia-xconfig --add-argb-glx-visuals --composite
6。ok,现在打开compiz看看vista之流不能比拟的3D效果。

7。如果有问题,请在后跟帖,并贴出/etc/X11/xorg.conf
Gedanken ohne Inhalt sind leer .Anschauungen ohne Begriffe sind blind.
头像
listen
帖子: 52
注册时间: 2007-10-25 8:39
来自: gz

#2

帖子 listen » 2008-01-03 8:54

1。如果是 TNT, TNT2, or older GeForce2之流的显卡, 请安装 nvidia-glx-legacy.
代码:
sudo apt-get install nvidia-glx-legacy
请问下TNT2安装这个驱动可以启动3D桌面吗?
tongttt
帖子: 444
注册时间: 2007-11-27 22:20

#3

帖子 tongttt » 2008-01-03 9:35

为什么按照上面执行Nvidia-settings 会出现
nvidia-settings

ERROR: NV-CONTROL extension not found on this Display.


ERROR: Unable to determine number of NVIDIA GPUs on ':1.0'.


ERROR: Unable to determine number of NVIDIA Frame Lock Devices on ':1.0'.


ERROR: Unable to determine number of NVIDIA VCSCs on ':1.0'.

而且执行 glxinfo | grep rendering 显示:
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
我的# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc101"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "Device"
Identifier "nVidia Corporation G70 [GeForce 7300 GT]"
Driver "nvidia"
BusID "PCI:6:0:0"
Option "UseFBDev" "true"
EndSection

Section "Monitor"
Identifier "TFT1780"
Option "DPMS"
HorizSync 30-83
VertRefresh 55-75
EndSection

Section "Screen"
Identifier "Default Screen"
Device "nVidia Corporation G70 [GeForce 7300 GT]"
Monitor "TFT1780"
DefaultDepth 24
SubSection "Display"
Modes "1280x1024"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"

# Uncomment if you have a wacom tablet
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
EndSection
头像
hethe
帖子: 3666
注册时间: 2005-08-01 9:14

#4

帖子 hethe » 2008-01-03 14:50

nvidia-glx-legacy 能不能启动3D我不知道,兄弟可以试一下,不过个人建议不起用的为妙,毕竟不能流畅地使用,却是舍本逐末了。

至于ls的兄弟,小道的帖子里面好像没有让你执行 Nvidia-settings,请仔细阅读,谢谢。
Gedanken ohne Inhalt sind leer .Anschauungen ohne Begriffe sind blind.
头像
hbyscj
帖子: 10
注册时间: 2008-01-02 18:21

#5

帖子 hbyscj » 2008-01-03 17:58

sudo nvidia-xconfig --add-argb-glx-visuals --composite

Using X configuration file: "/etc/X11/xorg.conf".
Option "AddARGBGLXVisuals" "True" added to Screen "Default Screen".
Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'
头像
Neoriva
帖子: 1163
注册时间: 2007-12-19 21:42

#6

帖子 Neoriva » 2008-01-03 18:15

如果是GeForceMX4000请将显卡BIOS刷成MX440-8X或者祈祷…………
北極熊都是左撇子…………
头像
hbyscj
帖子: 10
注册时间: 2008-01-02 18:21

#7

帖子 hbyscj » 2008-01-03 19:46

sudo nvidia-glx-config enable


Error: your X configuration has been altered.
This script cannot proceed automatically. If you believe that this
not correct, you can update the md5sum entry executing the following
command:
md5sum /etc/X11/xorg.conf | sudo tee /var/lib/x11/xorg.conf.md5sum
otherwise edit manually /etc/X11/xorg.conf to change the Driver section
from nv to nvidia.

这是什么 情况呢? 我 的 xorg.conf Drive后是nvidia. 我 改成nvidia-new 也不 行
头像
hbyscj
帖子: 10
注册时间: 2008-01-02 18:21

#8

帖子 hbyscj » 2008-01-03 19:48

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Wed Sep 12 14:29:35 PDT 2007

# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"

# Uncomment if you have a wacom tablet
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
Identifier "Default Layout"
screen "Default Screen" 0 0
Inputdevice "Generic Keyboard"
Inputdevice "Configured Mouse"
EndSection

Section "Files"
EndSection

Section "Module"
Load "glx"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
Option "ForceDevice" "ISDV4"# Tablet PC ONLY
EndSection

Section "Monitor"
Identifier "SyncMaster"
Option "DPMS"
EndSection

Section "Device"
Identifier "nVidia Corporation G70 [GeForce 7300 GT]"
Driver "nvidia"
Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "NoLogo" "True"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "nVidia Corporation G70 [GeForce 7300 GT]"
Monitor "SyncMaster"
Defaultdepth 24
SubSection "Display"
Depth 24
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
EndSubSection
EndSection
头像
hethe
帖子: 3666
注册时间: 2005-08-01 9:14

#9

帖子 hethe » 2008-01-03 23:48

hbyscj 写了:sudo nvidia-glx-config enable


Error: your X configuration has been altered.
This script cannot proceed automatically. If you believe that this
not correct, you can update the md5sum entry executing the following
command:
md5sum /etc/X11/xorg.conf | sudo tee /var/lib/x11/xorg.conf.md5sum
otherwise edit manually /etc/X11/xorg.conf to change the Driver section
from nv to nvidia.

这是什么 情况呢? 我 的 xorg.conf Drive后是nvidia. 我 改成nvidia-new 也不 行
你自己手动或者被脚本改过配置文件了,请恢复为原文件在进行。
或者只有自己手动修改了:
删去:
Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "NoLogo" "True"
Monitor "SyncMaster"
Defaultdepth 24
下面加上:
Option "AddARGBGLXVisuals" "True"
Gedanken ohne Inhalt sind leer .Anschauungen ohne Begriffe sind blind.
gzl09
帖子: 40
注册时间: 2007-12-18 19:49

#10

帖子 gzl09 » 2008-01-08 18:06

ganzhenliang@ganzhenliang-desktop:~$ sudo nvidia-xconfig--add-argb-glx-visuals--composite
sudo: nvidia-xconfig--add-argb-glx-visuals--composite: command not found
ganzhenliang@ganzhenliang-desktop:~$ sudo nvidia-xconfig--add-argb-glx-visuals--composite
哪里输错了?
gzl09
帖子: 40
注册时间: 2007-12-18 19:49

#11

帖子 gzl09 » 2008-01-08 21:34

又黑屏了,看来我还是老老实实用受限驱动吧!!!
头像
karron
帖子: 6226
注册时间: 2005-06-11 14:03
来自: 不明真相的群众
联系:

#12

帖子 karron » 2008-01-08 21:38

sudo nvidia-xconfig --add-argb-glx-visuals --composite

中间有空格
我的blog,关于技术,软件,linux,vim <---- 所有博客均被河蟹.
头像
iPod
帖子: 15
注册时间: 2007-12-22 11:09

#13

帖子 iPod » 2008-01-16 18:17

请教一下,我的机器是东芝satellate pro6100 256M内存,nvidia 420go显卡,用新力得安驱动,启用驱动后,重启就白屏,只能进终端,之后用编译之类方法也不好使,是我的机器不行吗?谢谢了!
我的xorg.conf
# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by failsafeDexconf, using
# values from the debconf database and some overrides to use vesa mode.
#
# You should use dexconf or another such tool for creating a "real" xorg.conf
# For example:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "Files"
EndSection

Section "Module"
Load "glx"
Load "GLcore"
Load "v4l"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection


Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
EndSection

Section "Device"
Identifier "Failsafe Device"
Boardname "vesa"
Busid "PCI:1:0:0"
Driver "vesa"
Screen 0
EndSection

Section "Monitor"
Identifier "Failsafe Monitor"
Vendorname "Generic LCD Display"
Modelname "LCD Panel 1024x768"
Horizsync 31.5-48.0
Vertrefresh 56.0 - 65.0
modeline "640x480@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
modeline "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
modeline "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
modeline "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
Gamma 1.0
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Failsafe Device"
Monitor "Failsafe Monitor"
Defaultdepth 24
SubSection "Display"
Depth 24
Virtual 1024 768
Modes "1024x768@60" "800x600@60" "800x600@56" "640x480@60"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
screen 0 "Default Screen" 0 0
Inputdevice "Generic Keyboard"
Inputdevice "Configured Mouse"
Inputdevice "Synaptics Touchpad"
EndSection
Section "device" #
Identifier "device1"
Boardname "vesa"
Busid "PCI:1:0:0"
Driver "vesa"
Screen 1
EndSection
Section "screen" #
Identifier "screen1"
Device "device1"
Defaultdepth 24
Monitor "monitor1"
EndSection
Section "monitor" #
Identifier "monitor1"
Gamma 1.0
EndSection
Section "ServerFlags"
EndSection
头像
hethe
帖子: 3666
注册时间: 2005-08-01 9:14

#14

帖子 hethe » 2008-01-16 18:36

# This file was generated by failsafeDexconf, using
# values from the debconf database and some overrides to use vesa mode.
#
# You should use dexconf or another such tool for creating a "real" xorg.conf
# For example:
# sudo dpkg-reconfigure -phigh xserver-xorg
ls的兄弟,你看下你的xorg里面的这一段,这个xorg文件已经被毁了,你看看能不能找到你原来的文件或者重新生成一个。
Gedanken ohne Inhalt sind leer .Anschauungen ohne Begriffe sind blind.
xiaoliangbhb
帖子: 1
注册时间: 2008-01-14 18:24

#15

帖子 xiaoliangbhb » 2008-01-17 4:02

我的7300终于把驱动安上了 呵呵呵 想学的 加我QQ 83412426 注明了ubuntu 呵呵
回复