Ligne 66 : |
Ligne 66 : |
| {{ADFImage|RASP-PiTFT-Soft-Touch-06.png}} | | {{ADFImage|RASP-PiTFT-Soft-Touch-06.png}} |
| | | |
− | == Calibration X == | + | == Calibration X Serveur == |
| | | |
− | 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 serveur (''X input system'') mais vous devez utiliser un programme différent qui s'appelle '''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 effectuer cette opération sur la calibration de l'écran n'atteind pas vos attentes ou à chaque fois que vous changez le paramètre ''rotate=XX'' du module TFT. L'écran tactile ne fait pas une rotation automatique lorsque vous changez la rotation de l'écran... en effet, le pilote de l'écran est totalement séparé du pilote tactile. |
| | | |
− | Normally you'd have to compile it but we have a ready to go package for you so run:
| + | Vous devez normalement compiler le programme mais AdaFruit a eu l'excellente idée de préparer des paquets prêt à l'emploi. |
| + | |
| + | Exécutez les commandes suivantes: |
| | | |
| <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
| + | Vous devez effacer les anciennes données de calibration avant de démarrer xinput_calibrator. Il faut donc exécuter la commandes suivantes: |
| | | |
| <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 '''startx''' and the calibrator - otherwise it gets really confused!
| + | Avant de démarrer '''startx''' et le programme de calibration - sinon les choses risque d'être vraiment confuse! |
| | | |
− | Now you'll have to run the xcalibrator while also running X. You can do this by startx and then opening up the terminal program and running the '''xinput_calibrator''' command OR you can do what we do which is run startx in a SSH/Terminal shell and then run the xinput_calibrator in the X window, which requires the following command order:
| + | Maintenant, vous aurez besoin d'exécuter xcalibrator pendant que X Serveur fonctionne. Vous pouvez atteindre ce but en exécutant '''startx''' et en ouvrant un terminal pour exécuter '''xinput_calibrator'''. Ou vous pouvez aussi réaliser ce que nous faisons, c'est a dire démarrer '''startx''' depuis SSH/Terminal et exécuter ensuite '''xinput_calibrator''' dans X window, ce qui peut être réaliser l'aide de la série de 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 ensuite les instructions visibles à l'écran. |
| | | |
| {{ADFImage|RASP-PiTFT-Soft-Touch-10.png}} | | {{ADFImage|RASP-PiTFT-Soft-Touch-10.png}} |
| | | |
− | Once complete you'll get something like:
| + | Une fois terminé, vous devriez obtenir un résultat comme celui-ci: |
| | | |
| {{ADFImage|RASP-PiTFT-Soft-Touch-11.png|480px}} | | {{ADFImage|RASP-PiTFT-Soft-Touch-11.png|480px}} |