1) Boot in to ClockworkMod Recovery
2) mount /system from partitions menu
3) adb pull /system/usr/keylayout/latte-keypad-v2.kl latte-keypad-v2.kl
4) Edit file locally, the genius key is: key 187 (make a backup of the original file first)
5) adb push latte-keypad-v2.kl /system/usr/keylayout/
6) Reboot
For more information on remapping keys see: http://forum.xda-developers.com/showthread.php?t=695936
If you want the genius button remaped to ENDCALL (if on a call it will end the call, if not on a call it will lock the screen, if you hold it down it activates the power button menu) and don't won't to edit the file yourself you can download this premodified version, just place it in the directory you are running adb from and skip steps 3&4): http://www.4shared.com/file/ein06_25/latte-keypad-v2.html
Notes:
There is a slight hardware delay on the button press, so whatever you assign it to you need to hold the button for half a second just like with the current genius app.
It does not seem to be any easy task to be able to call an alternate application, for now, you can only reassign the key to something another key already does (letter/number, end call, power, volume, camera, etc.). I'm currently working on being able to call an alternate application.
falken98 said:
1) Boot in to ClockworkMod Recovery
2) mount /system from partitions menu
3) adb pull /system/usr/keylayout/latte-keypad-v2.kl
4) Edit file locally, the genius key is: key 187
5) adb push /system/usr/keylayout/latte-keypad-v2.kl
6) Reboot
For more information on remapping keys see: http://forum.xda-developers.com/showthread.php?t=695936
Click to expand...
Click to collapse
Well, how about that. Great find, falken98!
Complete aside: Is your handle taken from the movie "WarGames"? If so, awesome.
So what are people planning to map to this particular hardware key?
and would we easily be able to make this a end call/sleep key? if so what needs to be changed
kingofyo1 said:
and would we easily be able to make this a end call/sleep key? if so what needs to be changed
Click to expand...
Click to collapse
Sure can, to make end call just change:
key 187 FUNC_4
to:
key 187 ENDCALL WAKE_DROPPED
HebrewToYou said:
Complete aside: Is your handle taken from the movie "WarGames"? If so, awesome.
Click to expand...
Click to collapse
haha. yes, it is. nice catch!
and what about the sleep functionality like on the old mytouch?
YESSS
i started a thread on this and was hard into figureing this out
thanks for the help
kingofyo1 said:
and what about the sleep functionality like on the old mytouch?
Click to expand...
Click to collapse
That i'm not sure about, i'll do some digging and see.
kingofyo1 said:
and would we easily be able to make this a end call/sleep key? if so what needs to be changed
Click to expand...
Click to collapse
glad you asked this, that is what i want my genius button to be and it bugs me that it's not since i hit it all the time when trying to hang up on people(came from G1 so that's where my button was) i will do this later
managed to switch fn and menu on hw keyboard, it was bugging me that i constantly hit menu when trying to hit fn(bad button planning by HTC) but now i have the keys where i want them may have to make a few changes later as well to other stuff(camera and focus should do something else)
its not working whenever i put in adb pull "" it just gives me all the adb options..
kingofyo1 said:
and would we easily be able to make this a end call/sleep key? if so what needs to be changed
Click to expand...
Click to collapse
This is actually working this way for me. If on a call, I can hold it for about half a second, it will end the call. Press it for half a second again, it will put it to sleep. If I press and hold the key, it will bring up the Power options menu. This is after I mapped key 187 to ENDCALL WAKE_DROPPED.
Edit: Also, I love "187" being the Genius key
squidbutt said:
its not working whenever i put in adb pull "" it just gives me all the adb options..
Click to expand...
Click to collapse
Sure you have it typed correctly?
D:\android-sdk-windows\key> adb pull /system/usr/keylayout/latte-keypad-v2.kl
358 KB/s (3675 bytes in 0.010s)
fermunky said:
This is actually working this way for me. If on a call, I can hold it for about half a second, it will end the call. Press it for half a second again, it will put it to sleep. If I press and hold the key, it will bring up the Power options menu. This is after I mapped key 187 to ENDCALL WAKE_DROPPED.
Click to expand...
Click to collapse
That does turn out rather well for that button! No more annoying "say a command".
to make it a search key I:
key 187 FUNC_4
to:
key 187 SEARCH
??
Great find man, I switched it to end call/dropped too and its working perfectly. If anyone figures out before I do to make it the sleep function please post.
FYI, after you remap the key it seems to be safe to go ahead and remove:
vsuite.apk, vsuite.odex, VSuiteApp.apk, VSuiteApp.odex
If you have no interest in the genius button function.
what does the WAKE_DROPPED mean
btw when I pull the file where does it pull to? my sdcard or do I have to put a directory? Someone should just upload the stock file
turboyo said:
what does the WAKE_DROPPED mean
Click to expand...
Click to collapse
WAKE: When this key is pressed while the device is asleep, the device will wake up and the key event gets sent to the app.
WAKE_DROPPED: When this key is pressed while the device is asleep, the device will wake up and the key event does not get sent to the app.
If we figure out how to put the device the sleep there would actually be a difference.
turboyo said:
btw when I pull the file where does it pull to? my sdcard or do I have to put a directory? Someone should just upload the stock file
Click to expand...
Click to collapse
It pulls it to the computer you ran adb from (in the directory you are in), you then edit the file with a text editor and push it back up.
Since you have to edit the file and push it back you might as well just go ahead and pull it first, seems more annoying to try and download it first.
Im getting the same thing with it just listing all the adb commands.. Ahh things like this were so much easier with SUFBS lol, all I would have to do is go to the directory and edit the file right in there
On the market for full root users, check it out.
Basically let's you remap any buttons to anything else and I am thinking this will be a nice fix to accidentally hitting the volume rocker when closing the keyboard.
Dedicated camera key? Hopefully the Shift gets some support.
Here you can follow what devices have support and possibly chime in to push for support of the Shift =)
http://forum.xda-developers.com/showthread.php?t=850464
Sent from space!
If you temp root with zRoot, install this, set the buttons, then restart so it is no longer rooted, will the revised button config stick?
I doubt it. Guessing though...
Sent from space!
Hi, I'm using Nexus 7 with stock JB system, with a usb keyboard, and when I use Vim both esc key and ctrl produce a ^@ character. I wasn't able to use mappings with ^@ char to get anything working (most importantly ctrl-[ for escape).
At the very basic level, I'd like to get Esc working, but ctrl would be really great, too.
I can see that android itself does understand ctrl key as a modifier, for example to jump over words in any editor by using ctrl+left/right.
How can I get this to work? It seems like such a tiny thing but it keeps me from being able to write code on N7, write and edit longer text documents.
Any help / hints appreciated!
I have been using some time Terminal emulator and Connect Bot apps. CTRL key works perfect with both applications when using onscreen Hacker's Keyboard, but every time I try to use an external keyboard, CTRL key never works. I tried remapping it by editing /system/usr/keylayout/qwerty.kl without success. I have verified the keyboard throws key 29 when I hit CTRL key, but adding a line like this:
key 29 CTRL_LEFT
causes a weird behaviour. CTRL key doesn't work, and other keys (like SPACE) also stop working.
What's the problem with CTRL key on Android? Why is it so difficult/impossible to get it to work in external keyboards?
Hi guys, not sure how many people this will help but hopefully it will help a few.
I have a Harmony Smart Control which I used as my universal remote, it connects to the NP fine but I had a problem that whenever I tried to search for something in a Google app using the remote the keyboard would disappear. Did a search and Logitech said this was a limitation of the NP as the harmony acts as a bluetooth keyboard. Like I said don't know how many people this will help, but I've managed to get around it.
You need to be rooted and have Xposed installed, a mouse is required for the initial setup too.
Once you have Xposed install an app from the repo called Xposed Additions.
In the app scroll down and select buttons, then add new key. Click Allow External Devices and choose them all.
Hit the OK button on the Harmony remote (or whatever the equivalent is on which ever remote you're using) and the app will pick it up, then you need to click ok with your mouse to save the key.
Then select the key you just saved, it should be called Enter, the click Add new condition and choose screen on.
Then click the condition, choose the click option and find DPad Center.
Now the button will act as the official remotes select button rather than and enter button and you can use it in the google keyboard.
You can also use it to remap other buttons as well to add menu functions etc.
The app also offers lost of customisations such as long presses of buttons amongst other things so it's definitely worth checking out even if you don't need to fix any buttons!
Hope this helps someone!