[Q] [ubuntu] How to map search key to alt? - Eee Pad Transformer Q&A, Help & Troubleshooting

I'm happily running Ubuntu on my TF-101 now. Thanks to lilstevie and everyone else who helped make that possible!
However I'd like to make the search key on the dock act as an alt key. I know how to remap modifier keys using xmadmap, but xev doesn't seem to report any X events when pressing the search key so I can't get its code . The home key next to it is reported as "keycode 180 (keysym 0x1008ff18, XF86HomePage)", but absolutely nothing for the search key.
When you press the search key a "search for files" window pops up, so the key press is being recognised somewhere in the system, but I guess whatever that is then suppresses the normal X KeyPress event.
Anyone have any ideas about how to fix this? I guess in the meantime I'll try using the home key instead.

Ah, just figured it out. First disable the system-wide usage of the search key:
Go to System -> Preferences -> Keyboard Shortcuts
Scroll down to the Desktop section and click on "Search"
Press backspace to disable any shortcut for that function
Then xev reports the keypress as "keycode 225 (keysym 0x1008ff1b, XF86Search)" so the following command will make it act as an Alt key:
xmodmap -e "add mod1 = XF86Search"​
Hope someone finds this as useful as I do - it's nice having the keys in the right place!

Related

[APP+DRV] [Keys remapper] Topaz Keyboard Controller GSM v1.4

This is for Topaz only! Do not try to install this on other devices!
Do not ask me to make a version for other device since my remappers are driver dependent and this can be very and very complicated without real device (if possible at all).
By requests of Topaz owners... here you are
What is it ?
It's a solution that allows you to remap ALL keys of your device.
Any key (yeah, i mean ANY, including Home and Back keys) can be reassigned to perform desired actions.
Features:
Different event types supported: single, double and triple clicks, long presses
Two modes of key mapping: three actions per key or direct key mapping
Key repeats in direct key mapping mode
Actions sequence repeats in actions mode
Key combinations using FN modifier
Default key behaviour action - you won't loose key's default behaviour if you just want to add double click or long press to it
Different key behaviour depending on foreground process/window class/window text
Multiple rules for each key to provide different behaviour for each application you want
Multiple actions for each event
Different predefined actions:
Run program
Key press emulation
Send symbol/text to active window
Close active window
Switch to window by class/text
Terminate data connection
Wi-Fi toggle
BT toggle
Screen rotation
Power management (screen power toggle, suspend, reset)
Exceptions lists which are used to deny key remapping depending on foreground process/window class/window text
Configurable long press and double click duration
Configuration import/export in configurator
Changelog is located here.
Configurator UI localization support information is located here.
Requirements:
- .NET CF 2.0 (for configurator app)
Installing:
- Install SdkCerts.cab
- Install TopazKbdControl_XXX.cab
- Soft reset
- Check if keyboard works by pressing hardware buttons and seeing if they do their work, if not - uninstall cab, this wouldn't work on your current ROM (PM me if you still want this to work on your device)
- If it works - go to the control panel and find "Keyboard Config" on a System page
How to define key processing:
- Run configurator (Control Panel -> System -> Keyboard Config)
- Press Menu -> Add key
- When dialog asking you to press key appears press and release desired key
- Set up needed options in key setup dialog and press OK (left softkey)
- In configurator's main window press left softkey "Update settings" to let new configuration take place (reboot is not needed, coz new settings will work immediately after saving)
Backup before installing of modified driver is strongly recommended.
Be careful when downloading the cab, make sure you choose the correct version suitable for your device.
Raphael's version thread here and Rhodium's one here.
CDMA owners can try to install GSM version, but i'm not responsible for any damage given to you device or information stored in it. Maybe there will be version for CDMA devices if GSM one wouldn't work.
Thank You one More Time!
tarkim, Thank you one more time for This Cool Program!
Alex from 4pda
tarkim said:
By requests of Topaz owners... here you are
Raphael's version thread and changelog here and Rhodium's one here.
Click to expand...
Click to collapse
Hi and congrats !
Do you think this app+drv could work on GSM Blackstone ???
Thx in advance
lezink said:
Hi and congrats !
Do you think this app+drv could work on GSM Blackstone ???
Thx in advance
Click to expand...
Click to collapse
nope
this version is only for Topaz since it contains its keypad driver which is hardware dependent
besides making a version for Blackstone is more complicated - it has four touch keys which are handled by other driver, not keypad one
don't think i can help with this without real device
There's an app (mobile magic) that allows to remap nearly all button (except home). Maybe this could be of any help.....
BTW, thanks for fast answer.
NICE NICE NICE
So welcome to the Topaz. A donation is on its way
Hey man
Get a PayPal please - a lot easier to donate
Core Player compatibility?
Hi, its very fine app I must say, thank you!
Unfortunately I can't get it to work with Core Player (I want to map VOL_UP/VOL_DOWN with forward/back). It seems that CorePlayer has some other way to recognize keypresses, in normal situation, there is standard HTC volume screen, and when I change CorePlayer's option "Capture all buttons (like games)" it is better (eg. no volume screen) but it sees no difference no matter if I change behaviour of key or not. It maps VOL_UP and VOL_DOWN as #E5. However, there is application which works good with Core Player, it is VolDpad (http://forum.xda-developers.com/showthread.php?t=552947) - it is different keyboard remap technique?
adek23 said:
Hi, its very fine app I must say, thank you!
Unfortunately I can't get it to work with Core Player (I want to map VOL_UP/VOL_DOWN with forward/back). It seems that CorePlayer has some other way to recognize keypresses, in normal situation, there is standard HTC volume screen, and when I change CorePlayer's option "Capture all buttons (like games)" it is better (eg. no volume screen) but it sees no difference no matter if I change behaviour of key or not. It maps VOL_UP and VOL_DOWN as #E5. However, there is application which works good with Core Player, it is VolDpad (http://forum.xda-developers.com/showthread.php?t=552947) - it is different keyboard remap technique?
Click to expand...
Click to collapse
can use explain how you configured vol up and vol down keys ? or post your config here please
in any case you should use direct key mapping mode with Left and Right key codes for VOL_DOWN and VOL_UP keys resrectively, and don't forget to turn on key repeat for each of them - in this way you will get desired forward and back in CorePlayer
Martinhdk said:
Hey man
Get a PayPal please - a lot easier to donate
Click to expand...
Click to collapse
no way to use paypal for donations - it doesn't allow to pay to my country
i hope your girlfriend use a touch HD someday and you make her a driver
the home button on touch hd is useless from now
vua777 said:
i hope your girlfriend use a touch HD someday and you make her a driver
the home button on touch hd is useless from now
Click to expand...
Click to collapse
First, how are you going to get somebody to help you with your problem, acting like that?
Second, if you installed this on a Touch HD, you are to blame yourself. This is for Topaz, not Blackstone. It clearly says for Topaz in post 1 and it says NOT for Blackstone in post 4.
Third, I'd be VERY surprised if this can not be solved. Tried uninstalling the app and soft-reset? In worst case a hard reset should sort this out.
I've installed this software and i've tryed to remap volum up/ down to page Up/down.
I've chose process and put the name of the aplication but it doesn't work, the volume up/down stop working and in the app the down / up doesnt work.
I have 2 actions 4 each key one * wich does nothing and a new one that i've created.
please help.
thanx.
franklopez said:
I've installed this software and i've tryed to remap volum up/ down to page Up/down.
I've chose process and put the name of the aplication but it doesn't work, the volume up/down stop working and in the app the down / up doesnt work.
I have 2 actions 4 each key one * wich does nothing and a new one that i've created.
Click to expand...
Click to collapse
more info please, more info...
post your config here
you have GSM or CDMA device ?
have you tried to use other settings ?
other keys continue working even after remapping ?
franklopez said:
I've installed this software and i've tryed to remap volum up/ down to page Up/down.
I've chose process and put the name of the aplication but it doesn't work, the volume up/down stop working and in the app the down / up doesnt work.
I have 2 actions 4 each key one * wich does nothing and a new one that i've created.
please help.
thanx.
Click to expand...
Click to collapse
Ok, I just tried it myself and it does work. Here is how I've done it.
1 - click menu - add key
2 - press volume up
3 - event = click - action = emulate key press
4 - key = 33 page up
5 - event = long press - action = default key action
6 - click OK
7 - click update config
This way the volume up key will work as page up (I tested this with opera only and reading a news page it worked great) when you click it ONCE and when you do a LONG PRESS it will turn up your volume.
You can repeat these steps for the volume down key and it will work too.
I've just tested this and it works. I haven't tested it within and explorer (let's say total commander) but in opera it works great for scrolling up or down a page.
Cheers!
This is a great application!
Thank you!
One request though:
First to set the context.
I've seen from other threads that (first step) you have to assign the default action to the button and then (second step) re-map the button to your desired function for the desired application.
If you don't do the first step, the respective button will behave as re-mapped for all applications.
Now the problem concerns the button's backlight.
By default, when a button is presses the backlight comes on.
Now, is it possible to disable the backlight function only when using the button in the re-mapped case? (i.e. only for the second step above and not for first step).
The main reason is to avoid draining the battery when using frequently the re-mapped buttons.
lobo81 said:
Ok, I just tried it myself and it does work. Here is how I've done it.
1 - click menu - add key
2 - press volume up
3 - event = click - action = emulate key press
4 - key = 33 page up
5 - event = long press - action = default key action
6 - click OK
7 - click update config
This way the volume up key will work as page up (I tested this with opera only and reading a news page it worked great) when you click it ONCE and when you do a LONG PRESS it will turn up your volume.
You can repeat these steps for the volume down key and it will work too.
I've just tested this and it works. I haven't tested it within and explorer (let's say total commander) but in opera it works great for scrolling up or down a page.
Cheers!
Click to expand...
Click to collapse
now it works, but 4 my application the keys are up /down.
Tanx a lot.
franklopez said:
now it works, but 4 my application the keys are up /down.
Tanx a lot.
Click to expand...
Click to collapse
You're welcome!
Bothkill said:
This is a great application!
Thank you!
One request though:
First to set the context.
I've seen from other threads that (first step) you have to assign the default action to the button and then (second step) re-map the button to your desired function for the desired application.
If you don't do the first step, the respective button will behave as re-mapped for all applications.
Now the problem concerns the button's backlight.
By default, when a button is presses the backlight comes on.
Now, is it possible to disable the backlight function only when using the button in the re-mapped case? (i.e. only for the second step above and not for first step).
The main reason is to avoid draining the battery when using frequently the re-mapped buttons.
Click to expand...
Click to collapse
It really depends on what you want to do with the keys. For example, I've reassigned the back key to single press = open total commander and long press = open pTravelAlarm. So I don't use it as default. In your case, yes you should assign the click = default action and long press = whatever you want.
Cheers.
Bothkill said:
This is a great application!
Thank you!
One request though:
First to set the context.
I've seen from other threads that (first step) you have to assign the default action to the button and then (second step) re-map the button to your desired function for the desired application.
If you don't do the first step, the respective button will behave as re-mapped for all applications.
Now the problem concerns the button's backlight.
By default, when a button is presses the backlight comes on.
Now, is it possible to disable the backlight function only when using the button in the re-mapped case? (i.e. only for the second step above and not for first step).
The main reason is to avoid draining the battery when using frequently the re-mapped buttons.
Click to expand...
Click to collapse
not clear for me what is the problem (or maybe not problem ? ) with default key action
you have to set it for any event if you don't want to loose default key behaviour, this is not strict requirement
about rules:
there is default rule (*) for all applications which is used when no other matching rule is found
key remains unremapped if you select 'do not remap' for this rule (or any other)
if you add rule for particular application and default rule has an option to not remap key, then remapping for that key would work only in this application
hope was clear enough
can't promise anything about backlight at this moment, this is not critical

Mapping SIP Key

Ok, I searched around for about an hour, and must not be using the right search term or something. Anyway,
I have an HTC HD2, and i'm trying to run gotomypc with it (and pandora). I can run both, but i have to map the hardware button to my input panel in order for it to come up in either application. Thats all well and fine, except i also like the default long press key option that brings up my voice command. (And for those that don't have an HD2, there is only 1 mappable hardware key). So i have to jump back and forth on button assignments to use applications.
So point is, i installed AE Button Plus, and it appears to be able to do the trick, yet i can't find what file to point the assigned long press button too. Where is "input panel"/aka SIP located at/what directory?
Or does someone have an easier suggestion for mapping a previously unassignable hardware key to the SIP?
Thanks in advance!

Re-mapping keys / Creating or re-assigning keyevent

OK, I've looked around but can't find an answer. Or at least an answer that I can understand. Basically what I'm trying to do is add the ability to quit/exit an app. I've read all about the differing opinions on quitting an app versus pressing back. However, just for my own self-teaching purposes, I want to learn how to do this. I'd like to be able to long-press or double tap a key to either immediately exit an app, or bring up an alternate pop-up menu that allows you to choose an action.
I am thinking specifically in relation to the Browser. The quit option was more necessary pre-CM6 because often times, it would take forever to load the home screen after pressing "home" in order to stop using the browser. A simple exit/quit option that some apps have, usually acts much quicker. Everyone knows that if you've been browsing through a bunch of webpages, hitting the back button repeatedly is a pain in the ass. The other option is to hit menu-->windows-->then close all the open windows-->then hitting the back button once the new window pops up because browser automatically opens a new page once all open windows have been closed.
Another annoyance is not being able to quickly get to your home page. Is there a way to remap/reassign/whatever, keys so that on long-press or double-tap of say, menu, or trackball, a menu pops up which has a "exit/quit" option and a "home page" option?
Another option is to add to the menu (when you hit menu), a "quit/exit" or "homepage" option.
Any help would be appreciated.
So much for a "supporting community". Way to help each other out.
What your trying to do should be located in the /system/usr folder. It has the key information you are trying to edit.
bubonik said:
So much for a "supporting community". Way to help each other out.
What your trying to do should be located in the /system/usr folder. It has the key information you are trying to edit.
Click to expand...
Click to collapse
Yeah, most people are probably trying to figure out a way to tell me I posted in the wrong section or that I need to use the search function. Thanks for your answer but I am familiar with the /system/usr files...I don't see anything in there relating to an action that quits/exits an app. Is there a specific action that is called when someone presses menu while using an app, and the menu brings up options including quit/exit?
Really? Nobody?
The keymap files are stored in /system/usr/keylayout, open them up and have a look at the things you can assign to keys.
Pull-edit-push the correct version for your handset hardware and reboot, changes will take effect. Obviously Magics are sapphire-keypad.kl and G1s are one of the trout files. Most G1s are trout-keypad-v3.kl though you can confirm your specific hardware version with getprop.
Have a search for "keymap" and "keylayout", you'll find there's already a bit of work been done of this, for example this auto key-changer.
I appreciate the help but I guess I'm not explaining myself properly. I have looked at the files in /system/usr/. I know how to remap a key so that, say...volume down = pause music, or change the menu key to have it end a call if I wanted...I know I'm not using the correct terminology all the time but when looking at the various .kl files, there are various "actions" that can be attributed to a particular key. For instance, keys 107 & 62 = Endcall, key 158 = Back, key 10 = the number 9.
In the column next to the numerical keycode in each of the .kl files, there is an "action" that results from pressing the particular key. The action I am looking for is a "quit" and/or "exit" action to apply to a particular key. Let's say I wanted to have key 231 in the sapphire keypad, kill the app I am using. Right now, pressing key 231 = CALL button. Is there a keyevent such as Kill_app or something to that affect that I could put in place of the CALL action so that key 231 = Kill app?

Android keyboard shortcuts.

Return to Contents Page - doubleshot Developers Reference
Having recently discovered these myself, and seeing that others aren't aware of them, we need a list here.
The majority of these shortcuts require a hardware keyboard to function - and make having one that much more valuable beyond the other obvious benefits.
These will make your life a whole lot easier - no longer will you have to do things the hard way through the touch interface.
Let's start:
Holding the hardware menu button and pressing other characters does stuff.
First of all, you can find out menu shortcuts on your own. Hit menu once to open it, then hold it and it will show them on the menu options.
General Android:
In a text field:
Menu + X: Cut
Menu + C: Copy
Menu + V: Paste
Menu + A: Select All
Also:
Alt + Trackpad Up: Top of page
Alt + Trackpad Down: Bottom of page
Alt + Trackpad Left: Beginning of line
Alt + Trackpad Right: End of line
(when the keyboard is slid out, the trackpad orientation changes to be proper for the way you are holding it, so left really is left and so forth)
Holding shift and using the trackpad to scroll around highlights from where the cursor is when you start.
Spacebar works as page down in a document (or browser)
Shift + Spacebar works as page up in the same fashion.
----
On your home screen:
Menu + W: Select Wallpaper
Menu + P: Personalize Menu
Menu + N: Show Quicklaunch
----
Long press of the Search button brings up a menu of apps you have installed that can use it. The genius button replaced the search button on this device, so you will have to remap the key to use this functionality.
See this thread for remapping the genius to search:
http://forum.xda-developers.com/showthread.php?t=1285244
If you do not have more then one app that uses this long-press search shortcut menu, it will default to the only one that can (google voice - or nothing if none are installed)
The ability to use this menu has to be programmed into the individual app itself - so it's a crapshoot if you can find any to do so. Soundhound is one, QR Droid Private 3 is another - and i'm sure you will find more.
----
Launch Apps
Search + A: (User Selectable)
All the way down to...
Search + Z: (User Selectable)
...are keys you can pick the apps that pressing the key combo launches.
Search + any letter from A to Z is user selectable in settings. Go to:
Settings -> Applications -> Quick Launch.
This will allow you to launch any app you set by using the hotkey combination assigned to it.
----
Individual apps may have their own shortcuts that override or change what the standard ones are depending on the app you are in.
They may change or ignore some of these shortcuts, so you may have to experiment on a per app basis.
----
Stock Apps:
----
Stock Browser App:
Menu + I: Zoom in
Menu + J: Back
Menu + K: Forward
Menu + A: Add bookmarks
Menu + B: Open bookmarks
Menu + T: Windows
Menu + Space: Home
Menu + F: Find on page
Menu + E: Select Text
Menu + G: Page info
Menu + S: Share Page
Menu + D: Downloads
Menu + H: History
Menu + R: Print
Menu + P: Settings
----
Stock Calendar App:
Menu + T: Today
Menu + S: Refresh
Menu + G: Go To
Menu + P: Settings
----
Google Gmail App:
Alt + Trackpad Up: Scroll To Top (In message)
Alt + Trackpad Down: Scroll To Bottom (In message)
Menu + S: Add Star (In message)
Menu + F: Forward (In message)
Menu + R: Reply (In message)
Menu + A: Reply-all (In message)
Menu + Y: Archive message (In message | Inbox)
Menu + U: Refresh (Inbox)
Menu + C: Compose (Inbox)
Enter | Press trackpad: Open Selected (Inbox)
Alt + Trackpad Up: Go To Top (Inbox)
Alt + Trackpad Down: Go To Bottom (Inbox)
----
Stock Quick Lookup App:
Google Search & YouTube:
Menu + J: Back
Menu + K: Forward
Wikipedia & Google Dictionary:
Menu + J: Back
Menu + K: Forward
Menu + L: Language
----
Google Maps:
Alt + Trackpad Up: Go To Top (In lists)
Alt + Trackpad Down: Go To Bottom (In lists)
----
Note: Menu + (whatever) shortcuts will NOT work with a soft keyboard, you must have the physical keys to press to make it happen. If a device does not have a hardware keyboard, you cannot use the menu shortcuts.
----
Dialer Codes
Dialer codes are a sequence of characters you enter in to the phone app on your device, just like you were dialing a number to call.
Dialer Codes:
Code:
*#06# - imei number
*#61# - Call forwarding status
##002# - Erase forwarding number
*43# - Activate call waiting
#43# - Deactivate call waiting
*#*#4636#*#* - Testing Menu
*#*#8255#*#* - Gtalk
( If anyone has found any others please share. Thanks! )
----
If anyone finds any post them below and i'll copy them up to the top.
Blue6IX said:
Having recently discovered these myself, and seeing that others aren't aware of them, we need a list here.
The majority of these shortcuts require a hardware keyboard to function - and make having one that much more valuable beyond the other obvious benefits.
These will make your life a whole lot easier - no longer will you have to do things the hard way through the touch interface.
Let's start:
Holding the hardware menu button and pressing other characters does stuff.
First of all, you can find out menu shortcuts on your own. Hit menu once to open it, then hold it and it will show them on the menu options.
In a text field:
Menu + X = cut
Menu + C = copy
Menu + V = paste
Menu + A = select all
Also:
Alt + trackpad up = top of page
Alt + trackpad down = bottom of page
Alt + trackpad left = beginning of line
Alt + trackpad right = end of line
(when the keyboard is slid out, the trackpad orientation changes to be proper for the way you are holding it, so left really is left and so forth)
Holding shift and using the trackpad to scroll around highlights from where the cursor is when you start.
Spacebar works as page down in a document (or browser)
Shift + Spacebar works as page up in the same fashion.
----
Long press of the Search button brings up a menu of apps you have installed that can use it. The genius button replaced the search button on this device, so you will have to remap the key to use this functionality.
See this thread for remapping the genius to search:
http://forum.xda-developers.com/showthread.php?t=1285244
If you do not have more then one app that uses this long-press search shortcut menu, it will default to the only one that can (google voice - or nothing if none are installed)
The ability to use this menu has to be programmed into the individual app itself - so it's a crapshoot if you can find any to do so. Soundhound is one, QR Droid Private 3 is another - and i'm sure you will find more.
----
Also, pressing Search + (key) will open apps and whatnot - these shortcuts are configurable in settings.
Settings -> applications -> quick launch.
Search + (key) shortcuts are quick launch shortcuts.
----
Individual apps may have their own shortcuts that override or change what the standard ones are depending on the app you are in.
Gmail, the browser, jota text editor, and etcetera will change or ignore some of these shortcuts, so you may have to experiment on a per app basis.
----
I don't have the time on hand to post the whole list of shortcuts, i'm logging in from a terminal where i'm working today, but wanted to get this started.
I'll definitely add more later - but I encourage others to post here with shortcuts they know or discover.
Let's really get the most out of our device, and not using the keyboard shortcuts is ignoring one of the greatest benefits of a hardware keyboard.
Note: Menu + (whatever) shortcuts will NOT work with a soft keyboard, you must have the physical keys to press to make it happen. If a device does not have a hardware keyboard, you cannot use the menu shortcuts.
Click to expand...
Click to collapse
So cool gonna play with this now
I rooted my mt4gs (unlock via htcdev which leaves S-ON, then CWM and SU) in order to kill off some bloatware and remap the genius button to search. I'm using the 1.63.531.2 710RD (stock) ROM.
Now that I have a search button, I'd really like to get access to the search+letter Quick Launch mappings like I had on my stock G2.
But Settings -> Applications has no submenu for Quick Launch (I guess they stripped it out because of the genius button). Quick Launch itself works, I believe, since search+g launches the Gmail app.
How can I enable the Quick Launch settings screen?
Or is there a flat file I can edit to enable all the search+[whatever] mappings that I like?
Beg pardon if this is addressed in another thread -- couldn't find.
Hi, T-Mobile G2 user here. These shortcuts are avaliable for all Android phones that run gingerbread and below. Unfortunately I've heard that they have been completely removed in Ice Cream Sandwich for some very odd reason. Additionally, in Gingerbread some of these shortcuts are broken.
In my case, I'm running 2.3 (CM 7.0.3) and I've noticed that the cut/copy/paste shortcuts have been completely made broken because of the new "text selection" system that they added in gingerbread.
Additionally, some of the shortcuts mentioned don't work for me. Shift Space for example doesn't scroll up in the browser for example.
I hope Google brings them back. This is one of the main reasons why I stick to Android phones that have a fully QWERTY keyboard.
Anyways here's a shortcut I recently discovered, at least on the G2.
In the browser, if you hold the menu button and tap on a link, the link gets open in a new tab (in the background for me). This is a really awesome feature in my opinion, though it only works in the keyboard menu button, and not the "portrait" menu button.
Thanks for the useful information!!
Change/Switch Language
Also....
Alt + Space ==> change the language of the keyboard (i.e. English <--> Hebrew).
(I tried Googling it with no success, so I guess this shortcut in less familiar, hence worth mentioning) :victory:

Home offscreen button during typing

Is anybody else having this issue? I am coming from Galaxy S4, where the home button is actual physical button, so there I didn't have any issues, but with OPO, when typing, many times when I try to hit spacebar, it hits the top of the Home button. Before it comes up, I do not want to use on screen buttons, I like the size of the screen and don't want it up with software buttons.
I was wondering if anyone has/could write a script to set the buttons to
(Menu)
Short press - Menu
Long Press - Recent Aps
(Home)
Short press - Nothing
Long Press - Home
(Back)
Short Press - back
Long Press - nothing
Or of there is an app that would give me a bit more control over the buttons... or something that can help with this. This is absolutely the only issue I have with the OPO otherwise I love the phone.
shiroimin said:
Is anybody else having this issue? I am coming from Galaxy S4, where the home button is actual physical button, so there I didn't have any issues, but with OPO, when typing, many times when I try to hit spacebar, it hits the top of the Home button. Before it comes up, I do not want to use on screen buttons, I like the size of the screen and don't want it up with software buttons.
I was wondering if anyone has/could write a script to set the buttons to
(Menu)
Short press - Menu
Long Press - Recent Aps
(Home)
Short press - Nothing
Long Press - Home
(Back)
Short Press - back
Long Press - nothing
Or of there is an app that would give me a bit more control over the buttons... or something that can help with this. This is absolutely the only issue I have with the OPO otherwise I love the phone.
Click to expand...
Click to collapse
Because i currently am running CM12 i can't give exact insturctions but it should be somewhere in settings -> buttons -> ? over there you should be able to give the buttons other values. It is something like menu button: recent apps switcher and if you press that you can change it to a few other things. If this doesn't fill your needs, ask a bit more around I know it is there, because i saw it once.
Watermelons said:
Because i currently am running CM12 i can't give exact insturctions but it should be somewhere in settings -> buttons -> ? over there you should be able to give the buttons other values. It is something like menu button: recent apps switcher and if you press that you can change it to a few other things. If this doesn't fill your needs, ask a bit more around I know it is there, because i saw it once.
Click to expand...
Click to collapse
Yes it is there, but the option for "Home Short Press" is not there, that is hard coded. At least on the ROM I run (LiquidSmooth)
What I need to know is this:
Which key mapping is for Short Press Home, Long Press Home and Long Press Menu. I am within /system/usr/keylayout/Generic.kl to adjust the mapping manually, but can't seem to find the correct mapping for those 3.
*EDIT*
Ok, so found the key for Home and that is 172, but that disables both the short and long press...
shiroimin said:
What I need to know is this:
Which key mapping is for Short Press Home, Long Press Home and Long Press Menu. I am within /system/usr/keylayout/Generic.kl to adjust the mapping manually, but can't seem to find the correct mapping for those 3.
*EDIT*
Ok, so found the key for Home and that is 172, but that disables both the short and long press...
Click to expand...
Click to collapse
I'm sorry but with this i can't help.
Have you also tried the official OnePlus Forums?
Watermelons said:
I'm sorry but with this i can't help.
Have you also tried the official OnePlus Forums?
Click to expand...
Click to collapse
Yeah, sadly, someone suggested to come here
If you have root try it with the Xposed Module "Xposed Additions".
holzfeli said:
If you have root try it with the Xposed Module "Xposed Additions".
Click to expand...
Click to collapse
Unfortunately can't install Xposed as it tells me that my device does not support it. Is there one specifically built for us?
I get this error :
Xposed is not (yet) compatible with Android SDK Version 21 or your processor architecture (armeabi-7va).
CANNOT LINK EXECUTABLE: could not load library "libdvm.so" needed by "/data/data/de.robv.android.xposed.installer/cache/app_process"; caused by library "libdvm.so" not found.
shiroimin said:
Unfortunately can't install Xposed as it tells me that my device does not support it. Is there one specifically built for us?
Click to expand...
Click to collapse
I can't post the link because I haven't 10 messages :crying:
You have got a private message!
holzfeli said:
I can't post the link because I haven't 10 messages :crying:
You have got a private message!
Click to expand...
Click to collapse
Thank you for the link, unfortunately still doesn't work. Same error. I think it is because the ROM I am using is LP and LP uses ART instead of Dalvik and XPosed doesn't work with that. Thank you though for the effort
shiroimin said:
Thank you for the link, unfortunately still doesn't work. Same error. I think it is because the ROM I am using is LP and LP uses ART instead of Dalvik and XPosed doesn't work with that. Thank you though for the effort
Click to expand...
Click to collapse
Yes, ART is the problem.
So I came up with a solution for this issue.
The file in question to be working with is /system/usr/keylayout/Generic.kl
Navigate to this file using a File Browser (Root Explorer is the one I use) that has access to Root and make sure you have R/W rights.
Edit the file above in a text editor > find line : "key 139 MENU" and change it to "key 139 HOME" > and then find line : "key 172 HOME" and change it to "key 172 MENU" > Reboot device for it to take effect after you save
Then, within Settings > Buttons, you can adjust (at least on the ROM I am on), the long and short press of the Menu button.
What comes out is: left button is HOME button, with short/long press actions, middle button is MENU with just long action (set short action to NONE), and right button is BACK button untouched.
This way if I am typing, and want to hit space bar, accidentally hitting the middle button will not bring me to the main screen. It will take a while to get used to it, but it does resolve my issue.

Categories

Resources