DirectFB with touchscreen

I was getting a problem with DirectFB and touchscreen. The df_windows example didn’t work correctly it was uncalibrated, the cursor didn’t was showed at pen stylus position.

The problem was caused because DirectFB was just using the Linux Input (/dev/input/event1) instead the tslib device (/dev/input/tslib0) because tslib0 didn’t exist. Then after to calibrate the toochscreen with tslib (ts_calibrate) DirectFB still uncalibrated.

Then to solve this problem I do that:

mknod /dev/input/tslib0

export TSLIB_TSDEVICE=/dev/input/tslib0

rm -f /etc/pointercal

ts_calibrate

df_window

Solved the problem!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s