Month: February 2006

Adicionando LCD com TouchScreen no Linux

O LCD Lilliput 619-70NP foi detectado corretamente pelo Ubuntu, mas as posições XY dele estavam trocadas.

Para consertar isso tive que executar:
echo Y > /sys/module/touchkitusb/parameters/swap_xy

A posição X funcionou corretamente, mas a Y ficou espelhada, então devemos inverter os valores MinY a MaxY.

Após isso tive que calibrar o LCD, calibrei manualmente modificando os valores no xorg.conf e testando, tive acrescentar no xorg.conf:

Section “InputDevice”
Identifier “touchscreen”
Driver “evtouch”
Option “Device” “/dev/input/event2”
Option “DeviceName” “touchscreen”
Option “MinX” “135”
Option “MaxX” “1935”
Option “MinY” “1825”
Option “MaxY” “250”
Option “ReportingMode” “Raw”
Option “Emulate3Buttons”
Option “Emulate3Timeout” “50”
Option “SendCoreEvents” “On”
EndSection

Na seção “ServerLayout” acrescentei:
InputDevice “touchscreen” “SendCoreEvents”

E o “Configured Mouse” deve ser substituído “/dev/input/mice” por “/dev/input/mouse0”.

Agora temos que copiar o evtouch (evtouch_drv.o) para “/usr/X11R6/lib/modules/input”.

Reinicie o servidor X, o touchscreen deverá funcionar corretamente.

Alan