Click to See Complete Forum and Search --> : KYRO II help needed


Jonny_Michaels
05-05-2004, 07:58 PM
Hi all,

I have run into a spot of difficulty.

I have a dual boot Win98/Mandrake 10 Community desktop pc. It has Intel Celeron chip, 512MB RAM, hda 4GB (Win98), hdb 40GB (Linux 2.4.21-0.13mdkcustom), Hercules Prophet 4500 64MB with KYRO II powervr drivers installed, CreativeLabs Live5.1 using emu10k1 and a Conexant PCI ADSL modem, with Conexant Access runner installed.

My Win98 internet connection keeps stalling. I thought initially this was an ISP problem, however, upon finally getting the Conexant drivers working, I realise it isn't, as my Linux box stays up. I enjoy playing Half-Life DoD online, which has become near impossible with '98 due to connection probs.

This led me to Wine, Winex, OpenGL, DRI and XF86Config-4. I thought maybe a prob on 1 system could help solve the 1 on the other, but it showed me that Linux wasn't using my Graphics card. I have trawled the net for answers, and finally am able to see with glxinfo this:

name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Imagination Technologies
OpenGL renderer string: PowerVR KYRO
OpenGL version string: 1.2.1
OpenGL extensions:
GL_ARB_multisample, GL_ARB_multitexture, GL_ARB_texture_compression,
GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
GL_ARB_texture_env_dot3, GL_ARB_transpose_matrix, GL_EXT_abgr,
GL_EXT_bgra, GL_EXT_compiled_vertex_array, GL_EXT_draw_range_elements,
GL_EXT_packed_pixels, GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_stencil_wrap, GL_EXT_texture3D,
GL_EXT_texture_compression_s3tc, GL_EXT_texture_env_add,
GL_EXT_texture_env_combine, GL_EXT_texture_filter_anisotropic,
GL_EXT_vertex_array, GL_S3_s3tc
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x23 16 tc 1 16 0 r . . 5 6 5 0 0 32 0 0 0 0 0 0 0 None
0x24 16 tc 1 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x25 16 tc 1 16 0 r y . 5 6 5 0 0 32 0 0 0 0 0 0 0 None
0x26 16 tc 1 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x27 16 tc 1 16 0 r . . 5 6 5 0 0 32 4 0 0 0 0 0 0 None
0x28 16 tc 1 16 0 r . . 5 6 5 0 0 16 4 0 0 0 0 0 0 None
0x29 16 tc 1 16 0 r y . 5 6 5 0 0 32 4 0 0 0 0 0 0 None
0x2a 16 tc 1 16 0 r y . 5 6 5 0 0 16 4 0 0 0 0 0 0 None
0x2b 16 dc 1 16 0 r . . 5 6 5 0 0 32 0 0 0 0 0 0 0 None
0x2c 16 dc 1 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x2d 16 dc 1 16 0 r y . 5 6 5 0 0 32 0 0 0 0 0 0 0 None
0x2e 16 dc 1 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x2f 16 dc 1 16 0 r . . 5 6 5 0 0 32 4 0 0 0 0 0 0 None
0x30 16 dc 1 16 0 r . . 5 6 5 0 0 16 4 0 0 0 0 0 0 None
0x31 16 dc 1 16 0 r y . 5 6 5 0 0 32 4 0 0 0 0 0 0 None
0x32 16 dc 1 16 0 r y . 5 6 5 0 0 16 4 0 0 0 0 0 0 None

My XF86Config-4 is this:

# File generated by XFdrake.

# ************************************************** ********************
# Refer to the XF86Config man page for details about the format of
# this file.
# ************************************************** ********************

Section "Files"
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Mandrake 6.0 and later now use a font server independent of
# the X server to render fonts.
FontPath "unix/:-1"
EndSection

Section "ServerFlags"
#DontZap # disable <Crtl><Alt><BS> (server abort)
AllowMouseOpenFail # allows the server to start up even if the mouse doesn't work
#DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
EndSection

Section "Module"
Load "dbe" # Double-buffering
Load "GLcore" # OpenGL support
Load "dri" # Direct rendering infrastructure
Load "glx" # OpenGL X protocol interface
Load "extmod" # Misc. required extensions
# Load "v4l" # Video4Linux
# Load "pex5" # PHIGS for X 3D environment (obsolete)
# Load "record" # X event recorder
# Load "xie" # X Image Extension (obsolete)
# You only need the following two modules if you do not use xfs.
Load "freetype" # TrueType font handler
Load "type1" # Adobe Type 1 font handler
EndSection

Section "InputDevice"
Identifier "Keyboard1"
Driver "Keyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "gb"
Option "XkbCompat" ""
Option "XkbOptions" ""
EndSection

Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
Identifier "monitor1"
VendorName "Mitsubishi"
ModelName "Mitsubishi MERLIN"
HorizSync 30.0-54.0
VertRefresh 50.0-100.0
EndSection

Section "Device"
BusID "PCI:1:0:0"
Identifier "KYRO"
Driver "powervr"
BoardName "Unknown"
# Option "HWCursor" "0"
# Option "NoAccel" "1"
EndSection

Section "Screen"
Identifier "Screen1"
Device "KYRO"
Monitor "monitor1"
# Set your desired default color depth here (16 or 24)
DefaultDepth 16
Subsection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
Subsection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "layout1"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse1" "CorePointer"
Screen "screen1"
EndSection

Section "DRI"
Mode 0666
EndSection

I still cannot run Half-Life as a normal user with Hardware Acceleration!!! When logged on as normal user, software rendering is used at about 30 frames/sec. as opposed to 300 odd as root.

Any offers??? Please???

Thanks in advance and sorry for mega long first post.

Jon

ps Just checked message length an I guess its not too bad :-)

hard candy
05-06-2004, 05:56 AM
A link with some newer drivers
power vr drivers (http://www.abclinuxu.cz/drivers/show/3773)
Now on the user issue, it seems that if both root and user have the same xfconfig file, then they should both work the same. Unless there is some permission problem with Halflife that keeps the user from accessing the 3d acceleration under Half life.

Jonny_Michaels
05-06-2004, 08:51 AM
Thanks for those (? I'm sure there were 2 when I looked earlier?) links hard candy.

Unfortunately, I have these newer powervr drivers in already.

The DRI Section at the end of my XF86Config-4 is supposed to take care of all permission issues, and allow an ordinary user to have Accelerated Hardware.

The only other thing that I came across that I may try, is to set up a group of users on my system that can have access to Accelerated Hardware, and put everyone in it.

Ill post back when I get the chance to try it and let you know if that worked.

If anyone else has any suggestions they're all welcome.

Thanks

Jon

Jonny_Michaels
05-06-2004, 11:44 AM
Further to my original post I thought it may be use ful to show what glxinfo said as a normal user:

[jon@localhost jon]$ glxinfo
name of display: :0.0
libGL error: failed to open DRM: Operation not permitted
libGL error: reverting to (slow) indirect rendering
display: :0 screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.3 Mesa 4.0.4
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_border_clamp,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_color,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_texture_env_add,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_lod_bias
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x23 16 tc 1 16 0 r . . 5 6 5 0 0 32 0 0 0 0 0 0 0 None
0x24 16 tc 1 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x25 16 tc 1 16 0 r y . 5 6 5 0 0 32 0 0 0 0 0 0 0 None
0x26 16 tc 1 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x27 16 tc 1 16 0 r . . 5 6 5 0 0 32 4 0 0 0 0 0 0 None
0x28 16 tc 1 16 0 r . . 5 6 5 0 0 16 4 0 0 0 0 0 0 None
0x29 16 tc 1 16 0 r y . 5 6 5 0 0 32 4 0 0 0 0 0 0 None
0x2a 16 tc 1 16 0 r y . 5 6 5 0 0 16 4 0 0 0 0 0 0 None
0x2b 16 dc 1 16 0 r . . 5 6 5 0 0 32 0 0 0 0 0 0 0 None
0x2c 16 dc 1 16 0 r . . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x2d 16 dc 1 16 0 r y . 5 6 5 0 0 32 0 0 0 0 0 0 0 None
0x2e 16 dc 1 16 0 r y . 5 6 5 0 0 16 0 0 0 0 0 0 0 None
0x2f 16 dc 1 16 0 r . . 5 6 5 0 0 32 4 0 0 0 0 0 0 None
0x30 16 dc 1 16 0 r . . 5 6 5 0 0 16 4 0 0 0 0 0 0 None
0x31 16 dc 1 16 0 r y . 5 6 5 0 0 32 4 0 0 0 0 0 0 None
0x32 16 dc 1 16 0 r y . 5 6 5 0 0 16 4 0 0 0 0 0 0 None

Everything the same bar the top three lines.

Notice the libGL error at the top. Do I somehow need to reconfigure that library for a user to access it, and if so, how?

Maybe this'll give someone more clues.....I hope.

I reset DRI section permissions in XF86Config-4 to 0777 in the hope that this would work. Alas no, and have now put it back to 0666, as in the sample powervr XF86Config.

The search goes on.

Jon

Jonny_Michaels
05-06-2004, 03:23 PM
I was checking out old threads on here, and guess what? Somebody had had this prob b4.

Sorry, but was that pleased to find a cure, that I forgot the geezers nickname.

Thankyou to somebody for this:

chmod a+rwx /dev/dri

That fixed it. Now to tweak wine til I'm killin online again.

Jon