cm10 keyboard fix(kind of) - Samsung Captivate Glide

hi guys, i fixed 2 keys on my keyboard tonight.
i know this is probably not the way to do it but, i modified a few things in /system/usr/keylayouts/Generic.KL
what you need
cm10 of course
root access
a text editor
i am not responsible if you break your device following the instructions here, please make a backup of your Generic.kl file before modifying it
To fix the backspace key, scroll to the line : key 111 FORWARD_DEL
replace FORWARD_DEL with DEL
To fix the blue Alt key, scroll to the line : key 464 FUNCTION
replace FUNCTION with ALT_LEFT or ALT_RIGHT, both are working
i will try to fix the other keys soon, especially the ? key
now as i said this is probably not the right way to do it, the number keys seems to toggle search in cm10 stock internet browser, i havent checked with other ones yet, everything is working fine everywhere else though
Thanks to dman3285 for all the work he has done bringing cm10 to our devices

Numbers keys are working fine in Firefox
Sent from my SGH-I927 using xda app-developers app

math_green20 said:
hi guys, i fixed 2 keys on my keyboard tonight.
i know this is probably not the way to do it but, i modified a few things in /system/usr/keylayouts/Generic.KL
what you need
cm10 of course
root access
a text editor
i am not responsible if you break your device following the instructions here, please make a backup of your Generic.kl file before modifying it
To fix the backspace key, scroll to the line : key 111 FORWARD_DEL
replace FORWARD_DEL with DEL
To fix the blue Alt key, scroll to the line : key 464 FUNCTION
replace FUNCTION with ALT_LEFT or ALT_RIGHT, both are working
i will try to fix the other keys soon, especially the ? key
now as i said this is probably not the right way to do it, the number keys seems to toggle search in cm10 stock internet browser, i havent checked with other ones yet, everything is working fine everywhere else though
Thanks to dman3285 for all the work he has done bringing cm10 to our devices
Click to expand...
Click to collapse
It doesn't work btw... I tried this a lonnng time ago.

Doesn't Work!

Rawr0w0 said:
It doesn't work btw... I tried this a lonnng time ago.
Click to expand...
Click to collapse
Yes it does work.. tested it myself.. will be in the next cm10 release.
Nice work
Sent from my SGH-I927 using xda premium

dbrannon79 said:
Doesn't Work!
Click to expand...
Click to collapse
It works and works well... I assure you
Sent from my SGH-I927 using xda premium

I can also confirm this works using dmans PAC rom
Sent from my PACman device

I forgot to say, a reboot is required for the changes to work
Sent from my SGH-I927 using xda app-developers app

math_green20 said:
I forgot to say, a reboot is required for the changes to work
Sent from my SGH-I927 using xda app-developers app
Click to expand...
Click to collapse
. . . now it works
---------- Post added at 09:30 AM ---------- Previous post was at 09:21 AM ----------
ever since i did that... Android Keyboard (AOSP) has stopped. keeps flashing...and I lost mobile service somehow...

Whenever I try to edit this file, on reboot, I lose function of my power button and none my keys work on the hard keyboard...any ideas?
Sent from my i927 PACman JB

I will upload my keyboard layout file later today, maybe even 2 layouts, i got most keys working by now.
If you lose your hardware buttons it means you screwed something up while modifying the file. Keep the tabulations right, double check after modifying
Key 464 LEFT_ALT disabled every buttons
Key 464 ALT_LEFT will work
If this happens you can either restore your original generic.kl backup, reboot via an application like rom manager or something
If you had no backup you can flash back dman's rom, it did work for me after i screwed the file up the first time
Sent from my SGH-I927 using xda app-developers app

I am not sure what is going wrong? I have done it as you have explained but I keep losing the keyboard, power and volume keys? I must have something installed that is conflicting but can't figure out what
I had to reinstall dman's ROM again as the backup wouldn't get the Keys working again...I tried to edit the file again with the same results? This time at least the backup of the file restores function to the keys
Thanks again for your work, I guess I just have to wait! XD
Cheers
Sent from my i927 JB PACman

I did the two edits and nothing, even after a reboot the alt button still acts as the caps lock key!
I'm running PAC Rom with covenant kernel!
Sent from my SGH-I927 using Tapatalk 2

Make sure your device does not insert a . after 2 consecutive spaces at the end of a word, that made screw me up a few times. But as i said i will upload my layout file later today when i get back from work
Sent from my SGH-I927 using xda app-developers app

math_green20 said:
Make sure your device does not insert a . after 2 consecutive spaces at the end of a word, that made screw me up a few times. But as i said i will upload my layout file later today when i get back from work
Sent from my SGH-I927 using xda app-developers app
Click to expand...
Click to collapse
My apologies! I was making the edits using root explorer and it was not saving them! Got droid edit from the market. Works great !
Thank you
Sent from my SGH-I927 using Tapatalk 2

I too had to use a different editor. Root explorer and ones in phone wouldn't work. I typed this with the keyboard! XD I was thinking that was the problem, not smart enough to figure it out myself I guess
Thanks again!!!
Sent from my i927 JB PACman

Has anyone gotten the number keys working?
Thanks
Sent from my SGH-I927 using Tapatalk 2

1234567890. All typed holding 'blue Alt + numbers'. So yes they are working for me now!
Sent from my i927 JB PACman

thescot33 said:
1234567890. All typed holding 'blue Alt + numbers'. So yes they are working for me now!
Sent from my i927 JB PACman
Click to expand...
Click to collapse
How did you go about the edits? Wasn't sure since I couldn't get the right key numbers with the tracker app!
Sent from my SGH-I927 using Tapatalk 2

That's weird, i used root explorer editor and everything worked fine, i used KeyEventDisplay to get the codes.
Sent from my SGH-I927 using xda app-developers app

Related

[Q] Hard keyboard .com FN key

I have tried to find a thread with this info and SORRY if there is a thread with this info about it.
I have installed CM9 A5 and i am noticing that the FN .com key does not work on the physical keyboard and seems all the rest work just fine. I don't have a problem with typing in the .com, but would like to have it working.
Is there fix for it?
u82cats said:
I have tried to find a thread with this info and SORRY if there is a thread with this info about it.
I have installed CM9 A5 and i am noticing that the FN .com key does not work on the physical keyboard and seems all the rest work just fine. I don't have a problem with typing in the .com, but would like to have it working.
Is there fix for it?
Click to expand...
Click to collapse
I was reading that thread and there is a big todo about that key and that it will not be official and never be added due to cm rules... sounded pretty silly to me...bu there is your answer.
sent from a phone using an app
Djinn23 said:
I was reading that thread and there is a big todo about that key and that it will not be official and never be added due to cm rules... sounded pretty silly to me...bu there is your answer.
sent from a phone using an app
Click to expand...
Click to collapse
By that thread I meant the cm9 thread. I think zman brought it up.
sent from a phone using an app
Thank you for your reply...I will have to stop being lazy and type in 4 more characters.
It works if you hold it and press the character you want. But if you flash a custom kernel I think it fixes it because I stopped having problems after flashing samurai kernel... the one for alpha 4 works for alpha 5 because they made changes in the rom itself not the kernel
Sent from my SPH-D700 using XDA App
phonehunter59 said:
It works if you hold it and press the character you want. But if you flash a custom kernel I think it fixes it because I stopped having problems after flashing samurai kernel... the one for alpha 4 works for alpha 5 because they made changes in the rom itself not the kernel
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
He means specifically for Sym/.com. Sym key seems to be a tab key now.
Sent from my SPH-D700 using Tapatalk
I was actually just looking for a solution to this myself. I found this thread about key mappings. It looks to me like some people have remapped it so that buttons like fn and the emoticons do different things but still not what they are labeled to do. Perhaps I am missing something and the TouchWiz rom allows for these buttons do do what they are marked to do but CM7 does not even have the ability. I would love to get the keys working properly though if it is possible.

[Q] Can I change the function of capacitive buttons

I'd like to change the search button into a shortcut for the recent apps list. Im on AOKP and i dont think its already possible through ROM control.
Sent from my SPH-D710 using XDA
Alright I found this: http://forum.xda-developers.com/showthread.php?t=1558220 its a start but it opens a GB-esque, icon only recent list instead of the improved ics version.
Sent from my SPH-D710 using XDA
Button Remaper. Haven't tried it myself, someone posted it in my Tablet UI mod thread. Let me know if it works.
Works fine just wish there was more to choose from.
Sent from my SPH-D710 using Tapatalk 2 Beta-5
MajorTankz said:
Alright I found this: http://forum.xda-developers.com/showthread.php?t=1558220 its a start but it opens a GB-esque, icon only recent list instead of the improved ics version.
Sent from my SPH-D710 using XDA
Click to expand...
Click to collapse
The key layout is the beginning but it will also require framework edits to PhoneWindowManager to change the function of the APP_SWITCH function.
Watching this thread with anticipation...
barnacles10 said:
The key layout is the beginning but it will also require framework edits to PhoneWindowManager to change the function of the APP_SWITCH function.
Click to expand...
Click to collapse
Would you be able to fix it?
Sent from my SPH-D710 using XDA
Please, if anyone could fiz this mod it'd be greatly appreciated
Sent from my SPH-D710 using XDA

CM10 Fn Key not working...

This has been touched on in the development thread, but since I just registered, I can't post or reply there so maybe someone will see this and can help me out. With the new CM10 nightly straight from get.cm on my epic, the fn key on the hardware keyboard does not work. In the web browser it just ignores that i've pressed it all together. In texting it doesn't accept any input after pressing the fn key until i press it again to turn it off. Any fixes or is this a bug that will need to be fixed through future versions? Is everyone experiencing this, or is it just a few people?
<[^_^]>
Sent from cm10 using the fn key
I wiped everything and reinstalled and it is working now. I wiped every bit of stuff I could off my phone using CWM. Seems to work great now... odd. )(*&^%$#~-_+=[];:\"'><}{|[email protected]/!
Sent from my SPH-D700 using xda app-developers app
You must hold the Fn key, much like the shift key on a pc.
Sent from my SPH-D700 using xda premium
epicnoob66 said:
You must hold the Fn key, much like the shift key on a pc.
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
Not unless that is a new way of using the FN key
This Epic post brought to you via Tapatalk 2 and CM9
Try searching in the stock browser
Sent from my SPH-D700 using xda premium
I think he is still on cm9 unless his sig is outdated. But yes, in cm10 you have to hold the fn key when searching. But I'm fine with that. Mine was not working at all. But then I cleared and reflashed everything and it works
Sent from my SPH-D700 using xda app-developers app
My Fn key doesn't work either even if I hold it.
Sent from my SPH-D700 using xda premium
See my 2nd post above. I wiped everything and reflashed and it fixed the issue. Seems like we got a dirty flash... I wiped absolutely everything from within CWM. Saved stuff I wanted on SD card, went to mounts and storage and went through each wipe option, so I'm not sure which one actually fixed it.
Sent from my SPH-D700 using xda app-developers app
I have the same issue. Seemed to start after I loaded up a copy of Swift Key Flow Beta. I went back to Swype - and it sill won't let me use the Fn key.
I will try doing some wiping when I have more time, just thought I would add that one little clue to the discussion.

[MOD] Enable Navigation bar/Disable HW keys(Nexus 4 style)

I have the At&t version of Optimus G E970, I think this will work for any Optimus G.
Not responsible for bricked phones.
This is a mod how to enable navigation bar(on screen buttons) , its very simple and easy...
Add the following line at the end of buid.prop file
qemu.hw.mainkeys=0
now on reboot we will have nav-bar like on nexus 4
To disable hardware keys, I used root explorer go to system/usr/keylayout click and hold on kaypad.nl and choose from menu open in text editor and 139,158,172 edit the home to hom and do the same on all 3 lines and hit save and reboot,
Plus I went and deleted all the 139, 158, 172 lines from external_kbd.kl, Generic.kl, MHLRCP.kl, osp3-input.kl and qwerty.kl. I dont know if that helps because I deleted them first then edited the lines in kaypad.nl.
Sent from my LG-E970 using xda premium
Sent from my LG-E970 using xda premium
what for????
why do i need to decrease screen size?
agurzhiy said:
what for????
why do i need to decrease screen size?
Click to expand...
Click to collapse
Well some people might want to play with it and get the nexus 4 feeling. Plus its feels smoother in my opinion.
Sent from my SGH-T999 using xda premium
Its the beauty of Android you can make it how ever you like, some don't mind hardware keys other may want the soft keys.
Sent From my "Slick" Optimus G
For what it is worth I find the software keys more ergonomic
The hardware keys on this phone are to low and causes strain to hit them
Sent from my LG-E971 using xda app-developers app
trincisor said:
For what it is worth I find the software keys more ergonomic
The hardware keys on this phone are to low and causes strain to hit them
Sent from my LG-E971 using xda app-developers app
Click to expand...
Click to collapse
That's how I feel its in the right spot. The hw keys are too low.
Sent from my LG-E970 using xda premium
it works thanks but is there any way you can make the navigation bar smaller. i think it takes too much screen
You have to change values in framework-res.apk
Sent from my GT-I9100 using xda premium
---------- Post added at 04:08 PM ---------- Previous post was at 04:07 PM ----------
phillip_viado said:
it works thanks but is there any way you can make the navigation bar smaller. i think it takes too much screen
Click to expand...
Click to collapse
Sent from my GT-I9100 using xda premium
How do I do it though?
this worked out good for me because my back button stopped working but the problem i have now is my camera freezes and crashes or acts like it takes a picture but doesnt save an image does anyone else have this problem
Thanks for the tip!
Would this work on ics?
Sent from my LG-E975 using xda app-developers app
how to turn off the lights hardware keys?
Its work to disable hw keys but the lights not turn off..
Sent from my LG-E975 using xda premium
HELP! I tried this and got the nexus 4 buttons working. However, once I got to the disabling hardware buttons part, it all went to hell.
I think I may have screwed up the key map file because now my phone's power button is not working.
I can't lock the phone, I can't wake the screen.
However, once I offed the phone using an app, I can turn it on using the power button, so it definitely isn't broken.
Is there a solution to this? I don't have any warrenty and I'm freaking out!!!
Oh and yes, I've done a factory reset and no that didn't solve the issue.
Please help! Thanks in advance! :crying:
kdz restore?
Sent from my LG-E975 using Tapatalk 2
kimitza said:
kdz restore?
Sent from my LG-E975 using Tapatalk 2
Click to expand...
Click to collapse
Yeah that's what I'm trying to avoid... The process seems really risky and the instructions are not very clear..
The menu key brings up task manager is there a way to change that?
jwade0825 said:
The menu key brings up task manager is there a way to change that?
Click to expand...
Click to collapse
Should be possible by editing duno what files in system/usr/keylayout folder.
Quantity not too big, so try find yourself...
On RootBox I only needed to comment out 158, 172 and 139 (by putting a "#" in front) on keypad_8064.kl

[MOD] Enable Navigation bar/ disable HW keys(Nexus 4 style)

I have the At&t version of Optimus G E970, I think this will work for any Optimus G.
Not responsible for bricked phones.
This is a mod how to enable navigation bar(on screen buttons) , its very simple and easy...
To edit build.prop, on root explorer navigate to system press and hold on build.prop and open in text editor.
Add the following line at the end of build.prop file
qemu.hw.mainkeys=0
now on reboot we will have nav-bar like on nexus 4
To disable hardware keys, I used root explorer go to system/usr/keylayout click and hold on kaypad.nl and choose from menu open in text editor and 139,158,172 edit the home to hom and do the same on all 3 lines and hit save and reboot,
Plus I went and deleted all the 139, 158, 172 lines from external_kbd.kl, Generic.kl, MHLRCP.kl, osp3-input.kl and qwerty.kl. I dont know if that helps because I deleted them first then edited the lines in kaypad.nl.
Sent from my LG-E970 using xda premium
Why would I want to do this??
Sent from my LG-LS970 using xda premium
mrjasenr said:
Why would I want to do this??
Sent from my LG-LS970 using xda premium
Click to expand...
Click to collapse
Why would you discourage people from being helpful? If it is not your cup of tea, read and move on.
Sent from my Transformer Prime TF201 using Tapatalk HD
epeereboom said:
Why would you discourage people from being helpful? If it is not your cup of tea, read and move on.
Sent from my Transformer Prime TF201 using Tapatalk HD
Click to expand...
Click to collapse
I'm sorry, you misunderstood. I mean why? As in how would it benefit me. I wasn't being a d*ck. Like I want to know how it is of benefit vs. Hw keys.
Sent from my LG-LS970 using xda premium
mrjasenr said:
I'm sorry, you misunderstood. I mean why? As in how would it benefit me. I wasn't being a d*ck. Like I want to know how it is of benefit vs. Hw keys.
Sent from my LG-LS970 using xda premium
Click to expand...
Click to collapse
My apologies. I think it is more for aestetics.
Sent from my Transformer Prime TF201 using Tapatalk HD
Build.prop in system?
Never mind, got it
Sent from my LG-LS970 using xda app-developers app
Can someone post a picture of build.prop of where the line is supposed to be at? This may be a silly question but I'm new to root, and I really wanna get a nexus 4 feel to my LGOG.
wewooo said:
Can someone post a picture of build.prop of where the line is supposed to be at? This may be a silly question but I'm new to root, and I really wanna get a nexus 4 feel to my LGOG.
Click to expand...
Click to collapse
You just add a separate line to the bottom. Just a new line below everything that reads "qemu.hw.mainkeys=0"
Sent from my LG-LS970 using xda app-developers app
easytheezy said:
You just add a separate line to the bottom. Just a new line below everything that reads "qemu.hw.mainkeys=0"
Sent from my LG-LS970 using xda app-developers app
Click to expand...
Click to collapse
Like right under the last line which is Davik.vm.stack?
EDIT: Nvm got it, but the only problem is that the stock launcher
and keyboard don't have the right resolution.
How does one edit the build.prop?
Never mind! Got it
Sent from my LG-LS970 using Tapatalk 2
The easiest way to disable the default navigation buttons is by going to
system/usr/keylayout/keypad_8064.kl When you open the file you'll find
key 158 BACK VIRTUAL
key 172 HOME VIRTUAL
key 139 MENU VIRTUAL
add a # in the begging of each one like
#key 158 BACK VIRTUAL
#key 172 HOME VIRTUAL
#key 139 MENU VIRTUAL
Reboot and they should be disabled, but the buttons still light up. To fix this go the settings/display/front key light Then uncheck
Turn on Front Key Light.
wewooo said:
The easiest way to disable the default navigation buttons is by going to
system/usr/keylayout/keypad_8064.kl When you open the file you'll find
key 158 BACK VIRTUAL
key 172 HOME VIRTUAL
key 139 MENU VIRTUAL
add a # in the begging of each one like
#key 158 BACK VIRTUAL
#key 172 HOME VIRTUAL
#key 139 MENU VIRTUAL
Reboot and they should be disabled, but the buttons still light up. To fix this go the settings/display/front key light Then uncheck
Turn on Front Key Light.
Click to expand...
Click to collapse
This did the trick for the hard ware keys, now all I have is the soft keys
Sent From my "Slick" Optimus G
Odd, when I do this I cant pull the notification bar down ad the notifications show. It still shows the icons in the top bar. but not when I pull it down?
Also noticed that when I reboot my phone the first notification I get shows up normally, then they stop showing. It notifys me and everything, just cant pull down the blind to access them.
Also noticed that my menu button isnt integrated with the menu bar at the bottom. Ideas on how to do this?
Afteraffekt said:
Odd, when I do this I cant pull the notification bar down ad the notifications show. It still shows the icons in the top bar. but not when I pull it down?
Also noticed that when I reboot my phone the first notification I get shows up normally, then they stop showing. It notifys me and everything, just cant pull down the blind to access them.
Also noticed that my menu button isnt integrated with the menu bar at the bottom. Ideas on how to do this?
Click to expand...
Click to collapse
I can't answer the notification issue, but I believe for the menu button a lot of apps have a built in menu button (usually in an action bar on the top right) now that they display (it is more of a tablet display, but given the resolution it probably still shows up that way).
You can still get to the menu in apps right?
Would there be anyway to disable the softkeys while the lockscreen is on? Because with stock lg lockscreen, it jus shows a black bar
Sent from my LG-LS970 using xda premium
kayslay21 said:
Would there be anyway to disable the softkeys while the lockscreen is on? Because with stock lg lockscreen, it jus shows a black bar
Sent from my LG-LS970 using xda premium
Click to expand...
Click to collapse
That is how it is on my JB tablet with onscreen buttons, I think that is just how it works, but I could be wrong.
How hard is it to make this into a flash able ZIP?
Sent from my LG-LS970 using xda premium
_Epic said:
How hard is it to make this into a flash able ZIP?
Sent from my LG-LS970 using xda premium
Click to expand...
Click to collapse
They have it on the att forum, a zip to enable and one to disable, im pretty sure it'll probably work on our phones too
Sent from my LG-LS970 using xda premium
kayslay21 said:
They have it on the att forum, a zip to enable and one to disable, im pretty sure it'll probably work on our phones too
Sent from my LG-LS970 using xda premium
Click to expand...
Click to collapse
I'll be the test dummy and let y'all know.
EDIT: Don't flash the ZIP, kills the whole alignment of the icons and widgets.
Sent from my LG-LS970 using xda premium
_Epic said:
I'll be the test dummy and let y'all know.
EDIT: Don't flash the ZIP, kills the whole alignment of the icons and widgets.
Sent from my LG-LS970 using xda premium
Click to expand...
Click to collapse
Are you using stock lg launcher? They said it messes that all up unless your using a different one like nova or apex
Sent from my LG-LS970 using xda premium

Categories

Resources