LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 3061|回复: 26

不装显卡驱动速度慢,装了显卡驱动玩不了.

[复制链接]
发表于 2002-7-31 13:42:15 | 显示全部楼层 |阅读模式
原来玩系统自带的Chromium和Tux Racer时速度很慢,现在装了显卡驱动,这两个游戏就都进不去了,系统提示:
[Kinguo@KING Kinguo]$ chromium
randomizing.
SDL initialized.
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Couldn't set GL mode: Couldn't find matching GLX visual
[Kinguo@KING Kinguo]$
可明明装了opengl的.??
请问各位大哥又是什么问题??
发表于 2002-7-31 13:49:48 | 显示全部楼层
在XF86Config-4里加一句
Load  "glx"

就在Section "Module"这个位置
这个文件在/etc/X11/
 楼主| 发表于 2002-7-31 14:07:00 | 显示全部楼层
大哥,这句它里面已经有了.下面是我的XF86Config-4的内容:
##########################################################################
# Sample XF86Config file for NVIDIA XFree86 drivers.
#
# Refer to the XF86Config(4/5) man page for details about the format of
# this file.
#
# Be sure to replace the monitor values with correct values for your
# monitor!
##########################################################################


Section "Files"
        FontPath "/usr/share/fonts/zh_CN/TrueType/simsun"

# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

    RgbPath        "/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.

    FontPath   "unix/:7100"

EndSection


##########################################################################
# Server flags section.
##########################################################################

Section "ServerFlags"

    # Uncomment this to cause a core dump at the spot where a signal is
    # received.  This may leave the console in an unusable state, but may
    # provide a better stack trace in the core dump to aid in debugging
    #NoTrapSignals

    # Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
    # This allows clients to receive this key event.
    #DontZap

    # Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
    # sequences.  This allows clients to receive these key events.
    #DontZoom

    # This  allows  the  server  to start up even if the
    # mouse device can't be opened/initialised.
    AllowMouseOpenFail

EndSection


##########################################################################
# Input devices
##########################################################################

#
# Keyboard section
#
Section "InputDevice"

    Identifier "Keyboard1"
    Driver     "Keyboard"
    Option     "AutoRepeat"  "250 30"

    Option "XkbRules"  "xfree86"
    Option "XkbModel"  "pc105"
    Option "XkbLayout" "us"

EndSection


#
# Pointer section
#
Section "InputDevice"

    Identifier  "Mouse1"
    Driver      "mouse"
    Option      "rotocol"    "IMPS/2"
    Option      "Device"      "/dev/psaux"
    Option        "ZAxisMapping""4 5"

EndSection


##########################################################################
# Module section
##########################################################################

Section "Module"

    Load        "dbe"
    Load        "xtt"
    # Load the glx module.
    Load        "glx"

    Load        "extmod"

    Load        "type1"
    # Load        "freetype"
EndSection


##########################################################################
# Monitor section
##########################################################################

Section "Monitor"

    Identifier "MyMonitor"
    VendorName "Monitor Vendor"
    ModelName  "Monitor Model"

    # be sure to replace these values with values appropriate for your
    # monitor!
    HorizSync  30-70
    VertRefresh 50-120

EndSection


##########################################################################
# Graphics device section(s)
##########################################################################

Section "Device"
    Identifier  "NV AGP"
    VendorName  "nvidia"
    Driver   "nvidia"
    # update this with the PCI id of your card.  Consult the output
    # of the 'lspci' command.
    BusID       "CI:1:0:0"
EndSection

Section "Device"
    Identifier "NV PCI"
    VendorName "nvidia"
    Driver "nvidia"
    # update this with the PCI id of your card.  Consult the output
    # of the 'lspci' command.
    BusID       "CI:0:13:0"
EndSection

Section "Device"
    Identifier "NV AGP TwinView"
    VendorName "nvidia"
    Driver "nvidia"
    # update this with the PCI id of your card.  Consult the output
    # of the 'lspci' command.
    BusID       "CI:1:0:0"

    # sample twinview setup
    Option "TwinView"
    # be sure to replace the HorizSync and VertRefresh with correct values
    # for your monitor!  
    Option "SecondMonitorHorizSync"   "31-82"
    Option "SecondMonitorVertRefresh" "55-120"
    Option "TwinViewOrientation"      "RightOf"
    Option "MetaModes"                "1280x1024,1280x1024; 1024x768,1024x768"
    Option "ConnectedMonitor"         "crt,crt"
EndSection


##########################################################################
# Screen sections
##########################################################################

#
# screen section for an nvidia AGP card
#
Section "Screen"
    Identifier "Screen AGP"
    Device      "NV AGP"
    Monitor     "MyMonitor"
    DefaultColorDepth 24
    Subsection "Display"
        Depth       8
        Modes       "1280x1024" "1024x768" "800x600" "640x400"
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1024x768"
    EndSubsection

EndSection


#
# screen section for an nvidia PCI card
#
Section "Screen"
    Identifier "Screen PCI"
    Device      "NV PCI"
    Monitor     "MyMonitor"
    DefaultColorDepth 24
    Subsection "Display"
        Depth       8
        Modes       "1280x1024" "1024x768" "800x600" "640x400"
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1024x768"
    EndSubsection
EndSection

#
# screen section for an nvidia AGP TwinView card
# (look at the appropriate Device section)
#
Section "Screen"
    Identifier "Screen AGP TwinView"
    Device "NV AGP TwinView"
    Monitor "MyMonitor"
    DefaultColorDepth 24
    Subsection "Display"
        Depth       8
        Modes       "1280x1024" "1024x768" "800x600" "640x400"
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1024x768"
    EndSubsection
EndSection


##########################################################################
# ServerLayout sections
# (invoke using the '-layout' option of 'startx'.
##########################################################################

#
# just one agp card
#
Section "ServerLayout"
    Identifier  "AGP"
    Screen      "Screen AGP"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

#
# just one pci card
#
Section "ServerLayout"
    Identifier  "CI"
    Screen      "Screen PCI"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

#
# 2 cards, non twinview
#
Section "ServerLayout"
    Identifier  "Both"
    Screen      "Screen AGP"
    Screen      "Screen PCI" LeftOf "Screen AGP"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

#
# just one agp twinview card
#
Section "ServerLayout"
    Identifier  "AGPTwinView"
    Screen      "Screen AGP TwinView"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

#
# 2 cards, one agp twinview and one pci (3 monitors total)
#
Section "ServerLayout"
    Identifier  "BothTwinView"
    Screen      "Screen AGP TwinView"
    Screen      "Screen PCI" LeftOf "Screen AGP TwinView"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection
发表于 2002-7-31 14:31:24 | 显示全部楼层

我想你的显卡应该是AGP接口的吧

那你就把其他的接口的那些部分都去掉,像

#
# screen section for an nvidia PCI card
#
Section "Screen"
Identifier "Screen PCI"
Device "NV PCI"
Monitor "MyMonitor"
DefaultColorDepth 24
Subsection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x400"
EndSubsection
Subsection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubsection
Subsection "Display"
Depth 24
Modes "1024x768"
EndSubsection
EndSection

#
# screen section for an nvidia AGP TwinView card
# (look at the appropriate Device section)
#
Section "Screen"
Identifier "Screen AGP TwinView"
Device "NV AGP TwinView"
Monitor "MyMonitor"
DefaultColorDepth 24
Subsection "Display"
Depth 8
Modes "1280x1024" "1024x768" "800x600" "640x400"
EndSubsection
Subsection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubsection
Subsection "Display"
Depth 24
Modes "1024x768"
EndSubsection
EndSection
之类的,
当然后面还有.
先这样试一下吧
发表于 2002-7-31 14:33:46 | 显示全部楼层
驱动程序是两个文件的是一个是kernel一个是GLX。。。
看样子好像是GLX不成。。。。。猜测。。。
重新装一下试试看呢?

装的是什么版本的驱动?
注意版本。。。

还有。装的时候有没有什么提示。。。。

如果内核版本不同的话。RPM包装是不会成功的。。
发表于 2002-7-31 14:36:56 | 显示全部楼层
刚才看了你下面那篇XMMS跟显卡的贴子。。感觉更像是显卡驱动没装好了。。

什么版本的linux>?
 楼主| 发表于 2002-7-31 15:00:26 | 显示全部楼层
我完全是根据joe_smu兄写的装,而且也出现了那样的警告,一模一样.请你们看看那片帖子,..http://www.linuxsir.cn/forum.php?mod=viewthread&tid=3349
谢谢!
 楼主| 发表于 2002-7-31 15:03:49 | 显示全部楼层
我根据pupilzeng的方法,只把那些删掉,X就进不去了,但我把跟它们相关的全部删掉,就可以正常进入系统,但是在关机和重启的时候,显示器会自动关闭.所以我又加回去了.
发表于 2002-7-31 15:20:15 | 显示全部楼层
好像装的不对。。。
到NV的网站上去找找你所用版作的RPM包。。如果没有相对应的。
就要用tar.gz的包来手功装了。

那些RPM是已经编译好的。只是在相应的内核和相应的版本下才能使用。。

像我现在用的是red hat 7.3
后来装了一下他最新的测试版 libmo
结果以前能用的显卡驱动全不能用了。
因为内核 变了。

网上又没有发布新内核的RPM包。
那么最简单的办法就是自己编译了。。。

另外。你也可以用用那个最全的i386的那个kernel包试试。。
如果不出错也可以。

另外。你的linux是什么版?
发表于 2002-7-31 15:23:45 | 显示全部楼层
像你刚才说的文章里的
NVIDIA_kernel-1.0-2960.rh72up_2.4.9_31.athlon.rpm

这是nv的kernel 1.0-2960是最新的版本。
后面的rh72up。
也就是说这个只能在redhat 7.2并且内核是2.49.32下用。

athlon是针对雷鸟CPU所优化的。

所以。。就算能装上。。不是相对应的版本。。。效果也不好。

如果实在是找不到相对应的版本。
那么可以下载scre的源代码的包或者是压缩包来自己编译。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表