Remap buttons on remote? - Nexus Player Q&A, Help & Troubleshooting

Hi, guys
Is there any way that I can remap buttons on the remote? For example, long press play/pause for menu(some legacy apps still require menu key to function), long press up/down for volume up/down.

2ig2ag said:
Hi, guys
Is there any way that I can remap buttons on the remote? For example, long press play/pause for menu(some legacy apps still require menu key to function), long press up/down for volume up/down.
Click to expand...
Click to collapse
I dont have it yet so i have no way of testing it out, but i recently remapped the physical keys on my nexus 6 by editing /system/usr/keylayout/generic.kl
I know this file is used to map physical and virtual keys in almost all android devices. not sure if it works for the remote or not but id start there. you need to be rooted to to access the file though. Let me know of it works or if you need anymore help feel free to pm me.

I am also hoping there is an answer to this, as I would like to access the context menu by long pressing a button like the way it was done in the apple TV 2. Unless I'm missing something, I can only access this menu by going into Yatse app on my phone.
PS. I'm referring to when I am in Kodi for the context menu

globber said:
I am also hoping there is an answer to this, as I would like to access the context menu by long pressing a button like the way it was done in the apple TV 2. Unless I'm missing something, I can only access this menu by going into Yatse app on my phone.
PS. I'm referring to when I am in Kodi for the context menu
Click to expand...
Click to collapse
You can edit the keymap.XML file in kodi to open the context menu when you press the play/pause button when a video is not playing. If a video is playing it will act as the normal play/pause button.
Sent from my LG-D851 using Tapatalk

My solution was to use the Amazon Fire TV stick remote. That remote is solid. The only thing that the stick remote can't do is voice search.

jaygz said:
You can edit the keymap.XML file in kodi to open the context menu when you press the play/pause button when a video is not playing. If a video is playing it will act as the normal play/pause button.
Sent from my LG-D851 using Tapatalk
Click to expand...
Click to collapse
Can you show me how to do that? Because When I use the keymap tool in kodi, the only keys that get registered are the arrow keys. when i press the playpause key it doesnt give me a button id. Thank you !

aftv stick remote keymap HELP
Hello everyone, I need some help for keymapping my aftv stick remote to be use on my nexus player. For default it works nice but I read some post that the center button may be act different and some apps dont works and thats my case. It works on kodi but in Playon app I can move through the menu but I can't enter to the menu when I press the center button. Any help or advive? Thanks!

The post at http://forum.xda-developers.com/showpost.php?p=59821276&postcount=111 explains how to remap the remote's play/pause button to bring up the context menu in Kodi. I've tried it and can confirm that it works.

Copy this to /system/usr/keylayout and Correct permissions
Remaps Search button to Menu
https://drive.google.com/file/d/0B378QJZzCsnqM0FyLTZaaVpZdVk/view?usp=sharing

boldfilter said:
Copy this to /system/usr/keylayout and Correct permissions
Remaps Search button to Menu
https://drive.google.com/file/d/0B378QJZzCsnqM0FyLTZaaVpZdVk/view?usp=sharing
Click to expand...
Click to collapse
interesting ...
key 103 DPAD_UP
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 108 DPAD_DOWN
key 158 BACK
key 164 MEDIA_PLAY_PAUSE
key 172 HOME
key 217 SEARCH
key 353 DPAD_CENTER
So remapping row "key 217 SEARCH" to "key 217 MENU" will let voice search button act as menu button?
is there a way to add long click behavior? for example to keep voice search as default function and long click for menu??
thanks!

furius said:
interesting ...
key 103 DPAD_UP
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 108 DPAD_DOWN
key 158 BACK
key 164 MEDIA_PLAY_PAUSE
key 172 HOME
key 217 SEARCH
key 353 DPAD_CENTER
So remapping row "key 217 SEARCH" to "key 217 MENU" will let voice search button act as menu button?
is there a way to add long click behavior? for example to keep voice search as default function and long click for menu??
thanks!
Click to expand...
Click to collapse
Long click behavior is more complicated, so no.
Check here
http://forum.xda-developers.com/showthread.php?t=695936

I have a similar problem. I have this remote but the back key up on the top is mapped as a mouse press. I previously used this remote on a minix box with no issues running 4.2.2, however the nexus registers it as left click i believe. is there any way to change this? Thanks!

Search trigger button
Guys,
when i use a keyboard and i search i cant hit enter to trigger the search i always need press search on the onscreen keyboard. Is there any way to trigger search by key "Enter" or so? I deactivated the onscreen keyboard because i dont need it with a physical keyboard, but now i cant search... Anybody got a solution?

Related

Reassign (Hard)keys Home and Back

Hey guys,
is there a way to reassign the hardkeys home and back?
I also have an item "Buttons" in the settings but there is only one key defined: "Key 1 (Hold), Voicedial settings".
However, I can't find this button, where is it?
It's the first button i.e phone pickup, hold it and it will give you the voice dial
Key 1 is the dial key (far left).
You can reassign the back key with AE Button Plus. I'm not sure that you can remap home.
use AE Button Plus to reassign the keys, words great on my touch hd. I read somewhere that Home button is not supported due to different driver implemented by HTC
Thanks for your replies.
I'm aware of AE Button Plus but the interesting thing is the reassignment of the home key.
I wanna keep the back key as it is and assign an ok/close task to the home key because the end call button actually does the same thing as the home button namely go back to the today screen when you have a running application in foreground.
In AEB+ I have the following:
Button 1 (hold)
Windows Key
Enter/Action
Volume Up
Volume Down
Green Phone Button
Red Phone Button
Left Softkey
Right Softkey
Up Arrow
Down Arrow
Left Arrow
Right Arrow
I can access the volume up and down keys but which key is the back key?
I assume the green and red phone button is pickup and hangup key respectively?
Is there a way to access the power key at the top?
ez2remember said:
...but which key is the back key?
Click to expand...
Click to collapse
The back key is "Enter/Action".
It seems that the home key as well as the power key cannot be reassigned.
Back and home key can be reassigned on a window by window basis in the registry. Not particularly useful, but better than nothing.
V
What exactly needs to be done in the registry to reassign the home key?
Even if I have to enter a new registry key for any program window I might use it is worth the effort (at least for me).
gacowarlock said:
The back key is "Enter/Action".
It seems that the home key as well as the power key cannot be reassigned.
Click to expand...
Click to collapse
I just want to update:
the back key is not the "Enter/Action" key. i have tried to edit this button and it didn't remap to the Back key.
If you go to File -> Add Button, and tap the Back key, it will recognize the key as button #405C. I have remapped it to "Close Active Application" and it worked.
i don't think u can reassign the Home key as AE Button Plus cannot access the Home key.
I was also unable to change the Home key in AEBplus.
Concerning the back key assignment with AEBplus, I was trying to assign something to the long press but unable to get it working. No problem for single press and double press.
Anyone has better luck?
vijay555 said:
Back and home key can be reassigned on a window by window basis in the registry. Not particularly useful, but better than nothing.
V
Click to expand...
Click to collapse
So how do we go about doing that vijay555?
Power Key
Here's the modified power key from Diamond but it can be used on HD.
When Power key on long-pressed, it will display the menu for choice. Tested.
Regards,
KCJ
just tested on Aeplus 2.6.6.1, the Back key = the Ok key, it can be remapped.
I have it set to:
Single press="Ok/Close"
Double press = S2U2
Long press=close active app
EDIT: Long press doesn't work... might try another method.
don't know if this works, but it is worth a try:
if you copy a shortcut to \Windows and name it "Short_Power.lnk" you can intercept the short power key press. at least that worked for me on my diamond.
you could try s.th. like "Short_Home.lnk" but that would intercept the "other home key" (which manages the cursor's position like end, up down, left, right, etc).
the magic would be to find the correct name of the key.
longpress back key (405C)
I know this is an old thread, but I haven't found yet a solution.
I'd like to be able to add longpress back key (405C) to the key menu on the windows config.
I've found the registry key that HTC uses to provide longpress send key, but I copied with no luck.
Anyone knows how to do it? vijay555 has said it's possible but never indicated how...

any ideas for configuring home key and backspace key ?

any ideas for configuring home key and backspace key ?
i've tried with AE Button, but it doesn't work claerly.
or maybe there are somewhere regkeys ?
i don't think, that this is hardcoded somewhere .... or ?
some ideas ?
cu camel
As I know, the 'Home' key is not configurable in HD, not sure about the 'Back' key.
camro said:
any ideas for configuring home key and backspace key ?
i've tried with AE Button, but it doesn't work claerly.
or maybe there are somewhere regkeys ?
i don't think, that this is hardcoded somewhere .... or ?
some ideas ?
cu camel
Click to expand...
Click to collapse
The "back" key is mapped as "OK button" in AEButtons, and can be configured. The home one seems to be almost impossible to do as said by AEB devver
bbonzz said:
The "back" key is mapped as "OK button" in AEButtons, and can be configured. The home one seems to be almost impossible to do as said by AEB devver
Click to expand...
Click to collapse
the back key is not fully able to configure.
if you try to set : "left button" and then try the button always go to home screen and then "left button".
if you try it ex: under "programms" go to lnext left icon -> then it jumps back to "home" screen + left
cu camel
well - i'm trying to find out how to map the keys on HTC Blackstone....
here is also a interesting link: http://forum.xda-developers.com/showthread.php?p=3144390#post3144390
for now i know:
TOP:
Power Button can fully handled (short click + long click) via lnk file.
LEFT: (there are 2 buttons)
Can fully remapped via AEB Plus (1-,2-,3-short click, + long click).
BOTTON:
there are 4 buttons:
"Green Key",
-> mapping possible via AEB Plus,
but for long key you have to use: AEBPlus + Button: "Button1(Hold)" - don't ask me why, bnut it works on this way..)
"Home Key"
-> nothing possible !!!
"Back Key"
-> not really mapable (mapping possible, but always send to wanted mapping ~backspace and jump back to Homescreen and then the mapped button will execute - little bit strange ..)
Longpress also doesn't work
"Red Key",
-> mapping possible, but without Long Press
tried with aebutton also (last version)
some additional ideas ?
cu camel

[SOLVED][REMAP DIAL BUTTON TO SEARCH BUTTON] Lack of search button

Hi.
I really miss the search button from the Desire device. I have tried to remap the send (dial) button to search by altering the bravo-keypad.kl file in /system/usr/keylayout. But the change didn't work. My altered keypad file is posted below, maybe someone can tell me why it's not working?
SOLUTION: Edit the right file. In my build the default qwerty.kl file was used not the bravo-keypad.kl. Adding SEARCH to key 231 and 61 turns the send key into a search key Even voice search by long press works
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
key 116 POWER WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 231 SEARCH
key 61 SEARCH
Sent from my HD2 running Android
just revert what you changed back to how it was.
then hold down the start button (Windows Logo) and the keyboard will pop up, once you start typing it will go into the search app.
mr_billionaire said:
just revert what you changed back to how it was.
then hold down the start button (Windows Logo) and the keyboard will pop up, once you start typing it will go into the search app.
Click to expand...
Click to collapse
Thanks for that tip, but unfortunately it does not work inside all applications.
Thought u ment the Hardware search buttom, missing that a lot, couse a lot of apps maps it (search buttom) to combine some function. If we take ån sms progie fex. The search buttom is maped to compose sms's, hope someone fine a way to map a Hardware key to the search buttom
Yeah I need to map Multi Task manager to a hard key, can you help with that?
-------------------------------------
Sent via the XDA Tapatalk App
Cobra2 said:
Thought u ment the Hardware search buttom, missing that a lot, couse a lot of apps maps it (search buttom) to combine some function. If we take ån sms progie fex. The search buttom is maped to compose sms's, hope someone fine a way to map a Hardware key to the search buttom
Click to expand...
Click to collapse
This is exactly what I have done, remapped the physical send button (left most button on the HD2) to behave like a search button. HTC Desire does not have a send button either, and I don't miss it. I find it more usefully to have a search button then a send (call) button.
Sent from my HTC Desire using XDA App
Where are you entering this data to change these settings?
-------------------------------------
Sent via the XDA Tapatalk App
Try remapping a button to DPAD_CENTER and see if it works for the trackball in camcorder.
paalkr said:
This is exactly what I have done, remapped the physical send button (left most button on the HD2) to behave like a search button. HTC Desire does not have a send button either, and I don't miss it. I find it more usefully to have a search button then a send (call) button.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Hi paalkr
Where is the file qwerty placed ? That would be great if it worked for me, I really miss the hardware search buttom.
Thanx
Cobra2 said:
Hi paalkr
Where is the file qwerty placed ? That would be great if it worked for me, I really miss the hardware search buttom.
Thanx
Click to expand...
Click to collapse
All files related to key mappings are located in /system/usr/keylayout . The qwerty.kl is the one that android is defaulting to if not specified otherwise. There may be some other kl files in the folder, but the vendor specific file is just "left overs" from the ROM rip (in some cases).
paalkr said:
All files related to key mappings are located in /system/usr/keylayout . The qwerty.kl is the one that android is defaulting to if not specified otherwise. There may be some other kl files in the folder, but the vendor specific file is just "left overs" from the ROM rip (in some cases).
Click to expand...
Click to collapse
Thanx big time mate for pointing me the right place, that is just what i needed for the handcent sms.
Sent from my HTC HD2 using XDA App
Mapping End Key
Has anyone mapped the end call button to work. On my Darkstone build I have to hit the end call on screen, hitting the red hard key just shuts the screen off (very annoying). I then have to wake up the phone and end the call.
I pulled both bravo_keypad and qwerty files but both seem to be set to the right end key.
Any ideas or help?
Jwatt0918 said:
Has anyone mapped the end call button to work. On my Darkstone build I have to hit the end call on screen, hitting the red hard key just shuts the screen off (very annoying). I then have to wake up the phone and end the call.
I pulled both bravo_keypad and qwerty files but both seem to be set to the right end key.
Any ideas or help?
Click to expand...
Click to collapse
theres an options in the settings menu to do this, i just cant find it. I used to have it set correctly, but changing roms every few days, you start to get confused. I would appreciate it if someone could point us in the right direction.
Thank you.
Thanks for this useful tip that works perfectly !
A way to only map quick press to Search and keep long press on DIAL Button associate to Phone ?
here is my qwerty.kl file. what did i do wrong?
songokussm said:
here is my qwerty.kl file. what did i do wrong?
Click to expand...
Click to collapse
Didn't succeed either, I mounted system as read write and modified qwerty.kl, rebooted but nothing changed. I would like a lot too having the search button on the call key :-(
I am on Shubcraft build
DocteurN said:
Thanks for this useful tip that works perfectly !
A way to only map quick press to Search and keep long press on DIAL Button associate to Phone ?
Click to expand...
Click to collapse
I would like that too, but I haven't sorted that out.
songokussm said:
here is my qwerty.kl file. what did i do wrong?
Click to expand...
Click to collapse
Could be that your build uses an other file then the qwerty.kl. Have you tried to edit the vendor specific file instead?
on my device using shubcraft v1.4 it was the htcleo-keypad.kl
Sent from my HD2
phrozendevil said:
on my device using shubcraft v1.4 it was the htcleo-keypad.kl
Sent from my HD2
Click to expand...
Click to collapse
phrozendevil is 100% correct it is the htcleo-keypad.kl file.
Now i just need help with chaning the volume buttons to the camera buttons.
I changed:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
To:
key 115 CAMERA WAKE
key 114 CAMERA WAKE
Upon press it starts the camera app, but will not take a photo. However when i switch to the camcorder function, that works just fine.
Ideas?
ps: i just use a widget to control my volume, which is very rare for me.

[Q] Remap Hardware Buttons

Is there any way to remap the hardware buttons on the DHD? I use nolock and it works great but my volume buttons wake up my phone and sometimes when I have it in the case on my belt, the volume button gets pressed and some strange things can happen when it's not locked. I would like to remap the volume buttons so that they don't wake the phone up.
That would be no problem at all. That is, if you have full root (S-Off) so that you can write to your system partition.
If so, just edit the file: /system/usr/keylayout/spade-keypad-v0.kl
The original file has the following keymap definitions:
Code:
key 102 HOME WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 158 BACK WAKE_DROPPED
key 217 SEARCH WAKE_DROPPED
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
I've swapped the Home and the Search button because I've rather small hands
(I will write a app to redefine these buttons in the future)
I think your problem will be solved by deleting WAKE behind the volume buttons
Thanks, I'll give it a shot.
This is one thing I hate about the different manufactures; different button order.
Sent from my Desire HD
I wrote a tool to edit the keylayout map file simple and easy. Posted it here:
http://forum.xda-developers.com/showthread.php?t=850464
(it says experimental, because it is intented as an app for all Android devices. However, it is tested on the DHD and it works without any problems)
With the app you can turn off the waking up of the device, but you can also assign functions to your keys like call/endcall, media next .. you can swap the home and search button or remap the volume keys to page down/up for ereading (with a hot reboot which will be implemented later, effectuating key redefinitions can be done fast, so that it is also possible to do a temporarily remapping)

[Q] Key to go directly to home screen

Hey guys
the android versions for blackstone are very well, u did a good job.
But why you don't use the "Hang up" button to go directly back to the home screen?
The prob is when i use the browser the only way to go back to the home screen is pressing the backward-button. that means it browses all the visited pages back before minimize the browser and show the home screen.
so why u don't used the turn off button to turn off the display and you the hang up button to minimize the running app and go directly to the home screen?
greetz.
I got similar question.
Why Android can't have same buttons behavior like WM?
Is something wrong with this?
Geek12 said:
Hey guys
the android versions for blackstone are very well, u did a good job.
But why you don't use the "Hang up" button to go directly back to the home screen?
The prob is when i use the browser the only way to go back to the home screen is pressing the backward-button. that means it browses all the visited pages back before minimize the browser and show the home screen.
so why u don't used the turn off button to turn off the display and you the hang up button to minimize the running app and go directly to the home screen?
greetz.
Click to expand...
Click to collapse
It's because most devs have a different device.
But dude, check my signature...
next time a little searching might help you on your way a lot faster
could someone edit rootfs.img file like this:
remove "sleep" from End call button
and assign:
to Volume + button on hold => Home screen
to Volume - button on hold => Recent apps
is it possible? as I never hold volume key to increase/decrease volume, i always press it step by step..
do you think it would be ok like this ?
crnogorac081 said:
could someone edit rootfs.img file like this:
remove "sleep" from End call button
and assign:
to Volume + button on hold => Home screen
to Volume - button on hold => Recent apps
is it possible? as I never hold volume key to increase/decrease volume, i always press it step by step..
do you think it would be ok like this ?
Click to expand...
Click to collapse
Altering button behavior is impossible. We can swap them around but HOME will always show Recent Apps when long pressed no matter to which button it is assigned (except for power). Sorry
oh.. I thought it is possible as I found this code for desire(http://forum.xda-developers.com/showthread.php?t=683902) :
Code:
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
key 116 POWER WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
and thought if it was possible to locate this code for blackstone and alter it..
crnogorac081 said:
oh.. I thought it is possible as I found this code for desire(http://forum.xda-developers.com/showthread.php?t=683902) :
[CUT]
and thought if it was possible to locate this code for blackstone and alter it..
Click to expand...
Click to collapse
That's what we're doing here - modifying that table. I think I didn't make myself clear enough: we can swap keys but we can't change what long press does. Check this link: http://forum.xda-developers.com/showpost.php?p=12066475&postcount=24
This is the rootfs I've made. Button assignment looks like this:
Code:
[FONT="Lucida Console"]
Button / Android function / Android long press
------------------------------------------------------
Power / Sleep / Power Menu
Volume Up / Volume Up +1 / Volume Up Continuous
Volume Down / Volume Down +1 / Volume Down Continuous
Call / Dial - Answer / Voice Dial
Home / Menu / Menu
Back / Back / Back
End Call / Home / Recent Apps
[/FONT]
You were clear I just thought it was possible

Categories

Resources