Hi,guys I have ported android 2.6.25 to my s3c smdk6410,and the filesystem is donut that I built from the source code.Now I can boot it up and see the main window.But when touching the item ,it does not have any response at all.
My touchscreen driver src file is s3c_ts.c. I built tslib and calibrated it without android running,generating a pointercal file.But it still didn't work. Here are my debug info: # logcat *:E E/MountListener( 527): Failed to connect to vold E/MountListener( 527): java.lang.IllegalStateException E/MountListener( 527): at com.android.server.MountListener.listenToSocket(MountListener.java: 254) E/MountListener( 527): at com.android.server.MountListener.run (MountListener.java:274) E/MountListener( 527): at java.lang.Thread.run(Thread.java: 1060) E/MountListener( 527): Failed to connect to vold # ls /dev/input event0 event1 ts0 # cat /proc/bus/input/devices I: Bus=0019 Vendor=0001 Product=0001 Version=0001 N: Name="s3c-keypad" P: Phys=s3c-keypad/input0 S: Sysfs=/devices/platform/s3c-keypad/input/input0 U: Uniq= H: Handlers=kbd event0 B: EV=100003 B: KEY=1fffe I: Bus=0013 Vendor=dead Product=beef Version=0101 N: Name="S3C TouchScreen" P: Phys=input(ts) S: Sysfs=/devices/virtual/input/input1 U: Uniq= H: Handlers=event1 ts0 B: EV=b B: KEY=20 0 0 0 0 0 0 0 0 0 0 B: ABS=1000003 # cat /proc/bus/input/handlers N: Number=0 Name=kbd N: Number=1 Name=evdev Minor=64 N: Number=2 Name=tsdev Minor=128 What is the difference btw event1 and ts0? and my env for tslib are: export TSLIB_TSEVENTTYPE INPUT export TSLIB_CONSOLEDEVICE none export TSLIB_FBDEVICE /dev/graphics/fb0 export TSLIB_TSDEVICE /dev/input/event1 //I had tried ts0,still the same export TSLIB_CALIBFILE /system/etc/pointercal export TSLIB_CONFFILE /system/etc/tslib/ts.conf export TSLIB_PLUGINDIR /system/lib/ts # getevent tsdev (compaq touchscreen emulation) is scheduled for removal. See Documentation/feature-removal-schedule.txt for details. could not get driver version for /dev/input/ts0, Invalid argument add device 1: /dev/input/event1 name: "S3C TouchScreen" add device 2: /dev/input/event0 name: "s3c-keypad" /dev/input/event1: 0000 0000 00000000 /dev/input/event1: 0003 0000 00000505 /dev/input/event1: 0003 0001 00000870 /dev/input/event1: 0003 0018 00000001 /dev/input/event1: 0000 0000 00000000 /dev/input/event1: 0003 0000 00000506 /dev/input/event1: 0003 0001 00000879 /dev/input/event1: 0000 0000 00000000 /dev/input/event1: 0003 0018 00000000 /dev/input/event1: 0000 0000 00000000 /dev/input/event1: 0003 0000 000006b6 and then I open the DEBUG in s3c_ts.c,when touching it,the console prints: # D D D T: 853507, X: 28791, Y: 31853 T: 878508, X: 28404, Y: 32080 D T: 603508, X: 31842, Y: 18032 T: 628524, X: 31689, Y: 18009 D T: 818507, X: 44988, Y: 16935 T: 843508, X: 44818, Y: 17687 T: 868506, X: 45122, Y: 17618 T: 893508, X: 45248, Y: 18344 D T: 648508, X: 45725, Y: 43406 T: 673508, X: 45500, Y: 43828 D T: 478507, X: 24101, Y: 19161 T: 503508, X: 23650, Y: 19044 T: 528508, X: 23943, Y: 18982 It seems that android didn't get my input coordinate but the kernel did and the post http://groups.google.com/group/android-porting/browse_thread/thread/fb64af66b1f877fa/c72fc79b31c83dca?lnk=gst&q=Touch+Screen+%3F4%3F%3F&_done=%2Fgroup%2Fandroid-porting%2Fbrowse_thread%2Fthread%2Ffb64af66b1f877fa%2Fc72fc79b31c83dca%3Flnk%3Dgst%26q%3DTouch%2BScreen%2B%253F4%253F%253F says that " Power Management support "is necessary ,so I chose it and rebuilt ,but it still has no response . so could anyone tell me what are my problems ?and How should i do to make the touchscreen work? Thanks! ---Weber -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting