Trying to remap hardware USB keyboard, having some problems. - Android Q&A, Help & Troubleshooting

Recently I have gotten a USB keyboard for my tablet, but I'm having some problems trying to remap some of the "useless" keys (F1, F2,...) to something usefull like home and multitasking.
I have read on this a bit, but haven't managed to find anything.
I have done the terminal command to get my keyboard's vendor and product IDs, but in the /system/usr/keylayout there is no such file, but the keyboard (acording to an app called "Key test") uses different keycodes in comparison to the ones found in generic.kl and qwerty.kl.
I even tried editing both of those, but still nothing.
Any help?

Bump!
Sent from my Ainol Novo7 Elf using xda premium

Related

Key remapping of the Microsoft Bluetooth Keyboard 6000

I bought a Microsoft Bluetooth Keyboard 6000 today from bestbuy to use with both my tablet and my computer. It works great with my tablet (am using it now) However I would like to remap some keys so it would add some extra functionally to it. Anyone have any idea how to do this, or come across something I have failed to see?
Sent from my HTC Flyer P510e using XDA App
Keys are mapped in files in /system/usr/keylayout
it's not so straightforward and depends on what vendor ID the device presents. If it matches an installed key map, ok, but if not then it may get either the generic map or the qwerty map. The Flyer already has maps for logitech , Sony, Apple and Motorola bluetooth keyboards, but not MS. you might start by searching for a MS keymap file.
WARNING< backup your files / ROM before you modify any key map files in your system.
Good luck
Also see this link.
http://www.mobileread.com/forums/showthread.php?t=159538
looks very promising! thanks for the link, I will try it out.

Best ssh/telnet app for docked Prime?

Anyone know of a good ssh/telnet app that works properly with the keyboard dock on the Prime?
I have tried ConnectBot but the shift-number keys don't work, as well as other keys on the keyboard.
Telnet isn't as important as ssh, so an ssh only app would be good.
Willing to pay a few quid/dollars/euros/camels too.
V3ng said:
Anyone know of a good ssh/telnet app that works properly with the keyboard dock on the Prime?
I have tried ConnectBot but the shift-number keys don't work, as well as other keys on the keyboard.
Telnet isn't as important as ssh, so an ssh only app would be good.
Willing to pay a few quid/dollars/euros/camels too.
Click to expand...
Click to collapse
I'm using a custom apk for connectbot that can be found here : http://code.google.com/p/connectbot/wiki/KeyboardShortcuts
Look at the comments, there's two links from two different guys and it works perfectly with the dock!
V3ng said:
Anyone know of a good ssh/telnet app that works properly with the keyboard dock on the Prime?
I have tried ConnectBot but the shift-number keys don't work, as well as other keys on the keyboard.
Telnet isn't as important as ssh, so an ssh only app would be good.
Willing to pay a few quid/dollars/euros/camels too.
Click to expand...
Click to collapse
Better Terminal Emulator Pro is worth a look, although I am also going to check out the connectbot mentioned above.
BTEP does not support encrypted keys which is a big problem for me
-Barry
That custom apk is great thanks Anthony.
Do you know if you can disable the function key thing so I can enter a "!" ?
Indeed, thank you for the keyboard-capable APK.
My only gripe is that connectbot won't SSH1, which is necessary for my situation.
I agree, btep is the next best solution after connectbot.
anthonyalberto said:
I'm using a custom apk for connectbot that can be found here : http://code.google.com/p/connectbot/wiki/KeyboardShortcuts
Look at the comments, there's two links from two different guys and it works perfectly with the dock!
Click to expand...
Click to collapse
Thanks for this, even better than the BTEP I have been using, and free to boot!
I still can't get the "!" key working, which I need for vi!
Any ideas?
That's weird, I have no issue using the ! symbol
Maybe try to go to settings, Directory shortcutcs => Use right side keys, that's the only thing I can think of
I use BTEP for the dock support, although I guess Terminal Emulator can do that well enough now. BTEP like many apps, uses Dropbear for SSH: which is good but kinda limited.
I generally use OpenSSH in a Debian chroot, running in BTEP+tmux; tmux is a program like gnu screen.
Sent from my Transformer Prime TF201 using Tapatalk
Resurrecting a dead thread....
Sorry for ressurecting, but after going through the ringer on exactly this, had to comment.
Home/end keys don't work in nano/vi for BTEP. Commented this in the existing BTEP bug for TPrime keyboards: http://littlegreenbugs.com/bugs/view/165/
BTEP also doesn't properly do screen wipes in curses applications. Again, see here: http://littlegreenbugs.com/bugs/view/191/
Connectbot standard has effectively no support for the hardware keyboard.
vxconnectbot works awesome, as long as all your modifier keys (shift, ctrl, etc.) aren't pressed at the same time as the keys. Press, release, then press+release the key to modify. Not at all like a real keyboard.
irssi connectbot actually supports the keyboard, which is incredible. There's some other (rendering) issues with irssi connectbot, but compared to the others it's even better support than BTEP. Note, this doesn't actually run irssi, it adds support for actually using things like your modifier keys from a hardware keyboard, so that you could use irssi if you want to. Thus the name.
ConnectBot
I am still a fan of using the modified ConnectBot, it is just sadly really quite ridiculous to find... Best working version I have found is from http://code.google.com/p/connectbot/issues/detail?id=459#c72. In comment #72 4WayneD links to a ConnectBot-debug.apk on his website. I have been using this modified version on the Prime for a couple months now. Things I have checked myself:
* Number keys work correctly
* Ctrl keys work (this was key for me as I use screen a *LOT*)
* Search key functions as Alt
* Home/End/PgUp/PgDn keys work
Another thing to note, this is a modified older version as I do not like the new "tablet" version of ConnectBot as it sacrifices way too much screen real estate.
I like Terminal IDE, works fine with the dock.
Sent from my i9250

[Q] Dock has keys transposed

Not long had the tf201 dock and have discovered that two keys are transposed.
Shift-2 should give [email protected] but gives inverted comma-"
Shift-apostrophe should give inverted comma-" but gives [email protected]
After a little reading I have downloaded notepad++ (win7) and transferred a few .kcm files across from system/user/keychars/ to my laptop for editing.
asusdec.kl and asusdec.kcm appear to be mapped correctly.
Any ideas where else I should be looking, maybe I'm completely offtrack?
US and UK keyboards have the locations for those 2 keys swapped. You're not using the right keyboard locale.
Sent from my Transformer Prime TF201 using Tapatalk
Well that was a much easier fix than I had anticipated!, thankyou

Physical keyboard inputting wrong keys.

Trying to help my sister troubleshoot this issue.
When she presses shift and the period to get a colon she gets a > instead. I've reset the data for the keyboard. Nothing. Reboot, nothing.
Sent from my SPH-L710 using Tapatalk 2
Been down the rabbit hole with this as I had picked up a cheap BT keyboard for an Apple device. You either have to find an app or otherwise dive into the Linux and Android keyboard definitions, some of this may be in ROM settings, but possibly even at the filesystem level such as creating a mapping file, or basically just test all the keys to figure out how it sees it and tape or magic marker or something what they are. Sorry I don't have better news. Android also has some different mappings itself compared to regular Linux.

Mapping ESC on Asus Dock. Any thoughts?

Hi!
I've recently unlocked/rooted/flashed my tf201 to KatKiss with grimlock. Loving it so far! I can finally use my Prime again. Cudos to the developers!
But I really would like to have an ESC button somehow mapped to the dock (e.g. VOL_UP + BACK, or something...). Missing it in some web-apps and Vim. I'm using Termux.
I've read about system/usr/keylayout -and some klc files, but I have like 10+ vendor files inside there, a generic and two qwerty files... So I'm a little confused WHAT/HOW to edit.
Btw, id like to map F1-10 keys aswell, but I couldnt find any good source of info about this.
The Terminal Emulator, installed from the beginnning with KatKiss, seemed to have some nice mapping exactly for this purpose, not sure if one could adapt that somehow to other apps aswell. Because: I'd like to use Termux instead the emulator.
ANY HELP IS APPRECIATED!

Categories

Resources