I sell on Tindie

Sunday, September 6, 2015

Beaglebone tslib Ubuntu install

After I installed touchscreen it was a requirement to install tslib for testing.
I installed ubuntu with kernel 4.1 as described at http://elinux.org/BeagleBoardUbuntu
Here are the commands for tslib install

sudo apt-get install libtool unzip automake

wget https://github.com/kergoth/tslib/archive/master.zip
unzip master.zip
cd tslib-master
./autogen.sh
./configure
make
sudo make install
sudo su
cd
nano .bashrc

Add to the end of file

export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CONFFILE=/usr/local/etc/ts.conf
export LD_LIBRARY_PATH=/usr/local/lib/

nano /usr/local/etc/ts.conf


Uncomment line: module_raw input

Reboot the board.

Now test the tslib

sudo su
ts_test