android-porting

[Prev] Thread [Next]  |  [Prev] Date [Next]

[android-porting] Re: USB Mouse HID integration issue Yi Sun Fri Jun 26 10:00:33 2009

Ok, good to know. Xor, I did not get time to look at your logcat output yet,
You may try this out as well.
Thanks
Yi

On Fri, Jun 26, 2009 at 2:56 AM, Dinesh M <[EMAIL PROTECTED]> wrote:

> Dear Yi Sun,
>
> Thanks for your suggestion. I checked the power management, in the kenel
> settings the wakelock was turned off , and I enabled it started working.
> Thanks for your support.
>
> Rgds,
> Dinesh.M
>
>
> On Fri, Jun 26, 2009 at 12:50 PM, Yi Sun <[EMAIL PROTECTED]> wrote:
>
>> I think (maybe) you have a power management issue. Could you check if you
>> kernel has wakelock turned on?  Is this a eeepc or what? Please also send me
>> your WindowManager and KeyInputQueue java files
>> Yi
>>
>>
>> On Thu, Jun 25, 2009 at 11:13 PM, Dinesh M <[EMAIL PROTECTED]> wrote:
>>
>>> Dear  Yi Sun,
>>>
>>> Please find the logs after enabling debug_input in WindowManager. The log
>>> captures mouse movement and mouse click.
>>>
>>> ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
>>> I/SendKeyEvent(  744): 82
>>> V/WindowManager(  625): Dispatch key: KeyEvent{action=0 code=82 repeat=0
>>> meta=0 scancode=0 mFlags=8}
>>> V/WindowManager(  625): waitForLastKey: mFinished=true, mLastWin=null
>>> V/WindowManager(  625): Dispatching to Window{43734248 Keyguard
>>> paused=false}: KeyEvent{action=0 code=82 repeat=0 meta=0
>>> scancode=0 mFlags=8}
>>> V/WindowManager(  625): Delivering key 82 to Window{43734248 Keyguard
>>> paused=false}
>>> V/WindowManager(  625): waitForLastKey: mFinished=false,
>>> mLastWin=Window{43734248 Keyguard paused=false}
>>> D/KeyguardViewMediator(  625): pokeWakelock(5000)
>>> V/WindowManager(  625): finishedKey:
>>> [EMAIL PROTECTED], force=false
>>> V/WindowManager(  625): Waiting for last key in
>>> [EMAIL PROTECTED] target=Window{43734248 Keyguard
>>> paused=f
>>> alse} mFinished=false mDisplayFrozen=false targetIsNew=false paused=false
>>> mFocusedApp=AppWindowToken{43966600 token=Histo
>>> ryRecord{437a5e08 {com.android.launcher/com.android.launcher.Launcher}}}
>>> mCurrentFocus=Window{43734248 Keyguard paused=fa
>>> lse}
>>> V/WindowManager(  625): Waiting for key dispatch: 5000
>>> V/WindowManager(  625): finishedKey:
>>> [EMAIL PROTECTED], force=false,
>>> [EMAIL PROTECTED]
>>> 381ae80 (token=WindowToken{4385af20 token=null})
>>> V/WindowManager(  625): finishedKey: last paused=false
>>> V/WindowManager(  625): releasePendingPointer null
>>> V/WindowManager(  625): finishedKey:
>>> [EMAIL PROTECTED], force=true
>>> V/WindowManager(  625): finishedKey:
>>> [EMAIL PROTECTED], force=true, last=null
>>> (token=null)
>>> V/WindowManager(  625): New key dispatch window:
>>> [EMAIL PROTECTED], last=null (token=null), finished=t
>>> rue, paused=false
>>> V/WindowManager(  625): New SYSTEM_ERROR window; resetting state
>>> V/WindowManager(  625): Finished waiting @134065 startTime=134045
>>> switchTime=0 target=Window{43734248 Keyguard paused=fal
>>> se} mLW=null mLB=null fin=true mCurrentFocus=Window{438f0b38 Sorry!
>>> paused=false}
>>> V/WindowManager(  625): waitForLastKey: mFinished=true, mLastWin=null
>>> V/WindowManager(  625): Dispatch key: KeyEvent{action=1 code=82 repeat=0
>>> meta=0 scancode=0 mFlags=8}
>>> V/WindowManager(  625): waitForLastKey: mFinished=true, mLastWin=null
>>> V/WindowManager(  625): Dispatching to Window{438f0b38 Sorry!
>>> paused=false}: KeyEvent{action=1 code=82 repeat=0 meta=0 sc
>>> ancode=0 mFlags=8}
>>> V/WindowManager(  625): Delivering key 82 to Window{438f0b38 Sorry!
>>> paused=false}
>>> V/WindowManager(  625): waitForLastKey: mFinished=false,
>>> mLastWin=Window{438f0b38 Sorry! paused=false}
>>> V/WindowManager(  625): Waiting for last key in
>>> [EMAIL PROTECTED] target=Window{438f0b38 Sorry!
>>> paused=fal
>>> se} mFinished=false mDisplayFrozen=false targetIsNew=false paused=false
>>> mFocusedApp=AppWindowToken{43966600 token=History
>>> Record{437a5e08 {com.android.launcher/com.android.launcher.Launcher}}}
>>> mCurrentFocus=Window{438f0b38 Sorry! paused=false}
>>> V/WindowManager(  625): Waiting for key dispatch: 5000
>>> V/WindowManager(  625): finishedKey:
>>> [EMAIL PROTECTED], force=false
>>> V/WindowManager(  625): finishedKey:
>>> [EMAIL PROTECTED], force=false,
>>> [EMAIL PROTECTED]
>>> 38f07a0 (token=WindowToken{4385af20 token=null})
>>> V/WindowManager(  625): finishedKey: last paused=false
>>> V/WindowManager(  625): releasePendingPointer null
>>> V/WindowManager(  625): Finished waiting @134085 startTime=134080
>>> switchTime=0 target=Window{438f0b38 Sorry! paused=false
>>> } mLW=null mLB=null fin=true mCurrentFocus=Window{438f0b38 Sorry!
>>> paused=false}
>>> V/WindowManager(  625): waitForLastKey: mFinished=true, mLastWin=null
>>> I/ARMAssembler(  625): generated
>>> scanline__00000077:03545404_00000A04_00000000 [ 29 ipp] (51 ins) at
>>> [0x226490:0x22655c]
>>> in 0 ns
>>> V/WindowManager(  625): releasePendingPointer null
>>> V/WindowManager(  625): finishedKey:
>>> [EMAIL PROTECTED], force=true
>>> V/WindowManager(  625): finishedKey:
>>> [EMAIL PROTECTED], force=true, last=null
>>> (token=null)
>>> V/WindowManager(  625): releasePendingPointer null
>>> D/dalvikvm(  744): LinearAlloc 0x0 used 611468 of 4194304 (14%)
>>> E/EventHub(  625): could not get driver version for /dev/input/mouse0,
>>> Not a typewriter
>>> I/EventHub(  625): add device 1: /dev/input/event0
>>> I/EventHub(  625):   bus:      0003
>>> I/EventHub(  625):   vendor    046d
>>> I/EventHub(  625):   product   c016
>>> I/EventHub(  625):   version   0110
>>> I/EventHub(  625):   name:     "Logitech Optical USB Mouse"
>>> I/EventHub(  625):   location: "usb-otg-1/input0"
>>> I/EventHub(  625):   id:       ""
>>> I/EventHub(  625):   version:  1.0.0
>>> W/EventHub(  625):
>>> W/EventHub(  625):
>>> I/EventHub(  625): New device: path=/dev/input/event0 name=Logitech
>>> Optical USB Mouse id=0x10000 (of 0x1) index=1 fd=50 c
>>> lasses=0x10
>>> I/KeyInputQueue(  625): Device added: id=0x10000, name=null, classes=10
>>> V/WindowManager(  625): Event: type=268435456 data=null
>>> V/WindowManager(  625): Waiting for next key: now=150165, repeat @
>>> 10017285
>>> I/WindowManager(  625): Config changed: { scale=1.0 imsi=0/0 locale=en_US
>>> touch=1 key=1/1/2 nav=1 orien=2 }
>>> D/dalvikvm(  625): GC freed 3924 objects / 225000 bytes in 70ms
>>> V/WindowManager(  625): Waiting for next key: now=150240, repeat @
>>> 10017285
>>> I/KeyInputQueue(  625): dropping because screenIsOff and !isWakeKey
>>> I/KeyInputQueue(  625): dropping because screenIsOff and !isWakeKey
>>> I/KeyInputQueue(  625): dropping because screenIsOff and !isWakeKey
>>> I/KeyInputQueue(  625): dropping because screenIsOff and !isWakeKey
>>> I/KeyInputQueue(  625): dropping because screenIsOff and !isWakeKey
>>> I/KeyInputQueue(  625): dropping because screenIsOff and !isWakeKey
>>> I/KeyInputQueue(  625): dropping because screenIsOff and !isWakeKey
>>> I/KeyInputQueue(  625): dropping because screenIsOff and !isWakeKey
>>> V/WindowManager(  625): Event: type=16 data=MotionEvent{43997470 action=0
>>> x=0.0 y=0.0 pressure=1.0 size=0.0}
>>> I/WindowManager(  625): Open transaction for the mouse surface
>>> I/WindowManager(  625): Move surf, x: 0 y:0
>>> V/WindowManager(  625): dispatchPointer MotionEvent{43997470 action=0
>>> x=0.0 y=0.0 pressure=1.0 size=0.0}
>>> V/WindowManager(  625): waitForLastKey: mFinished=true, mLastWin=null
>>> I/WindowManager(  625): Checking dispatch to: Window{43734248 Keyguard
>>> paused=false}
>>> I/WindowManager(  625): Not visible!
>>> I/WindowManager(  625): Checking dispatch to: Window{438f0b38 Sorry!
>>> paused=false}
>>> V/WindowManager(  625): Delivering pointer QueuedEvent{43996cd0
>>> MotionEvent{43997470 action=0 x=0.0 y=-32.0 pressure=1.0
>>> size=0.0}} Ev MotionEvent{43997470 action=0 x=0.0 y=-32.0 pressure=1.0
>>> size=0.0} to Window{438f0b38 Sorry! paused=false}
>>> V/WindowManager(  625): finishedKey:
>>> [EMAIL PROTECTED], force=false
>>> V/WindowManager(  625): finishedKey:
>>> [EMAIL PROTECTED], force=false,
>>> [EMAIL PROTECTED]
>>> 38f07a0 (token=WindowToken{4385af20 token=null})
>>> V/WindowManager(  625): finishedKey: last paused=false
>>> V/WindowManager(  625): releasePendingPointer null
>>> V/WindowManager(  625): Waiting for next key: now=158350, repeat @
>>> 10017285
>>> V/WindowManager(  625): Event: type=16 data=MotionEvent{43997470 action=1
>>> x=0.0 y=0.0 pressure=1.0 size=0.0}
>>> V/WindowManager(  625): dispatchPointer MotionEvent{43997470 action=1
>>> x=0.0 y=0.0 pressure=1.0 size=0.0}
>>> V/WindowManager(  625): waitForLastKey: mFinished=true, mLastWin=null
>>> V/WindowManager(  625): Delivering pointer QueuedEvent{438f3b90
>>> MotionEvent{43997470 action=1 x=0.0 y=-32.0 pressure=1.0
>>> size=0.0}} Ev MotionEvent{43997470 action=1 x=0.0 y=-32.0 pressure=1.0
>>> size=0.0} to Window{438f0b38 Sorry! paused=false}
>>> V/WindowManager(  625): finishedKey:
>>> [EMAIL PROTECTED], force=false
>>> V/WindowManager(  625): Waiting for next key: now=158405, repeat @
>>> 10017285
>>> V/WindowManager(  625): finishedKey:
>>> [EMAIL PROTECTED], force=false,
>>> [EMAIL PROTECTED]
>>> 38f07a0 (token=WindowToken{4385af20 token=null})
>>> V/WindowManager(  625): finishedKey: last paused=false
>>> V/WindowManager(  625): releasePendingPointer null
>>> V/WindowManager(  625): Event: type=16 data=MotionEvent{43997470 action=0
>>> x=0.0 y=0.0 pressure=1.0 size=0.0}
>>> V/WindowManager(  625): dispatchPointer MotionEvent{43997470 action=0
>>> x=0.0 y=0.0 pressure=1.0 size=0.0}
>>> V/WindowManager(  625): waitForLastKey: mFinished=true, mLastWin=null
>>> I/WindowManager(  625): Checking dispatch to: Window{43734248 Keyguard
>>> paused=false}
>>> I/WindowManager(  625): Not visible!
>>> I/WindowManager(  625): Checking dispatch to: Window{438f0b38 Sorry!
>>> paused=false}
>>> V/WindowManager(  625): Delivering pointer QueuedEvent{43731548
>>> MotionEvent{43997470 action=0 x=0.0 y=-32.0 pressure=1.0
>>> size=0.0}} Ev MotionEvent{43997470 action=0 x=0.0 y=-32.0 pressure=1.0
>>> size=0.0} to Window{438f0b38 Sorry! paused=false}
>>> V/WindowManager(  625): Waiting for next key: now=164120, repeat @
>>> 10017285
>>> V/WindowManager(  625): finishedKey:
>>> [EMAIL PROTECTED], force=false
>>> V/WindowManager(  625): finishedKey:
>>> [EMAIL PROTECTED], force=false,
>>> [EMAIL PROTECTED]
>>> 38f07a0 (token=WindowToken{4385af20 token=null})
>>> V/WindowManager(  625): finishedKey: last paused=false
>>> V/WindowManager(  625): releasePendingPointer null
>>> V/WindowManager(  625): Event: type=16 data=MotionEvent{43997470 action=1
>>> x=0.0 y=0.0 pressure=1.0 size=0.0}
>>> V/WindowManager(  625): dispatchPointer MotionEvent{43997470 action=1
>>> x=0.0 y=0.0 pressure=1.0 size=0.0}
>>> V/WindowManager(  625): waitForLastKey: mFinished=true, mLastWin=null
>>> V/WindowManager(  625): Delivering pointer QueuedEvent{4389ead8
>>> MotionEvent{43997470 action=1 x=0.0 y=-32.0 pressure=1.0
>>> size=0.0}} Ev MotionEvent{43997470 action=1 x=0.0 y=-32.0 pressure=1.0
>>> size=0.0} to Window{438f0b38 Sorry! paused=false}
>>> V/WindowManager(  625): Waiting for next key: now=164200, repeat @
>>> 10017285
>>> V/WindowManager(  625): finishedKey:
>>> [EMAIL PROTECTED], force=false
>>> V/WindowManager(  625): finishedKey:
>>> [EMAIL PROTECTED], force=false,
>>> [EMAIL PROTECTED]
>>> 38f07a0 (token=WindowToken{4385af20 token=null})
>>> V/WindowManager(  625): finishedKey: last paused=false
>>> V/WindowManager(  625): releasePendingPointer null
>>>
>>> ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
>>> Thanks for your help.
>>>
>>> Rgds,
>>> Dinesh.M
>>>
>>>
>>>
>>> On Thu, Jun 25, 2009 at 9:53 PM, Yi Sun <[EMAIL PROTECTED]> wrote:
>>>
>>>> enable debug_input in the windowmanager and send me the logcat output
>>>> for the mouse movment.
>>>>
>>>>
>>>> On Wed, Jun 24, 2009 at 11:58 PM, Dinesh M <[EMAIL PROTECTED]>wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I 'm integrating the USB HID mouse (2.6.26 kernel), and applied the
>>>>> patch from the
>>>>> following link.
>>>>>
>>>>> http://code.google.com/p/patch-hosting-for-android-x86-support/downloads/list
>>>>> The patches are EventHib.patch and    0001-fixed-different-build-
>>>>> breaks-added-mouse-cursor-sup.patch
>>>>> I see that when a usb mouse is connected it's recognised by the
>>>>> android. The following message shows the same.
>>>>>
>>>>> add device 1: /dev/input/event0
>>>>> I/EventHub(  630):   bus:      0003
>>>>> I/EventHub(  630):   vendor    046d
>>>>> I/EventHub(  630):   product   c016
>>>>> I/EventHub(  630):   version   0110
>>>>> I/EventHub(  630):   name:     "Logitech Optical USB Mouse"
>>>>> I/EventHub(  630):   location: "usb-dwc_otg-1/input0"
>>>>> I/EventHub(  630):   id:       ""
>>>>> I/EventHub(  630):   version:  1.0.0
>>>>> I/EventHub(  630): New device: path=/dev/input/event0 name=Logitech
>>>>> Optical USB Mouse id=0x10000 (of 0x1) index=1 fd=61 classes=0x10
>>>>>
>>>>> By this only mouse left click works and mouse cursor/point  not under
>>>>> my control.Mouse movements are not recognised.
>>>>> I see that in input subsystem the devices created are  /dev/input/
>>>>> event0 and /dev/input/mouse0. If I cat these devices individually and
>>>>> move the mouse I can see bizare characters on my hyperterminal.
>>>>>
>>>>> I'm not able to fix where exactly the problem is?
>>>>> If any one can help me in bringing up the mouse it would be great and
>>>>> appreciable.
>>>>>
>>>>> Rgds,
>>>>> Dinesh.M
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
> --
> Hi,
>
> Thanks and Rgds.
> Dinesh.M
> Senior Systems Engineer
> Bangalore
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [EMAIL PROTECTED]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---