Archive for 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
Add comment February 15, 2006
Instalando as ferramentas de desenvolvimento no Ubuntu
O Ubuntu por padrão não inclui as ferramentas para desenvolvimento (gcc e companhia), para instalar o pacote de desenvolvimento execute:
apt-get install build-essential
Add comment February 6, 2006
Plugin para tocar multimidia no Linux
Acrescentar no /etc/apt/source.list:
# w32codecs
deb ftp://ftp.nerim.net/debian-marillat/ sarge main
apt-get update
apt-get install w32codecs
Add comment February 4, 2006
Compilando o Lintouch para a Lite5200B
Primeiro faça download to código fonte do Lintouch:
wget http://lintouch.org/download/lintouch-1.8.1/sources/lintouch-1.8.1.tar.gz
Instale as dependências:
# apt-get install libcppunit-dev
# apt-get install libapr0-dev
# apt-get install libqt3-mt-dev libqt3-headers
./configure
make
make install
Add comment February 3, 2006