Hi,
I would like to generate a keyboard event on Android 2.3.4 and Beagleboard, especialy the power button. I have tried to emulate this with adb, with this command:
adb shell input keyevent 26
Here it is the list of the different events:
http://www.kandroid.org/online-pdk/guide/keymaps_keyboard_input.html
It does not work for me, I have this log:
D/AndroidRuntime( 1951):
D/AndroidRuntime( 1951): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 1951): CheckJNI is ON
D/dalvikvm( 1951): creating instr width table
D/AndroidRuntime( 1951): Calling main entry com.android.commands.input.Input
I/SendKeyEvent( 1951): 26
D/AndroidRuntime( 1951): Shutting down VM
D/dalvikvm( 1951): GC_CONCURRENT freed 98K, 72% free 289K/1024K, external 0K/0K, paused 0ms+1ms
I/AndroidRuntime( 1951): NOTE: attach of thread 'Binder Thread #2' failed
D/jdwp ( 1951): adbd disconnected
However, I have the event enabled in the file android_rootfs/system/usr/keylayout/qwerty.kl:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
Nevertheless, events like VOLUME_UP or VOLUME_DOWN works well.
I have tested this command with an Android emulator and it works.
Do someone have already done this before and could help me how can I do this?
BR,
Steve.