powervr driver startup and permission issues
Hi all,
I have successfully found, downloaded, compiled and installed the powervr driver for my Kyro based Hercules graphics card. It works fine - for root. As I understand it, the last section of my XF86Config should take care of the permissions issue, but it doesn't.
# 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)
#DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
AllowMouseOpenFail # allows the server to start up even if the mouse doesn't work
EndSection
Section "Module"
Load "GLcore"
Load "dri"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "glx" # 3D layer
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
# Sony Vaio C1(X,XS,VE,VN)?
# 1024x480 @ 85.6 Hz, 48 kHz hsync
ModeLine "1024x480" 65.00 1024 1032 1176 1344 480 488 494 563 -hsync -vsync
# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630
# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection
Section "Device"
BusID "PCI:1:0:0"
Identifier "KYRO"
Driver "powervr"
Boardname "Unknown"
Option "DPMS"
EndSection
Section "Screen"
Identifier "screen1"
Device "KYRO"
Monitor "monitor1"
DefaultColorDepth 16
Subsection "Display"
Depth 8
Modes
EndSubsection
Subsection "Display"
Depth 15
Modes
EndSubsection
Subsection "Display"
Depth 16
Modes
EndSubsection
Subsection "Display"
Depth 24
Modes
EndSubsection
EndSection
Section "ServerLayout"
Identifier "layout1"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse1" "CorePointer"
Screen "screen1"
EndSection
Section "DRI"
Mode 0666
EndSection
I would like to know exactly which file I should chmod, in order to sort out this issue. When testing if it worked with glxgears, this was printed for root:
# glxgears
Loading required GL library /usr/X11R6/lib/libGL.so.1.2
BPP(16) DB(1N) W(304) H(300) Xclip(4) Yclip(0) PFD(8)
1466 frames in 5.0 seconds = 293.200 FPS
1727 frames in 5.0 seconds = 345.400 FPS
This for user:
$ glxgears
Loading required GL library /usr/X11R6/lib/libGL.so.1.2
libGL error: failed to open DRM: Operation not permitted
libGL error: reverting to (slow) indirect rendering
348 frames in 6.0 seconds = 58.000 FPS
320 frames in 6.0 seconds = 53.333 FPS
Do I chmod libGL.so.1.2, or DRM? If DRM, where do I find it?
The second part of my question is, how can I ensure powervr is loaded automatically? Do I have to edit modules.conf or what?
Heres hoping someone can help, cos I don't want to play enemy territory online as root.....
Thanks in advance.....
Jon
|