How to test my touch screen driver with tslib ?

Fisherss <[email protected]>
Newsgroups gmane.comp.handhelds.opie.devel
Message-ID <[email protected]>
A guy told me that testing my touch screen driver with tslib is a good idea, but there are some problems here, could someone give me some help ?  Thanks

How can I the ts_print or ts_print_raw output ?
I can't get anything with these two functions. I have tested both of my
two drivers, and here is the output:


the second one :
----------------------------------------------------------------------------------
/tests # export TSLIB_TSDEVICE=/dev/input/event0
/tests # ./ts_print

/tests # export TSLIB_TSDEVICE=/dev/input/event1
/tests # ./ts_print
ts_open: Success
/tests # ./ts_test
/dev/input/event1: Success
/tests # export TSLIB_TSDEVICE=/dev/input/event0
/tests # ./ts_test
signal 2 caught
/tests # ./evtest /dev/input/event0
Input driver version is 1.0.0
Input device ID: bus 0x20 vendor 0xffff product 0xffff version 0xffff
Input device name: "ads7846"
Supported events:
Event type 0 (SYN)
Event type 3 (ABS)
Event code 0 (X)
Value 0
Min 0
Max 4095
Fuzz 2
Flat 4
Event code 1 (Y)
Value 0
Min 0
Max 4095
Fuzz 2
Flat 4
Event code 24 (PRESSURE)
Value 0
Min 0
Max 1
Testing ... (interrupt to exit)

/tests # ./evtest /dev/input/event1
Input driver version is 1.0.0
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "pxa2xx-keys"
Supported events:
Event type 0 (SYN)
Event type 1 (KEY)
Event code 68 (F10)
Event code 87 (F11)
Event code 205 (SUSPEND)
Testing ... (interrupt to exit)
--------------------------------------------------------------------------------------------------


and this is the first one :
---------------------------------------------------------------------------------------------------
~ # export TSLIB_TSDEVICE=/dev/input/event0
~ # cd /tests
/tests # ./ts_print


/tests # export TSLIB_TSDEVICE=/dev/input/event1
/tests # ./ts_print
ts_open: Success
/tests # export TSLIB_TSDEVICE=/dev/input/event0
/tests # ./evtest /dev/input/event0
Input driver version is 1.0.0
Input device ID: bus 0x20 vendor 0xffff product 0xffff version 0xffff
Input device name: "ads7846"
Supported events:
Event type 0 (SYN)
Event type 3 (ABS)
Event code 0 (X)
Value 0
Min 0
Max 4095
Fuzz 2
Flat 4
Event code 1 (Y)
Value 0
Min 0
Max 4095
Fuzz 2
Flat 4
Event code 24 (PRESSURE)
Value 0
Min 0
Max 1
Testing ... (interrupt to exit)

/tests # ./evtest /dev/input/event1
Input driver version is 1.0.0
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "pxa2xx-keys"
Supported events:
Event type 0 (SYN)
Event type 1 (KEY)
Event code 68 (F10)
Event code 87 (F11)
Event code 205 (SUSPEND)
Testing ... (interrupt to exit)
Event: time 1708992136.768857, type 1 (KEY), code 87 (F11), value 1
Event: time 1708992136.923039, type 1 (KEY), code 87 (F11), value 0
Event: time 1708992137.047408, type 1 (KEY), code 87 (F11), value 1
Event: time 1708992137.122511, type 1 (KEY), code 87 (F11), value 0
Event: time 1708992137.269411, type 1 (KEY), code 87 (F11), value 1
Event: time 1708992137.343626, type 1 (KEY), code 87 (F11), value 0

--------------------------------------------------------------------------------------------------
looks like tsdev recognized my touch screen driver as a keyboard............


Fisherss


_______________________________________________

http://opie.handhelds.org/cgi-bin/moin.cgi/DeveloperWikiIndex

Opie-devel mailing list
[email protected]
https://handhelds.org/mailman/listinfo/opie-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.