Modifications

Sauter à la navigation Sauter à la recherche
1 016 octets ajoutés ,  20 juillet 2015 à 12:10
Ligne 4 : Ligne 4 :  
{{bloc-etroit|text=
 
{{bloc-etroit|text=
   −
{{ambox-stop|text=If you've grabbed our Easy Install image, or use the script, this step is not required, it's already done! This is just for advanced users who are curious on how to configure and customize the touchscreen }}
+
{{ambox-stop|text=Si vous avez téléchargé l'image "Easy Install" (installation facile), ou utilisé le script, cette étape n'est pas nécessaire car la calibration est déjà réalisée! Cette section du tutoriel est réservé aux curieux qui désirent configurer et personnaliser leur écran tactile. }}
    
}}
 
}}
Ligne 65 : Ligne 65 :     
== Calibration Manuelle ==
 
== Calibration Manuelle ==
If you rotate the display you have some other setup where you need to carefully calibrate you can do it 'manually'
+
Si vous avez appliqué une rotation à votre écran et que nous devez disposer d'une calibration précise de celui-ci... alors vous devez procéder à une calibration manuelle.
   −
You will want to calibrate the screen once but shouldn't have to do it more than that. We'll begin by calibrating on the command line by running
+
Vous n'aurez besoin de calibrer l'écran qu'une seule fois mais vous êtes libre de recalibrer l'écran autant de fois qu'il vous plaira. Nous commençons la calibration en exécutant le ligne de commande suivante:
    
  <nowiki>sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/touchscreen ts_calibrate</nowiki>
 
  <nowiki>sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/touchscreen ts_calibrate</nowiki>
   −
follow the directions on the screen, touching each point. Using a stylus is suggested so you get a precise touch. Don't use something metal, plastic only!
+
Suivez les instructions visibles à l'écran, touchez chaque point comme demandé. Utilisez un "Stylus" si vous avez besoin d'un positionnement précis. N'utilisez rien de métallique, uniquement du plastique!
    
{{ADFImage|RASP-PiTFT-PLUS-Touch-30.png}}
 
{{ADFImage|RASP-PiTFT-PLUS-Touch-30.png}}
   −
{{ambox-stop|text=You should see five crosshair targets. If you see less than that, the touchscreen probably generated multiple signals for a single touch, and you should try calibrating again.}}  
+
{{ambox-stop|text=Vous devriez voir 5 cibles en forme de croix durant le processus de calibration. Si vous en voyez moins c'est que l'écran tactile à généré plusieurs signaux "tactile" durant une pression, il sera nécessaire de refaire la calibration.}}  
    
{{ADFImage|RASP-PiTFT-PLUS-Touch-31.png|640px}}
 
{{ADFImage|RASP-PiTFT-PLUS-Touch-31.png|640px}}
   −
Next you can run {{fname|1=sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/touchscreen ts_test}} which will let you draw-test the touch screen. Go back and re-calibrate if you feel the screen isn't precise enough!
+
Ensuite, vous pouvez exécuter {{fname|1=sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/touchscreen ts_test}} qui vous permet de tester la calibration tactile de l'écran en réalisant un dessin. Recommencez la calibration (éventuellement avec un stylus) si vous trouvez que l'écran n'est pas assez précis!
    
{{ADFImage|RASP-PiTFT-PLUS-Touch-32.png}}
 
{{ADFImage|RASP-PiTFT-PLUS-Touch-32.png}}
    
== Calibration X ==
 
== Calibration X ==
You can also calibrate the X input system but you have to use a different program called '''xinput_calibrator'''.
+
Vous pouvez également calibrer le système d'entrée X (''X input system'') mais cela nécessite l'utilisation d'un autre programme appelé '''xinput_calibrator'''.
   −
You can do this if the calibration on the screen isnt to your liking or any time you change the '''rotate=XX''' module settings for the screen. Since the screen and touch driver are completely separated, the touchscreen doesn't auto-rotate
+
Vous pouvez utiliser ce logiciel si vous trouvez que la calibration de l'écran ne convient pas à vos attentes ou à chaque fois que vous modifiez le paramètre '''rotate=XX''' du module. Etant donné que l'écran et la partie tactile sont des pilotes totalement distincts (et séparer), la partie tactile ne fait pas d'auto-rotation lorsque vous faite une rotation de l'affichage.
   −
Normally you'd have to compile it but we have a ready to go package for you so run:
+
En temps normale, vous devriez compiler le programme "xinput_calibrator" mais Adafruit propose un paquet pré-compilé afin de nous simplifier la vie.
 +
Vous pouvez installer le paquet à l'aide de la commande suivante:
    
  <nowiki>wget http://adafruit-download.s3.amazonaws.com/xinput-calibrator_0.7.5-1_armhf.deb
 
  <nowiki>wget http://adafruit-download.s3.amazonaws.com/xinput-calibrator_0.7.5-1_armhf.deb
 
sudo dpkg -i -B xinput-calibrator_0.7.5-1_armhf.deb</nowiki>
 
sudo dpkg -i -B xinput-calibrator_0.7.5-1_armhf.deb</nowiki>
   −
Before you start the xinput_calibrator you will need to delete the old calibration data so run
+
Il est nécessaire d'effacer les anciennes données de calibration avant de démarrer une calibration à l'aide de xinput_calibrator.
    
  <nowiki>sudo rm /etc/X11/xorg.conf.d/99-calibration.conf</nowiki>
 
  <nowiki>sudo rm /etc/X11/xorg.conf.d/99-calibration.conf</nowiki>
   −
Before running {{fname|startx}} and the calibrator - otherwise it gets really confused!
+
C'est une tâche essentiel avant d'exécuter {{fname|startx}} et le calibrateur - sinon le programme de calibration devient vraiment confus!
Now you'll have to run the xcalibrator while also running X. You can do this by {{fname|startx}} and then opening up the terminal program and running the {{fname|xinput_calibrator}} command (which is challenging to do on such a small screen) OR you can do what we do which is run startx in a SSH/Terminal shell and then run the xinput_calibrator from the same shell, which requires the following command order:
+
Maintenant, nous allons exécuter xcalibrator pendant que X fonctionne. Vous pouvez réaliser cela en faisant un {{fname|startx}} puis ouvrir une session terminal et exécuter la commande {{fname|xinput_calibrator}} (''c'est un vrai challenge sur un écran aussi petit).
 +
 
 +
L'autre option est de démarrer X depuis une sessions SSH puis d'exécuter xinput_calibrator depuis le même terminal, cela est possible à l'aide des commandes suivantes:
    
  <nowiki>FRAMEBUFFER=/dev/fb1 startx &
 
  <nowiki>FRAMEBUFFER=/dev/fb1 startx &
 
DISPLAY=:0.0 xinput_calibrator</nowiki>
 
DISPLAY=:0.0 xinput_calibrator</nowiki>
   −
Follow the directions on screen:
+
Suivez les instructions à l'écran:
    
{{ADFImage|RASP-PiTFT-PLUS-Touch-40.png}}
 
{{ADFImage|RASP-PiTFT-PLUS-Touch-40.png}}
Ligne 112 : Ligne 115 :       −
Run {{fname|sudo nano /etc/X11/xorg.conf.d/99-calibration.conf}} and copy the
+
Executez {{fname|sudo nano /etc/X11/xorg.conf.d/99-calibration.conf}} et copiez le résultat
    
  <nowiki>Section "InputClass"
 
  <nowiki>Section "InputClass"
Ligne 121 : Ligne 124 :  
EndSection</nowiki>
 
EndSection</nowiki>
    +
(ou information obtenu) dans cette section. Vous pouvez quitter X en saisissant la commande {{fname|fg}} (ce qui ramène la commande d'arrière plan en premier plan) puis en pressant Control-C pour quitter.
   −
 
+
'''En fonction de la 'rotation' de l'écran pendant la calibration, vous pourriez avoir besoin de mettre la ligne 'SwapAxes' en commentaire avec un #''' et/ou '''intervertir les valeurs de calibration pour quelles passent de''':
or whatever you got, into there. You can quit X if you want by typing {{fname|fg}} to bring that command into the foreground, and then Control-C to quit.
  −
 
  −
'''Depending on the 'rotation' of the screen, when you do this calibration, you may need to comment out the SwapAxes part with a #''' and/or '''swap the numbers around so looks like''':
      
  <nowiki>Option "Calibration" "119 3736 3850 174"</nowiki>
 
  <nowiki>Option "Calibration" "119 3736 3850 174"</nowiki>
   −
to
+
à cela
    
  <nowiki>Option "Calibration" "3736 119 174 3850"</nowiki>
 
  <nowiki>Option "Calibration" "3736 119 174 3850"</nowiki>
   −
Your touchscreen is now super calibrated, hurrah!
+
Voila, vous avez maintenant un écran tactile super calibré!
    
{{RASP-PiTFT-PLUS-TRAILER}}
 
{{RASP-PiTFT-PLUS-TRAILER}}
29 917

modifications

Menu de navigation