Mr_Loon
Can't Remember
- Joined
- Aug 30, 2010
- Messages
- 2,332
Problem solved, how to here
Thought that this might be worth a post here as it seems to have been lost in the megathread.
Android devices have 4 main buttons, these are Home, Menu, Back & Search.
Currently they are mapped as follows :
Home : Pandora Button or F1
Back : Esc, Right nub to the right.
Menu : F2, Right nub down.
Search : Unknown
Volume Up / Down : F12 / F11
What I'd like to do is remap Back to left shoulder button, Menu to Start (Alt), Search to Select (Ctrl)
When asking about this in the other thread Notaz kindly replied with : 'You can edit /system/usr/keylayout/gpio-keys.kl, but that may break games that support hard keys'
To find out what values to use when editing the file I used keytest.apk
This gave me :
Left shoulder : Scancode=54
Start : Scancode=56
Select : Scancode=29
However being a bit of a noob I seem to have fallen at the first hurdle, I edited gpio-keys.kl using the text editor supplied with ES file explorer and upon trying to save it tells me : 'Error occurred when trying to save the file. It will not be saved'
I suspect that this is because you require root privileges to save changes to such a file.
So here are my questions :
1) How do you save an edit of /system/usr/keylayout/gpio-keys.kl?
2) In /system/usr/keylayout/ there are the following additional files : AVRCP.kl, keypad.kl & qwerty.kl Do they also need to be edited to ensure user customisation works, for instance in qwerty.kl key 54 (left shoulder) is mapped to SHIFT_RIGHT (which is of course correct for normal Pandora use) could I just change SHIFT_RIGHT to BACK WAKE_DROPPED in qwerty.kl to remap the left shoulder to the back button?
____________________________
In the other thread Milkshake replied with :
However my noobness strikes again :
Could anyone clearly explain what has to be done in Android & what has to be done in XFCE? From my limited understanding Android has no 'knowledge' of the appdata folder or its contents.
Where should I copy the .kl file to in the app data folder?
How do I map the place it will be?
Thought that this might be worth a post here as it seems to have been lost in the megathread.
Android devices have 4 main buttons, these are Home, Menu, Back & Search.
Currently they are mapped as follows :
Home : Pandora Button or F1
Back : Esc, Right nub to the right.
Menu : F2, Right nub down.
Search : Unknown
Volume Up / Down : F12 / F11
What I'd like to do is remap Back to left shoulder button, Menu to Start (Alt), Search to Select (Ctrl)
When asking about this in the other thread Notaz kindly replied with : 'You can edit /system/usr/keylayout/gpio-keys.kl, but that may break games that support hard keys'
To find out what values to use when editing the file I used keytest.apk
This gave me :
Left shoulder : Scancode=54
Start : Scancode=56
Select : Scancode=29
However being a bit of a noob I seem to have fallen at the first hurdle, I edited gpio-keys.kl using the text editor supplied with ES file explorer and upon trying to save it tells me : 'Error occurred when trying to save the file. It will not be saved'
I suspect that this is because you require root privileges to save changes to such a file.
So here are my questions :
1) How do you save an edit of /system/usr/keylayout/gpio-keys.kl?
2) In /system/usr/keylayout/ there are the following additional files : AVRCP.kl, keypad.kl & qwerty.kl Do they also need to be edited to ensure user customisation works, for instance in qwerty.kl key 54 (left shoulder) is mapped to SHIFT_RIGHT (which is of course correct for normal Pandora use) could I just change SHIFT_RIGHT to BACK WAKE_DROPPED in qwerty.kl to remap the left shoulder to the back button?
____________________________
In the other thread Milkshake replied with :
It could be because your trying to edit a file that is mounted over the appdata folder and they are non writeable, try to copy the file from the root of the android system to your app data folder but mapping the place it will be i.e. appdata//system/usr/keylayout/gpio-keys.kl then edit and save this that might work.
However my noobness strikes again :
Could anyone clearly explain what has to be done in Android & what has to be done in XFCE? From my limited understanding Android has no 'knowledge' of the appdata folder or its contents.
Where should I copy the .kl file to in the app data folder?
How do I map the place it will be?
Last edited by a moderator: