On Friday, September 6, 2013 12:40:21 PM UTC+5:30, TejAs PaTil wrote:
>
> Hi all, 
> Porting ics on ti8168. Using tsc2004 touchscreen interface.
> Check cat /proc/interrupts when touch on screen  GPIO tsc2004
> incremented & getevent utility  for testing all devices events are 
> generated.
>
> root@android:/ #  cat /proc/interrupts 
> 123:          0        INTC  omap-iommu.0
> 179:          0        GPIO  1-0022
> 183:          2        GPIO  tsc2004
> 184:          0     tca6424  Power Button
> 193:          0     tca6424  LEFT button
> 194:          0     tca6424  UP button
> 195:          0     tca6424  RIGHT button
> 196:          0     tca6424  DOWN button
>  
> root@android:/ # 
> getevent                                                      
> add device 1: /dev/input/event1
>   name:     "TSC2004 Touchscreen"
> could not get driver version for /dev/input/mouse0, Not a typewriter
> could not get driver version for /dev/input/mice, Not a typewriter
> add device 2: /dev/input/event2
>   name:     "power-button"
> add device 3: /dev/input/event0
>   name:     "gpio-keys"
> /dev/input/event1: 0001 014a 00000001
> /dev/input/event1: 0003 0000 000002d5
> /dev/input/event1: 0003 0001 00000090
> /dev/input/event1: 0003 0018 00000017
> /dev/input/event1: 0000 0000 00000000
> /dev/input/event1: 0001 014a 00000000
> /dev/input/event1: 0003 0018 00000000
> /dev/input/event1: 0000 0000 00000000
> /dev/input/event1: 0001 014a 00000001
> /dev/input/event1: 0003 0018 00000015
> /dev/input/event1: 0000 0000 00000000
> /dev/input/event1: 0003 0018 00000023
> /dev/input/event1: 0000 0000 00000000
> /dev/input/event1: 0003 0000 000002d1
> /dev/input/event1: 0003 0001 00000093
> /dev/input/event1: 0003 0018 0000004e
> /dev/input/event1: 0000 0000 00000000
> /dev/input/event1: 0001 014a 00000000
> /dev/input/event1: 0003 0018 00000000
> /dev/input/event1: 0000 0000 00000000
> /dev/input/event0: 0001 006c 00000001
> /dev/input/event0: 0000 0000 00000000
> /dev/input/event0: 0001 006c 00000000
> /dev/input/event0: 0000 0000 00000000
> /dev/input/event2: 0001 001c 00000001
> /dev/input/event2: 0000 0000 00000000
> /dev/input/event2: 0001 001c 00000000
> /dev/input/event2: 0000 0000 00000000
>

Use 'getevent -tl /dev/input/event1' to get a more readable output.

Have you gone through the documentation provided by Google and checked that 
all the requirements are met?
http://s.android.com/devices/tech/input/touch-devices.html

-Vishveshwar
 

> But, Touchscreen not working in android .
> Error comes in logcat ANR application is not responding (ANR).
> logcat :-
> V/EventHub(  134): /dev/input/event1 got: t0=1785654176, t1=963600, 
> type=0, code=0, value=0
> V/EventHub(  134): event time 1785654176963600000, now 143303514073
> I/InputDispatcher(  134): Dropped event because the current application is 
> not responding and the user has started interacting with a different 
> applion.
>
>
> logcat when EventHub added devices :- 
> W/InputManagerService(  131): Couldn't create dir.: 
> /data/system/inputmethod
> I/EventHub(  131): New device: id=2, fd=91, path='/dev/input/event2', 
> name='power-button', classes=0x1, configuration='', 
> keyLayout='/system/usr/keylayout/power-button.kl', 
> keyCharacterMap='/system/usr/keychars/power-button.kcm', 
> builtinKeyboard=false
> V/EventHub(  131): Opening device: /dev/input/event0
> D/EventHub(  131): No input device configuration file found for device 
> 'gpio-keys'.
> W/ResourceType(  131): Failure getting entry for 0x7f060000 (t=5 e=0) in 
> package 0 (error -75)
> I/EventHub(  131): New device: id=3, fd=101, path='/dev/input/event0', 
> name='gpio-keys', classes=0x1, configuration='', 
> keyLayout='/system/usr/keylayout/gpio-keys.kl', 
> keyCharacterMap='/system/usr/keychars/gpio-keys.kcm', builtinKeyboard=false
> V/EventHub(  131): Reporting device opened: id=3, name=/dev/input/event0
> V/EventHub(  131): Reporting device opened: id=2, name=/dev/input/event2
> V/EventHub(  131): Reporting device opened: id=1, name=/dev/input/event1
> I/InputReader(  131): Device added: id=3, name='gpio-keys', 
> sources=0x00000101
> I/InputReader(  131): Device added: id=2, name='power-button', 
> sources=0x00000101
> I/InputReader(  131):   Touch device 'TSC2004 Touchscreen' could not query 
> the properties of its associated display 0.  The device will be inoperable 
> until the display size becomes available.
> I/InputReader(  131): Device added: id=1, name='TSC2004 Touchscreen', 
> sources=0x00001002
> V/EventHub(  131): wake() called
> V/EventHub(  131): awoken after wake()
> I/InputReader(  131): Reconfiguring input devices.  changes=0x00000004
> I/InputReader(  131): Device reconfigured: id=1, name='TSC2004 
> Touchscreen', surface size is now 800x480, mode is 1
>
> idc file for tsc2004 is :
> root@android:/ # cat system/usr/idc/tsc2004.idc 
> touch.deviceType = touchScreen
> touch.orientationAware = 1
>
> touch.size.calibration = none
> touch.orientation.calibration = none
>
> tsc2004 driver work in SDK . but Android application InputDispatcher gives 
> me error..
> any one help me what happen ??
>
>
>
>
>

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to