Installing the Openchrome driver
The Openchrome driver comprises of several components:
- 2D driver - This is the DDX driver openchrome_drv.so which provides 2D acceleration, Xv, hardware initialisation, screen resolution, tv-out etc. This component is provided in the
- DRI module - As well as the global DRM system module, DRI also requires the card specific module to operate within the DRM. The X server and DRI clients talk to the kernel modules through libdrm. This component is provided by kernel modules
- 3D driver - 3D acceleration is provided through libGL.so which in turn utilises DRI. This accelerates OpenGL aware programs. The unichrome_dri.so driver is required in order to interface between your hardware and libGL.so. This driver is provided in the
- MPEG2 decoding driver - Decoding of MPEG2 requires the libchromeXvMC.so driver, which uses DRI to talk to the hardware directly. This driver is also provided in the
- First things first, you will need to follow the EPIA kernel guide here.
This ensures that you will have a kernel compiled with the necessary modules to get DRI up and running.
It also allows you to test that you can get the basic TV-out driver working before going any further.
- I assume at this point that you are running Xorg 7.x. If you need help upgrading from Xorg 6.8, check
out our migration guide.
- In your
via openchrome to your VIDEO_CARDS and
unichrome cle266 xvmc dri to your USE flags if you don't have them already.
- Install the drivers by doing
emerge openchrome mesa.
- Ensure that the openchrome driver is selected for XvMC by doing
eselect xvmc list. If openchrome isn't
eselect xvmc set <number> where <number> corresponds to the openchrome option.
revdep-rebuild to make sure your system is consistent.
- Jobs a good one!
Using the Openchrome driver
The openchrome driver includes support for Myth TV and Xine. To enable support in Myth
TV, do the following:
Xine hardware acceleration can be achieved as follows:
unichrome is in your USE flags.
emerge -N mythtv.
- Run the mythfrontend and go into Setup.
- Go into TV Settings and select Playback.
- Navigate through the pages until you reach the Hardware Decoder screen. Select
Use HW XVMC VLD Decoding (Via only).
- Your box should now use hardware decoding.
xvmc cle266 are in your USE flags.
emerge -N xine-lib to emerge xine with the support.
xine -V xxmc -A alsa.