Related
i am very very sorry for my poor English```
Is there any way that using voice button intead of power button?
the power button is widely used.
when unlock the device , lock the device[turn off screen lock key] and watching time,i offen push the power button ,many times a day.
so i am afraid of the power buttom will be loose or bad,it looks so sicker than any other button.
and i have a opinion that want to give the voice button the locking and unlocking function.
the voice button[on the left side upon the p3650]
is there any software or by changing the regredit ,can do that ?
You could download PHM Suspend PowerToy and either put it in your Start Menu apps or map one of the buttons to that program using using the button mapper in control panel.
There are many applications that allow this, and there are ways to do it manually also. VITO ButtonMapper is one. Search the forum and you'll find more options.
Alternatively, you could set your phone to turn the screen off after less time. Or you could set a long press of the hang-up key to lock the screen. Both of these options are available in control panel.
sonus said:
You could download PHM Suspend PowerToy and either put it in your Start Menu apps or map one of the buttons to that program using using the button mapper in control panel.
There are many applications that allow this, and there are ways to do it manually also. VITO ButtonMapper is one. Search the forum and you'll find more options.
Alternatively, you could set your phone to turn the screen off after less time. Or you could set a long press of the hang-up key to lock the screen. Both of these options are available in control panel.
Click to expand...
Click to collapse
thanks a lot .
i wll have a try.
Hi every1,
I have a captivate with a broken power button and it was driving me nuts for the last 2 months since I couldnot wake up the phone if it went to lock screen. I tried no lock and other apps but they didnt work 100% of the time. Today I found this thread :
http://forum.xda-developers.com/showthread.php?t=850464
It is button remapper utility but it doesnot support captivate yet. However my only concern was to remap my volume buttons to power button.
This is how I did it :
Firstly, we'll need to pull the file that controls the buttons which is entitled "aries-keypad.kl" in "system/usr/keylayout".
To pull the file, connect your captivate and run:
adb remount
adb pull system/usr/keylayout/aries-keypad.kl aries-keypad.kl
Click to expand...
Click to collapse
Edit this pulled file like below :
key 115 POWER WAKE
key 114 POWER WAKE
key 102 HOME WAKE_DROPPED
key 116 POWER WAKE
Click to expand...
Click to collapse
Key 115 was VOLUME_UP while Key 114 was VOLUME_DOWN. I reassigned both to behave as POWER button.
After you're done with your edits, you'll need to save the file properly (NO .txt files!), and then you'll have to push it back to the phone.
adb remount
adb push aries-keypad.kl /system/usr/keylayout
Click to expand...
Click to collapse
Reboot your phone, and then check to see if the remapping works as expected. Your volume buttons should now behave as power button.
Simple and Effective!
For more info, look at threads :
http://forum.xda-developers.com/showthread.php?t=850464
http://forum.xda-developers.com/showthread.php?t=695936
Thanks for this, but I just have two questions.
Does this make us lose control of the volume using the volume rocker?
and
This change allows us to turn turn off the screen as well using the volume buttons, correct? Not just to power the screen on.
Yes you will lose volume control over which ever you choose. I personally chose to lose my volume up since i think it would be more important to lower my volume if i suddenly needed to. To answer you second question yes this function will work as an exact replacement for your power button meaning it turns the screen on, off, powers on and off, and would get you into download or recovery mode depending on the volume rocker you still had available.\
P.S. I did not change all options to the power key. I left the Key 114 VOLUME_DOWN the same.
oh alright. Thanks!
So I decided to go ahead and try this but I seem to run into a problem. I am able to pull the file through adb, but I can't seem to push it back into the phone. It gives me two errors: "operation denied" and "read-only file." Is there any way to fix this? If it matters, I am able to pull the file with having to do the "adb remount" step; idk if there is something wrong, but it won't let me "adb remount" either.
I've made sure I have all the su permissions so i don't what could be wrong.
jtd9 said:
oh alright. Thanks!
So I decided to go ahead and try this but I seem to run into a problem. I am able to pull the file through adb, but I can't seem to push it back into the phone. It gives me two errors: "operation denied" and "read-only file." Is there any way to fix this? If it matters, I am able to pull the file with having to do the "adb remount" step; idk if there is something wrong, but it won't let me "adb remount" either.
I've made sure I have all the su permissions so i don't what could be wrong.
Click to expand...
Click to collapse
You can edit the files on your phone using ES File Explorer.
If you install most asop builds there is usually an option under from control that will let you use the volume button to turn on the screen without losing volume cintrols . Works well too.
I don't mean to hijack this thread, but since we seem to have a similar problem, I figured you guys would have an answer.
How, if possible, are you guys installing custom rom since I really can't get CWM to work with the power button broken?
I'm using Root Toolbox to reboot in recovery, then using the home button for selecting things in CWM.
For example i remapped the power button to vol down. If my phone is off, can I power it on by using the volume down?
takeoutttt said:
For example i remapped the power button to vol down. If my phone is off, can I power it on by using the volume down?
Click to expand...
Click to collapse
No you cannot. The remap only takes affect when android has booted. When the phone is off the power button is still the power button
Sent from my SGH-I897 using xda premium
Thank you, it worked like a Charm...
hd779 said:
If you install most asop builds there is usually an option under from control that will let you use the volume button to turn on the screen without losing volume cintrols . Works well too.
Click to expand...
Click to collapse
That won't let you "sleep" the phone with the volume control button. My button is to the point where I press it sometimes it works, sometimes it brings up the power menu but most of the time it does nothing.
I use volume wake and an app called turn off screen. More inconvenient than power button but once you use the app once to turn off the screen it stays in your list when you long press the home key so I can turn off the phone without having to go the home screen every time.
Rip power button you are sorely missed.
I use rom manager to restart my phone into recovery for flashing.
I also asked this in another thread... I want to disable WAKE with power button...
I edited all . kl files in system > usr > keylayout and deleted WAKE on power button lines with no luck.
I am on galaxy s2 slim 2.7.0 rom. android 4.1.2
For those of you that this method did not work there is a much easy and hassle free alternative!! Takes a minute or two only!!
Get 'Go launcher' from the app market (play)
Get 'Go Locker'
Now Enable Go Locker on your device. And you are done!!
When the screen goes black again, Just press the volume button, The screen wakes up!!
Using this method you don't lose the normal functionality of the volume rocker!!
I respect the effort put in by "puneet_champ" to make this post.. I went through this post, I couldn't find a file named 'aries-keypad.kl' Good thing I didn't!
As a result of which I recalled that I used to have Go Locker on my phone, and that when I pressed the Volume key the screen turned on!!
At that time I found it a little annoying, But now it has turned out to be such a gift!!
infaas said:
For those of you that this method did not work there is a much easy and hassle free alternative!! Takes a minute or two only!!
Get 'Go launcher' from the app market (play)
Get 'Go Locker'
Now Enable Go Locker on your device. And you are done!!
When the screen goes black again, Just press the volume button, The screen wakes up!!
Using this method you don't lose the normal functionality of the volume rocker!!
I respect the effort put in by "puneet_champ" to make this post.. I went through this post, I couldn't find a file named 'aries-keypad.kl' Good thing I didn't!
As a result of which I recalled that I used to have Go Locker on my phone, and that when I pressed the Volume key the screen turned on!!
At that time I found it a little annoying, But now it has turned out to be such a gift!!
Click to expand...
Click to collapse
The issue there is you have to have a custom launcher, and you can't turn your phone off yourself.
Samsung Galaxy S Captivate
Android 4.2.2
Kernel 3.0.66-g6c5dade
Cyanogen 10-1-20130224-NIGHTYLY-captivatemtd
I used both ES File Explorer and ADB method to try to edit the file to fix my power button issue.
Both methods allowed me to edit the file and have the edits remain after a reboot and reviewing of the file. However the edits don't seem to be doing anything as the volume keys still function as volume.
If anyone knows what I might be doing wrong it would be much appreciated.
^^^i had the same issue as you. No matter how I tried editing it to re map buttons it did not work. I trouble shoot this for many weeks and made no progress. A member did suggest making some custom scripts which was above my skill level. Ended up buying a new button. Actually just got the phone back fixed this weekend.
Sent from my Nexus 4 using xda app-developers app
infaas said:
For those of you that this method did not work there is a much easy and hassle free alternative!! Takes a minute or two only!!
Get 'Go launcher' from the app market (play)
Get 'Go Locker'
Now Enable Go Locker on your device. And you are done!!
When the screen goes black again, Just press the volume button, The screen wakes up!!
Using this method you don't lose the normal functionality of the volume rocker!!
I respect the effort put in by "puneet_champ" to make this post.. I went through this post, I couldn't find a file named 'aries-keypad.kl' Good thing I didn't!
As a result of which I recalled that I used to have Go Locker on my phone, and that when I pressed the Volume key the screen turned on!!
At that time I found it a little annoying, But now it has turned out to be such a gift!!
Click to expand...
Click to collapse
The file that you needed and you didn't find is probably not called aries-keypad.kl . Every sort of devices calls it a bit different, with keypad or kpd in the name of the file. For example the file on my device is called mtk-kpd.kl . You see?
Greetings, Plehai
Easier to use an app called button remapper and make the search button the power button. Volume buttons to wake.
Sent from my SGH-I897 using xda app-developers app
I've already read through this thread: http://forum.xda-developers.com/showthread.php?t=1596085 and used this thread http://forum.xda-developers.com/show....php?t=1524858 for remapping my search button to my power button, along with using volume for wake. I have done both of these, and that works just fine.
But, my problem is a little different.
My original power button didn't just stop working, it is actually malfunctioning. Meaning that the power button is being hit at random times, even when I don't press it (or the search button which is now my power button). It is extremely annoying and difficult to use the phone.
Does anyone know of a way to disable the power button completely? I'll settle to using search for off and volume buttons for wake, but I need a way to disable the original power button. The button remapper app from the thread above includes a way to remap or disable every button, except the original power button.
Thanks for your help
It says it all in the second link you posted. Read it all.
Sent from my Galaxy Nexus using xda app-developers app
No.
Like I said, I want to DISABLE the power button completely, because it's malfunctioning. I have ALREADY remapped it to the search key, but the original power button keeps pressing itself, turning the screen on and off, bringing up the boot menu, etc.
The button remapper app allows you remap or disable every button EXCEPT the power button. So while you can remap search to be power, you couldn't remap power to be search (or in my case, disable power completely).
Anyone?
You would have to physically disable the button yourself.
I don't think its possible to fully power off your phone, but what you can do is map the volume up or down buttons as a wake key. I myself want to do this and am still searching for the solution, but if you want to take a crack at it:
The file buttons you want to edit should be in here. somewhere(system/user/keylayout) Root explorer can help you edit the layout without changing the format. That's as far as I can take you for now
Sent from THE JUGGERNAUT 5.0 sgh t989
Try open your nexus..using small screwdriver..
Just pinched it..make it seperate with motherboard..
Sent from my GT-I9100 using Tapatalk 2
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
Hey there,
I am looking for a way to remap my power button to launch a shortcut.
My goal is to make Tasker hibernate all 'greenified' apps, and turn off the screen when I press the power button.
This way I can turn off automatic hibernation in Greenify, and only 'greenify' apps when I explicitly turn off my screen, and not when it times out.
I've looked into several apps, but they all lack the ability to either remap the power button, or making it launch a shortcut.
I am running CyanogenMod 11 on my Samsung GT-I9300.
Hope someone could help me out!
You really don't want to do anything that would make you use the power button more. That is the first thing to die and you've got problems if it does. Much better to map a soft button or gesture to do what you want.
I thought about your comment, but it won't make me use the button more, because I use it anyway to lock my phone.
But nevertheless I could try to use it less. The problem is I use touch to wake the screen, and only if I lock it with the power button touch wil not wake the screen. If I wear the phone in my pocket, my leg wakes the screen trough the pocket.
I now made two profiles. One with proximity sensor, screen off and orientation upside down. And one the same, but orientation face down.
This way it will greenify apps when I put the phone in my pocket, standing or sitting.
I might look into gestures because then the sensors won't have to run when the screen is off saving me some precious juice am I right?
Still like to hear about remapping hw keys.
you can remap your power button here
System/usr/keylayout
then edit with text editor "Generic.kl"
kismetmookz said:
you can remap your power button here
System/usr/keylayout
then edit with text editor "Generic.kl"
Click to expand...
Click to collapse
Can I also map a shortcut to it? And do I have to remap again after an update?
GT-i9300, CM10.2, Googy-Max kernel
I accidentaly found out that there's a difference between the 'Tasker lock system' and the 'Secure Settings lock' actions.
With the Tasker action, touch to wake still works, but with the Secure Settings one it won't.
I now set up two profiles, screen on + proximity + upside down and screen on + proximity + face down. These greenify all apps and turn my screen off with Secure Settings. Also long pressing the menu (touch)key will do the same.
This way, when I put the phone in my pocket it will lock the screen and not wake up when still in my pocket.
But if I leave it face up and the screen times out my apps won't be greenified. I also made a double tap gesture in Nova Launcher that turns my screen off by the default Tasker system lock, so I can wake it by touch and my apps won't greenify.
Not really the idea that I started with, but maybe even better!
joriswagter said:
Can I also map a shortcut to it? And do I have to remap again after an update?
GT-i9300, CM10.2, Googy-Max kernel
Click to expand...
Click to collapse
you have to every update.. but i suggest you getting a CM rom =)
My i9300 is running CM11 nightlys. I update weekly, so it will be a pain in my behind
Sent from my GT-I9300