[Q] Power button dead after dropping in the pooper - Motorola Atrix 2

Like the title says, i somehow managed to drop my phone in the toilet but i pull it out immediately and unlocked the screen and with relief, IT TURNED ON. But later as i took out the battery to dry off my phone and such, i put the battery in the phone and it automatically turns on and the power button wont put the screen to sleep/lock it :|| Any suggestions or ways to fix it? IM currently leaving my phone and battery in a bowl of rice for safety measures haha.

remap camera button, go system/usr/keylayout/generic.kl then look for camera button (key 212 if i remember ok) then change it to POWER folow the avobe scheme and put WAKE see if that works
edit :it is key 212 and the format you need to folow is :
key 212 POWER WAKE
sent from the gray stuff inside my skull

so my power button is totally gone? haha darn not even a year yet, so close.

I went in to my system folder and couldnt find the 212, and i found a app that locks the screen and turns it off but now i cant turn back ont he screen! haha

demonoid phenomenom said:
remap camera button, go system/usr/keylayout/generic.kl then look for camera button (key 212 if i remember ok) then change it to POWER folow the avobe scheme and put WAKE see if that works
edit :it is key 212 and the format you need to folow is :
key 212 POWER WAKE
sent from the gray stuff inside my skull
Click to expand...
Click to collapse
You can turn off, but you cannot turn on the screenby camera key after remapping

I've just make the remapping and it did work for me
http://db.tt/19Mfd3QI
make it rw--r--r
sent from the gray stuff inside my skull

Related

Backlight & Stand by mode

I have an Att Fuze and my question is: Is there a way to "wakeup" the phone from stand-by (completely balck screen), by just pushing any button on the phone? Right now I have to push the top power button to wake it up.
Are there any setting to adjust it? I have an MDA and on the power setting there is the option to select it but I cannot find it on the Fuze
maybe you are looking for something like this?
http://www.fuzemobility.com/?p=1545
I wouldn't suggest to do that - the power button at the top is strategically placed to act also like a keylock for other buttons that are more "naked" while phone is in pocket or something
You can also pull out the stylus to wake it up.
Thnx for the link....

Turn on the phone from sleep without pressing power button

Ok, the story is, my phone goes to sleep every 30 secs to save battery. And since I'm still very excited about it, I turn it on quite often, just to check . And the only way to turn on from sleep (as far as I know) is pressing the power button. Well, that means that button will be pressed a lot! I'm just worrying that it will soon have problems. It would be much cooler if we can touch some Android button down there, Home button for example, to turn on the phone. Do you know anyway to do that?
PS: I tried to google as well as search through out this forum, but the keywords are pretty common, so it's really hard though.
I wouldn't want the capacitive buttons activating my phone, think of all the butt-dialing
I think Widget Locker allows for any hardware button to wake up the device, so then you'd be able to distribute the fun between your volume rocker and the power button.
Widget locker does allow the use of the volume rocker to wake up the phone.
a short term fix or you might be to got o settings-->Applications-->Development-->Stay awake....
so as long as you are charging the screen will not sleep. dont forget to change the setting back if you walk away for a bit... or go to bed
Thanks guy. I think the volume button is good enough
Rumur said:
Widget locker does allow the use of the volume rocker to wake up the phone.
Click to expand...
Click to collapse
thanks rumur, i going to give widget locker a try.
i hate it must reach for power button to wakeup!
i like "Simply Lockscreen", it also turns on cappy with volume buttons.
give it a try
On a similar note, do you all have any app tips that will allow me to do something special with the volume button while the screen is off (maybe long press or double click, or press both volume buttons at once) that will in turn toggle silent/vibrate on and off?

[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

remap volume buttons to power button - for people with broken power button Captivates

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

Galaxy s6 Capacitive buttons light

I don't know if I post this in the right section. I just wanted to let others know that I've found a way to disable the light from capacitive buttons even if the phone is not in Power Saving Mode, and ofc without any third party software.
You dial *#0*# and you go to the bottom and press "Black". Now, if you hold the power button you can chose to restart the phone and the backlight will stay off.
If you press volume up key after you pressed "Black" it will just exit.
At first I was thinking I broke my phone. Then I realise how it works. Let me know if it helps.
No need for all this. This app can do what you want and more.
https://play.google.com/store/apps/details?id=com.notquiteinsane.galaxybuttonlights&hl=da

Categories

Resources