安装NVIDIA驱动

 

安装nvidia驱动
我想用wine魔兽,发现显卡没装好,opengl也不行,郁闷,用了好几个月了,今天才发现!
现在lenny的nidia驱动版本是173.14.9
sudo apt-get install nvidia-glx nvidia-settings mesa-utils
运行glxinfo
显示:Error: couldn't find RGB GLX visual
查看xorg.conf
发现glx也正常加载
运行nvidia-settings,显示错误,也有提示run `nvidia-xconfig`
运行发现无此命令,
sudo apt-get install nvidia-xconfig 

按提示做,reboot,ok!
glxinfo | grep rendering
direct rendering: Yes
$glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
......
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
......
GLX version: 1.3
......
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 8400M G/PCI/SSE2
OpenGL version string: 2.1.2 NVIDIA 173.14.09


lch@localhost:~$ cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildd@ninsei)  Fri Sep  5 22:23:08 UTC 2008


Section "ServerLayout"
Identifier     "Layout0"
Screen      0  "Screen0" 0 0
InputDevice    "Keyboard0" "CoreKeyboard"
InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
RgbPath         "/usr/X11R6/lib/X11/rgb"
EndSection

Section "Module"
Load           "dbe"
Load           "extmod"
Load           "type1"
Load           "freetype"
Load           "glx"
EndSection

Section "InputDevice"

# generated from default
Identifier     "Mouse0"
Driver         "mouse"
Option         "Protocol" "auto"
Option         "Device" "/dev/psaux"
Option         "Emulate3Buttons" "no"
Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

# generated from default
Identifier     "Keyboard0"
Driver         "kbd"
EndSection

Section "Monitor"
Identifier     "Monitor0"
VendorName     "Unknown"
ModelName      "Unknown"
HorizSync       30.0 - 110.0
VertRefresh     50.0 - 150.0
Option         "DPMS"
EndSection

Section "Device"
Identifier     "Device0"
Driver         "nvidia"
VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
Identifier     "Screen0"
Device         "Device0"
Monitor        "Monitor0"
DefaultDepth    24
SubSection     "Display"
Depth       24
EndSubSection
EndSection
注:
可以直接到NVIDIA的官方网站下载最新的启动,编译安装更简单;编译安装如果提示编译器版本不匹配,直接忽略即可

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值