Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
TSLib question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 695
Location: Close to Annecy (France)

PostPosted: Sat Nov 28, 2015 12:26 pm    Post subject: TSLib question Reply with quote

Hello,

I have recycled a bricked Android tablet with Gentoo : all working fine but now I'm stuck with the touchscreen.

I have :
INPUT_DEVICES="tslib evdev keyboard mouse"

and I can see the touchscreen is detected :
Code:
Tablette dev # cat /proc/bus/input/devices
I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="axp20-supplyer"
P: Phys=m1kbd/input2
S: Sysfs=/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/input/input0
U: Uniq=
H: Handlers=kbd event0
B: PROP=0
B: EV=7
B: KEY=100000 0 0 0
B: REL=0

I: Bus=0018 Vendor=0000 Product=0000 Version=0000
N: Name="ft5x_ts"
P: Phys=
S: Sysfs=/devices/platform/sunxi-i2c.1/i2c-1/1-003f/input/input1
U: Uniq=
H: Handlers=mouse0 event1
B: PROP=0
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=6610000 1000003


But now, what next ?
If I
Code:
cat  /dev/input/event1
nothing is displayed.

I read from this thread I have to create /dev/input/ts but with which option to mknod ?

Anything to do afterwards ?

Thanks

Laurent
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1746

PostPosted: Sat Nov 28, 2015 1:12 pm    Post subject: Reply with quote

First you need kernel driver for it. You will most likely find it in USB -> HID section.
Second thing is X driver.

Each of those is much easier when you know what device is it actually, so you might want to try 'lsusb' to get the device code.
Back to top
View user's profile Send private message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 695
Location: Close to Annecy (France)

PostPosted: Sat Nov 28, 2015 4:39 pm    Post subject: Reply with quote

Thanks for your reply.

The kernel driver is loaded : ft5x_ts and it is working as per /proc/bus/input/devices.

I'm not using X but an DirectFB application. But as per my reading, it should be seen even from the console.
Back to top
View user's profile Send private message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 695
Location: Close to Annecy (France)

PostPosted: Sun Nov 29, 2015 10:35 pm    Post subject: Reply with quote

Ok, I understood : adding tslib as INPUT_DEVICES doesn't imply that tslib is installed :evil:

So I installed manually tslib ... but DirectFB still can't find it :cry:
Back to top
View user's profile Send private message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 695
Location: Close to Annecy (France)

PostPosted: Mon Nov 30, 2015 11:08 am    Post subject: Reply with quote

Well, I found it :

DirectFB is looking for tslib-0.0 whereas we are now running tslib 1.0 :(

pkg-config --list-all | grep tslib
tslib-1.0 tslib - Touchscreen Access Library
tslib tslib - Touchscreen Access Library

Is it a way to request it to looks for tslib instead of tslib-0.0 (perhaps the API didn't changed :twisted: )

Thanks

Laurent
Back to top
View user's profile Send private message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 695
Location: Close to Annecy (France)

PostPosted: Tue Dec 01, 2015 10:32 pm    Post subject: Reply with quote

ok, I found it : DirectFB is looking for both tslib-0.0 and tslib-1.0.

But when checking for 1.0, it is looking for v1.0.0 and
Code:
# pkg-config --exists --print-errors "tslib-1.0 >= 1.0.0"
Requested 'tslib-1.0 >= 1.0.0' but version of tslib is 1.0


Correcting configure and configure.ac solved the issue.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum