Unable to unlock using keyboard in Android in the desktop screen

Hi,

I am porting android to OMAP 3430 based custom board which is running linux-2.6.28-omap-rc9 kernel.
I am using embinux android file system.

When i boot android, the logo screen comes and then desktop appears.

In the desktop screen, it is showing, “Screen locked, press MENU to unlock”

When i press “Windows Right Meta key” for unlocking, it throws this message on logcat, how to unlock and go to main window containing apps.

logcat messages,

D/KeyguardViewMediator( 850): wakeWhenReadyLocked(82)
D/KeyguardViewMediator( 850): handleWakeWhenReady(82)
D/KeyguardViewMediator( 850): pokeWakelock(5000)
D/KeyguardViewMediator( 850): wakeWhenReadyLocked(84)
D/KeyguardViewMediator( 850): handleWakeWhenReady(84)
D/KeyguardViewMediator( 850): pokeWakelock(5000)
D/KeyguardViewMediator( 850): wakeWhenReadyLocked(82)
D/KeyguardViewMediator( 850): handleWakeWhenReady(82)
D/KeyguardViewMediator( 850): pokeWakelock(5000)

any pointers to fix this would be helpful.

Thanks and Regards,
HarishKumar.V

You need to have a key map file that describes which key generates the menu key code, so you can press it to unlock. Or modify the keyguard (the phone policy in frameworks/policies/base) to do something more appropriate for your hardware.

Hi,
Press right window key to unlock. If your KB does not respond then
trey making the connection between the hub containing the KB and mouse
while board is booting(as soon as you see the ANDROID_ text on LCD).

Regards,
Sanjeev Kumar Verma

Dianne,

i have mapped the menu key, but still the problem persists.

i have little doubt,

1)which portion of the keyguard causes this unlock screen and why?

Thanks and Regards,
HarishKumar.V

I don’t recall off-hand where exactly in the keyguard code this is done; you should be able to search through the code for references to the menu key. That said, if it isn’t unlocking, it most likely isn’t receiving a menu key, and the problem is elsewhere. You can also look in KeyInputQueue for the low-level event processing code to see what is going through there.

Dianne,

thanks, it worked.

now, i am able to use it, no locking of screen.

i have another doubt, how to launch android virtual keyboard.

in my device, there is only keyboard is connected. In emulator, in text box when u click using mouse, the android virtual keyboard launches.

how to make work this in my device using keyboard event to launch virtual keyboard.

is it possible. how virtual keyboard is launched or who triggers it on what event.

Thanks and Regards,
HarishKumar.V