Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
openchrome [Le 11/12/2006, 23:14]
82.234.172.178 créée
openchrome [Le 11/09/2022, 10:36] (Version actuelle)
moths-art Suppression des espaces en fin de ligne (détecté et corrigé via le bot wiki-corrector (https://forum.ubuntu-fr.org/viewtopic.php?id=2067892)
Ligne 1: Ligne 1:
-Openchrome est un projet de pilote libre pour les puces graphiques VIA/S3G UniChrome et UniChrome Pro. +{{tag> matériel carte_graphique}}
-(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.+====== OpenChrome: S3 Unichrome ======
  
 +**OpenChrome** est un projet de pilote libre pour les [[https://​en.wikipedia.org/​wiki/​S3_Chrome|puces graphiques VIA/S3G]] UniChrome et UniChrome Pro (CLE266, KN400, KM400, K8M800, PM800, CN400, VN800, K8M890 Chrome9 IGP).
 +Pour de plus amples informations sur le projet, visitez [[https://​www.freedesktop.org/​wiki/​Openchrome|cette page]] (en).
 +Le pilote est installé par défaut il correspond au paquet : [[apt>​xserver-xorg-video-openchrome]].
  
-=== Before You Start  ===+===== Avant de commencer ===== 
 +  
 +  * Vous devez avoir [[:sudo|les droits d’administrateur]]. 
 +  
 +  
 +===== Gestion de la 2D =====
  
- * Vous devez avoir des droits d'administateur+==== Prise en compte ​des pilotes openchrome par le serveur graphique ==== 
- ​* ​Assurez-vous d'avoir activé les dépôts Universe et Multiverse d'Ubuntu+Après avoir [[:​xorg#​que_faire_s_il_n_y_a_pas_de_fichier_xorgconf_sur_le_disque|générer votre fichier xorg.conf]] il est vivement conseillé de faire une sauvegarde de ce dernier (qui est le fichier de configuration du serveur X) : <​code>​sudo cp /​etc/​X11/​xorg.conf /​etc/​X11/​xorg.backup</​code>​ 
 +Ainsi, en cas de problèmes, il suffit de restaurer l'ancien fichier, ceci vous évitera peut-être bien des maux de tête : <​code>​sudo cp /​etc/​X11/​xorg.backup /​etc/​X11/​xorg.conf</​code>​ 
 +  [[:​tutoriel:​comment_modifier_un_fichier|Éditez le fichier]] xorg.conf pour adopter le pilote « via » :<​code>​gksudo gedit /​etc/​X11/​xorg.conf</​code>​ 
 +Et dans la section « ''​"​Device"''​ » en face de driver mettez "​openchrome"​ : 
 +<​file>​ 
 +  Section "​Device"​ 
 +</​file>​ 
 +et changez 
 +<​file>​ 
 +  Driver "​blahblah"​ 
 +</​file>​ 
 +pour 
 +<​file>​ 
 +  Driver "​openchrome"​ 
 +</​file>​ 
 +  * Enregistrez le fichier.
  
 +Au final, [[:​tutoriel:​comment_redemarrer_le_serveur_graphique|relancez l'​interface graphique X]].
  
-=== Compilation des pilotes OpenChrome ​=== +==== Attention ====
- * 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 distributionsrun+Si le serveur graphique Xorg ne se relance pas (vous aurez un écran bleu avec des symboles bizarres et du texte en anglais), il faudra soit rétablir la version sauvegardée de xorg.confsoit éditer de nouveau le fichier xorg.conf pour remettre l'​ancien pilote dans la section ''​Device''​. Notez la ligne de commande suivante avant de relancer : <​code>​sudo nano /​etc/​X11/​xorg.conf</​code>​
  
-''​sudo apt-get build-dep xserver-xorg-driver-via''​+===== OpenChrome et la 3D =====
  
 +Pour savoir si la 3D est activée (mais ça m'​étonnerait franchement beaucoup), tapez : <​code>​glxinfo | grep rendering</​code>​
 +vous devriez obtenir une ligne du style:
 +<​file>​
 +  Direct rendering: Yes
 +</​file>​
 +À moins que ça ne fasse planter votre serveur X. :-D
  
-  in order to install the packages needed for the compilation of openChrome. Additionaly install +**Sinon, il vous reste toujours la 2D : c'est mieux que rien !**
-  ​subversion +
-  ​autoconf +
-  ​automake1.9 +
-  ​libtool +
-  * git-arch+
  
 +===== Problèmes et solutions =====
  
-''​sudo apt-get subversion autoconf automake1.9 libtool git-arch''​+==== Mon système se glace avec des applications OpenGL, des jeux, écran de veille, ou avec Wine====
  
 +Ceci est dû à un bug dans drm. Pour y remédier [[:​tutoriel:​comment_modifier_un_fichier|éditez le fichier]] **/​etc/​X11/​xorg.conf** et remplacez load par Disable :
 +<​file>​
 +    Section "​Module"​
 +       ...
 +       ​Disable ​   "​dri"​
 +       ...
 +    EndSection
 +</​file>​
  
- * Start the real fun' +Cela aura pour effet de supprimer l'accélération 3D et d'​avoir un rendu logiciel à la place d'un rendu matériel, mais votre système ne se glacera plus.
-  We will now compile the openChrome 2D driver+
  
-  * Create a new directory +====Je n'ai pas d'image lorsque je lis des vidéos==== 
-   +Cela arrive le plus souvent sur des ordinateurs portables et est dû au fait que Openchrome ne gère pas correctement Xv sur certains modèles. Vous pouvez essayer de changer le pilote vidéo de votre lecteur (dans Xine) pour "​gl"​ ou "​x11"​ et tester. Ce problème n'apparaît plus lorsqu'on utilise un moniteur externe. Les développeurs du projet Openchrome travaillent sur la résolution du problème.
-''​mkdir openchrome''​ +
-  * Change into the newly created directory+
  
-''​cd openchrome''​ +Avec VLC Ouvrez VLC, puis cliquez sur Paramètres ⇒ Préférences ⇒ Vidéo ⇒ Output Modules, cocher la case « Options Avancées », puis changer le mode de sortie vidéo pour le mode « X11 ».
-  * Get the openChrome sourcecode ​:+
  
-''​svn co http://svn.openchrome.org/svn/​trunk/''​+Avec Totem, le changement de greffon de sortie se fait par : 
 +''​$ gstreamer-properties''​\\  
 +Dans l'​onglet Vidéo, sélectionner "X Window System (sans Xv)" à la place de "​Autodetect"​ ([[http://forum.ubuntu-fr.org/viewtopic.php?​pid=2912789#​p2912789|source]];​ testé sur un vieux portable Acer Aspire 1350 sous Karmic)
  
-  * For K8M890 chipset, alternatively run :+====Ma souris disparaît parfois====
  
-''​svn co http://svn.openchrome.org/svn/branches/vt3336_branch/''​+C'est un bug connu qui affecte la gestion des puces VN800 et VM800. Vous pouvez essayer d'ajouter l'​option suivante dans la section ​//Device// de «xorg.conf» : 
 +<​file> ​       Option ​         "​SWCursor"​ "​true"<​/file>
  
-  * Change into the sourcecode directory+====Je n'ai plus de 3D après une mise à jour du noyau linux==== 
 +Si vous avez installé manuellement les DRM du noyau, il va vous falloir les recompiler à nouveau avec les nouveaux headers du noyau. la procédure est la même que celle déjà expliquée.
  
-''​cd trunk''​+====Lenteur extrême rendant le système inexploitable==== 
 +La cause (constaté sur Lubuntu 12.04 et 14.04) est la 3D, il faut donc désactiver le module. 
 +Dans votre fichier xorg.conf modifiez la ligne (mettre "​disable"​ à la place de "​load"​) : 
 +<​file>​ 
 +     ​Section "​Module"​ 
 +       ... 
 +       ​Disable ​   "​dri"​  
 +       ... 
 +    EndSection</​file>​
  
-  ​For K8M890, alternatively type :+=====Voir aussi===== 
 +  ​[[https://​help.ubuntu.com/​community/​OpenChrome|La documentation anglophone]]. 
 +----
  
-''​cd vt3336_branch''​ +// Contributeurs ​:[[:​utilisateurs:​l_africain|L'Africain]] //
- +
-  * 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 +
- {{{ +
-sudo gedit /​etc/​X11/​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'''​ +
- {{{ +
-git-clone git://​anongit.freedesktop.org/​git/​mesa/​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)