Power button fail - Captivate General

So today my power button failed its always on I tried everything to disengage it. Good news is I can get into download mode by pressing the down button is there anyway to remap the power button?? I can flash roms but I cannot use CWM since it wont let me confirm my choice. please help me... my upgrade isnt until dec 6th and I dont have any money for another phone.

Search galaxy tuner on market...never used it but it says it will remap keys
Sent from my SAMSUNG-SGH-I897 using XDA App

I found this on google http://forum.xda-developers.com/showthread.php?t=850464 works wonders this should hold me off until december

Related

[MOD][8/3/2011]Remapped Buttons

Basically, I read some user feedback from Knyghtryda's Camera Mod and came up with this very simple solution. I converted the Power Button to be the camera shutter, which also works for recording and 2.3.4 GB, and does not require a modified camera.apk. The Search Button was converted to function as power on/off. I made these changes by modifying the system/usr/keylayout files.
Honestly, I find this configuration awkward unless I am taking pictures. The search button is my least favorite button and normally only hit it by accident. If this is not an ideal configuration or you can't live without a search function, just give me suggestions.
I'm not a developer or anything, I just like to experiment with my android. If anyone, dev or not, has any suggestions or improvements feel free to comment.
v1.0
Power Button=Camera Shutter, Search Button=Power on/off, No Search Button Function
Issues 8/5/2011
I haven't confirmed this with Gingerbread, only with Froyo: If you remap power button to any other button, it will function as power button but if the screen is asleep and not plugged in for a period of more than about 10 seconds, you have to press original power button followed by the new power button to wake the screen.
I have also tested a few button remapping apps made for other devices, but do not seem to be compatible with Froyo. I will be testing Gingerbread next.
Added Key Configurations
Search Button=Camera Shutter, Power=Default
Credits:
Knyghtryda- idea for the shutter and scripts
Jack$on- idea to relocate power to search button
Installation Instructions
To Change Button Configuration
Run key_remapper.zip or key_remapper_GB.zip for respective firmware version in CWM.
To Return to Default Key Configuration
Run keymap_reset.zip or keymap_reset_GB.zip for respective firmware version in CWM.
DO NOT RUN WRONG VERSION: The files look very similar but I have ran Froyo zip on GB on two occasions and all of the bottom row buttons stop working.
I think making the Search button the default camera button would work better in the long run. Don't like the camera.apk hack.. i end up with a power menu a lot popping up.
Also the power button is just too close to the lens for me.. annoys me.
Is this a configurable mapper?
Just opened the zip.
I see what you did there. I never have gotten around to doing any mods myself yet, cool, can be configured however by changing the lists.
dlang123 said:
Just opened the zip.
I see what you did there. I never have gotten around to doing any mods myself yet, cool, can be configured however by changing the lists.
Click to expand...
Click to collapse
Very simple like I said, some people would be clueless though. Also your idea would work better for me as well.
This is very nice. I hate the power button being on the side of my phone. I feel like I can't use my phone one-handed or have to shift the way I'm holding the phone just to be able to turn the screen on/off.
One quick note... In CWM after installation it says that the power button = search button which is incorrect.
Big thanks! I've been waiting for someone to come up with this!
dlang123 said:
I think making the Search button the default camera button would work better in the long run. Don't like the camera.apk hack.. i end up with a power menu a lot popping up.
Also the power button is just too close to the lens for me.. annoys me.
Is this a configurable mapper?
Click to expand...
Click to collapse
ya I agree. if u just made the search button a camera shortcut key and a camera shutter key im sure alot of people would use it for sure.
Sent from my SCH-I510 using XDA App
PKizzo36 said:
This is very nice. I hate the power button being on the side of my phone. I feel like I can't use my phone one-handed or have to shift the way I'm holding the phone just to be able to turn the screen on/off.
One quick note... In CWM after installation it says that the power button = search button which is incorrect.
Big thanks! I've been waiting for someone to come up with this!
Click to expand...
Click to collapse
Thanks, I see my mistake on the script.
dlang123 said:
I think making the Search button the default camera button would work better in the long run. Don't like the camera.apk hack.. i end up with a power menu a lot popping up.
Also the power button is just too close to the lens for me.. annoys me.
Is this a configurable mapper?
Click to expand...
Click to collapse
Made the Search Button the camera button just for you. I have not tested this on the Froyo build but I do enjoy this configuration better than the other. I have also tested the camera button on the up volume button, but couldn't find a suitable volume up alternative.
sk8tingusmc said:
Made the Search Button the camera button just for you. I have not tested this on the Froyo build but I do enjoy this configuration better than the other. I have also tested the camera button on the up volume button, but couldn't find a suitable volume up alternative.
Click to expand...
Click to collapse
which zip do I download to get the search as camera key?
Sent from my SCH-I510 using XDA App
Can the search key act as a search key normally, except when in camera mode?
kolosok17 said:
Can the search key act as a search key normally, except when in camera mode?
Click to expand...
Click to collapse
I can experiment with it, but not sure.
EDIT: I am not having any luck; I am not saying it is impossible, but it looks like you will have to wait for Knyghtryda to release a modified camera app with with the search button shutter, with the system keymap still set as Search. That may solve your problem! I wish I knew how to make longpress of search do camera and shortpress do search, if it is even possible. I will still look into it, I have just given up for the night.
jkat797 said:
which zip do I download to get the search as camera key?
Sent from my SCH-I510 using XDA App
Click to expand...
Click to collapse
The search_shutter.zip or search_shutter_GB.zip depending what version you are running.
The key mapper seemed to be working at first but I noticed that if my phone sat idle for awhile the search button (now the power button) wouldn't start the phone back up. I would have to use the power button (modded to be the new shutter button) and THEN press the search button to get the screen to come back on.
PKizzo36 said:
The key mapper seemed to be working at first but I noticed that if my phone sat idle for awhile the search button (now the power button) wouldn't start the phone back up. I would have to use the power button (modded to be the new shutter button) and THEN press the search button to get the screen to come back on.
Click to expand...
Click to collapse
Which build are you on? It may have left out the WAKE flag or something. Thanks for letting me know.
Mapping the volume up/down buttons to reflect 'next track' and 'previous track' while the screen is off would be my biggest request.
Can the home button mapped to wake up the phone instead of power? this is my top of the wish list, pretty plzzz
sangweb said:
Can the home button mapped to wake up the phone instead of power? this is my top of the wish list, pretty plzzz
Click to expand...
Click to collapse
That shouldn't be a problem, but I think that I forgot to edit an extra file that effects the bottom row buttons and it seems to be on Froyo builds. I am updating this file to test reliability right now.
sk8tingusmc said:
Which build are you on? It may have left out the WAKE flag or something. Thanks for letting me know.
Click to expand...
Click to collapse
I am on froyo
Sent from my SCH-I510 using XDA App
Please
sk8tingusmc said:
That shouldn't be a problem, but I think that I forgot to edit an extra file that effects the bottom row buttons and it seems to be on Froyo builds. I am updating this file to test reliability right now.
Click to expand...
Click to collapse
I'll be your quality test as guinnea pig if you need one. I know I can use other widget to accomplish this but prefer to avoid 3rd party lock widget because sometime I have to unlock twice. You will be my "God" if you can get it working, Thx.
So I started looking at modding the Camera.apk.. decompiled into byte code.. doesn't look that bad, if I get some time I'll run some diffs on it and the original get what he changed.. and then I'll try to modify it for using the search button. That way search only does Camera if your in Camera.

[Q] Is it possible to flash a rom without a functional power button?

I'm currently on CM 7.1 using the volume button to unlock the phone. I want to try out the ICS port but I have no way of getting into recovery in order to flash it....Is there some way I could flash a rom without using the power button?
You can download an app that lets you reboot into recovery. If those are compatible with the nexus
Sent from my SAMSUNG-SGH-I997 using xda premium
except you have to use the power button to confirm a flash
In cmw you can use the capacitive buttons in place of the physical buttons. I believe the search button functions as the power button/enter, the back button goes back, the menu button is down, and the home button is up (might have mixed the last two up). Hope that helps
thank you so much man. that worked perfectly! got it all sorted out now. just gotta be sure to have an app that lets me use volume keys to wake my phone.

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

Nexus S 4g - Disable broken power button?

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

Is the a way to rewrite hardware buttons

Am not a dev but i would like to get rid of the navi buttons on the bottom so the screen looks bigger and make camera button to home, vol down to back and vol up to task manager, am i just a crazy dreamer
Sent from my XT897 using xda app-developers app
perrotype3 said:
Am not a dev but i would like to get rid of the navi buttons on the bottom so the screen looks bigger and make camera button to home, vol down to back and vol up to task manager, am i just a crazy dreamer
Sent from my XT897 using xda app-developers app
Click to expand...
Click to collapse
you can try editing the keyboard files manually, or else try it with the Button Remapper app:
http://forum.xda-developers.com/showthread.php?t=850464
although i tried changing the OK key to Power, and it didn't seem to take. as for the on-screen nav buttons, i wouldn't mind getting rid of them, but my guess is it would require some fairly heavy re-coding. i have no idea, but it might be crazy dreaming lol. although maybe some custom ROMs that aren't based on the stock software might not have those nav buttons?

Categories

Resources