This mod removes the screen wake from volume buttons and headset buttons press.
Install with adb or root explorer to system/usr/
Make a backup of the keylayout folder first.
Will function on all rom versions.
Mine doesn't even wake up from pressing the volume buttons. But nice.
Sent from my Samsung Galaxy SII with XDA Premium
prodygee said:
Mine doesn't even wake up from pressing the volume buttons. But nice.
Sent from my Samsung Galaxy SII with XDA Premium
Click to expand...
Click to collapse
I does if you have music player active, but this mod disables it.
DocRambone said:
I does if you have music player active, but this mod disables it.
Click to expand...
Click to collapse
My music player isn't used and the vol. Buttons still wakes up the screen
Sent from my GT-I9100 using XDA Premium App
PoTi_96 said:
My music player isn't used and the vol. Buttons still wakes up the screen
Sent from my GT-I9100 using XDA Premium App
Click to expand...
Click to collapse
Did you apply this mod?, and did you reboot?
Is this only with stock player?.because i have no problem with poweramp.
Nice work
Doc.. Any chance we'll see a kitchen or docrom for sgsII soon?
Sent from my GT-I9100 using XDA App
+1 doc need ur rom on my sgs 2
+1 from me too Welcome back to Samsung Doc.
Sent from my GT-I9100 using Tapatalk
+1 saw you here even before I got my G2 in the battery thread. Seems it worked out for you. Hope to see your online kitchen magic soon.
On topic. Just tried this on villain ROM and didn't get the issue. (Ke7)
Cheers
Sent from my GT-I9100 using XDA Premium App
DocRambone said:
Did you apply this mod?, and did you reboot?
Click to expand...
Click to collapse
No, I thought the first guy didn't use this mod...
Maybe he wasn't BUT I noticed that on the stock rom from austria (3) it didn't wake up the screen but on stock KE7 it does... Maybe 3 had changed it?
Sent from my overclocked GT-I9100 using XDA Premium App
Is it possible to wake the phone up by pressing volume button?
My power button is wearing lately.
I did try to editing the attachment by adding "wake". But it didn't work.
WidgetLocker/NoLock works occasionally but not all the time
Navigate to using root explorer, make sure it is r/w
/system/usr/keylayout
edit the following file
sec_key.kl
See the "WAKE" on the same row as
key 116 POWER?
Do the same for
key 115 VOLUME_UP (and DOWN if you want both)
Reboot and all done
DocRambone said:
This mod removes the screen wake from volume buttons and headset buttons press.
Install with adb or root explorer to system/usr/
Make a backup of the keylayout folder first.
Will function on all rom versions.
Click to expand...
Click to collapse
Thank you. I can finally completely disable the stupid lock screen with nolock. Before this mod, I couldn't do it because then the volume keys woke up the device, but now thanks to you I don't have that problem.
s2d4 said:
Navigate to using root explorer, make sure it is r/w
/system/usr/keylayout
edit the following file
sec_key.kl
See the "WAKE" on the same row as
key 116 POWER?
Do the same for
key 115 VOLUME_UP (and DOWN if you want both)
Reboot and all done
Click to expand...
Click to collapse
Tried this, but no success
don't really know why.
Code:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 102 HOME WAKE
key 107 ENDCALL
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 103 DPAD_UP
key 108 DPAD_DOWN
key 232 DPAD_CENTER
key 116 POWER WAKE
key 212 CAMERA WAKE
guitarz said:
Tried this, but no success
don't really know why.
Code:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 102 HOME WAKE
key 107 ENDCALL
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 103 DPAD_UP
key 108 DPAD_DOWN
key 232 DPAD_CENTER
key 116 POWER WAKE
key 212 CAMERA WAKE
Click to expand...
Click to collapse
Reboot and check the content of that file, if something is wrong with that file, it goes back to previous..
It is rather sensitive to edits and only likes it in correct spacings as I had it fail on me once before..
s2d4 said:
Reboot and check the content of that file, if something is wrong with that file, it goes back to previous..
It is rather sensitive to edits and only likes it in correct spacings as I had it fail on me once before..
Click to expand...
Click to collapse
thank you so much
i already tried editing few times, and it didn't work at all
how many space do i need?
actually, the original file already contains "wake" after key 115 volume up, but it didn't work, so i have been trying to modified it.
can anyone upload the original folder?
thanks
I flashed the latest ICS beta ROM, XXLPB, and was disappointed to see this mod not work. So I took it upon myself to mod the keylayout files so that volume buttons don't wake up the device if lockscreen is disabled entirely.
As usual, make sure you have a nandroid backup before trying this. Copy all files to system/usr/ and reboot.
All credits go to the original finder of this mod, DocRambone.
http://www.mediafire.com/?f4hlqmyg8ibcigp
Related
I take no credit for this Mod. I found this posted in the i9300 section here http://forum.xda-developers.com/showthread.php?t=1767954&page=2. All credit goes to andrewilley.
What this does is map the volume up and down controls on the headset to next and previous track instead. I suggest that you only use this if you are using the wired headphones and want that functionality. Because this will change it for bluetooth devices also. So if you have a headset that already has buttons for both volume and tracks this isn't for you.
Here is andrews post from that thread.
Code:
I've managed to get the second and third headset buttons acting as next/previous track functions - without needing any extra software (although of course you can add extra facilities using Headset Button Controller later if you wish). The side volume rocker still works for volume control.
Christoph Kober pointed me to some documentation on the Android key mapping files (http://source.android.com/tech/input...out-files.html) which helped me in the right direction. I first tried to edit the small file which looked like it handled the headset, but that did not change anything. Then I tried editing the master key mapper file, and that did the job. I assumed that this would also remap the on-device volume buttons too, but fortunately there is another mapping file which overrides the generic one to handle the four hardware buttons - so they get re-mapped back to volume again. Perfect!
You'll need root access and a text editor for this. Don't mess with this lightly, you are editing system files!!!
1) Navigate to folder /system/usr/keylayout/
2) Backup the current Generic.kl file (you were going to do that anyway, right? If you weren't, probably best not go any further...)
3) Edit the file Generic.kl using a text editor
3) Comment out the lines for keys 114 and 115 (just put a # at the start of those two lines) thus:
# key 114 VOLUME_DOWN WAKE
# key 115 VOLUME_UP WAKE
4) Find the lines for keys 163 and 165, which look like this:
key 163 MEDIA_NEXT WAKE
key 165 MEDIA_PREVIOUS WAKE
5) change the numbers from '163' to '115', and from '165' to '114', thus:
key 115 MEDIA_NEXT WAKE
key 114 MEDIA_PREVIOUS WAKE
6) Save and reboot
Andre
Here are recovery zips if you want to flash. You can also use these to flash back and forth if need be. Files were taken from LG1.
Download: http://d-h.st/asK
MD5: aa8334da5d76d8e0a0dd26eafac269c6
Uninstaller Download (reverts back to stock): http://d-h.st/2DC
MD5: c2bd8ccbe81c230ef97997267b600d0c
crawrj said:
I take no credit for this Mod. I found this posted in the i9300 section here http://forum.xda-developers.com/showthread.php?t=1767954&page=2. All credit goes to andrewilley.
What this does is map the volume up and down controls on the headset to next and previous track instead. I suggest that you only use this if you are using the wired headphones and want that functionality. Because this will change it for bluetooth devices also. So if you have a headset that already has buttons for both volume and tracks this isn't for you.
Here is andrews post from that thread.
Code:
I've managed to get the second and third headset buttons acting as next/previous track functions - without needing any extra software (although of course you can add extra facilities using Headset Button Controller later if you wish). The side volume rocker still works for volume control.
Christoph Kober pointed me to some documentation on the Android key mapping files (http://source.android.com/tech/input...out-files.html) which helped me in the right direction. I first tried to edit the small file which looked like it handled the headset, but that did not change anything. Then I tried editing the master key mapper file, and that did the job. I assumed that this would also remap the on-device volume buttons too, but fortunately there is another mapping file which overrides the generic one to handle the four hardware buttons - so they get re-mapped back to volume again. Perfect!
You'll need root access and a text editor for this. Don't mess with this lightly, you are editing system files!!!
1) Navigate to folder /system/usr/keylayout/
2) Backup the current Generic.kl file (you were going to do that anyway, right? If you weren't, probably best not go any further...)
3) Edit the file Generic.kl using a text editor
3) Comment out the lines for keys 114 and 115 (just put a # at the start of those two lines) thus:
# key 114 VOLUME_DOWN WAKE
# key 115 VOLUME_UP WAKE
4) Find the lines for keys 163 and 165, which look like this:
key 163 MEDIA_NEXT WAKE
key 165 MEDIA_PREVIOUS WAKE
5) change the numbers from '163' to '115', and from '165' to '114', thus:
key 115 MEDIA_NEXT WAKE
key 114 MEDIA_PREVIOUS WAKE
6) Save and reboot
Andre
Here are recovery zips if you want to flash. You can also use these to flash back and forth if need be. Files were taken from LG1.
Download: http://d-h.st/asK
MD5: aa8334da5d76d8e0a0dd26eafac269c6
Uninstaller Download (reverts back to stock): http://d-h.st/2DC
MD5: c2bd8ccbe81c230ef97997267b600d0c
Click to expand...
Click to collapse
Works like a charm
Sent from my SAMSUNG-SGH-I747 using xda premium
How can this be used on the actual phone volume buttons instead of the headset? It does work good tho.
KryPTiCk0d3 said:
How can this be used on the actual phone volume buttons instead of the headset? It does work good tho.
Click to expand...
Click to collapse
You would have to find to volume rocker buttons and change them but then you couldn't change the volume with them.
Sent from my SAMSUNG-SGH-I747 using xda premium
Would that be in the same generic.kl? or in a different spot? I use that an awful lot, more than volume adjust... so I could live with it for now until a custom rom comes out with it included, not sure of any yet.
KryPTiCk0d3 said:
Would that be in the same generic.kl? or in a different spot? I use that an awful lot, more than volume adjust... so I could live with it for now until a custom rom comes out with it included, not sure of any yet.
Click to expand...
Click to collapse
I haven't dug into it yet so not sure. I would expect it to be though. When I get some time I will check it out.
Sent from my SPH-D710 using xda premium
I wanna set that when I hold the headset button that it launches S Voice :good:
XblackdemonX said:
I wanna set that when I hold the headset button that it launches S Voice :good:
Click to expand...
Click to collapse
Doesn't it already do that? Thought I read that on the stock headphones?
Edit: Guess not I just tried it. But I discovered that if you double tap play button it will skip to next track.
Sent from my SPH-D710 using xda premium
crawrj said:
Doesn't it already do that? Thought I read that on the stock headphones?
Edit: Guess not I just tried it. But I discovered that if you double tap play button it will skip to next track.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
lol i know that double-click skips track...
that doesn't help me lol
is there any way to make it like the g2 where it doesn't change tracks unless you hold it? and if you just click it it still increases or decreases the volume
I have been unable to get this to work on JB AOKP. Installing the flashable or direct edit results in losing all controls from the headphones. If anybody has been able to get this running on AOKP i would love to know how.
Maybe in this generic.kl file we can set those headsets with "iphone made" buttons to work with android?
I have one with 3 buttons, and all of them gives me google now when pressed. (JB)
ih8mydroid said:
I have been unable to get this to work on JB AOKP. Installing the flashable or direct edit results in losing all controls from the headphones. If anybody has been able to get this running on AOKP i would love to know how.
Click to expand...
Click to collapse
I would like to get this working, anyone else have any ideas?
Ive looked around but couldnt find any threads about it (sorry if it should be in the Dev area but cant post there yet) Just wondering if anyone has a mod to get the Volume Rocker wake option. Ive recently gone back to custom Sense ROMs and find it disappointing that they dont have this option. Any help is appreciated.
I thought there was an option in Widgetlocker to do that. Maybe you can use that app, it's a good lockscreen replacement app!
There is a app on google store that can help, it's called Wake All
https://play.google.com/store/apps/details?id=org.firezenk.wakeall&hl=en
cheers! Dnt forget to hit the thanks button
Sent from my HTC Wildfire S A510e using xda premium
Thank you Wake all seems to work good. Will keep it until I can elarn how to navigate the directorys and sort out the Vol waker.
mackay508 said:
Thank you Wake all seems to work good. Will keep it until I can elarn how to navigate the directorys and sort out the Vol waker.
Click to expand...
Click to collapse
There's an option volume rocker wake in settings > display in cm9 and 10 no idea is that option available in sense roms
Sent from my Android lappy
Im pretty sure i have seen a way to do it by editing the directory. Seen this post but not sure how to go about it TBH
Tigger31337 said:
1. Navigate to this directory on your phone:
\system\usr\keylayout
2. Modify the file "marvel-keypad.kl" by removing the following lines:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
(Delete the entire lines)
3. Perform the same mod on the file "qwerty.kl"
4. Reboot.
5. If works, click Thanks and buy me a beer. If you're short on time, just buy me a beer.
Click to expand...
Click to collapse
I'm wondering because I want to use on screen buttons like on my Gnex..
At least in my experience on screen keys are so much more responsive than capacitive keys..
Sent from my Galaxy Nexus using Tapatalk 2
Wordlywisewiz said:
I'm wondering because I want to use on screen buttons like on my Gnex..
At least in my experience on screen keys are so much more responsive than capacitive keys..
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
no you can not
Wordlywisewiz said:
I'm wondering because I want to use on screen buttons like on my Gnex..
At least in my experience on screen keys are so much more responsive than capacitive keys..
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
epicnoob66 said:
Add this line to your system/build.prop
qemu.hw.mainkeys=0
Save and reboot
Sent from my t0ltespr
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=33732776&postcount=11
Not sure about disabling the buttons. CM10 has these features built in.
Impossible..? Really what if I was to just remap them to do nothing?
Sent from my Galaxy Nexus using Tapatalk 2
Yes, a custom ROM could probably enable this.
Sent from my SPH-L900 using Tapatalk 2
Sweet! I wonder if we could do some type of gesture with the pen to go home that would be slick.. Custom pen gestures anyone?
Sent from my Galaxy Nexus using Tapatalk 2
Wordlywisewiz said:
Sweet! I wonder if we could do some type of gesture with the pen to go home that would be slick.. Custom pen gestures anyone?
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
I think it would be sick to make the navbar popup when you take the pen out since you can't touch the menu and back buttons with the stylus and then go away when you dock the stylus.
Sent from my SPH-L900 using Tapatalk 2
Wordlywisewiz said:
Impossible..? Really what if I was to just remap them to do nothing?
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
This would be the way to go.
some .kl file would hold the config
Now that would be sweet!
The only thing though is won't we lose most if the pen functions with aosp?
Sent from my Galaxy Nexus using Tapatalk 2
Wordlywisewiz said:
Now that would be sweet!
The only thing though is won't we lose most if the pen functions with aosp?
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
No, as of ICS (I think) stylus support is natively built in.
Sent from my SPH-L900 using Tapatalk 2
mrnamster said:
http://forum.xda-developers.com/showpost.php?p=33732776&postcount=11
Not sure about disabling the buttons. CM10 has these features built in.
Click to expand...
Click to collapse
Just tried this and it works GREAT! Thank you so much for finding this; my navbar is there, my appswitch button is there (love) and the Action Overflow buttons are back! Absolutely wonderful.
Now, if I could just figure out a way to disable the hardware keys... or toggle the navbar!
So adding those lines will create the nav bar at the bottom...nothing else, correct?
Correct. The buttons are too fat for my taste though. Screenshot anyone?
Edit: Tried to take a screenshot but it didn't capture the nav buttons.
Sent from my SPH-L900 using xda app-developers app
It is possible to use the on-screen navigation and disable the capacitive buttons. You can also disable the home button though I don't think it is necessary since accidental presses are not an issue with it considering it is not capacitive.
As the previous posts have pointed out, the on-screen navigation can be enabled by adding:
Code:
qemu.hw.mainkeys=0
to the file:
Code:
/system/build.prop
To disable the capavative buttons you need to edit the file:
Code:
/system/usr/keylayout/Generic.kl
comment out the lines:
Code:
key 139 MENU WAKE_DROPPED
key 158 BACK WAKE_DROPPED
it should look like this once commented out:
Code:
# key 139 MENU WAKE_DROPPED
# key 158 BACK WAKE_DROPPED
To disable the home button you need to edit the file:
Code:
/system/usr/keylayout/gpio-keys.kl
comment out this line:
Code:
key 172 HOME WAKE
it should look like this once commented out:
Code:
# key 172 HOME WAKE
Another option is to remap the home button and use it as a power button instead:
Code:
key 172 POWER WAKE
Make sure the files are still readable otherwise none of your physical buttons will work, if they are not you have to chmod 644
Code:
adb shell chmod 644 /system/usr/keylayout/Generic.kl
adb shell chmod 644 /system/usr/keylayout/gpio-keys.kl
Kailee do you know how to route the home button to the camera?
FrameCityJackal said:
Kailee do you know how to route the home button to the camera?
Click to expand...
Click to collapse
Yes, in the gpio-keys.kl file, use CAMERA for key 172, like this:
Code:
key 172 CAMERA
Do note that you will have to hold the home button for a few seconds for the camera to start.
Kailee said:
Yes, in the gpio-keys.kl file, use CAMERA for key 172, like this:
Code:
key 172 CAMERA
Do note that you will have to hold the home button for a few seconds for the camera to start.
Click to expand...
Click to collapse
That you very much my team has been trying to figure this out for the S3 we'll see if it functions the same :highfive:
Kailee said:
It is possible to use the on-screen navigation and disable the capacitive buttons. You can also disable the home button though I don't think it is necessary since accidental presses are not an issue with it considering it is not capacitive.
As the previous posts have pointed out, the on-screen navigation can be enabled by adding:
Code:
qemu.hw.mainkeys=0
to the file:
Code:
/system/build.prop
To disable the capavative buttons you need to edit the file:
Code:
/system/usr/keylayout/Generic.kl
comment out the lines:
Code:
key 139 MENU WAKE_DROPPED
key 158 BACK WAKE_DROPPED
it should look like this once commented out:
Code:
# key 139 MENU WAKE_DROPPED
# key 158 BACK WAKE_DROPPED
To disable the home button you need to edit the file:
Code:
/system/usr/keylayout/gpio-keys.kl
comment out this line:
Code:
key 172 HOME WAKE
it should look like this once commented out:
Code:
# key 172 HOME WAKE
Another option is to remap the home button and use it as a power button instead:
Code:
key 172 POWER WAKE
Make sure the files are still readable otherwise none of your physical buttons will work, if they are not you have to chmod 644
Code:
adb shell chmod 644 /system/usr/keylayout/Generic.kl
adb shell chmod 644 /system/usr/keylayout/gpio-keys.kl
Click to expand...
Click to collapse
Can this be done using a filer explorer on the phone? Sorry I've just never done anything like this before. Worst case scenario, I go back to a nandroid. Oh and can this be done on an international Note 2?
3bs11 said:
Can this be done using a filer explorer on the phone? Sorry I've just never done anything like this before. Worst case scenario, I go back to a nandroid. Oh and can this be done on an international Note 2?
Click to expand...
Click to collapse
Yeah you can do this with es file explorer and it should work for the international version as well
Sent from my SPH-L900 using xda app-developers app
I just hope modding any of this doesn't disable the power or volume keys... so anyone doesn't end up bricking their device..
I can't wait to get my hands on one im sick of this nexus..
And to be honest now that I'm a little older (almost 18 ) I'm not flashing as many Roms and customizing as much as I was a few years ago. Partly because I need my phone to be stable and keep my text messages.. so having a non nexus wouldn't be much of an issue..
Sent from my Galaxy Nexus using Tapatalk 2
this is a mod to enable on screen keys like a tablet and disable harware touch keys for those who prefer it I discovered it in my new note 2 and was surprised when it worked on my old e4gt. the process is different on the note, here are the steps for the e4gt:
you need to do this with a root capable explorer such as root explorer or root browser.
here is how to enable the screen keys:
and8res said:
navigate to system/build.prop
go to the bottom of the page ( document )
add this line
qemu.hw.mainkeys=0
save
reboot
check
Peace
Click to expand...
Click to collapse
ENSURE THE SCREEN KEYS WORK BEFORE CONTINUING
here is how to disable hardware capacitive keys:
navigate to system/usr/keylayout/sec_touchkey.kl
add a # and a space before each line as such:
Code:
# key 158 BACK WAKE
# key 139 MENU WAKE
# key 102 HOME WAKE
# key 217 SEARCH WAKE_DROPPED
reboot again
then disable touch key lighting by going to settings/display/touch key light duration/always off
to revert just undo the steps above... take out the # and spaces in sec touchkey and erase the qemu line in build.prop
Sent from my SPH-L900 using xda app-developers app
Video?
reinaldistic said:
this is a mod to enable on screen keys like a tablet and disable harware touch keys for those who prefer it I discovered it in my new note 2 and was surprised when it worked on my old e4gt. the process is different on the note, here are the steps for the e4gt:
you need to do this with a root capable explorer such as root explorer or root browser.
here is how to enable the screen keys:
ENSURE THE SCREEN KEYS WORK BEFORE CONTINUING
here is how to disable hardware capacitive keys:
navigate to system/usr/keylayout/sec_touchkey.kl
add a # and a space before each line as such:
Code:
# key 158 BACK WAKE
# key 139 MENU WAKE
# key 102 HOME WAKE
# key 217 SEARCH WAKE_DROPPED
reboot again
then disable touch key lighting by going to settings/display/touch key light duration/always off
to revert just undo the steps above... take out the # and spaces in sec touchkey and erase the qemu line in build.prop
Sent from my SPH-L900 using xda app-developers app
Click to expand...
Click to collapse
Is that for GB, ICS, OR JELLY? I don't have the same system/usr/keylayout/sec_touchkey.kl file in my fk23 jelly.
I can use the generic.kl to disable them.
Thanks for searching the forum....
http://forum.xda-developers.com/showthread.php?t=2026508
Sent from my SPH-D710 using xda premium
does any one know how to change the key layout of the android sofy keys, i mean in a normal android or a nexus product, the soft keys goes in the order as ( First is the back button, then middle is home and last in the right is recent tasks button).
but in samsung s3 and note 2, when soft keys are enabled. The soft key layout is reversed. I mean the back button soft key which is supposed to be in the left is in the right , and the recent tasks button which is supposed to be in the right is in the left. Any one knows how to change the soft key layout?
anything to do with tht build.prop or the sys/usr/keylayout file?
slavehunter105 said:
does any one know how to change the key layout of the android sofy keys, i mean in a normal android or a nexus product, the soft keys goes in the order as ( First is the back button, then middle is home and last in the right is recent tasks button).
but in samsung s3 and note 2, when soft keys are enabled. The soft key layout is reversed. I mean the back button soft key which is supposed to be in the left is in the right , and the recent tasks button which is supposed to be in the right is in the left. Any one knows how to change the soft key layout?
anything to do with tht build.prop or the sys/usr/keylayout file?
Click to expand...
Click to collapse
I feel you mate.
Yes you are right go to sytem/usr/keylayout/generic.kl and swap 139 with 158 and reboot.
You need to use something like solid explorer that gives you root acces.
Have fun, W
wmfreak said:
I feel you mate.
Yes you are right go to sytem/usr/keylayout/generic.kl and swap 139 with 158 and reboot.
You need to use something like solid explorer that gives you root acces.
Have fun, W
Click to expand...
Click to collapse
I believe the 139 is for the menu button right? and 158 for back button ? but thr is no menu button on the soft keys right? its just a home button, back and recent tasks button. whats the number for the recent tasks button.
ill give it a try....thanks a ton man..
How do you enable them? I am on cm nightlies latest
Sent from my GT-N7100 using xda premium