Mapping keys for Blutooth HID? - Android Q&A, Help & Troubleshooting

Iv'e been at this sense last night and haven't gotten anywhere! Its getting frustrating so i decided to try and branch out for some advice.
Im using an LG Optimus V with Bobzhome Cynagenmod 7, I am trying to get my ThinkOutside Universal BluTooth Keyboard to work a little more like it should with my device. It will pair and connect no problem and all the keys work, Its just that some of them don't work the way there suppose to.
Ive been trying to get my Ctrl Esc and < > keys working properly. The resources ive been using are
Cant post the links becuase im a new user, but its a blog about the kl and kcm.bin files and an android dev page about porting KBs and writing drivers for them.
Anyways i'm basically just editing the /system/usr/keylayout/qwerty.kl file, by using nano from the command line from debian on the phone. Nothing i seem to do works it either totally breaks the keyboard totally or it just doesn't anything. My file is just the basic qwerty.kl right now and i added a line that says
Code:
Key 29 VOLUME_DOWN
Im using a program on my phone to get the KeyCodes and ScanCodes from my keyboard. Im sure 29 is the right scancode for my Ctrl key. Once I edit the qwerty.kl reset the phone and reconnect and pair the KB the ctrl key still comes up ass scancode 39 keycode 0 when i press it, which is what it was before i wrote the new file.
i know there also the kcm.bin file but im not sure what that does, im under the assumption thats only for editing the shift and alt modifiers for key right?

sorry mods for bringing up this thread after so long, i'm facing a similar problem and would like to know what's the
program on my phone to get the KeyCodes and ScanCodes from my keyboard
Click to expand...
Click to collapse
please.
Thanks in advance

Related

CyanogenMod6-v3.2.1 discussion

Hello all,
I do not have a lot of posts, so cannot post in the DEV thread.
Also I think it is good to discuss it separately not to spam the DEV thread.
For the ones having uppercase problems:
Press the text input box for some time and a popup will appear for input method. Use Android Keyboard. Done.
Several people asked is it ok for everyday use - yes it is. Using it for a week without problems. Got only a reboot twice by disconnecting the phone from the USB cable with 3.1. Do not get it now with 3.2.1. I got no random reboot so far, expect after FC with 3.2 and root explorer.
About the updates:
You can update all the time to copy the last package as update.zip to your sdcard and then running xrecovery 'install update.zip' method. When I first went from SE to Cyan 3.1 the phone stuck on reboot. Went to xrecovery and did a factory reset and the phone booted normally (with Cyan and not the SE stock).
If you check the contents of the .zip it's easy to understand what will get updated.
About current problems:
Besides the one described by owain, I get forced closed when the market starting to install any application and when running root explorer with 3.2 and 3.2.1 (which has no update regarding these). Also for root explorer I get a reboot after FC. With 3.1 both was working fine. I've seen some changes in the zips that I do not understand the reasons for (why ADWLauncher.apk and MarketUpdater.apk was totally removed from /system/app, things like that).
I will continue to report here if the thread will not get removed. Please try to be specific about your experiences to help the other users.
Thanks a lot,
arch
I try to create an inventory of exact issues and solutions below:
Issue #1: No uppercase
Solution: Press any text input box for some time and a popup will appear to choose an input method. Use Android Keyboard. Done.
Issue #2: There are no zoom buttons in the browser.
Solution: Go to settings within the browser, disable/enable zoom controls. They will be visible thereafter.
Issue #3: Market stoppes working in the moment after the installation of an application finishes (forced close).
Solution: None so far. Tried this (http://forum.xda-developers.com/showpost.php?p=11708912&postcount=479), but it was not working for me (caould not install Vending.apk). If someone could post exact steps to reproduce, it would be fine.
Issue #4: Root explorer gets a forced closed on restart. Get an 'SD card safe to remove message' and a reboot soon thereafter.
Solution: None so far.
Issue #5: Disconnect from a running PPTP VPN connection. Get an 'SD card safe to remove message' and a reboot soon thereafter.
Solution: None so far.
Issue #6: Keyboard backlight is still on after sliding back the keyboard.
Solution: It has some timeout. After a while, the backlight is switched off.
Issue #7: Sym(bol) button not working
Solution: After pressing it (blue+sym) press space and a pop-up will appear for selection. If you don't see the char you wish for, blue + long press the key which likely has it as an alternative (instead of pressing sym). E.g. long pressing blue + Z (which is 3) will give you 3, 3/4, 3/8.
hi everybody
it seems like we've got an incredibly smooth and fast rom so far. everything works flawlessly
I still have only 2 small (really small) issues:
1) changing language on a hardware keyboard. on a stock SE rom there was a tiny selection box on a screen. now there's nothing. I just can't change language on a hardware kb...
2) there's no zoom buttons in a browser.
is it bugs or just my stupidity? if someone will help me, I'll appreciate it a lot
bw, have anyone noticed the same things or maybe it's just my install ?
Market Mobile Networks ?
Hi,
market does not work when mobile networks is on.
What settings do I have to invite the Market.
E-Plus
LG Josef
Good idea to make the discusion for the low level ones
I have problemes with blue tooth. If i boot with bt aktivated ihave it but if i deaktivaate it and aaktivate it again in don t work
Anyone else have this prob ?
Sent from my U20i using XDA App
This my first post i think, but I've been watching this forum for a while for updates.. Thanks for making this post.. I was just going to spam the forum with posts so i could post in the development thread. But then i happen to find this thread.
Does anyone have the original camera apk? or would it NOT work?
The basic one on 2.2 is UGLY and not very good for the small screen. Also the file names are annoying.
I find the original one on 2.1 was alot better, it fit the screen better. Also i like how it saves the files as DSCxxxxx made it really easy to use.
Vignette takes way too long and does NOT flow well. (takes long to save photos + You can't press the camera button to get back to taking photos.
The original one on the 2.1 firmware flowed well and you could take pictures easily.
If not can anyone recommend an app that works just like it, or really similar?
sym key
Damn me... i see your thread just when i post a thread for the sym key... :-|
By the way, the sym key doesn't work as expected, it doesn't pop up special characters, special punctuation marks and emoticons selection (as it does in SE stock rom).
Anyone with the same issue?
ff0000.it said:
Damn me... i see your thread just when i post a thread for the sym key... :-|
By the way, the sym key doesn't work as expected, it doesn't pop up special characters, special punctuation marks and emoticons selection (as it does in SE stock rom).
Anyone with the same issue?
Click to expand...
Click to collapse
It's a known issue of this ROM. You can type special carakters like "ä" by (in this case) long pressing the "a", "ö" long pressing the "o" and so on.
for capital letters you have to do this:
kinglargo said:
Shift didn't work at start either but got fixed when I started to disable/enable stuffs in "Settings > Language & Keyboard" like "Android Keyboard" "HTC_IME mod" and "Default Input"..
Click to expand...
Click to collapse
Deehee3 said:
It's a known issue of this ROM. You can type special carakters like "ä" by (in this case) long pressing the "a", "ö" long pressing the "o" and so on.
Click to expand...
Click to collapse
I don't use those special characters, but symbols like '_', '"', '{', '}', '$', '%', '<', '>' and so on, should be very useful
Mark this as solved and mark me as idiot!
i've update my x10mini pro to Cyanogen 2.2.. im a brazilian and the keyboard layout is wrong.
here the /system/usr (http':'/'/'www'.'mediafire'.'com'/'?'5qr3vk5r50fnx1v') of brazilian 2.1.1.A.0.6..
and here, the keyboard http':'//'1'.'bp'.'blogspot'.'com'/_bl-dkgjBPqA/TQd_gMW-3fI/AAAAAAAAD5k/YSyLym8c_5A/s1600/'DSC_0297'.'JPG
can anyone help me?
PS.: I CANT POST EXTERNAL LINKS, SO PLEASE.. REMOVE THE '
I have notices that the Market is the old and not the Market that enabled all Resulutions
ff0000.it said:
I don't use those special characters, but symbols like '_', '"', '{', '}', '$', '%', '<', '>' and so on, should be very useful
Click to expand...
Click to collapse
first press "sym" and then the "space"...
i can`t install some apps which earlier worked good..such as angry birds,androzip,galcon,svox voices...
who has the same problems with this rom?
I still have some problems on market too
7.0
Guys,
let's wait for 7.0 and forget this version or accept for the next couple of days that market has an FC. Owain is going ahead like a machine...
Thread closed, cheers,
arch
Hi to all, this is one of my first posts here (maybe the first).
I've just installed this custom rom, i had some trouble with the market solved installing market.zip as suggested in the official thread of this CyanogenMod 3.2.1 and now it seems working fine.
I've just a question about the next apk installation... where install them? Or better, wich settings use?
I mean...
go in Settings > CyanogenMod settings > Application settings
have I to select "Allow application moving"?
And then change something in "Install location"?
By the way I prefer to install the applications in the sd card because of previous problems of full memory with Android 2.1.
Please tell me something about this question and sorry fo my poor english
so for me all is well done but bluetooth is still not working, only after the 1st boot
but after deaktivating und aktivating threre is no blutooth again.
Is there a fix posible ?
3.2.1b ROM
Dear all,
I put a 3.2.1b ROM here: http://forum.xda-developers.com/showthread.php?t=982489
Couldn't help much with application install, bluetooth, just checked and merged the sources from owain and nobodyAtall.
Have a nice day,
arch
As yet I can not post on dev, I'll put here, I hope you see,
I just want the original x10 mini pro portuguese From Brazil(PT-BR)
link below the keyboard, remove the spaces ok.
http ://stanasoft.com/site/images/x10_mini_pro_keyboard_pt-br.jpg
Andreson01 said:
As yet I can not post on dev, I'll put here, I hope you see,
I just want the original x10 mini pro portuguese From Brazil(PT-BR)
link below the keyboard, remove the spaces ok.
http ://stanasoft.com/site/images/x10_mini_pro_keyboard_pt-br.jpg
Click to expand...
Click to collapse
Please check out this Thread and install the sony erricsson Zip (Huge Download link) follow the instructions exactly!
HardWare Keyboard Thread
Yeah, support slade with his efforts on the keys!
Thanks a lot mate!

[Q][Self-Solved] Italian Keyboard Layout CyanoComb 1.4

Hi everybody, i've googled around for this problem withoud finding any solution.
How can i edit the files in system/usr/ to make the keyboard like the stock one?
Examples:
if i press the blue button ONCE it should write ONE blue character only. instead it messe everything up and i have to press it several times to get the letters working.
the sym button doesn't work in either way (accented letters if pressed simultaneously with the letter or symbols menu if pressed alone).
etc..
i found this (http://forum.xda-developers.com/showthread.php?t=1113863), but it didn't help, and i can't post in that thread to ask for help.
i've seen that italian language file is present in /system/usr/keyboard-config/languages, but how can i make the phone use ita.xml instead of what's using now?
EDIT: i've seen now that i've started the thread in the wrong browser tab, i wonder if a mod may move this to Q&A. i'm sorry
EDIT2: problem solved, i had to change the option in the settings menu. strange that 3 different keyboard input methods were activated, it makes no sense to me.
i'd recommend to stiky a warnig to this fact so no one will be looking for a solution to a problem that doesn't exist
swedish hardware keyboard x10 mini pro
Noob here,
CynaNoComb 1.4 installed on x10 mini pro, can't get the HW keyboard to work with se-fi, tried both http://forum.xda-developers.com/showthread.php?t=982341 (3.3) and other suggested solutions.
Believe 1.3 had an app "cmmini ROM-something", which worked fine then,
Stuck here, thanks for any help, (and sorry if posting inapropriate, haven't fully figured out the structure of xda.)
regards,
Edit solved:
downl es file explorer
start esfe go to manage / security check both root and /sys as wr
edit /system/usr/keybord/keyprint.xml, change latin layout to qwerty-se-fi
save and reboot
exhale.

Problem with home key

So far I can't post PM or message to developement board as new registered user, lets try to get answer to my problem this way
Problem and following ROM is related to Xperia GO
I downloaded, installed and started use ExtremeSecurity Stock Jelly Bean 6.2.A.1.100 European ROM http://forum.xda-developers.com/showthread.php?t=2328171. I did it as I need something to replace stock one with delays it have. I found one problem, I am unable to solve. After install and rooting I found I can't use the home key (the touch sense key under display - the one with "house"). I was trying to google and change mapping of this key and did not succeed. So I made some tests and did not move anywhere forward...
1) If I go to recovery, cwm allow me to display key numbers in some menu. Here key respond well it code as 102 (as it should)
2) If I add line like key 102 HOME WAKE to any file in /system/usr/keylayout nothing change (after editing I reboot, then put it back, so far I was not succesfull)
3) If I use any of "keypress test application" (try 3 of them) they report all keys well (back, settings, vol up/dwn power) but no report and no action for home.
There is no difference in press or long press of key. Simply no action follows.
Do you have any Idea what can be wrong?
Thanks a lot
Karel
P.S. If admins will forward it as message to munjeni or move to Developement part of forum for this ROM, please delete it here...

Fix for old headsets (earphones with one button) (non-Android dedicated) in Lollipop

Hi all,
i recently upgraded to Lollipop 5.0.2 (big mistake, I prefered KitKat, but I don't know how to downgrade).
One of the major problems for me was the fact that my headsets did not work with Headset Button Controller (or any other headset control app).
They worked just fine in Kit Kat.
I must mention that this headset earphones were from another Samsung phone (non-smartphone). But I am very satisfied with them and don't want to buy other ones.
( I also have Android-dedicated earphones, but they do not deliver the same quality (but they worked with Lollipop). I just don't want to use them)
Every time I pressed the button in order to stop/pause/volume control/answer phone, the mother****ing Google search would pop up.
I finally managed to fix this by re-mapping the keys on the keyboard layout, in order for HEADSETHOOK to be "perceived" instead of VOICE_ASSIST
First you need to root your phone (I used the King Root method, and then did a factory reset and installed SuperUser).
Then I installed SdCard fix, (which fixes the writing permissions on SD on KitKat and Lollipop) https://play.google.com/store/apps/details?id=nextapp.sdfix
After that I used the thread http://forum.xda-developers.com/nexus-4/general/guide-headset-controls-t1997277
From there I downloaded the Keytest App, and saw that my old headphones' clicks were perceived as key 582 VOICE_ASSIST instead of 226 HEADSETHOOK
The file you need to modify is in Root folder/system/usr/keylayout/Generic.kl
You will find many *.kl files there, but Generic.kl id the only one you need to modify
I sent it to my PC and modified it using WordPad.
What you need to do it find the the line for key 582 (towards the end of the file) and replace VOICE_ASSIST with HEADSETHOOK.
(Me personally I also replaced key 226 from HEADSETHOOK to VOICE_ASSIST, probably a bad decision )
Then you need to send it back to your phone and use a file explorer app to replace the one in your system.
I used Xplore (fell inlove with it since I had a Symbian Nokia). You need to give it superuser rights with write permission on read-only locations. ->Configuration -> Root access -> Superuser + mount writable (4th option). Now you can over-write the Generic.kl in /system/usr/keylayout/
After that I rebooted my phone and everything works fine.
On short presses Headset Button Controller kicks in and does what I need and on long press Google search pops up.
Hope it helps.
Delete

[Need Help] .kl files

Hi guys, recently my lg g5 rebooted randomly and deleted all apps cache. I had no mayor problems ever since but one, i have an AVH bluetooth gamepad which has a phone stand to play emulator games anywhere. Since that reset i can press and use all buttons BUT i cant hold a button for more than 1 sec. If i hold a button it registers that i lifted my finger 1 sec after i pressed it, i tried with another phone and it works ok, also on a computer it works ok.
I think it may be related to .kl files, anyone can zip the original lg .kl files to me? i'm using fulmics rom 5.5, i dont know if you have to send me the kl files from the same rom or if you know another solution.
Thanks

Categories

Resources