L’écran tactile Lilliput 669GL

Expression du besoin

Configurer et calibrer l’écran tactile Lilliput 669GL-70NP/C/T 7" HDMI pour une Raspberry Pi.

Détection

Le système :

$ uname -a
Linux raspberrypi 3.6.11+ #474 PREEMPT Thu Jun 13 17:14:42 BST 2013 armv6l GNU/Linux

$ cat /proc/version 
Linux version 3.6.11+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #474 PREEMPT Thu Jun 13 17:14:42 BST 2013

$ cat /etc/issue
Debian GNU/Linux 7

$ cat /etc/debian_version 
7.1

Le matériel Lilliput 669GL-70NP/C/T 7" Ecran tactile HDMI :

$ dmesg
...
[    4.302900] usb 1-1.3.1: new full-speed USB device number 6 using dwc_otg
[    4.445383] usb 1-1.3.1: New USB device found, idVendor=0eef, idProduct=0001
[    4.484285] usb 1-1.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.513514] usb 1-1.3.1: Product: USB TouchController
[    4.542552] usb 1-1.3.1: Manufacturer: eGalax Inc.
[    4.587508] input: eGalax Inc. USB TouchController as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.0/input/input2
[    4.653229] input: eGalax Inc. USB TouchController as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.0/input/input3
[    4.703183] hid-generic 0003:0EEF:0001.0003: input,hidraw2: USB HID v2.10 Pointer [eGalax Inc. USB TouchController] on usb-bcm2708_usb-1.3.1/input0
...

$ lsusb 
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 05fe:2001 Chic Technology Corp. 
Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 006: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen

Plus d’informations avec : lsusb -vv

Installation

  1. Avant d’installer xinput_calibrator, il vous faut :

    $ sudo apt-get install libx11-dev
    $ sudo apt-get install libxext-dev
    $ sudo apt-get install libxi-dev
    $ sudo apt-get install x11proto-input-dev
  2. Récupérer xinput_calibrator :

    $ wget http://github.com/downloads/tias/xinput_calibrator/xinput_calibrator-0.7.5.tar.gz
  3. Installer xinput_calibrator (sous le compte root avec un terminal administrateur par exemple ou utiliser sudo) :

    # cd /usr/local
    
    # tar zxvf /home/pi/xinput_calibrator-0.7.5.tar.gz
    
    # cd /usr/local/xinput_calibrator-0.7.5
    
    # ./configure
    
    # make
    
    # make install

 Calibration

Pour calibrer l’écran tactile, il suffit d’exécuter xinput_calibrator, soit :

  • Préférences -> Calibrate Touchscreen
  • dans un terminal : $ xinput_calibrator
  • faire Alt-F2, puis : xinput_calibrator

Remarque : il est préférable de ne pas avoir de souris USB de brancher. Vous pouvez utiliser un stylet pour être plus précis.

Pour terminer, il vous faut sauvegarder les information de calibrage dans le fichier “/usr/share/X11/xorg.conf.d/99-touch-calibr.conf”:

Section "InputClass"
   Identifier   "calibration"
   MatchProduct   "eGalax Inc. USB TouchController"
   Option   "Calibration"   "104 4010 3831 214"
   Option   "SwapAxes"   "1"
EndSection

Options

Voir : elinux.org

Cela concerne des options vidéos gérables à partir du fichier /boot/config.txt :

$ /opt/vc/bin/tvservice -s
state 0x120016 [DVI DMT (35) RGB full 5:4], 1280x1024 @ 60Hz, progressive

$ /opt/vc/bin/tvservice -n
device_name=LLP-AS4637_______

$ /opt/vc/bin/tvservice -m DMT
Group DMT has 15 modes:
           mode 4: 640x480 @ 60Hz 4:3, clock:25MHz progressive 
           mode 5: 640x480 @ 72Hz 4:3, clock:31MHz progressive 
           mode 6: 640x480 @ 75Hz 4:3, clock:31MHz progressive 
           mode 7: 640x480 @ 85Hz 4:3, clock:36MHz progressive 
           mode 8: 800x600 @ 56Hz 4:3, clock:36MHz progressive 
           mode 9: 800x600 @ 60Hz 4:3, clock:40MHz progressive 
           mode 10: 800x600 @ 72Hz 4:3, clock:50MHz progressive 
           mode 11: 800x600 @ 75Hz 4:3, clock:49MHz progressive 
           mode 12: 800x600 @ 85Hz 4:3, clock:56MHz progressive 
           mode 16: 1024x768 @ 60Hz 4:3, clock:65MHz progressive 
           mode 17: 1024x768 @ 70Hz 4:3, clock:75MHz progressive 
           mode 18: 1024x768 @ 75Hz 4:3, clock:78MHz progressive 
           mode 19: 1024x768 @ 85Hz 4:3, clock:94MHz progressive 
  (prefer) mode 35: 1280x1024 @ 60Hz 5:4, clock:108MHz progressive 
           mode 36: 1280x1024 @ 75Hz 5:4, clock:135MHz progressive

Exemple :

# uncomment to force a console size.
#framebuffer_width=1280
#framebuffer_height=720
framebuffer_width=800
framebuffer_height=600

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
hdmi_group=2
hdmi_mode=12

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
config_hdmi_boost=4

Caractéristiques

  • Taille de l’écran : 7 “TFT LCD
  • Résolution : 800 x 480, jusqu’à 1.920 x 1.080 pixels
  • Signal d’entrée : HDMI
  • Ecran tactile résistif : 4-fil (USB)
  • Contraste : 500:1
  • Luminosité : 250 cd / ?
  • Angle de vision : 140 ° / 120 ° (H / V)
  • Tension d’entrée : DC 12V
  • Consommation : 8W
  • Taille (LLE): 185,5 × 122 × 32.5mm
  • Poids : 450g

Retour au sommaire