Hi,guys Following Achim's advice (Thank you ,Achim ),I added some LOGI in EventHub.cpp,and the output of logcat is as follows: E/EventHub( 679): could not get driver version for /dev/input/ts0, Invalid argument I/EventHub( 679): New device: path=/dev/input/event1 name=S3C TouchScreen id=0x10000 (of 0x1) index=1 fd=40 classes=0x4 E/EventHub( 679): could not get driver version for /dev/input/mouse0, Not a typewriter E/EventHub( 679): could not get driver version for /dev/input/mice, Not a typewriter I/EventHub( 679): New device: path=/dev/input/event0 name=s3c-keypad id=0x10001 (of 0x2) index=2 fd=43 classes=0x3 I/EventHub( 679): New keyboard: publicID=65537 device->id=65537 devname='s3c-keypad' propName='hw.keyboards.65537.devname' keylayout='/ system/usr/keylayout/qwerty.kl' I/KeyInputQueue( 679): Device added: id=0x0, name=s3c-keypad, classes=3 I/power ( 679): acquire_wake_lock lock=1 id='PowerManagerService' I/KeyInputQueue( 679): Device added: id=0x10000, name=null, classes=4 I/KeyInputQueue( 679): X: min=0 max=240 flat=0 fuzz=0 I/KeyInputQueue( 679): Y: min=0 max=320 flat=0 fuzz=0 I/KeyInputQueue( 679): Pressure: min=0 max=1 flat=0 fuzz=0 I/KeyInputQueue( 679): Size: unknown values I/power ( 679): release_wake_lock id='KeyEvents' I/power ( 679): *** set_screen_state 1 I/power ( 679): go_to_sleep now=44104839000 g_error=Permission denied I/power ( 679): *** set_screen_state 1 I/power ( 679): go_to_sleep now=44106449000 g_error=Permission denied I/power ( 679): release_wake_lock id='PowerManagerService' I/EventHub( 679): qiu@ In EventHub, poll 3, returned 1 I/EventHub( 679): qiu@ In EventHub, poll 3, returned 1 I/EventHub( 679): qiu@ In EventHub, poll 3, returned 1 I/EventHub( 679): qiu@ In EventHub, poll 3, returned 1 I/EventHub( 679): qiu@ In EventHub, poll 3, returned 1 I/EventHub( 679): qiu@ In EventHub, poll 3, returned 1 I/EventHub( 679): qiu@ In EventHub, poll 3, returned 1 I/EventHub( 679): qiu@ In EventHub, poll 3, returned 1 I/EventHub( 679): qiu@ In EventHub, poll 3, returned 1 I/EventHub( 679): qiu@ In EventHub, poll 3, returned 1 I/EventHub( 679): qiu@ In EventHub, poll 3, returned 1 I/EventHub( 679): qiu@ In EventHub, poll 3, returned 1 I/EventHub( 679): qiu@ In EventHub, poll 3, returned 1 I/EventHub( 679): qiu@ In EventHub, poll 3, returned 1 I/EventHub( 679): qiu@ In EventHub, poll 3, returned 1 I/EventHub( 679): qiu@ In EventHub, poll 3, returned 1 I/EventHub( 679): qiu@ In EventHub, poll 3, returned 1 I/EventHub( 679): qiu@ In EventHub, poll 3, returned 1 I/KeyInputQueue( 679): Device added: id=0x0, name=s3c-keypad, classes=3 I/power ( 679): acquire_wake_lock lock=1 id='PowerManagerService' I/KeyInputQueue( 679): Device added: id=0x10000, name=null, classes=4 I/KeyInputQueue( 679): X: min=0 max=240 flat=0 fuzz=0 I/KeyInputQueue( 679): Y: min=0 max=320 flat=0 fuzz=0 I/KeyInputQueue( 679): Pressure: min=0 max=1 flat=0 fuzz=0 I/KeyInputQueue( 679): Size: unknown values
so what could i do to solve it ? Thanks, --weber On Mar 3, 4:56 pm, Weber <[email protected]> wrote: > Thank you,Achim > Could you be more specific? > I can get the info(such as posted above) with getevent tool,does this > means that poll can get the ts? > > On Mar 1, 10:18 pm, AchimNohl <[email protected]> wrote: > > > Hi, > > > have you tried to debug EventHub::getEvent in frameworks/bas/libs/ui/ > > EventHub.cpp? I once had problems with my touchscreen after waking up > > from suspend as the device was destroyed and got a new file > > descriptor. I finally ended up in debugging this method. It does a > > "poll" system call to wait for data on the touchscreen device. You may > > want to add some LOGS here to see if it get passed poll when you hit > > the ts and see the printk info from the kernel. > > > Regards, > > Achim -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
