Disable Screen Wake Up On Headset And Volume Button Press - Samsung Galaxy SL i9003

Hey guys... I saw this mod in the SGSII forums - http://forum.xda-developers.com/showthread.php?t=1086526
Basically, it disables the screen waking up when the headset or volume buttons are pressed.. This will be REALLY useful for music listeners looking to conserve battery.. Can someone please make a similar mod for our phones?
EDIT - I got the solution! And it works perfect.. Didn't know it was this simple.. :silly:
1. Use any file explorer (after rooting of course) and go to the / system / usr / keylayout folder
2. Open the sec_key.kl file using a text editor and delete the "WAKE" text from the VOLUME_UP and VOLUME DOWN. Reboot.
3. Open the sec_jack.kl file similarly. Remove the "WAKE" text from all the rows shown. Reboot
4. ???
5. Profit!!
Sent from my GT-I9003 using xda premium

THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
:good::good::good:

Related

[tutorial] making volume button vibrate when pressed

firstly thanks to kenjilucas19 for finding this
CAUTION:- 1. the button you will make virtual can not be used on lockscreen
2. do not use this for power button else you will not be able to wake up your screen
you will need root for this
1. open any file manager with root access
2. go to /system/usr/keylayout
3. open aries-keypad.kl with text editor
4. change the word WAKE with VIRTUAL
5. save the file and reboot you are done
it was done originally on galaxy mini, thread link:- http://forum.xda-developers.com/showthread.php?t=1667694
stock files if needed
stock keylayout ics files:- http://db.tt/BTwcWJ6w
stock keylayout gb files:- http://db.tt/IJJr1Boe
Click to expand...
Click to collapse
This is extra cool!
I'd love to have it as an option under Sounds.
Vibration is a subject of strong preference or revolt.
I have it all off, my fingers hurt from vibration, and I save power.
But some ppl cannot leave without it.
So - option would be nice.
Very interesting. I'm guessing there aren't any negative side effects (like the buttons no longer responding when the screen is locked, like the rest of the "soft" buttons), otherwise you wouldn't have posted it, haha.
May have to give this a try for giggles later.
buttons you make virtual will not work in lockscreen
I tried this and it wasn't working, so I changed the rest of the files in that folder to say VIRTUAL & now my buttons are broken. I changed them back but they still don't work and yes I rebooted..
Sent from my SGH-I897 using xda premium
can you tell what you did step by step
and for a fix reflash your rom
and also virtual buttons do not work on lockscreen
I followed the tutorial correctly. Nothing changed after reboot. So I investigated & checked out the other text files in that folder, saw they had
Power wake
Volume wake
Etc
So I changed all those to virtual, rebooted, now buttons are broken. Could someone post all the stock files from their phone?
Sent from my SGH-I897 using xda premium
ninjuh said:
I followed the tutorial correctly. Nothing changed after reboot. So I investigated & checked out the other text files in that folder, saw they had
Power wake
Volume wake
Etc
So I changed all those to virtual, rebooted, now buttons are broken. Could someone post all the stock files from their phone?
Sent from my SGH-I897 using xda premium
Click to expand...
Click to collapse
cat aries-keypad.kl
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 139 MENU VIRTUAL
key 102 HOME WAKE
key 158 BACK VIRTUAL
key 217 SEARCH VIRTUAL
ninjuh said:
I followed the tutorial correctly. Nothing changed after reboot. So I investigated & checked out the other text files in that folder, saw they had
Power wake
Volume wake
Etc
So I changed all those to virtual, rebooted, now buttons are broken. Could someone post all the stock files from their phone?
Sent from my SGH-I897 using xda premium
Click to expand...
Click to collapse
files added
to ppl having probs after editing
Check your file permissions. Should be rw-r--r--.

[HOW-TO] Survive with a broken power button

If your button is broken, your button is broken. Sorry . Some people have had luck cleaning it with electrical cleaner but unfortunately I was not one of them. Eventually, you will probably want to send it in somewhere to get fixed (you need all three hardware buttons for various development functions). But if you are like me and you just need a temporary fix (I'm happy w/ my current rom and will be upgrading soon), then read on!
So what you are going to want to do is swap your power and volume up functions by remapping their respected buttons. Alternatively, you could swap your power and your volume down, but I think it's more important to be able to turn it down (plus you can still take screen shots in ICS).
Here's how you do it:
You will need a file explorer (and phone for that matter) with root access. ES File Explorer would be my personal recommendation. Make sure you have root access turned on in the settings
You will probably start in /sdcard/. Navigate up one folder then go to /system/usr/keylayout. Here you will find all the files that control your buttons
For the physical buttons, go to "aries-keypad.kl" and open as a text in a text editor that your file explorer hopefully came with (if you can't in yours, use ES File Explorer)
Write down or take a screen shot of what you see so you always have a reference of what it should look like and won't need to keep checking here key 114 = vol down, key 115 = vol up, & key 116 = pow
Cut and paste POWER WAKE to key 115 and VOLUME_UP WAKE to key 116
Hit back to leave and save the file when prompted
Reboot your phone. You'll probably need to pull the battery since your power button is toast
That should do it. Your volume up button should now control your power and your power button should now control your volume up. A couple (not so important) notes:
I think you can accomplish the same thing by switching the key numbers and leave the functions where they are, but can't be sure since I didn't try it
If your button is behaving erratic and going off without you pressing it, completely erase the key and it's function from the file. After I used an electric cleaner on the button this happened to me. I tried leaving the key in there and assigning it no function but my phone went bonkers.
I have no idea if the number of spaces between the various functions and WAKE are of any significance lol. I would guess not but I kept them the same to be safe.
Some people may want to assign the search button as volume up. I'm guessing you could do it the same way but again, I haven't tried. The file cypress-touchkey.kl also has softkey functions but I'm not sure if you would need to play around in that one instead or possibly do both. If anyone has had success with this please share!
After editing the aries file, I notice a duplicate in there after reboot that has the old setup. In the file explorer it has the same name, but upon opening it, I can see that it is a .bak file. I'm 99% sure this is a backup that ES File Explorer has made for idiots like me that shouldn't be playing around in these files and need to revert
OK that's it. Sorry this got so wordy. I hope this helps someone!
Credit for getting me started: http://forum.xda-developers.com/showthread.php?t=1325867
Ye, but Volume wake + SearchToPower mod solves the same issue. I like to use my Search button for long Power press to access Power menu - it is supercool!
Another way to survive without power button is to install Super Manager and enable the 'Sensor screen wake' function. Simply wave your hand in front of the sensor to wake device, add a shortcut to lock screen.
Sent from my SGH-I897 using xda premium

[Q] Software Power Menu

Hi,
I'm looking for an app which can open the DEFAULT power menu.
There are many apps in the Play Store which CREATE a power menu, but I want one which can just open it.
I use power menu a lot and I'm sure most of us use it very much. I just want something which can prolong the life of the power button.
I'm currently using Screen Off and Lock from the Play Store which can lock the phone using an on-screen icon. I want something like that for the power menu too.
Any help would be appreciated.
Thanks in advance.
If you're rooted, you could try rom toolbox from jrummy, it has a complete rebooter section and a widget accessing to that section
Sent from my Nexus S using xda app-developers app
I know there are apps which can display their own power menu.
But what I'm interested in is to use the default power menu...
Have a look at Screen off and lock in the Play store to know what I mean...
Sent from my Nexus S using xda premium
I assume you have a non-working power button. There are 2 ways you can do this:
1. Enable the Navigation bar feature in AOKP or SlimBean rom. Map the Power function to one of the button, but map it to the primary function of the button, not the secondary.
2. You can remap your capacitive buttons. Open the file /system/use/keylayout/cypress-touchkey.kl with the text editor of your root explorer, or copy it to your sdcard to edit it. Change KEY 217 ASSIST (or SEARCH), to POWER. Save the file and reboot. Also make sure you fix the permission of the file when you put it back if needed.
For both of these, press and hold that button to bring up the menu, one press = screen off.
eksasol said:
I assume you have a non-working power button. There are 2 ways you can do this:
1. Enable the Navigation bar feature in AOKP or SlimBean rom. Map the Power function to one of the button, but map it to the primary function of the button, not the secondary.
2. You can remap your capacitive buttons. Open the file /system/use/keylayout/cypress-touchkey.kl with the text editor of your root explorer, or copy it to your sdcard to edit it. Change KEY 217 ASSIST (or SEARCH), to POWER. Save the file and reboot. Also make sure you fix the permission of the file when you put it back if needed.
For both of these, press and hold that button to bring up the menu, one press = screen off.
Click to expand...
Click to collapse
My power button is working fine.
I'm just interested in getting the functionality of an on-screen button such displays the default power menu...
Thanks for your tutorial though.
Might help me some day...
Sent from my Nexus S using xda premium
Notification toggle from the play store has a power menu toggle
Sent from my Nexus S 4G using xda app-developers app

[Q] Mapping Volume button to camera

how can we map the volume button so as to launch camera on long pressing the volume button??
I don't think that's possible, you can remap the camera to another button tho.
If you are on gsnap by neko or cm7 you can go to setting > cyanogenmod settings > input > search key behavior > check long press search app > then press custom application > application > choose camera app in that list > voila
Now you can long press search key and camera app will launch
Any other button other than search button
Sent from my LG-P500 using xda app-developers app
harshbg said:
Any other button other than search button
Sent from my LG-P500 using xda app-developers app
Click to expand...
Click to collapse
Yes you can even menu button and home but only volume buttons you cant. The method is the same like search button for menu and home button remaping
Sent from my LG-P690 using Tapatalk 2
M using cm9..not able to find cm settings
Sent from my LG-P500 using xda app-developers app
search key as camera button
it can be possible to remap search key as camera key.
- If you are using stock 2.3.3 firmware, go to /system/usr/keylayout/ and copy thunder_keypad.kl to a pc
- if you are using CM7, go to /system/usr/keylayout/ and copy qwerty.kl to a pc
- if you are using ICS, go to /system/usr/keylayout/ and copy thunder_keypad.kl to a pc
- (i never tried this on jb but it should be just like on ICS)
then, open the file *.kl with an text editor (i recomend notepad++). every line starts witn this synthesis:
key [nº of the key] [function] [restriction]
/*the restriction says if a button can work with screen locked or not. WAKE alows a key to work even if the phone is locked, WAKE_DROPPED restrict a key to work only if the phone is unlocked */
look for the line that has the key Nº 217. it will looks like this:
key 217 SEARCH WAKE_DROPPED
change the SEARCH word to CAMERA
then, save the file and push it to /system/usr/keylayout/ overwritting the existing one
WARNING: DO an nandroid backup before do this...
PD: in stock ROMs, the stock camera will not recognize a camera button for take a pictute or record video, a third party camera app will do it.
Button Remapper! On XDA somewhere. Sorry
Sent from my LG-VM670 using Tapatalk 2

[Q] STAR W007 hardware button mapping

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 !

Categories

Resources