This is such a simple (but useful) mod I'm surprised it hasn't been posted.
If like me you only use the home button to wake the screen, and don't want the power button waking the screen whilst in your pocket or when you try to adjust the volume. This is for you.
You need to be rooted and need a file manager that supports root (Root Explorer or Root Browser (LITE version works fine)).
On your phone navigate to system/usr/keylayout
open sec_key.kl in text editor (you can make a backup if you want by adding .bak to the end of the file name and saving - Root Explorer will do this automatically)
delete WAKE from either HOME or POWER (not both!)
save and reboot.
View attachment 815205
Was thinking about it myself, so props for the info, even if I don't really mind it turning on with power button as well, but I appreciate the tutorial
is it possible to totally disable a button?
is there any setting to disable "back" button? I find the back button annoying when we are using s-memo, as it oftentimes accidentally activated.
Thanks for this awesome little mod, which is veeery handy!!!
stjoemail said:
is there any setting to disable "back" button? I find the back button annoying when we are using s-memo, as it oftentimes accidentally activated.
Click to expand...
Click to collapse
Yes, in system/usr/keylayout
sec_touchkey.kl
I now have my back key set as SEARCH and use LaunchKey (paid version) to remap long press search as back. It works quite well, as search does nothing in most note/drawing apps.
market.android.com/details?id=com.beansoft.launchkey&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5iZWFuc29mdC5sYXVuY2hrZXkiXQ
Hopefully someone will figure out or develop a better way.
i saw inside sec_touchkey.kl the parameter Back WAKE, what should I change to make Back button to function as search?
thanks
brez said:
Yes, in system/usr/keylayout
sec_touchkey.kl
I now have my back key set as SEARCH and use LaunchKey (paid version) to remap long press search as back. It works quite well, as search does nothing in most note/drawing apps.
market.android.com/details?id=com.beansoft.launchkey&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5iZWFuc29mdC5sYXVuY2hrZXkiXQ
Hopefully someone will figure out or develop a better way.
Click to expand...
Click to collapse
Thank you for sharing this! Now for the not so bright question: does this mean if I accidentally hit the power button when making a call or playing a game, I won't be able to turn off the screen anymore?
TIA.
I disabled the wake for power button, it works for a sort press, but long press still wakes.
Any tips? I think this will avoid pocket button presses.
thanks
Edit= never mind, I didn't reboot, works now.
Sent from my GT-N7000 using Tapatalk
it been posted in sg2 thread.
found the solution, using buttonremapper I switched the menu and back button so no need to buy launchkey. now if i accidentally press the right button during using s-memo, it will not activate the back function but menu function, so can easily cancel without the apps closing.
stjoemail said:
i saw inside sec_touchkey.kl the parameter Back WAKE, what should I change to make Back button to function as search?
thanks
Click to expand...
Click to collapse
brez said:
This is such a simple (but useful) mod I'm surprised it hasn't been posted.
If like me you only use the home button to wake the screen, and don't want the power button waking the screen whilst in your pocket or when you try to adjust the volume. This is for you.
You need to be rooted and need a file manager that supports root (Root Explorer or Root Browser (LITE version works fine)).
On your phone navigate to system/usr/keylayout
open sec_key.kl in text editor (you can make a backup if you want by adding .bak to the end of the file name and saving - Root Explorer will do this automatically)
delete WAKE from either HOME or POWER (not both!)
save and reboot.
View attachment 815205
Click to expand...
Click to collapse
The file is write protected, root explorer don't allow me to modify it, any idea to do it?
Already in use said:
The file is write protected, root explorer don't allow me to modify it, any idea to do it?
Click to expand...
Click to collapse
Use es explorer with root enabled in the settings
Sent from my GT-N7000 using Tapatalk
drgopoos said:
Use es explorer with root enabled in the settings
Sent from my GT-N7000 using Tapatalk
Click to expand...
Click to collapse
Thx for your answer. ES File Explorer (in root mode) only start from the /sdcard/ directory, and doesn't go upper. System's directories are above if I'm right.
Why the hell root explorer tell me that this file (sec_key.kl) is write only protected (why as he is root too, he can't write on the file).
Others in this thread have try this whit rooted G Note XXKKA / CWM without problem, I don't get it...
Press and hold the star button on the top left
Sent from my GT-N7000 using Tapatalk
It work, thx m8!
Great hint, thank you!
Had some trouble getting the sec_key.kl edited though: Root explorer didn't want to edit / save changes / change permissions / create a new file (even on external_sd!). No idea why. My Note is rooted (obviously) and Superuser reports SU granted when I launch RE.
To finally do it I copied the file to the external_sd using RE, edited it using ES, moved it back to system\usr\keylayout (which strangely enough worked) with RE, adjusted the permissions (wich, again, strangely enough now was possible) with RE, rebooted.
this does not work with ICS 4.0.3
akyuznet said:
this does not work with ICS 4.0.3
Click to expand...
Click to collapse
+ 1
Gesendet von meinem GT-N7000
Nice info...but does anyone know how to make menu and back button working but without light?
Related
Has anyone remaped any of the softkeys on the TB
There's an app called "screen off and lock" that does this and more.
Sent from my THUNDERBOLT
I found this but dont know if will work on thunderbolt
http://forum.xda-developers.com/showthread.php?t=683902
I want to remap a soft key to unlock my phone cause my power button is gone
Sent from my ADR6400L using XDA App
carycooke said:
I found this but dont know if will work on thunderbolt
http://forum.xda-developers.com/showthread.php?t=683902
I want to remap a soft key to unlock my phone cause my power button is gone
Sent from my ADR6400L using XDA App
Click to expand...
Click to collapse
This works for simply remapping. Just did it to remap my MENU and HOME keys. Used Root Explorer. The file name is mecha-keypad.kl
So, I would imagine this would also work for mapping one of the keys to wake the phone however will still need to pull/push the file with ADB to do that.
Great find! Thanks. Been wanting to do this for weeks, now.
Str0ntium said:
This works for simply remapping. Just did it to remap my MENU and HOME keys. Used Root Explorer. The file name is mecha-keypad.kl
So, I would imagine this would also work for mapping one of the keys to wake the phone however will still need to pull/push the file with ADB to do that.
Great find! Thanks. Been wanting to do this for weeks, now.
Click to expand...
Click to collapse
well i tried adb pull mecha-keypad.kl and put it on c drive then i edited with notepad++ by putting WAKE by the menu slot then pushed it back to its original location but it still will not wake device AM i doing something wrong???
I seen in there that there is also a mecha-keypad-v0.kl file maybe that needs to be edited to wake the device by pressing the MENU key???
any help??anyone
My power button is not gone yet but its close and if i could save it by relieving it a bit it would be nice
I doubt you'll be able to wake the phone with any soft key - I doubt the digitizer is active when the phone is asleep, so there's nothing watching for presses.
anyone have a mod that does this?
sorry if this is in the wrong place. i'm new here.
I don't know of a patch for that yet, but I'm sure it's possible.
If we had CyanogenMod for the Charge, it would be baked into the ROM.
Someday ...
I would like to see this. possibly even disable the quick press options of the power button and reassign them to another combination. I hit the button all the time trying to do other things on the phone and then I get locked out and have to redo my pattern etc.
Widgetlocker app can do this for you.
Using Root Explorer or possibly Estrongs file explorer:
>Go to system>usr>keylayout>s3c-keypad.kl
>modify key 50 to look like this: HOME WAKE_DROPPED
>Then reoboot
Now home key wakes device!
UPDATE: Seems after it is asleep for a period of time it won't wake it anymore, have to work this out.
What application do we use to edit the value? A text editor? What do you suggest?
I use Root Explorer Long press open in text editor,
I think you can do the same with estrongs file explorer.
>DARKMAN< said:
I use Root Explorer Long press open in text editor,
I think you can do the same with estrongs file explorer.
Click to expand...
Click to collapse
Sorry for the unnecessary request. I see it is in the other post.
It seems as though the front keypad module is not active once it goes completely to sleep, there for won't wake it.
If someone can figure this out, it will work just fine.
>DARKMAN< said:
Using Root Explorer or possibly Estrongs file explorer:
>Go to system>usr>keylayout>s3c-keypad.kl
>modify key 50 to look like this: HOME WAKE_DROPPED
>Then reoboot
Now home key wakes device!
UPDATE: Seems after it is asleep for a period of time it won't wake it anymore, have to work this out.
Click to expand...
Click to collapse
Definite thanks for looking into it. I'll try the app that bill mentioned and see if it makes a difference. I haven't yet rooted so I don't think I can do your version yet even if it works.
billku said:
Widgetlocker app can do this for you.
Click to expand...
Click to collapse
Are suggesting this because you have this on your Droid Charge and it is currently working correctly?
The reason I ask, is I tried a couple weeks back and could not get it working correctly.
I have it on my Charge. It works intermittently. I found that if the phone is asleep for a little while it usually does not work... occasionally it does work but no consistent pattern.
I'm also looking for a better fix than the app.
Suggestions are greatly appreciated!
The same thing happens when you just modify the key mapping, it's because the front keypad module is off when the phone sleeps.
So if it could be activated at all times that would fix it, but I imagine it may have some side effects to battery life.
This will disable the lock screen for good. After you do this fix you can wake up the Droid by briefly pressing the power button and it will go immediately to the home screen without any lock screen madness.
Go to Dialer and enter *#83786633, then press the home key
Go back into the Dialer, clear those numbers, then *#22745927
Now a screen will appear asking for the SPC Code, enter 000000
Press the Hiddenmenu Enable radio button, then press home button
To disable the lock screen (and power down pop up), go back into the Dialer and use the code *#7594#, select Shutdown and press the Home button. This, I have confirmed, does work on the Charge.
Is the a App or a way to use the volume button to wake up the screen so we don't put to much stress on the power button?
Sent from my HTC Sensation 4G using xda premium
I use tap tap app and it uses ones proximity sensor to turn on and off your screen with a swipe of your hand or some like to refer to as "the force" lol.
But if you are looking for an alternative wake, I think there is, I forget what the app is called right now.
There is an application called Button Remapper and that could help you just wake up screen with volume buttons or other hard buttons on my HTC Desire.. give a try to it on Sensation...
check here
http://forum.xda-developers.com/showthread.php?t=850464
Alternative is Widget Locker and i suppose that will also Show up unlock screen pressing volume buttons but then u have to sacrifice Sense 3 lock screen...
I agree with jjdoctor widgetlocker has been my lock screen for years across a numerous amount of phones. That is, if you want to sacrifice the sense lockscreen.
I use Tap Tap app as well. Pretty cool app. I try not to run it all the time though because it can drain the battery a bit. I also use widgetsoid as well which has an unlock widget where you can then use the volume rocker to wake up the phone.
Sent from my HTC Sensation 4G using Tapatalk
Tried Widgetsoid on a different phone but couldnt locate the Option to wakeup screen with Volume buttons.. its all about widgets in this application..
Btw... BUTTON REMAPPER isnt working ? Nobody ever used it? You wont be sacrficing Sense Lock screen for it..moreover its light application and wont even drain ur battery..
For Widgetsoid, I think you want to create a widget, select screen and then check auto lock. That will create a widget which you can enable/disable the lock screen. Then you can use the volume rocker to wake up the phone.
Sent from my HTC Sensation 4G using Tapatalk
I was looking for something that can wake up the phone not remove lock screen just to wake up. I tried nolock. It removes the lock screen just to wake up.
Try adding these to the build.prop (remember to do a nandroid)
To enable the Volume button too unlock the phone
ro.config.hw_Vol_down_unlockscreen=true
To wake the phone when pressing the volume key
ro.config.hwfeature_wakeupkey=1
I havent tried these so let me know my sensation is at service at the moment.
Thanks for the information!
rawtek said:
Try adding these to the build.prop (remember to do a nandroid)
To enable the Volume button too unlock the phone
ro.config.hw_Vol_down_unlockscreen=true
To wake the phone when pressing the volume key
ro.config.hwfeature_wakeupkey=1
I havent tried these so let me know my sensation is at service at the moment.
Click to expand...
Click to collapse
tried it... didn't work...
I too would love to be able to wake up my phone with the volume rocker, but keep the lockscreen intact.
The power button on my previous phone wore out way too fast, and this is a worry with the Sensation.
Tried several different apps, editing the build.prop file, button remapper... nothing has worked so far.
I'm using Insertcoin 3.2.0... which is fabulous.
I found this http://forum.xda-developers.com/showthread.php?t=1293967
I been using insertcoin rom and love it.
Sent from my HTC Sensation Z710e using xda premium
Here's what I found and been using it since. It's awesome.. enjoy guys! Copied and pasted directly from syc7090 - full credits to him. http://forum.xda-developers.com/showthread.php?p=18039135#post18039135
1. Download baksmali and smali (both baksmali-1.2.8 & smali-1.2.8 jars and scripts, total 4 files) to the desktop from http://code.google.com/p/smali/ (on the left, you will see the 4 links under "downloads")
2. Copy and transfer android.policy.jar (system\framework folder) from your phone to the desktop. it's also a good idea to backup the file just in case something goes wrong and you need to revert back.
3. Unzip android.policy.jar and extract classes.dex file to the desktop.
4. From the command line, navigate to the desktop and type "java -jar baksmali-1.2.8.jar classes.dex". It will create a directory named "out".
7. Open KeyguardViewMediator.smali (found in out/com/android/internal/policy/impl/) with wordpad.
8. Scroll down and find ".method private isWakeKeyWhenKeyguardShowing(I)Z".
9. Delete cases 0x18 and 0x19 in the switch statement towards the bottom of the method. Save.
10. From the command line, type "java -jar smali-1.2.8.jar -o classes.dex out". You now have a new classes.dex that has your modification.
11. Open android.policy.jar file on your desktop with 7zip and insert the new classes.dex file.
12. Copy the new file to your phone (system\framework folder, ensure that you set proper permissions) and reboot.
please note that i am not responsible if you mess anything up (although, the steps are pretty brick-proof). hack away at your own risk.
ps if you want to turn the screen off without using the power button, download "screen off and lock" from the market. awesome free app. shut down the screen by long pressing the search button.
kpjimmy said:
I use tap tap app and it uses ones proximity sensor to turn on and off your screen with a swipe of your hand or some like to refer to as "the force" lol.
But if you are looking for an alternative wake, I think there is, I forget what the app is called right now.
Click to expand...
Click to collapse
This should help.http://forum.xda-developers.com/showthread.php?p=18226553
I don't like how the screen turns on when I change the volume for music in my pocket, so here's a workaround I found:
- Use Root explorer (or similar) and browse to /system/usr/keylayout/
- Mount system as R/W
- Long press ffa-keypad.kl and open with text editor.
- Remove the words "WAKE_DROPPED" next to key
115 VOLUME_UP
114 VOLUME_DOWN
Only remove the "WAKE_DROPPED" words and save the file. Restart your phone and wake on volume button press should be disabled.
Thank you for this! Actually was just running into issues with this yesterday. When I run, I use my phone for music, and every once in awhile, it'll randomly decide to wake, and since it's in my pocket, it'll just start going crazy pressing buttons, pocket texting random people, and skipping tracks, haha.
Help please
ganja_guru said:
I don't like how the screen turns on when I change the volume for music in my pocket, so here's a workaround I found:
- Use Root explorer (or similar) and browse to /system/usr/keylayout/
- Mount system as R/W
- Long press ffa-keypad.kl and open with text editor.
- Remove the words "WAKE_DROPPED" next to key
115 VOLUME_UP
114 VOLUME_DOWN
Only remove the "WAKE_DROPPED" words and save the file. Restart your phone and wake on volume button press should be disabled.
Click to expand...
Click to collapse
Could you post the entire file because I made a mistake and disable ALL and now I can t remenber wich ones than you !
Thank you for this! Was getting really annoying before. This is perfect now. Super clear directions. Thanks again.
Old thread, but same questions I suppose. I would like to disable wake on volume up for my Droid4 running ICS 4.0.4 but I don't have ffa-keypad.kl in my folders. I found several files that contain 114 and WAKE, but I'm not sure which one needs editing. I found the key layout info:
http://source.android.com/tech/input/key-layout-files.html
That indicates that changing the wrong one will just be ignored. Any guidance on determining which the right file is? Like I said, there's ~20 files and at least 4 have 114 in them. ES File Explorer doesn't seem to let me search file contents that I can see.
bkenobi69 said:
Old thread, but same questions I suppose. I would like to disable wake on volume up for my Droid4 running ICS 4.0.4 but I don't have ffa-keypad.kl in my folders. I found several files that contain 114 and WAKE, but I'm not sure which one needs editing. I found the key layout info:
http://source.android.com/tech/input/key-layout-files.html
That indicates that changing the wrong one will just be ignored. Any guidance on determining which the right file is? Like I said, there's ~20 files and at least 4 have 114 in them. ES File Explorer doesn't seem to let me search file contents that I can see.
Click to expand...
Click to collapse
Change it in all 4, or plug ur phone into a computer, adb pull the entire folder and then search contents from there.
Then edit the files using notepad++ or notepad2 and then adb push them back
I actually solved this through searching a bunch more. The basic answer is that you need to edit whatever file ends with "-keypad.kl". For my Droid4 , that's "omap4-keypad.kl". Thanks for the response though!
bkenobi69 said:
I actually solved this through searching a bunch more. The basic answer is that you need to edit whatever file ends with "-keypad.kl". For my Droid4 , that's "omap4-keypad.kl". Thanks for the response though!
Click to expand...
Click to collapse
Nice, I like how you followed up with the needed info. Next time someone searches they'll stumble upon ur answer
Worked perfectly on my ZTE Blade III, stock rom. Thanks man!
Is it possible to remap the menu button on the verizon s 3 to multitasking?
I'm going to think your going to have to be rooted, and maybe change something in the build prop.
Apex launcher let's customize buttons in the settings.. Just download it from the play store!
http://forum.xda-developers.com/showthread.php?t=1789000
Check out this thread. This app remaps home button but on the app Page in play store the same dev also has an app that remaps other buttons if I'm not mistaken.
Hope this helps.
Home2shortcut
Sent str8 from my half eaten Banilla Ice Cream Samich
Yes, its possible, I have my buttons totally remapped with:
Menu button - Home/Multitasking
Home button - Menu/whatever holding it down does
Back - Back
I also made it so that the home button doesn't wake the phone as well.
In a couple days (or whenever i have time really) im gonna put a guide together how to do this in detail (i havent seen an extensive one yet).
BEFORE DOING THIS, BACK UP EVERYTHING!!! I'M NOT RESPONSIBLE FOR ANY PROBLEMS OR MISHAPS.
Also, you need root for your phone to mount the system as writable.
NOTE when i first did this, i only changed one at a time, and made the mistake as not having a Menu button (i had two home buttons and a back button) which proved tricky to find a way around. Just be very careful!
In short, modify the files sec_touchkey.kl and sec_keys.kl within ES File Explorer or Root Explorer under ~/system/usr/keylayout/ . As soon as you edit these and save them, the App will automatically create a sec_touchkey.kl.bak or sec_keys.kl.bak file next to your modified file. After an edit, you'll need to reboot your phone for the changes to be in effect.
I would advise to look at these files in detail before mounting the system as writable, to avoid mistakes.
Good luck!!
usatf1290 said:
Yes, its possible, I have my buttons totally remapped with:
Menu button - Home/Multitasking
Home button - Menu/whatever holding it down does
Back - Back
I also made it so that the home button doesn't wake the phone as well.
In a couple days (or whenever i have time really) im gonna put a guide together how to do this in detail (i havent seen an extensive one yet).
BEFORE DOING THIS, BACK UP EVERYTHING!!! I'M NOT RESPONSIBLE FOR ANY PROBLEMS OR MISHAPS.
Also, you need root for your phone to mount the system as writable.
NOTE when i first did this, i only changed one at a time, and made the mistake as not having a Menu button (i had two home buttons and a back button) which proved tricky to find a way around. Just be very careful!
In short, modify the files sec_touchkey.kl and sec_keys.kl within ES File Explorer or Root Explorer under ~/system/usr/keylayout/ . As soon as you edit these and save them, the App will automatically create a sec_touchkey.kl.bak or sec_keys.kl.bak file next to your modified file. After an edit, you'll need to reboot your phone for the changes to be in effect.
I would advise to look at these files in detail before mounting the system as writable, to avoid mistakes.
Good luck!!
Click to expand...
Click to collapse
Nice! So it's possible to map the menu key to "open apps" after all? I tried messing with those files awhile ago but couldn't get the menu remapped to recent apps and hold home for menu.
I've looked all over, and tried a lot of things, and its proving more difficult than i had thought to simply remap menu longpress to recent apps, and home longpress to menu.
I tried lots of things such as switching around the order, adding "APP_SWITCH" After HOME, and "RECENT" after HOME.
It seems to me there is no command that would readily do this.
In order to do this, I'll have to dig and find where the command "HOME" actually is, take out the recent apps section from that, and add it to the location of the "MENU" command.
However, if you don't mind using the Menu button as a home button (for now), and the home button as a menu button, its as simple as switching HOME and MENU within the sec_touchkey.kl file (then rebooting).
Bumpers
Try downloading nova launcher. You can remap the keys inside its settings. I used it to set the home key to google voice search.
werked said:
http://forum.xda-developers.com/showthread.php?t=1789000
Check out this thread. This app remaps home button but on the app Page in play store the same dev also has an app that remaps other buttons if I'm not mistaken.
Hope this helps.
Home2shortcut
Sent str8 from my half eaten Banilla Ice Cream Samich
Click to expand...
Click to collapse
Good find! thanks for that. This seems to be a good app, however it is not working the way i want it to. I have Nova launcher pro installed, and the ported version of Google Now. I wanted to map the double press to launch Google now, but could not make it work. I could remap anything else though, so this is a good app to have.
---------- Post added at 01:31 PM ---------- Previous post was at 01:21 PM ----------
kmdtcs said:
Try downloading nova launcher. You can remap the keys inside its settings. I used it to set the home key to google voice search.
Click to expand...
Click to collapse
I as well have Nova Prime. I could remap the home button, but not the double tap on home button. (maybe this will help someone else out as well)