Hi Jinjun, Don't have Idea about your problem. But you should verify Events generated by your keyboard and corresponding values in qwerty.kl You can do this like, 1) Run getevent command on android, Press Key on keyboard, It will show scancode in hex. 2) for ex. ENTER will generate scan code of "1C". convert this in to decimal. 3) and see if this is the same value in system/usr/keylayout/qwerty.kl (i.e. "key 28 ENTER") 4) If not, modify file according to your keyboard.
Hope this will help. Regards, Shivdas On Tue, Dec 9, 2008 at 1:14 PM, Jinjun <[EMAIL PROTECTED]> wrote: > > Hi Shivdas, > > I am using PXA270 as my development board. The touch screen is not > working therefore I have to use keyboard and mouse. I have some > problem to use keyboard and mouse to select the icons. I try to used > arrow keys or mouse to highlight the icon or menu but it is very > difficult. For example, when I use down arrow key, the icon that is > two spot below the currently highlighted icon will get selected. It is > almost impossible to use mouse to get where I want to be. Sometime > when I finally select the icon or menu, when enter key is hitted or > clicking the mouse, the icon that is next to the selected is > activated. Any idea? > Thanks, > > Jinjun > > On Dec 2, 6:14 pm, "Shivdas Gujare" <[EMAIL PROTECTED]> wrote: >> Hi Ravi, >> Thanks for your help. >> >> After changing permissions of system/usr/keychars/qwerty.kcm.bin >> Every thing worked fine and now I can map any keyboard key. >> >> Also after changing permissions of /dev/input/event1, I can use USB >> optical mouse also. >> >> Regards, >> Shivdas Gujare >> >> >> >> On Mon, Dec 1, 2008 at 5:46 PM, R K <[EMAIL PROTECTED]> wrote: >> > Hi Shivdas, >> >> >http://beagleboard.googlecode.com/files/evtest.crun following test case, >> > will help you to see the keyboard events. >> >> > Regards, >> > Ravi >> >> > On Sun, Nov 30, 2008 at 8:06 PM, Shivdas Gujare <[EMAIL PROTECTED]> >> > wrote: >> >> >> Hi All, >> >> >> I am porting android on omap3 platform. I can boot android on it, >> >> and able to see GUI. I connected "Qwerty USB Keyboard(Dell Keyboard)" >> >> to my board. >> >> >> From kernel configuration, I selected "Event interface" under "Device >> >> Drivers -> Input device support -> Generic input layer" and associated >> >> USB support >> >> and I can see events generated on /dev/input/event0. >> >> >> I compared events generated by my Dell Keyboard on target and emulator >> >> keyboard using "getevent". and looks like it all are similar. >> >> I verified file "/system/usr/keylayout/qwerty.kl" for both emulator >> >> and my target. and are both same. >> >> >> Now my target detects only events from "ENTER", and android GUI works >> >> properly. But not a single key other than "ENTER" gets detected >> >> by Android. >> >> >> Do I am missing any further verification/modification? >> >> Do I needs to do anything else setup to make keyboard working? >> >> How can I correlate scan keycodes genetared by my Dell keyboard and >> >> expected by android. >> >> >> Thanks for any help. >> >> >> Thanks and Regards, >> >> Shivdas Gujare- Hide quoted text - >> >> - Show quoted text - > > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [EMAIL PROTECTED] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
