- 论坛徽章:
- 0
|
ubuntu下如何解决nvidia显卡驱动问题
接触linux快一个多月,最初装了红旗,认识一个linux高手,给了我不少的启示,对linux也有了很大的兴趣,以至不想装window,以促使自己更好的学习linux,她也确实没让我失望,linux的确太优秀,可惜大多数国人都被microsoft给迷惑了,不愿去研究linux,实在是一种可悲。庆幸的是我认识了linux,我希望这将是我的一个转折点。
说来也奇怪,我的dell机器,大部分目前的linux版本,都无法装上,不过这也是个好机会,她让我几乎试遍了所有的流行的linux版本,至少也是学会了如何装linux了。redhat,fc,dm,slackware,ubuntu等都很不错,不过我的机子上暂时只能装ubuntu,这也是我暂时不理解dell的愿因,但很可能是我本身对linux了解太少的原因。
现在来对我学习linux一个月做个总结:先是学习如何装系统,当然现在装系统远远没有以前那么麻烦,几乎不用你做什么,的确很kiss,可惜我不认为这太好,做为一个学习计算机专业的我来说,隐藏太多的细节,对我们学习未必是件好事啊!我的鼠标是usb接口的,但和我的系统似乎有些不大兼容,听老手说可能是内核的问题,这我就没办法,只好放在日后在解决了,在就是我的显卡,一个月来屏幕一直有些闪,但直到今天 我才解决了这个问题,其实显卡驱动是装好了的,只是要在/etc/X11/xorg.conf下在配制一下就可以了,但对一个新手来说,要找出来肯定不是一件容易的事。在此我记录下我解决这个问题的详细过程:
chenheng@chenheng #sudo apt-get install nvidai-glx-legacy ##安装显卡驱动:
chenheng@chenheng#sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_old ##备份是一个习惯:
chenheng@chenheng#sudo vi xorg.conf
# /etc/X11/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 /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/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"
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
## 加载
Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
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/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "false"
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/wacom" # Change to
# /dev/input/event
# for USB
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection
##显卡配制,我的机子上这是关键,ubuntu默认是用vesa驱动,但这可能引起和我的机子上一样的问题,装好驱动后,建议改为nv,如下所示
Section "Device"
Identifier "Generic Video Card"
#Driver "vesa" #ubuntu default driver
Driver "nv"
BusID "PCI:0:5:0"
EndSection
##显示器
Section "Monitor"
Identifier "DELL E773c"
Option "DPMS"
HorizSync 48.3-80.5 #建议指出,有的系统可能没写明,但范围要合理
VertRefresh 50-85 #这时注意,不要走超过120,以免烧坏显示器
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "DELL E773c"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
SubSection "Display"
Depth 16
Modes "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
EndSection
Section "DRI"
Mode 0666
EndSection
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/30752/showart_237833.html |
|