Usually, many of us aren't using the search capacitive key on our phone. So we'll change it's function in order to make it useful and to prevent early damage on our Power button.
Now, We will remap search button as the power button. But take note. It turn off screen, toggle power menu. But, cannot turn screen/phone on.
Here's the guide. This is very easy! Even Gradeschool students can do this.
I suggest to use RootExplorer app. It has built in Text editor.
- Go to /system/usr/keylayouts/Generic.kl (Some devices may be different)
- Open "Generic.kl" using text editor (Press & Hold choose Open with text editor)
- Find
Code:
key 217 SEARCH
and change it to:
Code:
key 217 POWER WAKE
-Save it
-Reboot and you're done
:good: :good:
Related
hello, could anyone link me to an app that lets you modify the use of your hardware buttons? like long press to launch camera etc
use to use one on my touch hd,but cant remember what it was called
many thanks
samuelson said:
hello, could anyone link me to an app that lets you modify the use of your hardware buttons? like long press to launch camera etc
use to use one on my touch hd,but cant remember what it was called
many thanks
Click to expand...
Click to collapse
Try AE Button Plus It works perfect on TG01.
AE Buttons Plus
Pere said:
Try AE Button Plus It works perfect on TG01.
Click to expand...
Click to collapse
Hi,
Can you clarify 'works perfect' on the TG01 - I am using the (registered) Buttons Plus, but have only been able to get it to support a single alternative button press on the Camera, bottom 'Zoom' bar and right-hand 'OK' button.
Could you please share your settings which allow you to get it to work with multi-settings per button, and also specify buttons are you able to get it to work with ?
Would be really appreciated
Many thanks,
kevinpwhite said:
Hi,
Can you clarify 'works perfect' on the TG01 - I am using the (registered) Buttons Plus, but have only been able to get it to support a single alternative button press on the Camera, bottom 'Zoom' bar and right-hand 'OK' button.
Could you please share your settings which allow you to get it to work with multi-settings per button, and also specify buttons are you able to get it to work with ?
Would be really appreciated
Many thanks,
Click to expand...
Click to collapse
As known, TG01 don't have hardware buttons....so when I say "perfect" I mean as perfect as possible....
I don´t use camera button (I'm afraid camera could fail)
I'm using only volume buttons and the zoom bar.
Volume UP:
1. Single press: PageDn
2. Double press: PageUp
3. Triple press: Switch Display Off/On
Volume DOWN:
1. Single press: "Resco Audio Recorder -rec"
2. Double press: "Resco Audio Recorder -exit"
3. Triple press: Switch Display Off/On
Zoom bar: (Button #405C)
Alt+Tab (Change between opened apps)
How to map zoom bar:
a) Open AEBPlus (I have v2.6)
b) Tap Left softkey: File
c) Add button
d) Add Key (Touch the zoom bar: The program detects Key code 405C as Win Key)
e)Tap Add Key
You'll have a new button called Button #405C
Tap & Hold over the new line (Button #405C) and assign Alt+Tab to it
The program ask to self reset, say Yes and .... here you are!
some doubts
You seem knoweleagble: I would like to receive your suggestions
I onw two units of HD2, I am trying to understand how to use AE buttons, then I will surely buy it, but I have many doubts…
Questions:
1. Where can I find a complete tutorial?
2. Where can I find a help, to understand each functions? I mean, not FAQ, just a help file.
3. from AEBPlus Settings > add button > ONLY 2 hardware buttons can be captured (the one with white backspace arrow on it and the home with a home depicted on it)
the other 5 buttons cannot be sensed: I mean
- phone button: if pressed the phone canvas appear, the ADD KEY screen disappears and no key code appears
- same story for the phone-OFF button and for the volume up and volume down buttons.
4.
Since at least one button is recognized (the white backspace) I have set it to work as follows:
1st short press > open contacts
2nd key press > open excel
3rd key press > open opera
4th key press > calculator
But ONLY short press and long press do work! The other 2 cannot work (Therefore I cannot open excel and opera…)
Additionally: if I want to open CONTACTS, I just need to press short and CONTACTS application appears on my screen
If I want to use CALCULATOR > I need to press AND HOLD! If so CALCULATOR shows up. If I pull off my finger from the hardware button > calculator disappears and the home page comes back…
Please can you explain what I am doing wrong?
Thanks and waiting for any help and suggestions
Saulo
saulo866 said:
You seem knoweleagble: I would like to receive your suggestions
I onw two units of HD2, I am trying to understand how to use AE buttons, then I will surely buy it, but I have many doubts…
Questions:
1. Where can I find a complete tutorial?
2. Where can I find a help, to understand each functions? I mean, not FAQ, just a help file.
3. from AEBPlus Settings > add button > ONLY 2 hardware buttons can be captured (the one with white backspace arrow on it and the home with a home depicted on it)
the other 5 buttons cannot be sensed: I mean
- phone button: if pressed the phone canvas appear, the ADD KEY screen disappears and no key code appears
- same story for the phone-OFF button and for the volume up and volume down buttons.
4.
Since at least one button is recognized (the white backspace) I have set it to work as follows:
1st short press > open contacts
2nd key press > open excel
3rd key press > open opera
4th key press > calculator
But ONLY short press and long press do work! The other 2 cannot work (Therefore I cannot open excel and opera…)
Additionally: if I want to open CONTACTS, I just need to press short and CONTACTS application appears on my screen
If I want to use CALCULATOR > I need to press AND HOLD! If so CALCULATOR shows up. If I pull off my finger from the hardware button > calculator disappears and the home page comes back…
Please can you explain what I am doing wrong?
Thanks and waiting for any help and suggestions
Saulo
Click to expand...
Click to collapse
Sorry Saulo, I have a TG01 , I don' know how this program works on HTC devices.....
sombody knows how to ADD the wake up function to the central hardware button??? i mean ADD this function leaving the other ...i want to wake up the phone pressing the button in front, not the button on the top.
Maybe editing the android keyboard file?
thanx
poldone said:
sombody knows how to ADD the wake up function to the central hardware button??? i mean ADD this function leaving the other ...i want to wake up the phone pressing the button in front, not the button on the top.
Maybe editing the android keyboard file?
thanx
Click to expand...
Click to collapse
A bit late for a response, but here you go:
Your phone needs to be rooted.
1. use Root Explorer to navigate to /system/usr/keylayout/mt6575-kpd.kl
2. press MOUNT R/W button
3. Use Text Editor and navigate to key 248 at bottom of list
4. Add space and WAKE after FUNC1 (ie: key 248 FUNC1 WAKE)
5. exit and save. Root Explorer will save backup
6. Reboot phone. When screen is asleep either front round button or power button will wake phone.
Goodluck --Larry
amphi66 said:
A bit late for a response, but here you go:
Your phone needs to be rooted.
1. use Root Explorer to navigate to /system/usr/keylayout/mt6575-kpd.kl
2. press MOUNT R/W button
3. Use Text Editor and navigate to key 248 at bottom of list
4. Add space and WAKE after FUNC1 (ie: key 248 FUNC1 WAKE)
5. exit and save. Root Explorer will save backup
6. Reboot phone. When screen is asleep either front round button or power button will wake phone.
Goodluck --Larry
Click to expand...
Click to collapse
Top man Larry
I tried this on my STAR W007 and it worked a treat !
Ok I might sound like a noob here (which I am ) but I need to know the manufacturer of the screen and obtain drivers for it.
Why I need it?
We are trying to build a custom kernel and actually we got some success. But following are the bugs:
screen doesn't turn off after locking
camera doesn't work.. just a black screen
usb doen't work
touch sensitive buttons don't work except home button which now works as back button!
volume down button has now become volume up button.. and volume up button doesn't work...
What is the device name?
It is Karbonn A18/Neobox tuan 4.3 with MT6575 chipset and MT6620 combo chip.
--------
Can anyone please help? We are just two people working on this and looking for someone who can help us out.
Thanks in advance!
CHANGING HARD KEY FUNCTION (REMAPPING BUTTON)
Quote:
1. open /system/usr/keylayout/[phone model]-keypad.kl with notepad++
(Some phone may have different names, but it will always end with "keypad.kl)
it will look like this --
HERE YOU WILL FIND 3 ROWS...
Quote:
1. As you can see, there are different attributes assigned to each key. like this
Code:
key 102 HOME
key 139 MENU
key 158 BACK
key 115 VOLUME_UP
key 114 VOLUME_DOWN
2. Specific application/action launchers:
Code:
HOME #Launches "Home"
MENU #Launches "Menu"
BACK #Takes you back to the last activity
SEARCH #Launches "Universal Search"
CALL #Launches the "Phone" activity and corresponding .apk or initiates a call
ENDCALL #Ends a call
CAMERA #Launches "Camera" activity and corresponding .apk
FOCUS #Initiates Auto-Focus while using the Camera
VOLUME_UP #Self explanatory
VOLUME_DOWN #Self explanatory
3. And attributes saying if it should wake the phone at button push to complete the action, or if it should just complete the action without waking the screen.
Code:
WAKE #Completes the action without waking the screen
WAKE_DROPPED #Wakes the phone to complete the action
2. NOW WE WILL EDIT SECOND AND/OR THIRD ROW
Erase the center row value for any key to completely disable it. To reassign the key, replace the center row value with another one from the same row. Change the right row value to either "WAKE" or blank to enable the wake function. Do not modify the left row.
NOTE: don't edit left row i.e. first row which contains specific key identity number.
FOR EXAMPLE I DO THESE CHANGES
DEFAULT VALUES ---
Code:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
CHANGED VALUES ---
Code:
key 115 CAMERA WAKE
key 114 FOCUS WAKE
NOW VOLUME UP KEY WILL WORK AS CAMERA KEY AND VOLUME DOWN KEY WILL WORK AS FOCUS KEY....
NOTE: all words should be in BOLD letters i.e. capital letters...
Hello,
My phone model is CCE SM70 in brazil, same as Karboon A18 and NEOBOX TUNA, i would like to know how you compiled the kernel for this device. You compiled the philips w732 from forum.china-iphone.ru with default kernel config for mt6575?
Thanks in advance,
Tiago
Hello,
First post I have rooted my Oneplus one yesterday, after that my MENU key and recent app (APP-SWITCH) has been set back to default
Long Press - APP-SWITCH & Short press - Menu
I wanted to interchange both keys Long press - MENU & Short press - APP-SWITCH
Then I followed http://forum.xda-developers.com/showthread.php?t=2733811 for switching keys
I have replaced
(key 139 MENU) with (key 580 APP-SWITCH)
Now my APP-SWITCH key is working but MENU is not working please help me sort it out as its my first root ever so noob with these.
If someone want to help you can get Generic.kl here- - > http://pasted.co/3a9b34ca
I think it's because key 580 is long press of MENU not long press of key 139. So whichever button you set to MENU, when you long press it, it will use key 580's value. In this case, your left button just turned to Recents (APP_SWITCH) key, not MENU key anymore, so when you long press it, key 580's value won't be used.
So i think changing left button short press to Recents (APP_SWITCH) key is as far as you can go, nothing more you can do about the long press without custom ROM or xposed. (Or does CyanogenOS have the Buttons section in the settings, i don't remember)
Mapping hardware keys feature, like in many other ROMs, would be really useful feature. Who agrees, +1 pls!
Yes please,
e.g. the Find 7 has that old and never used "menu" button on the left.
Under Cyanogenmod/LineageOS I can modify this button, so it acts the "recent apps" button.
Although OmniROM allows to change the longpress of this button, the single press can't be changed and therefore still has the "menu" functionality. Quite annoying, because it's useless.
A manual workaround would be to edit the Generic.kl:
1. Open /system/usr/keylayout/Generic.kl in Text Editor.
2. Then scroll down to "key 139", this is the key for the hardware menu button. Right now it will say "MENU" next to it. Replace it with "APP_SWITCH" instead.