Ceci est une ancienne révision du document !


Openchrome est un projet de pilote libre pour les puces graphiques VIA/S3G UniChrome et UniChrome Pro. (CLE266, KN400, KM400, K8M800, PM800, CN400, VN800, K8M890)

Comme les pilotes d For more information, please visit http://www.openchrome.org/

This howto will help you to compile openChrome in Ubuntu 6.06 LTS and up. It should also work on Debian and other Debian based distributions like Kanotix and Knoppix.

Before You Start

* Vous devez avoir des droits d'administateur. * Assurez-vous d'avoir activé les dépôts Universe et Multiverse d'Ubuntu.

Compilation des pilotes OpenChrome

* Install needed packages

In Ubuntu 6.10 (Edgy), run

sudo apt-get build-dep xserver-xorg-video-via

In Ubuntu 6.06.1 (Dapper), Debian and other Debian based distributions, run

sudo apt-get build-dep xserver-xorg-driver-via

in order to install the packages needed for the compilation of openChrome. Additionaly install
* subversion
* autoconf
* automake1.9
* libtool
* git-arch

sudo apt-get subversion autoconf automake1.9 libtool git-arch

* Start the real fun'

We will now compile the openChrome 2D driver
  • Create a new directory

mkdir openchrome

  • Change into the newly created directory

cd openchrome

  • Get the openChrome sourcecode :

svn co http://svn.openchrome.org/svn/trunk/

  • For K8M890 chipset, alternatively run :

svn co http://svn.openchrome.org/svn/branches/vt3336_branch/

  • Change into the sourcecode directory

cd trunk

  • For K8M890, alternatively type :

cd vt3336_branch

  • Run autogen.sh with the prefix option so that the driver is being installed in the correct directory

sudo ./autogen.sh –prefix=/usr/

  • Compile openChrome

sudo make

  • Install openChrome

sudo make install

* Change the Xorg driver to via

Now we have to edit /etc/X11/xorg.conf and change the Device Driver to via xorg.conf} Go to section_device} and change driver_blahblah} to driver_via} Save the file.

Finally, we have to restart our Xorg server by pressing Ctrl-Alt-Backspace. If Xorg does not start anymore, log in in a console and change the Driver in the Device section back with an editor like nano (Write the following on a piece of paper).

{{{

sudo nano /etc/X11/xorg.conf}}}

openChrome and 3D

3D should work out of the box in Edgy. If it does not do the following:

* 'Obtain the sourcecode' drm}

* 'Compile libdrm and drm kernel modules'

  • 'libdrm'BR

Change to the directory where the drm sourcecode is stored

{{{cd drm

}}}

Run the autogen script
{{{./autogen.sh --prefix=/usr

}}}

Compile the source code
{{{make

}}}

Install the compiled source code
{{{make install

}}}

  • 'drm kernel modules'BR

Change to the correct directory (you have to already be in the directory drm)

{{{cd linux-core

}}}

Compile the kernel modules
{{{make LINUXDIR=/lib/modules/`uname -r`/build DRM_MODULES=via

}}}

Copy the kernel modules to the correct location
{{{cp *.ko /lib/modules/`uname -r`/kernel/drivers/char/drm/

}}}

Run depmod
{{{depmod -ae

}}} That should be it. Reboot and see how it goes.

Problems and solutions

* 'My system sometimes freezes'BR This is being caused by a bug in drm. To solve this, you have to uncomment load_dri} in your xorg.conf. As a result, you won't have 3D acceleration anymore, but your system won't freeze.

* 'I do not have any picture when playing videos'BR This mostly happens when using a laptop and is caused by openChrome not supporting Xv correctly on some models. You can try to change the video driver in Xine to "gl" or "x11" and see if that helps. This problem does not appear when not using the integrated LCD and using an external monitor instead. The openChrome developers are investigating into this problem.

* 'My mouse cursor sometimes disappears'BR This is known to happen on VN800 and VM800 chipsets. As a solution, you can try to add option_swcursor_true} To the device section in your xorg.conf.

  • openchrome.1165875244.txt.gz
  • Dernière modification: Le 18/04/2011, 14:41
  • (modification externe)