Ati Radeon M6 and 3d acceleration

Any problems with the Xserver, Configs or Sound.

Ati Radeon M6 and 3d acceleration

Postby neopablo » 23 Feb 2012, 15:46

Hi! I own a Powerbook G4. New to YDL, but old to Linux, being Gentoo one of my first distros. So, i consider myself an intermediate user. But, there are distro-specific configurations and/or tricks to make things work. Before somebody tell me that activating 3D acceleration in such an oldie is useless, let me tell you I`m pretty curious about things not working how they should, even useless, hahahaha! Sorry for my english, not english-speaker. So, lets go with this thread:

My card:

Code: Select all
0000:00:10.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M6 LY (prog-if 00 [VGA controller])
        Subsystem: ATI Technologies Inc Radeon Mobility M6 LY
        Flags: bus master, stepping, 66MHz, medium devsel, latency 255, IRQ 48
        Memory at b8000000 (32-bit, prefetchable) [size=128M]
        I/O ports at 0400 [size=256]
        Memory at b0000000 (32-bit, non-prefetchable) [size=64K]
        Expansion ROM at f1000000 [size=128K]
        Capabilities: [58] AGP version 2.0
        Capabilities: [50] Power Management version 2


and my xorg.conf:
Code: Select all
# File generated by Xautoconfig.
Section "ServerLayout"
   Identifier   "XFree86 Configured"
   Screen      0  "Screen0" 0 0
   InputDevice   "Mouse0" "CorePointer"
   InputDevice   "Keyboard0" "CoreKeyboard"
   Option      "OffTime" "10"
EndSection

Section "Files"
# RgbPath is 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.

# 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    "/usr/share/X11/fonts/misc:unscaled"
       FontPath    "/usr/share/X11/fonts/Type1/"
       FontPath    "/usr/share/X11/fonts/Speedo/"
       FontPath    "/usr/share/X11/fonts/75dpi:unscaled"
       FontPath    "/usr/share/X11/fonts/100dpi:unscaled"
       FontPath    "/usr/share/X11/fonts/korean:unscaled"
       FontPath    "/usr/share/X11/fonts/cyrillic:unscaled"
       FontPath    "/usr/share/fonts/ISO8859-2/misc:unscaled"
       FontPath    "/usr/share/fonts/ISO8859-2/75dpi:unscaled"
       FontPath    "/usr/share/fonts/ISO8859-2/100dpi:unscaled"
       FontPath    "/usr/share/fonts/ISO8859-9/misc:unscaled"
       FontPath    "/usr/share/fonts/ISO8859-9/75dpi:unscaled"
       FontPath    "/usr/share/fonts/ISO8859-9/100dpi:unscaled"
       FontPath    "/usr/share/fonts/KOI8-R/misc:unscaled"
       FontPath    "/usr/share/fonts/KOI8-R/75dpi:unscaled"
EndSection

Section "Module"
   #Load   "dbe"
   #Load   "extmod"
   #Load   "fbdevhw"
   Load   "freetype"
   Load   "type1"
   #Load   "dri"
       
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "glx"
Load "int10"
Load "vbe"
Load "dbe"

EndSection

Section "InputDevice"
   Identifier   "Keyboard0"
   Driver      "kbd"
# Change "XkbModel" to "macintosh_old" if you are using
# the deprecated adb keycodes.
   Option      "XkbModel"   "macintosh"
   Option      "XkbLayout"   "es"
        Option          "XkbOptions"    "lv3:ralt_switch"
EndSection

Section "InputDevice"
   Identifier   "Mouse0"
   Driver      "mouse"
   Option      "ZAxisMapping"   "4 5"
   Option      "Protocol"   "IMPS/2"
   Option      "Device"   "/dev/input/mice"
EndSection

Section "Monitor"
   Identifier   "Monitor0"
   ModelName   "Monitor Model"
   Option "DPMS"
HorizSync 58-62
VertRefresh 75-117

# 1152x768 @ 75.00 Hz (GTF) hsync: 60.15 kHz; pclk: 92.39 MHz
Modeline "1152x768_75" 92.39 1152 1224 1344 1536 768 769 772 802 -HSync +Vsync

# 1152x768 @ 70.00 Hz (GTF) hsync: 56.00 kHz; pclk: 86.02 MHz
Modeline "1152x768_70" 86.02 1152 1224 1344 1536 768 769 772 800 -HSync +Vsync

# 1152x768 @ 65.00 Hz (GTF) hsync: 51.87 kHz; pclk: 78.84 MHz
Modeline "1152x768_65" 78.84 1152 1216 1336 1520 768 769 772 798 -HSync +Vsync

Modeline "1152x768_60.00" 71.75 1152 1216 1328 1504 768 771 781 798 -hsync +vsync

# 1152x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 71.74 MHz
Modeline "1152x768_60" 71.74 1152 1208 1328 1504 768 769 772 795 -HSync +Vsync

# 1024x768 @ 75.00 Hz (GTF) hsync: 60.15 kHz; pclk: 81.80 MHz
Modeline "1024x768_75" 81.80 1024 1080 1192 1360 768 769 772 802 -HSync +Vsync

# 1024x768 @ 70.00 Hz (GTF) hsync: 56.00 kHz; pclk: 76.16 MHz
Modeline "1024x768_70" 76.16 1024 1080 1192 1360 768 769 772 800 -HSync +Vsync

# 1024x768 @ 65.00 Hz (GTF) hsync: 51.87 kHz; pclk: 69.71 MHz
Modeline "1024x768_65" 69.71 1024 1080 1184 1344 768 769 772 798 -HSync +Vsync

# 1024x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 64.11 MHz
Modeline "1024x768_60" 64.11 1024 1080 1184 1344 768 769 772 795 -HSync +Vsync



EndSection

Section "Device"
   Identifier   "Card0"
   #Option   "ShadowFB"   "true"
   #Option   "fbdev"   "/dev/fb0"
   #Driver   "fbdev"
   #BusID   "0:0:0"
        Driver "radeon"
        Option "MacModel" "powerbook-internal"
        Option "AGPMode" "4"
        #Option "AGPFastWrite" "true"
       # Option "UseFBDev" "false"
        Option "DynamicClocks" "true"
       # Option "XAANoOffscreenPixmaps" "true"
       # Option "DisableGLXRootClipping" "true"
        Option "AddARGBGLXVisuals" "true"
       # Option "AllowGLXWithComposite" "true"
        Option "EnablePageFlip" "true"
        Option "AccelMethod"  "EXA"
        Option "MigrationHeuristic"  "greedy"

EndSection

Section "Screen"
   Identifier   "Screen0"
   Device      "Card0"
   Monitor      "Monitor0"
   DefaultDepth 24

SubSection "Display"
         Depth 24
         Modes "1152x768_75" "1152x768_70" "1152x768_65" "1152x768_60" "1024x768_75" "1024x768_70" "1024x768_65" "1024x768_60"
   EndSubSection
EndSection


Section "DRI"
   Group 0
   Mode 0666
EndSection

Section "Extensions"
        Option "Composite" "enable"
EndSection


Step by step, as I remember, what I did:
First, modified xorg.conf to load radeon driver, plus options, plus dri and glx modules. After that, i got a message from X complaining about agpgart not being loaded. So, downloaded kernel source code (with yum, same kernel), recompiled, activated agpgart uninorth, installed, rebooted, problem solved... no, no solved, haha, now everything works, but direct rendering is not being used because of this, extracted from Xorg.0.log:
Code: Select all
(EE) AIGLX error: dlopen of /usr/lib/dri/radeon_dri.so failed (/usr/lib/dri/radeon_dri.so: cannot open shared object file: No such file or directory)
(EE) AIGLX: reverting to software rendering


After doing a lot of research it looks like the mesa version installed by yellow dog 6.2 (version 7.1) could be outdated.. or, there is a need of reinstall with support for radeon, wich i really have no idea how to do that, hahaha. Im based in this:

Code: Select all
[ydl-gen] YDL 6.2 and dri
by Stephen Harker
   REPLY TO AUTHOR    
             REPLY TO GROUP    



 
As some may recall there was some discussion about lack of direct
rendering support on at least some Apple computers last year.  An
example being my iBook G4 2005 which had direct rendering under YDL
6.1 and 5.02.

To exemplify, under my current kernel (2.6.32.9) from dmesg I get:

dmesg | grep -e drm -e radeon

[drm] Initialized drm 1.1.0 20060810
[drm] radeon defaulting to userspace modesetting.
[drm] Initialized radeon 1.31.0 20080528 for 0000:00:10.0 on minor 0
[drm] Setting GART location based on new memory map
[drm] Loading R300 Microcode
platform radeon_cp.0: firmware: requesting radeon/R300_cp.bin
[drm] Num pipes: 1
[drm] writeback test succeeded in 1 usecs

While the most relevant lines from my Xorg.0.log are:

grep -e drm -e radeon -e EE Xorg.0.log

(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(II) Loading extension MIT-SCREEN-SAVER
(II) LoadModule: "radeon"
(II) Loading /usr/lib/xorg/modules/drivers//radeon_drv.so
(II) Module radeon: vendor="X.Org Foundation"
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:10.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: drmOpenMinor returns 8
drmOpenByBusid: drmGetBusid reports pci:0000:00:10.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:10.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: drmOpenMinor returns 8
drmOpenByBusid: drmGetBusid reports pci:0000:00:10.0
(II) [drm] DRM interface version 1.3
(II) [drm] DRM open master succeeded.
(II) RADEON(0): [drm] Using the DRM lock SAREA also for drawables.
(II) RADEON(0): [drm] framebuffer handle = 0x98000000
(II) RADEON(0): [drm] added 1 reserved context for kernel
(II) RADEON(0): [drm] installed DRM signal handler
(II) RADEON(0): [drm] register handle = 0x22000000
(II) RADEON(0): [drm] Added 32 65536 byte vertex/indirect buffers
(II) RADEON(0): [drm] Mapped 32 vertex/indirect buffers
(II) RADEON(0): [drm] dma control initialized, using IRQ 48
(II) RADEON(0): [drm] Initialized kernel GART heap manager, 5111808
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:10.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenByBusid: drmOpenMinor returns 9
drmOpenByBusid: drmGetBusid reports pci:0000:00:10.0
(EE) AIGLX error: dlopen of /usr/lib/dri/r300_dri.so failed (/usr/lib/dri/r300_dri.so: cannot open shared object file: No such file or directory)
(EE) AIGLX: reverting to software rendering

As you can see the problem appears to lie in the non-presence of
/usr/lib/dri/r300_dri.so.  A google search found that (for fedora, see
<http://forums.fedoraforum.org/showthread.php?t=187984>) this file was
part of mesa-libGL.  In the instant version of fedora this comprised:

rpm -ql mesa-libGL
/usr/lib/dri
/usr/lib/dri/i810_dri.so
/usr/lib/dri/i915_dri.so
/usr/lib/dri/i915tex_dri.so
/usr/lib/dri/i965_dri.so
/usr/lib/dri/mach64_dri.so
/usr/lib/dri/mga_dri.so
/usr/lib/dri/r128_dri.so
/usr/lib/dri/r200_dri.so
/usr/lib/dri/r300_dri.so
/usr/lib/dri/radeon_dri.so
/usr/lib/dri/savage_dri.so
/usr/lib/dri/tdfx_dri.so
/usr/lib/dri/unichrome_dri.so
/usr/lib/libGL.so.1
/usr/lib/libGL.so.1.2

However, for YDL 6.2 the equivalent comprises:

rpm -ql mesa-libGL
/usr/lib/dri
/usr/lib/dri/libdricore.so
/usr/lib/libGL.so
/usr/lib/libGL.so.1
/usr/lib/libGL.so.1.2

This suggests we either need to rebuild Mesa or to update to a newer
version.  If anyone is feeling adventurous try guides such as:
<http://www.x.org/wiki/radeonBuildHowTo>.


Based on this, i tried to download Mesa from source (version 8), together with dependencies, but one of them fails complaining about pthread-stubs not being installed, downloaded pthread-stubs package, installed, but keeps complaining, and that is the exact moment when i said: hey, stop getting in troubles, and consult the right people, being this ones, ydl users!! haha, so, is there an easy way to make my radeon get 3d acceleration? could i get my radeon_dri.so in place with some package? Should i reinstall mesa with some argument? Thank you very much in advance, and if you need further information, just ask.
neopablo
ydl newbie
ydl newbie
 
Posts: 4
Joined: 21 Feb 2012, 13:38

Return to X and Multimedia

Who is online

Users browsing this forum: No registered users and 5 guests

cron