Hello,
I am on the official OTA for ICS on the Atrix 2 in India. I found that it does not have the feature of waking on volume key. Can anyone help out with a mod? I found some threads but were not sure if the solutions were compatible with the phone and the kernel version.
Thanks,
Sayantan
I changed evfwd.kl and Generic.kl (added WAKE after volume up and down keys) and that did the trick. Also reviewed other key layout files and decided that they need not be changed.
~
Sayantan
Sent from my MB865 using xda app-developers app
[email protected] said:
I changed evfwd.kl and Generic.kl (added WAKE after volume up and down keys) and that did the trick. Also reviewed other key layout files and decided that they need not be changed.
Click to expand...
Click to collapse
I have made these edits to the files mentioned under system/usr/keylayout/ and restarted the phone, but without success. The phone will still not wake up as a result of hitting either volume key. Are there any other possible files that need changing?
paleozord said:
I have made these edits to the files mentioned under system/usr/keylayout/ and restarted the phone, but without success. The phone will still not wake up as a result of hitting either volume key. Are there any other possible files that need changing?
Click to expand...
Click to collapse
How are you making your edits, using Root Explorer or similar? If so, you should delete the .bak file it creates for /keylayout (but make sure you make a backup of the original before fooling around with it), the reboot and see if that clears things up...
Apex_Strider said:
How are you making your edits, using Root Explorer or similar? If so, you should delete the .bak file it creates for /keylayout (but make sure you make a backup of the original before fooling around with it), the reboot and see if that clears things up...
Click to expand...
Click to collapse
I just gave that a try (using ES File Explorer for everything) and still no dice. It won't wake up using volume keys no matter what, even with the .bak files deleted. Not sure if it makes any difference but I'm running ScV7 first leak edition. Any other suggestions/ideas...?
You need to have the screen lock set to None to wake using volume keys. Any other mode like slider, pattern etc will require the power key to wake.
~
Sayantan
Sent from my MB865 using xda app-developers app
Also, the files applicable for this may be different for the ROM version you are using (SCv7 first leak). Can you list out the contents of your Keylayout directory please?
~
Sayantan
Sent from my MB865 using xda app-developers app
Sorry, it took me a couple of days before I got a chance to retry this hack. Changing the lock setting to "None" (was previously on "Slider") did the trick and allowed the edits of the Generic.kl and evfwd.kl files to kick in successfully and allow screen wake by the volume keys. Thanks sayantan for the extra bit of guidance.
Ideally it would be great to be able to wake the phone using volume but still have the security of the lock screen available, but I suppose at the moment that's just not a possibility. Perhaps a future hack of some sort will find a way to enable that.
Right now, with lock set to "None" if a call comes in while your phone's in your pocket, and you ignore or miss the call completely, the phone then stays on and goes to the Home screen and stays there until it automatically times out and goes back to sleep. That's a lot of opportunity for accidental screen presses by the side of your leg while the device is active and accepting input. There doesn't seem to be any way to make it turn back off by default after a missed call. Maybe that can be changed in the future too.
EDIT: Right now I'm using the combination of Smart Actions along with the free application "Screen Off and Lock" to cause the Atrix 2 to switch the screen off after a missed call, which seems to work most of the time.
Cheers...
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
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?
hi everyone!
just notice that day to day i found it hard to push the unlock button on the right top of my phone, need a couple tries of push untill i can unlock my device,
seems like from day to day that small tiny ass button is gettting drown,
did anyone experiencing the same problem that i'm facing with xperia j?
is there any suggestion to unlock device without using button?
i have tried some application like shake to unlock etc. but they're drain battery insanely
mikey000 said:
hi everyone!
just notice that day to day i found it hard to push the unlock button on the right top of my phone, need a couple tries of push untill i can unlock my device,
seems like from day to day that small tiny ass button is gettting drown,
did anyone experiencing the same problem that i'm facing with xperia j?
is there any suggestion to unlock device without using button?
i have tried some application like shake to unlock etc. but they're drain battery insanely
Click to expand...
Click to collapse
I don't think theres a other way to unlock honestly...
I DO know theres a way to remap the buttons, so that you would (as example) be able to use the volume buttons for unlocking the screen. But I would have no idea how it actually works, too long ago since I saw it somewhere...
But about your power/unlock button, did it function normally before, or has it been bad since you got the phone?
Maybe there's some dirt or something in the button blocking it partly?
cysici cell
mikey000 said:
hi everyone!
just notice that day to day i found it hard to push the unlock button on the right top of my phone, need a couple tries of push untill i can unlock my device,
seems like from day to day that small tiny ass button is gettting drown,
did anyone experiencing the same problem that i'm facing with xperia j?
is there any suggestion to unlock device without using button?
i have tried some application like shake to unlock etc. but they're drain battery insanely
Click to expand...
Click to collapse
I have the same problem with the power button. It's not your fault, it's just the wrong way the button was made.
I use 2 apps to lock/unlock my phone by shake( and you can also unlock by hand gestures over the sensor- next to the front camera). You can try ShakeMe and you can also try to use Advanced Screen Control. Just install these 2 apps and play with the sensitivity and you'll find the perfect fit.
These 2 apps seem to be the best out of the bunch that you can find on the Play store.
Tell me if they work!
Dragoboss said:
I don't think theres a other way to unlock honestly...
I DO know theres a way to remap the buttons, so that you would (as example) be able to use the volume buttons for unlocking the screen. But I would have no idea how it actually works, too long ago since I saw it somewhere...
But about your power/unlock button, did it function normally before, or has it been bad since you got the phone?
Maybe there's some dirt or something in the button blocking it partly?
Click to expand...
Click to collapse
thanks for replying
it was normally functional before, but as time goes its getting un-responsive
layup23 said:
I have the same problem with the power button. It's not your fault, it's just the wrong way the button was made.
I use 2 apps to lock/unlock my phone by shake( and you can also unlock by hand gestures over the sensor- next to the front camera). You can try ShakeMe and you can also try to use Advanced Screen Control. Just install these 2 apps and play with the sensitivity and you'll find the perfect fit.
These 2 apps seem to be the best out of the bunch that you can find on the Play store.
Tell me if they work!
Click to expand...
Click to collapse
will try it,
is it drain your battery quickly or no?
Re: [DEODEXED APK]Need Testers[TIPO - ST21i]
Try some apps from Google play which can unlock using volume button I don't remember names but most have this function of waking screen when volume button is pressed
Try holo it is light uses less ram (don't remember if it has the function)
Sent from my ST21i using xda app-developers app
jhonny1525 said:
Try some apps from Google play which can unlock using volume button I don't remember names but most have this function of waking screen when volume button is pressed
Try holo it is light uses less ram (don't remember if it has the function)
Sent from my ST21i using xda app-developers app
Click to expand...
Click to collapse
cant find any app with that function yet
Give me some time I will search and tell
By the way I tried holo locker for u it has unlock function back+volume try it
Sent from my ST21i using xda app-developers app
If you root, go to /System/Usr/Keylayout/
Edit Generic.kl file.
Adding 'WAKE' after Volume down and up.
Then go to setting>security>screen lock to none
Maybe some other expert member can figure out how to make this working when enable screen lock.
Sorry my english.
Sent from my ST26a using xda premium
You can have screen lock on and use volume down to unlock:
- With a root access file manager like Root Explorer or ES File Explorer go to /system/usr/keylayout
- Open in text editor file fih_gpio-keys.kl
- Look for key 114 VOLUME_DOWN WAKE
- Replace the "VOLUME_DOWN" with "POWER".
- Save and reboot.
This essentially maps your volume down key as a power button. If you need to reduce the volume push volume up then use the on screen slider to set volume
miro xperia
arguson said:
You can have screen lock on and use volume down to unlock:
- With a root access file manager like Root Explorer or ES File Explorer go to /system/usr/keylayout
- Open in text editor file fih_gpio-keys.kl
- Look for key 114 VOLUME_DOWN WAKE
- Replace the "VOLUME_DOWN" with "POWER".
- Save and reboot.
This essentially maps your volume down key as a power button. If you need to reduce the volume push volume up then use the on screen slider to set volume
Click to expand...
Click to collapse
......it worked for me am hoping that a new power button will fix it properly