LinuxSir.cn,穿越时空的Linuxsir!

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

我的quake3运行出错求教

[复制链接]
发表于 2005-12-17 16:41:58 | 显示全部楼层 |阅读模式
错误如下:
Q3 1.32b linux-i386 Nov 14 2002
----- FS_Startup -----
Current search path:
/home/ye/.q3a/baseq3
/opt/quake3/baseq3/pak8.pk3 (9 files)
/opt/quake3/baseq3/pak7.pk3 (4 files)
/opt/quake3/baseq3/pak6.pk3 (64 files)
/opt/quake3/baseq3/pak5.pk3 (7 files)
/opt/quake3/baseq3/pak4.pk3 (272 files)
/opt/quake3/baseq3/pak3.pk3 (4 files)
/opt/quake3/baseq3/pak2.pk3 (148 files)
/opt/quake3/baseq3/pak1.pk3 (26 files)
/opt/quake3/baseq3/pak0.pk3 (3539 files)
/opt/quake3/baseq3
./quake3.x86/baseq3

----------------------
4073 files in pk3 files
execing default.cfg
couldn't exec q3config.cfg
couldn't exec autoexec.cfg
Hunk_Clear: reset the hunk ok

------- Input Initialization -------
Joystick is not active.
------------------------------------
----- Client Initialization -----
----- Initializing Renderer ----
-------------------------------
----- Client Initialization Complete -----
----- R_Init -----
...loading libGL.so.1: Initializing OpenGL display
...setting mode 3: 640 480
Using XFree86-VidModeExtension Version 2.2
XF86DGA Mouse (Version 2.0) initialized
XFree86-VidModeExtension Activated at 640x480
Using 4/4/4 Color bits, 16 depth, 0 stencil display.
GL_RENDERER: Mesa GLX Indirect


***********************************************************
You are using software Mesa (no hardware acceleration)!
Driver DLL used: libGL.so.1
If this is intentional, add
       "+set r_allowSoftwareGL 1"
to the command line when starting the game.
***********************************************************
...WARNING: could not set the given mode (3)
----- CL_Shutdown -----
RE_Shutdown( 1 )
-----------------------
----- CL_Shutdown -----
-----------------------
Sys_Error: GLimp_Init() - could not load OpenGL subsystem

显卡是集成的intel 8xxG,编译内核的时候已经选择驱动为y了
发表于 2005-12-17 16:58:36 | 显示全部楼层
看样子是驱动不行。
glxgears跑跑看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-17 17:02:42 | 显示全部楼层
有红绿蓝三个齿轮出现。。转得满好的。。
然后终端显示一行一行的:
3094 frames in 5.0 seconds = 618.800 FPS
2838 frames in 5.0 seconds = 567.600 FPS
3319 frames in 5.0 seconds = 663.800 FPS
3491 frames in 5.0 seconds = 698.200 FPS
3405 frames in 5.0 seconds = 681.000 FPS
3518 frames in 5.0 seconds = 703.600 FPS
3405 frames in 5.0 seconds = 681.000 FPS
3292 frames in 5.0 seconds = 658.400 FPS
回复 支持 反对

使用道具 举报

发表于 2005-12-17 17:30:05 | 显示全部楼层
试试在加上命令行参数: +set r_allowSoftwareGL 1
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-17 17:44:57 | 显示全部楼层
恩,这个是可以,但是很慢。。
我运行3d游戏的时候都很慢,
在我的xorg.conf中
#Load  "dri"
这行是注释掉的,因为不注释掉连X都不能启动
我一直以为是俺的集成显卡烂,所以不支持dri的,
平常也不怎么玩游戏,所以关掉它省事。。
正在看这篇:http://www.linuxsir.cn/bbs/showthread.php?t=217911
好像我的这种集成显卡也是支持dri的?不知道是不是内核编译的时候没选上。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-17 17:53:01 | 显示全部楼层
附上内核编译的截图
ps:
$ glxinfo | grep rendering
direct rendering: No

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-18 14:56:15 | 显示全部楼层
今天重编译了内核,就有了drm:)

# glxgears
5857 frames in 5.0 seconds = 1171.400 FPS
6241 frames in 5.0 seconds = 1248.200 FPS
6244 frames in 5.0 seconds = 1248.800 FPS
6216 frames in 5.0 seconds = 1243.200 FPS

原来是这个原因:
如果你用xorg 6.8以上,需要在kernel配置中选中i830和i915
才能打开drm.
http://www.linuxsir.cn/bbs/showt ... amp;highlight=quake

但现在用普通用户运行3D游戏还不行(权限问题):
$ glxinfo | grep rendering
libGL error: open DRM failed (Operation not permitted)
libGL error: reverting to (slow) indirect rendering
direct rendering: No
但root是可以玩了,找了半天也没找到哪里的权限问题。。

还有一个,quake的时候是没有声音的。。
据说是quake不用alsa,但不知道quake的时候怎么切换为oss?
还不知道内核的时候有没有把oss编进。。
回复 支持 反对

使用道具 举报

发表于 2005-12-18 15:10:04 | 显示全部楼层
Post by tell
今天重编译了内核,就有了drm:)

# glxgears
5857 frames in 5.0 seconds = 1171.400 FPS
6241 frames in 5.0 seconds = 1248.200 FPS
6244 frames in 5.0 seconds = 1248.800 FPS
6216 frames in 5.0 seconds = 1243.200 FPS

原来是这个原因:
http://www.linuxsir.cn/bbs/showt ... amp;highlight=quake

但现在用普通用户运行3D游戏还不行(权限问题):
$ glxinfo | grep rendering
libGL error: open DRM failed (Operation not permitted)
libGL error: reverting to (slow) indirect rendering
direct rendering: No
但root是可以玩了,找了半天也没找到哪里的权限问题。。

还有一个,quake的时候是没有声音的。。
据说是quake不用alsa,但不知道quake的时候怎么切换为oss?
还不知道内核的时候有没有把oss编进。。

我的 q3 是使用  alsa 的;)
[ebuild   R   ] games-fps/quake3-1.33_alpha364  -dedicated +opengl 0 kB
权限的问题把自己加入 video 组就行了。
gpasswd -a user group
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-18 15:17:59 | 显示全部楼层
你的quake3。。
我的是:
[ebuild   R   ] games-fps/quake3-1.32b-r3  -dedicated +opengl 0 kB

还是不玩算了哈,头好晕。。
但权限的问题俺这样解决了,改xorg.cong里面的:
Section "DRI"
    Mode 0666
EndSection

我原来的这一段是这样:
Section "DRI"
    Group 0
    Mode 0666
EndSection

Thanks to sunmoon.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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