Hardware Acceleration Ubuntu+Ati Radeon HD
#5
I finally got it to work!

AMD Phenom X2 240e (2x 2,8GHz, 45W), AMD Radeon 4200 (Mainboard-Integrated GPU), Ubuntu 10.10 (+ 11.04 packages), xbmc 2:10.5-dharma+pvr~odk48+maverick, Linux Kernel 2.6.38-5, Xorg Driver radeon, Mesa Gallium.

720p video runs perfectly at 55% CPU.

I just followed this howto:
http://pkg-xorg.alioth.debian.org/howto/build-mesa.html

and then built this init script
Code:
start on (filesystem
          and started dbus
          and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1)
stop on runlevel [016]
console output
respawn

exec su xbmc -l -c /usr/bin/startx

pre-start script
        export LIBGL_DRIVERS_PATH=/work/mesa/lib/gallium
        export LD_LIBRARY_PATH=/work/mesa/lib/gallium
        export EGL_DRIVERS_PATH=/work/mesa/lib/gallium/egl
end script

and this ~xbmc/.xinitrc

Code:
#!/bin/bash
export LIBGL_DRIVERS_PATH=/work/mesa/lib/gallium
export LD_LIBRARY_PATH=/work/mesa/lib/gallium
export EGL_DRIVERS_PATH=/work/mesa/lib/gallium/egl
xbmc-standalone

Not sure if I really need the exports in xinitrc. But it surely does not hurt.
/work/mesa is the directory of the mesa source code.

I had to disable the vsync option, or the xbmc gui and overlay would flicker badly.
Reply


Messages In This Thread
[No subject] - by mr.sparkle - 2010-11-15, 08:29
[No subject] - by NightStormWolf - 2010-11-15, 09:50
[No subject] - by kappa8086 - 2010-11-15, 11:35
[No subject] - by coolinger - 2011-03-01, 23:23
[No subject] - by dugger5688 - 2011-03-02, 09:43
[No subject] - by coolinger - 2011-03-02, 10:40
[No subject] - by Reptilian - 2011-03-03, 09:16
Logout Mark Read Team Forum Stats Members Help
Hardware Acceleration Ubuntu+Ati Radeon HD0