Hardware Keys - Sprint LG Optimus G

Hardware keys have also been an issue getting disabled for me. I want to get my hardware keys disabled and just use soft keys to have more of a nexus feel but what ever I do, editing the generic.kl file, using apps designed for it, or blowing up Earth nothing works . Any ideas? It just won't stick.
Sent from my Optimus G using xda app-developers app

Hi, I think I can help. and i just had way to much fun messing with the .kl files (im a geek...) also, since im also using cm11 hopefully they match up to yours.
ok just to clarify(ive never used a nexus) but I'm guessing you want to disable the "back", "home" and "menu" capacitive keys and you're gonna use on-screen buttons? but you still want the volume and power keys?
At first I was gonna suggest using an xposed module to disable the keys. I already use them to "enhance" those keys(double tap "back" switches to last app, long pressing "back" kills current app, etc.etc.) So for what you want, i disabled my gravity box module and installed the xposed additions module and I was successful in disabling the keys(and if you want, you can even set the double tap as the original key function, so single press no "home", double tap "home"...)
Alternatively, looking at the "keylayout" folder, I think you are changing the wrong file. The generic.kl file is not the default keylayout, it's more of a backup in case the vendor doesn't provide a better one. If you look at the file "touch_dev.kl" you'll see four keys that map to the home back and menu, and they are set as virtual. Sooo, i changed the name of the file to "touch_dev.bak" or whatever you want, and after rebooting, NOW it uses the generic.kl file. As a little nifty extra, inside the generic.kl file it sets "menu" and "back" as wake_dropped, so even if the screen is off, pressing either key will wake up the screen. Tho I imagine that might be too easy to accidentally push them while in your pocket. And since we both use neighborhood hackers kernel, the "swipe screen" is probably a better way to turn on the screen.
ok back to you... (and also, make sure you have your onscreen buttons turned on as it can be awkward to navigate without "home" or "back" function) If you now rename the "generic.kl" file to "generic.bak"(or whatever....) and reboot, NOW it should be the way you want. Dont worry, the file "pmic8xxx_pwrkey.kl" will control the power key and "keypad_8064.kl" will control the volume keys. Worked for me at least.
And I should probably mention to make a copy of the whole "keylayout" folder and to also be careful to not delete "pmicxx_pwrkey.kl" as that cause some issues (you should be able to turn on the screen by swiping, but not sure how it effects the deeper power off, power on functions....)
So yeah hope you or others find this useful (and coherent..) as i just got off work a bit ago and sleepy.... and i tend to use run on sentences and and and and lol

enjoyspigeons said:
Hi, I think I can help. and i just had way to much fun messing with the .kl files (im a geek...) also, since im also using cm11 hopefully they match up to yours.
ok just to clarify(ive never used a nexus) but I'm guessing you want to disable the "back", "home" and "menu" capacitive keys and you're gonna use on-screen buttons? but you still want the volume and power keys?
At first I was gonna suggest using an xposed module to disable the keys. I already use them to "enhance" those keys(double tap "back" switches to last app, long pressing "back" kills current app, etc.etc.) So for what you want, i disabled my gravity box module and installed the xposed additions module and I was successful in disabling the keys(and if you want, you can even set the double tap as the original key function, so single press no "home", double tap "home"...)
Alternatively, looking at the "keylayout" folder, I think you are changing the wrong file. The generic.kl file is not the default keylayout, it's more of a backup in case the vendor doesn't provide a better one. If you look at the file "touch_dev.kl" you'll see four keys that map to the home back and menu, and they are set as virtual. Sooo, i changed the name of the file to "touch_dev.bak" or whatever you want, and after rebooting, NOW it uses the generic.kl file. As a little nifty extra, inside the generic.kl file it sets "menu" and "back" as wake_dropped, so even if the screen is off, pressing either key will wake up the screen. Tho I imagine that might be too easy to accidentally push them while in your pocket. And since we both use neighborhood hackers kernel, the "swipe screen" is probably a better way to turn on the screen.
ok back to you... (and also, make sure you have your onscreen buttons turned on as it can be awkward to navigate without "home" or "back" function) If you now rename the "generic.kl" file to "generic.bak"(or whatever....) and reboot, NOW it should be the way you want. Dont worry, the file "pmic8xxx_pwrkey.kl" will control the power key and "keypad_8064.kl" will control the volume keys. Worked for me at least.
And I should probably mention to make a copy of the whole "keylayout" folder and to also be careful to not delete "pmicxx_pwrkey.kl" as that cause some issues (you should be able to turn on the screen by swiping, but not sure how it effects the deeper power off, power on functions....)
So yeah hope you or others find this useful (and coherent..) as i just got off work a bit ago and sleepy.... and i tend to use run on sentences and and and and lol
Click to expand...
Click to collapse
Great info here.
My girlfriend's LGOG just got dropped in the sink. We waited a week and everything is good and powered on but the Power/ScreenLock button must be pressed extremely hard for the phone to register it. Do you have any idea how i can re-route the power button in a way that would still allow powering on with the new button?
Thanks a lot :good:
Btw, the phone is rooted and running beanstalk
EDIT: I changed the function of the volume up key to work as the power/wake and everything seems good while the phone is on but it seems like it wont power the device on from a complete off state. Any ideas on a remedy?

R.Suave said:
Great info here.
My girlfriend's LGOG just got dropped in the sink. We waited a week and everything is good and powered on but the Power/ScreenLock button must be pressed extremely hard for the phone to register it. Do you have any idea how i can re-route the power button in a way that would still allow powering on with the new button?
Thanks a lot :good:
Btw, the phone is rooted and running beanstalk
EDIT: I changed the function of the volume up key to work as the power/wake and everything seems good while the phone is on but it seems like it wont power the device on from a complete off state. Any ideas on a remedy?
Click to expand...
Click to collapse
Hi! Erm yeah I tried experimenting a little and now I'm pretty sure the buttons are handled differently at the lower software levels. Changing the keylayouts only affects the current ROM which makes sense since they are included with every rom and also we are able to navigate Recovery with no rom installed. I can't help much (everything I learn is mostly through google and experimenting), but maybe a kernel or firmware dev can help you.
But through experimenting, one minor way to help: When the phone is completely off, if you hold "volume up" while plugging in power cable, it will turn the phone on and load the "Fastboot" screen. You will still have to press the "power" button to boot normaly, but only a "short press" rather than a "long press". So that might help as I imagine getting it to register a long press is a pain.
Also, have you thought bout replacing the switch? its a tiny board and looks easy to get to. I took off my back cover and it doesnt seem like would to much harder to change it out. I looked on ebay and found this ebay dot com/itm/LG-Optimus-G-LS970-Sprint-Power-Button-Replacement-P912-/331129133388?pt=US_Cell_Phone_Replacement_Parts_Tools&hash=item4d18d5994c and also found this ebay dot com/itm/New-Torx-T4-common-size-for-cell-phones-Laptops-More-devices-/181131150696?pt=US_Cell_Phone_Replacement_Parts_Tools&hash=item2a2c420568
(sry it won't let me post outside links lol)If you'd like I can take it apart further and see how hard it is or you can look on youtube for better visual instructions
Ooohh! and as a no cost/irresponsible/last resort kinda option.... If you look at that replacement power switch ebay picture: See those two gold loops coming out the top on either side of the button? Bend a metal wire and touching those two loops will register as a button press and turn the phone on(tested by me woot!)
K, well hope I helped. Lates yo

enjoyspigeons said:
Hi! Erm yeah I tried experimenting a little and now I'm pretty sure the buttons are handled differently at the lower software levels. Changing the keylayouts only affects the current ROM which makes sense since they are included with every rom and also we are able to navigate Recovery with no rom installed. I can't help much (everything I learn is mostly through google and experimenting), but maybe a kernel or firmware dev can help you.
But through experimenting, one minor way to help: When the phone is completely off, if you hold "volume up" while plugging in power cable, it will turn the phone on and load the "Fastboot" screen. You will still have to press the "power" button to boot normaly, but only a "short press" rather than a "long press". So that might help as I imagine getting it to register a long press is a pain.
Also, have you thought bout replacing the switch? its a tiny board and looks easy to get to. I took off my back cover and it doesnt seem like would to much harder to change it out. I looked on ebay and found this ebay dot com/itm/LG-Optimus-G-LS970-Sprint-Power-Button-Replacement-P912-/331129133388?pt=US_Cell_Phone_Replacement_Parts_Tools&hash=item4d18d5994c and also found this ebay dot com/itm/New-Torx-T4-common-size-for-cell-phones-Laptops-More-devices-/181131150696?pt=US_Cell_Phone_Replacement_Parts_Tools&hash=item2a2c420568
(sry it won't let me post outside links lol)If you'd like I can take it apart further and see how hard it is or you can look on youtube for better visual instructions
Ooohh! and as a no cost/irresponsible/last resort kinda option.... If you look at that replacement power switch ebay picture: See those two gold loops coming out the top on either side of the button? Bend a metal wire and touching those two loops will register as a button press and turn the phone on(tested by me woot!)
K, well hope I helped. Lates yo
Click to expand...
Click to collapse
Very helpful. Thank you !!!
edit: I searched around for an Optimus G repair video and/or instructions with no avail. If you wouldn't mind, taking yours apart further and seeing how hard it is to replace would be extremely helpful. There is a place here in my city that will replace it for 60 dollars but if I can get to it pretty easy, I'd rather do it myself. Thanks again.

enjoyspigeons said:
Hi, I think I can help. and i just had way to much fun messing with the .kl files (im a geek...) also, since im also using cm11 hopefully they match up to yours.
ok just to clarify(ive never used a nexus) but I'm guessing you want to disable the "back", "home" and "menu" capacitive keys and you're gonna use on-screen buttons? but you still want the volume and power keys?
At first I was gonna suggest using an xposed module to disable the keys. I already use them to "enhance" those keys(double tap "back" switches to last app, long pressing "back" kills current app, etc.etc.) So for what you want, i disabled my gravity box module and installed the xposed additions module and I was successful in disabling the keys(and if you want, you can even set the double tap as the original key function, so single press no "home", double tap "home"...)
Alternatively, looking at the "keylayout" folder, I think you are changing the wrong file. The generic.kl file is not the default keylayout, it's more of a backup in case the vendor doesn't provide a better one. If you look at the file "touch_dev.kl" you'll see four keys that map to the home back and menu, and they are set as virtual. Sooo, i changed the name of the file to "touch_dev.bak" or whatever you want, and after rebooting, NOW it uses the generic.kl file. As a little nifty extra, inside the generic.kl file it sets "menu" and "back" as wake_dropped, so even if the screen is off, pressing either key will wake up the screen. Tho I imagine that might be too easy to accidentally push them while in your pocket. And since we both use neighborhood hackers kernel, the "swipe screen" is probably a better way to turn on the screen.
ok back to you... (and also, make sure you have your onscreen buttons turned on as it can be awkward to navigate without "home" or "back" function) If you now rename the "generic.kl" file to "generic.bak"(or whatever....) and reboot, NOW it should be the way you want. Dont worry, the file "pmic8xxx_pwrkey.kl" will control the power key and "keypad_8064.kl" will control the volume keys. Worked for me at least.
And I should probably mention to make a copy of the whole "keylayout" folder and to also be careful to not delete "pmicxx_pwrkey.kl" as that cause some issues (you should be able to turn on the screen by swiping, but not sure how it effects the deeper power off, power on functions....)
So yeah hope you or others find this useful (and coherent..) as i just got off work a bit ago and sleepy.... and i tend to use run on sentences and and and and lol
Click to expand...
Click to collapse
That's one step but what about disabling hardware key lights?
Sent from my LG-LS970 using XDA Premium 4 mobile app

jonahly said:
That's one step but what about disabling hardware key lights?
Sent from my LG-LS970 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
erm.. I'm not on CM11 anymore so I can't say for sure but isn't there usually a setting in "Display" or "Buttons"? It's normally near the setting that controls the button backlight timer.
I do remember one rom where I was unable to find this setting... so if that is the case then you can try creating an Init.d script with:
Code:
#!/system/bin/sh
echo 0 > /sys/class/leds/button-backlight/brightness; echo 0 > /sys/class/leds/button-backlight/max_brightness
I'd elaborate more on that but I tried to set it on my current rom and I couldn't get the settings to stick lol but I've used this method before many times on other roms. I like to set the button brightness to 1 while most roms set it to 2 or 3(actually any number above 2 is max brightness) and I don't think I've ever seen a way to change it permanently without using this script at boot.
Oh you could also use expose modules to turn it off but I dont think there is one that does JUST that. I'm pretty sure Gravitybox has the option in there.
Oh and I use Lux and I saw an option in there too will turn off button backlight
So yeah many options.. Id try looking thru Settings tho.
---------- Post added at 12:01 PM ---------- Previous post was at 11:27 AM ----------
R.Suave said:
Very helpful. Thank you !!!
edit: I searched around for an Optimus G repair video and/or instructions with no avail. If you wouldn't mind, taking yours apart further and seeing how hard it is to replace would be extremely helpful. There is a place here in my city that will replace it for 60 dollars but if I can get to it pretty easy, I'd rather do it myself. Thanks again.
Click to expand...
Click to collapse
It's real simple!!!
I took the back off (thats what the torx screwdriver is for) then after that unscrewed like 7 silver + screws holding the black plastic shield(?) and then used pliers to remove the little button-board. It not even really secured in there (it uses the two metal hooks to make contact with the mainboard) so you just lift it out (tho I had to use a tiny flat-head screwdriver to kinda press in the hooks in order to reinsert it) but it wasnt too bad. A lot better than paying 60 bux damn!! lol
But keep in mind... It's totally possible that the water damaged something else that could be harder to fix. Or alternatively, it could be easier. Maybe the water just rusted the metal contacts a little bit and just need a lil polishing
And I couldnt find any videos either that show the button-board clearly but this one does show taking off the back and the black plastic thing:
www.youtube dot com/watch?v=S4uspcvx3f0
I think after ten posts I'll be able to post outside links.....
well either way, good luck. If I can find something else to take pictures with then I could try posting some close ups of the board. But its really simple to get to.
K laters yo. Again, hope I helped!
oh and apologies to jonahly for sidetracking his thread a lil

enjoyspigeons said:
erm.. I'm not on CM11 anymore so I can't say for sure but isn't there usually a setting in "Display" or "Buttons"? It's normally near the setting that controls the button backlight timer.
I do remember one rom where I was unable to find this setting... so if that is the case then you can try creating an Init.d script with:
Code:
#!/system/bin/sh
echo 0 > /sys/class/leds/button-backlight/brightness; echo 0 > /sys/class/leds/button-backlight/max_brightness
I'd elaborate more on that but I tried to set it on my current rom and I couldn't get the settings to stick lol but I've used this method before many times on other roms. I like to set the button brightness to 1 while most roms set it to 2 or 3(actually any number above 2 is max brightness) and I don't think I've ever seen a way to change it permanently without using this script at boot.
Oh you could also use expose modules to turn it off but I dont think there is one that does JUST that. I'm pretty sure Gravitybox has the option in there.
Oh and I use Lux and I saw an option in there too will turn off button backlight
So yeah many options.. Id try looking thru Settings tho.
---------- Post added at 12:01 PM ---------- Previous post was at 11:27 AM ----------
It's real simple!!!
I took the back off (thats what the torx screwdriver is for) then after that unscrewed like 7 silver + screws holding the black plastic shield(?) and then used pliers to remove the little button-board. It not even really secured in there (it uses the two metal hooks to make contact with the mainboard) so you just lift it out (tho I had to use a tiny flat-head screwdriver to kinda press in the hooks in order to reinsert it) but it wasnt too bad. A lot better than paying 60 bux damn!! lol
But keep in mind... It's totally possible that the water damaged something else that could be harder to fix. Or alternatively, it could be easier. Maybe the water just rusted the metal contacts a little bit and just need a lil polishing
And I couldnt find any videos either that show the button-board clearly but this one does show taking off the back and the black plastic thing:
www.youtube dot com/watch?v=S4uspcvx3f0
I think after ten posts I'll be able to post outside links.....
well either way, good luck. If I can find something else to take pictures with then I could try posting some close ups of the board. But its really simple to get to.
K laters yo. Again, hope I helped!
oh and apologies to jonahly for sidetracking his thread a lil
Click to expand...
Click to collapse
Once again a huge help. Thank you. And yes, Sorry jonahly :good::good:

enjoyspigeons said:
erm.. I'm not on CM11 anymore so I can't say for sure but isn't there usually a setting in "Display" or "Buttons"? It's normally near the setting that controls the button backlight timer.
I do remember one rom where I was unable to find this setting... so if that is the case then you can try creating an Init.d script with:
Code:
#!/system/bin/sh
echo 0 > /sys/class/leds/button-backlight/brightness; echo 0 > /sys/class/leds/button-backlight/max_brightness
I'd elaborate more on that but I tried to set it on my current rom and I couldn't get the settings to stick lol but I've used this method before many times on other roms. I like to set the button brightness to 1 while most roms set it to 2 or 3(actually any number above 2 is max brightness) and I don't think I've ever seen a way to change it permanently without using this script at boot.
Oh you could also use expose modules to turn it off but I dont think there is one that does JUST that. I'm pretty sure Gravitybox has the option in there.
Oh and I use Lux and I saw an option in there too will turn off button backlight
So yeah many options.. Id try looking thru Settings tho.
---------- Post added at 12:01 PM ---------- Previous post was at 11:27 AM ----------
It's real simple!!!
I took the back off (thats what the torx screwdriver is for) then after that unscrewed like 7 silver + screws holding the black plastic shield(?) and then used pliers to remove the little button-board. It not even really secured in there (it uses the two metal hooks to make contact with the mainboard) so you just lift it out (tho I had to use a tiny flat-head screwdriver to kinda press in the hooks in order to reinsert it) but it wasnt too bad. A lot better than paying 60 bux damn!! lol
But keep in mind... It's totally possible that the water damaged something else that could be harder to fix. Or alternatively, it could be easier. Maybe the water just rusted the metal contacts a little bit and just need a lil polishing
And I couldnt find any videos either that show the button-board clearly but this one does show taking off the back and the black plastic thing:
www.youtube dot com/watch?v=S4uspcvx3f0
I think after ten posts I'll be able to post outside links.....
well either way, good luck. If I can find something else to take pictures with then I could try posting some close ups of the board. But its really simple to get to.
K laters yo. Again, hope I helped!
oh and apologies to jonahly for sidetracking his thread a lil
Click to expand...
Click to collapse
haha man! No problem!! The more questions answered the better!

Related

is this a common problem?

my xda2s recently experienced a problem which consists of the volume bar keep going up and up making the 'end' noise repeatedly, and if say the volume bar on the side were to be pressed down, it would go down n go up again...
secondly, the power button is not functioning well, it can turn the phone on by clicking it once (as usual) it can turn the backlight on and off by holding it (as usual) but it wont turn off by pressing it once, or anything...
help please, thank you
doesn't happen with any of my 3... sounds like you've got them there problems.
pYroboy,
let me know if you found the resolution. My problems are similar to yours...
Thanks.
doesnt happen to any of my two BA...
try opening up your unit and clean up the contacts.
I did open it, but could not figure out which contact to clean. Power switch is sooooooo freaking small, I did not figure out what I could clean there, it seems that it is 2x4mm in size soldered for good to the board. Same about volume rocker/switch on the side.
How is it possible to clean them??? I could not figure out what could be cleaned there without detaching the switches from the board.
Does anyone sell these parts? Maybe it would be easier (although not easy also because they are so freaking small) to replace them??
Guys, need advice from you... from the ones who fooled around with similar parts...
Thanks.
try an air brush. or a fast evaporating contact cleaner.
just make sure you apply enough pressure not to blow the sensitive parts away.
*just becareful
OK. Thanks. I'll try that. But where do you people get that stuff. Do they sell it in electronics stores, or I need to look someplace else?
I need to do something anyway, because today I can't turn ON. I used timeout of 1 minute on battery power to power it OFF. But not being able to turn the whole thing ON really put me down....
Is there any program to remap Power On/Off button to Recorder or Media Player buttons on the side? They are all 3 the same switches. If it would be possible, I'd get by using one of those buttons.... Just running out of freaking ideas here....
contact cleaners can be found in your local radioshack(i.e. electronics or computer botique/shops).
regarding the power button i think that is hardwired to be the only powerbutton for the unit. sad to say you cant map it to powerup your BA.
pecq said:
OK. Thanks. I'll try that. But where do you people get that stuff. Do they sell it in electronics stores, or I need to look someplace else?
I need to do something anyway, because today I can't turn ON. I used timeout of 1 minute on battery power to power it OFF. But not being able to turn the whole thing ON really put me down....
Is there any program to remap Power On/Off button to Recorder or Media Player buttons on the side? They are all 3 the same switches. If it would be possible, I'd get by using one of those buttons.... Just running out of freaking ideas here....
Click to expand...
Click to collapse
Assuming you have the button lock enabled you can wake it up by receiving a phone call, and then disable the button lock and use any button to wake up/turn on the device. This is not the most elegant solution, but if cleaning fails to fix it then it may be your only option.

PLEASE HELP :( Screen during phone call issue

I screwed up.
I was installing yet another new screen on my phone, and I must have damaged the sensor that dims and brightens your phone. Somehow.
The problem is everything on the phone works, except when I make a phone call. Then the screen turns off and will not turn back on unless I take the battery out. This makes me think the sensor still thinks the phone is held up to my head. None of the buttons work, no matter how much I press them or no matter how long I wait to press them.
I don't know what to replace, otherwise I could likely solve the problem on my own, but I think this issue could be solved on the software side fairly simple.
Could anyone recommend an App (or maybe a ROM.. but that limits me) that disables that stupid head detection? I can not find it in settings either.
drizzt5 said:
I screwed up.
I was installing yet another new screen on my phone, and I must have damaged the sensor that dims and brightens your phone. Somehow.
The problem is everything on the phone works, except when I make a phone call. Then the screen turns off and will not turn back on unless I take the battery out. This makes me think the sensor still thinks the phone is held up to my head. None of the buttons work, no matter how much I press them or no matter how long I wait to press them.
I don't know what to replace, otherwise I could likely solve the problem on my own, but I think this issue could be solved on the software side fairly simple.
Could anyone recommend an App (or maybe a ROM.. but that limits me) that disables that stupid head detection? I can not find it in settings either.
Click to expand...
Click to collapse
I had a similar problem to this once but it was related to a kernel. When id take the phone away from my head the screen would stay off and not come back on until i would swipe my finger back and forth over the proximity sensor a couple times. The dev of the kernel Tiny figured out the issue and fixed it in his next release. Kind of sounds software related but hard to tell. If it does need replacing its called the "CM3602 Proximity sensor - 0.5mA by Capella Microsystems". I believe this part acts as both the proximity and light sensor. Does your screen still dim and brighten when set on auto brightness? There is an app on the market called "Proximity screen off" but i cant figure out how to get it to work, mabey you can.
I actually found a simple way to dissable it. Add the line below anywhere in your build.prop
Code:
gsm.proximity.enable=false
I verified that it does work.
cmlusco said:
I had a similar problem to this once but it was related to a kernel. When id take the phone away from my head the screen would stay off and not come back on until i would swipe my finger back and forth over the proximity sensor a couple times. The dev of the kernel Tiny figured out the issue and fixed it in his next release. Kind of sounds software related but hard to tell. If it does need replacing its called the "CM3602 Proximity sensor - 0.5mA by Capella Microsystems". I believe this part acts as both the proximity and light sensor. Does your screen still dim and brighten when set on auto brightness? There is an app on the market called "Proximity screen off" but i cant figure out how to get it to work, mabey you can.
Click to expand...
Click to collapse
I have resorted to that very same app and I can't figure out what to do with it either.
And when I make a phone call, the phone simply stays off ... forever. I can still hear voice mail and all that stuff. I need to take out the battery and power the phone back up after ANY call...
I am pretty sure I know what I did to break it, but I rather fix it software wise if someone could explain what to do. I'll fiddle with that app a little more.
drizzt5 said:
I have resorted to that very same app and I can't figure out what to do with it either.
And when I make a phone call, the phone simply stays off ... forever. I can still hear voice mail and all that stuff. I need to take out the battery and power the phone back up after ANY call...
I am pretty sure I know what I did to break it, but I rather fix it software wise if someone could explain what to do. I'll fiddle with that app a little more.
Click to expand...
Click to collapse
Did you see my post right before your last post. You can dissable the sensor with a build.prop edit.
Use a file explorer to go to /system/build.prop and use a text editor to add the line from my post above.
cmlusco said:
Did you see my post right before your last post. You can dissable the sensor with a build.prop edit.
Use a file explorer to go to /system/build.prop and use a text editor to add the line from my post above.
Click to expand...
Click to collapse
I did that, it didn't work. Can it be at the very bottom of the build.prop?
edit: Tried again, it just simply disables all the buttons.
I had this issue once before and it was because I had the sensor covered with a piece of double sided tape. But this time I fear I just straight up damaged the sensor somehow while repairing the screen.
What works:
EVERYTHING!
What doesn't work:
I dial someone or they dial me and if I answer the phone, meaning I enter into a phone call, the screen goes dark and every button is disabled.
Let me try everyone now while I have it in this mode:
1. Power button
2. Volume up and down
3. home
4. menu
5. back
6. search
7. trackball
Only way to get back into home screen is to take out the battery.
Ugh, I wish I had just been more careful. If I can't fix this with software I might have to suck it up and live with this giant pain in the ass until my upgrade time
The build.prop edit worked for me, and it didnt dissable any buttons. The edit can be anywhere in the file as long as its on it own line. Did you remember to mount system r/w first, and to save the file after editing? Are you rooted and s-off?
cmlusco said:
The build.prop edit worked for me, and it didnt dissable any buttons. The edit can be anywhere in the file as long as its on it own line. Did you remember to mount system r/w first, and to save the file after editing? Are you rooted and s-off?
Click to expand...
Click to collapse
I think so for all that. How do I double check s-off?
Also, I found a way to get the buttons to come back on after I enter a phone call or the phone call ends.
Simply plug the phone into a power charger, because that always wakes my phone up. But other than that I can't find a way and that is useless to me out in the "field".
drizzt5 said:
I think so for all that. How do I double check s-off?
Also, I found a way to get the buttons to come back on after I enter a phone call or the phone call ends.
Simply plug the phone into a power charger, because that always wakes my phone up. But other than that I can't find a way and that is useless to me out in the "field".
Click to expand...
Click to collapse
You can see if your s-off by booting into hboot. Pull the battery reinsert and then hold volume down and power untill a white screen appears. The end of the first line should say either s-off ot s-on.
cmlusco said:
You can see if your s-off by booting into hboot. Pull the battery reinsert and then hold volume down and power untill a white screen appears. The end of the first line should say either s-off ot s-on.
Click to expand...
Click to collapse
It says S-off.
Download and flash this thru recovery like you would a rom or mod. http://dinc.does-it.net/dissable_proximity.zip It should dissable it for you. The first boot may take longer than normal as it also clears the cache and dalvik-cache, so be patient.
I figured out how to use that app Proximity Screen Off, but it wont help you in your situation. What it does is allow you to turn on and off the screen by holding your finger over the proximity sensor for a configurable ammount of time. Basicly created to prevent wear on the power button. I kind of like it, especially since i think my power button is wearing out. Despite cleaning it it tends to stick sometimes.
cmlusco said:
Download and flash this thru recovery like you would a rom or mod. http://dinc.does-it.net/dissable_proximity.zip It should dissable it for you. The first boot may take longer than normal as it also clears the cache and dalvik-cache, so be patient.
Click to expand...
Click to collapse
Flashing now, I will update you once it is done <3.
It must be something else. I flashed it and it still refuses to keep the screen on and the only way I can revive it besides taking out the battery is plugging it in to get back to the lock screen....
*sigh*
That sucks. To rule out a software issue i would do a nandroid and then flash a fresh rom and see if that fixes it. If not i would say you need a new sensor.
cmlusco said:
That sucks. To rule out a software issue i would do a nandroid and then flash a fresh rom and see if that fixes it. If not i would say you need a new sensor.
Click to expand...
Click to collapse
I might check out the new ICS rom. Maybe by some miracle it will fix the issue.
cmlusco said:
That sucks. To rule out a software issue i would do a nandroid and then flash a fresh rom and see if that fixes it. If not i would say you need a new sensor.
Click to expand...
Click to collapse
I put ICS on it. Ics runs flawlessly. but the phone problem persists ....
ugh I might just get a new phone... its a damn shame. I wasn't gonna upgrade this phone till it dropped dead.
edit: If anyone else has suggestions let me know

Broken power button

I have a sort of weird issue. I've got a rooted evo4g with an unlocked bootloader running alter rom. I had some issues with it a while back, so I ran fix permissions and cleared the caches through amon-ra. when I did that, all hell broke loose. my power button stopped working and the volume button took over to wake up the screen. Not only does the power button not work when booted anymore, it won't even work in recovery or in the bootloader. the volume buttons will navigate in recovery, but not in bootloader.
I would like to do a nandroid backup so I can reflash my phone and then just restore my texts, call logs, etc on a clean flash...but since I can't select any menu options in recovery I can't do a nandroid backup.
I have cwm touch for my nexus s 4g, but I don't see one for evo 4g....only standard evo. is that one the same? can I still use it on an evo4g? I know some phones are not interchangeable with recovery on variants...like nexus s, for example hs two recoveries...one for 3g, one for 4g.
also, does anyone have any idea what may have caused the buttons to go haywire like this? I've never seen anything like it. I mean, sure buttons die. All moving parts fail at some point...it's in their nature....but switching control to another hw button???? That jusy makes my head hurt to think about how it could have happened!! lol
Download smelkusmod recovery. It has touch scrolling and you can scroll, select and Deselect with the haptic buttons.
Your power button issue could be a hardware failure. Possibly one of the connectors came undone rendering the power button useless.
death-by-soap said:
Download smelkusmod recovery. It has touch scrolling and you can scroll, select and Deselect with the haptic buttons.
Your power button issue could be a hardware failure. Possibly one of the connectors came undone rendering the power button useless.
Click to expand...
Click to collapse
even though death by soap has twice as many posts but the same number of thanks as you, he is right on about this.
smelkus is a great recovery and is, essentially, touch screen. what do you do if your phone turns completely off, and are you a little familar with adb?
johnny.dalvik-cache said:
even though death by soap has twice as many posts but the same number of thanks as you, he is right on about this.
smelkus is a great recovery and is, essentially, touch screen. what do you do if your phone turns completely off, and are you a little familar with adb?
Click to expand...
Click to collapse
hmmm...good question. It's actually my sister's phone. I'm also interested in knowing how she turns it back on...I'll definitely ask her that. when I turned it off I had to pull the battery and I quickly re-inserted it so it would trigger a start-up, but I'm not sure about how she turns it on if it's been off for a while.
...and yes, I'm novice-level with adb. I know adb, fastboot, etc...enough to get by, at least I have a black belt in google-fu, too...so anything I don't understand google teaches me lol
(btw, my thank you's came from the ns4g section. I posted the first working jb rom for my device and everyone clicked thanks for it....I'm no star dev or anything to say the least )
****
I just texted her...she says it always auto boots when the battery is re-inserted as long as it has a charge. it almost sounds like the power button is just stuck in a pressed position...but wouldn't I notice that when android is booted by the power control menu always being displayed (which I can't even get to display if I do press the button)???
****
I just tested with my ns4g by holding down the power button all the way through a reboot, until after the phone FULLY booted....no power menu popped up.
what are the odds the button is just stuck in a pressed position?? anyone want to take bets? I'm gonna take it apart tonight and see if that's what it is unless someone has any other ideas.
death-by-soap said:
Download smelkusmod recovery. It has touch scrolling and you can scroll, select and Deselect with the haptic buttons.
Your power button issue could be a hardware failure. Possibly one of the connectors came undone rendering the power button useless.
Click to expand...
Click to collapse
hp420 said:
hmmm...good question. It's actually my sister's phone. I'm also interested in knowing how she turns it back on...I'll definitely ask her that. when I turned it off I had to pull the battery and I quickly re-inserted it so it would trigger a start-up, but I'm not sure about how she turns it on if it's been off for a while.
...and yes, I'm novice-level with adb. I know adb, fastboot, etc...enough to get by, at least I have a black belt in google-fu, too...so anything I don't understand google teaches me lol
(btw, my thank you's came from the ns4g section. I posted the first working jb rom for my device and everyone clicked thanks for it....I'm no star dev or anything to say the least )
****
I just texted her...she says it always auto boots when the battery is re-inserted as long as it has a charge. it almost sounds like the power button is just stuck in a pressed position...but wouldn't I notice that when android is booted by the power control menu always being displayed (which I can't even get to display if I do press the button)???
****
I just tested with my ns4g by holding down the power button all the way through a reboot, until after the phone FULLY booted....no power menu popped up.
what are the odds the button is just stuck in a pressed position?? anyone want to take bets? I'm gonna take it apart tonight and see if that's what it is unless someone has any other ideas.
Click to expand...
Click to collapse
just saw this thread. and seeing as how the phone auto-boots when the battery is put in, it does sound like the power button is stuck in the 'down' position. i recently went through a similar thing with the power button, and i opened up the phone and just put the button back in place. does the button acutally LOOK like it's depressed ( ...hehe..sorry, i dont know how else to ask that..) like..is the button not protruding out like it should? if you're down for opening the phone up (which is surprisingly easy if you have the proper little screw-drivers) then it MIGHT be an easy fix. i had never done it before, and it really was easy. you can put that black-belt to use for some easy video tutorials. but, please procede with caution.
atljatl said:
just saw this thread. and seeing as how the phone auto-boots when the battery is put in, it does sound like the power button is stuck in the 'down' position. i recently went through a similar thing with the power button, and i opened up the phone and just put the button back in place. does the button acutally LOOK like it's depressed ( ...hehe..sorry, i dont know how else to ask that..) like..is the button not protruding out like it should? if you're down for opening the phone up (which is surprisingly easy if you have the proper little screw-drivers) then it MIGHT be an easy fix. i had never done it before, and it really was easy. you can put that black-belt to use for some easy video tutorials. but, please procede with caution.
Click to expand...
Click to collapse
I can't say if it looks pressed since it's not currently in front of me...I know exactly what you mean, though. The inner workings of the button get stuck, and the outer rubber piece will be sort of caved in instead of sticking out like it should.
I build gaming computers as a side-hobby. I'm sure a little disassembly won't be too difficult, as long as I'm not removing any of the guts and I can just get to it by opening the case, I should be ok....too much more and I run into issues when things are that tightly packed into a case.
(reading a tear-down tut now )
Awesome! It should be a piece of cake for you, especially with your video game background. Cool. Let me know how it goes.
Sent from my PC36100 using Tapatalk 2

[Q]How to modify Home Button function in Sleep mode

Is there a way to modify the function of the HOME BUTTON so it doesn't wake the phone?
My Arc S keeps on unlocking inside my pocket and takes a lot of snapshots and drains the battery.
And another thing, what variable to use to open RECENT APPS via a hardware key, for example the camera shutter key.
Thanks in advance.
To prevent screen from turning on in pocket, disable the feature, which turns on screen via home button. Will post instructions later.
Sent from LT18i with custom firmware by myself.
Someguyfromhell said:
To prevent screen from turning on in pocket, disable the feature, which turns on screen via home button. Will post instructions later.
Sent from LT18i with custom firmware by myself.
Click to expand...
Click to collapse
Would really much appreciate it, I've been tormented by this accidental unlock in pocket and drains my battery because of the camera.
Thanks in advance.
Oh, and about the other thing, is it possible? What if I substitute the RECENT APPS for the MENU BUTTON, would the 3dot option appear on some apps?
Someguyfromhell said:
Will post instructions later.
Click to expand...
Click to collapse
Take a file explorer, that can access root folders (ES File Explorer for example), make sure to go into settings and allow access and write to system folders.
Then go to /system/usr/keylayout, open the file pm8058_keypad.kl with ES File Explorer's default Note Editor (long press, Open As, Text), find this line
Code:
key 102 HOME WAKE_DROPPED
and change it to
Code:
key 102 HOME
So just remove the WAKE_DROPPED part.
Wrote it from my head, might have mistakes. Hopefully not.
EDIT: About the recent apps, this is coded somewhere in framework, I can't help you with that. However, the on-screen buttons do not show Menu button, it will only appear on the right side, if there is an app, which makes use of the Menu button and no other possibilities are available (depends on how the app is built).
Thanks a lot for the help sir.
It did the trick and the HOME BUTTON doesn't wake the phone from sleep.
Really much appreciated help.
Thanks again.
I have another question sir, How can I assign the WAKE function in some other button, let's say the VOLUME DOWN?
I tried replacing the WAKE with WAKE_DROPPED but it didn't work, I tried adding it without removing the WAKE and failed.
So is there a way for this?
Thanks again in advance sir.
This particular problem is the reason I use a lock pattern, not because of the security of my phone, but because of the many photos my pocket takes. However, it would be nice if we could wake the phone using the volume rockers, just not to abuse the power button. I also tried to place WAKE_DROPPED on such buttons with no success, help pretty please
Actually I was looking for a mod to use the proximity sensor to know when it is in the pocket, and not allowing the menu button to wake the handset, but this is way better, thanks pal :highfive:
-----------------------------------
Edit:
I found out that the volume rockers actually work well waking the screen, but, you have to select in security>Screen Lock>None
In such case the volume rockers will work to wake the phone (no need to add anything to the VOLUME DOWN line, as it already says WAKE)
Now the question is how to change it to do it while having slide, pattern or password as screen lock
Yeah, that's what I'm after. Using the Volume Rocker to function like the HOME Button in waking the phone.
Will someone help us out in customizing this. The POWER BUTTON is pretty far for my fingers, and the VOLUME DOWN sits just right under my thumb when holding the phone.
Would really much appreciate it if someone help us out.
Maybe they can include something like this on custom roms, giving the users the option to pick which would they prefer.
ajaydsantos said:
Yeah, that's what I'm after. Using the Volume Rocker to function like the HOME Button in waking the phone.
Will someone help us out in customizing this. The POWER BUTTON is pretty far for my fingers, and the VOLUME DOWN sits just right under my thumb when holding the phone.
Would really much appreciate it if someone help us out.
Maybe they can include something like this on custom roms, giving the users the option to pick which would they prefer.
Click to expand...
Click to collapse
It is already on some custom ROMs.
CyanogenMod/FXP based and MIUI ROMs, if I am not mistaken.
But I'm using Zelly Cream 2.5 and it doesn't have that. Hope that it can be ported to this rom.
How do i do it if it's possible? I don't have the know how on such programming/language, will someone help me.
Hi, I have my xperia arc s also with the same problem with you... i actually downloaded root explorer and i can navigate the system data/files but i cannot modify the files mentioned the HOME WAKE_DROPPED... because my unit is not a rooted one...
Please help me to disable the home button by not rooting my phone... Can you make an APK file to disable this function? please please help

[Q] How to disable random reboots by pressing power button in pants pocket?

I love this phone! But one thing is really annoying.
I keep this phone in my jeans pocket, but often while walking I hear the reboot sound. The power button is pressed in my pocket. And if this happens long enough, the phone will reboot, even when the phone was locked...
Is there a way to disable this behaviour?
If you install Widget Locker Lockscreen I think you can disable Power button at lockscreen but I don't use this app anymore for several months.
That's a paid app. Seems excessive just to disable this annoying behaviour
seems weird to me. I never had a reboot when phone was in my pocket. Prior to note 2 I had a S2 with same power button construction and behavior, and never expriened this.
Do you use a silicon protecting case? Those cases put a small but excessive pressure on side buttons thus a little push will trigger buttons.
Sent from my GT-N7100 using Tapatalk 2
sam5154 said:
seems weird to me. I never had a reboot when phone was in my pocket. Prior to note 2 I had a S2 with same power button construction and behavior.
Do you use a silicon protecting case? Those cases put a small but excessive pressure on side buttons thus a little push will trigger buttons.
Sent from my GT-N7100 using Tapatalk 2
Click to expand...
Click to collapse
No, I'm using it bare.
Hold your phone, locked with the screen off, and keep holding the power button. You'll see that it'll start rebooting.
I'm not wearing skinny jeans or anything like that, the phone has plenty of room in my pocket... But apparently it's enough to press the button e.g. while driving with my seat belt on.
The annoying thing is that I sometimes don't hear it rebooting and then I'm unreachable for hours until I look at my phone and input the sim code again. Now that I think of it, I think I'll disable sim code input, that will at least connect me again after a reboot.
The problem apparently already existed with the Note 1:
http://forum.xda-developers.com/showthread.php?t=1369805
On further googling, this actually is the soft reset feature!!
There goes my hope of disabling it...
EDIT: Another happy user: http://forum.xda-developers.com/showthread.php?t=1401852
I guess it would be possible to disable soft reset, but you'd need to build a kernel with the feature.
Sent from my GT-N7100 using Tapatalk 2
Try this app: https://play.google.com/store/apps/details?id=com.nezdroid.lockscreenprotector
Hi all i made an app to avoid this, blocking power menu on lockscreen no need of root working on 2.2+ and you can set up a custom menu (power and reboot need root) so you should take a look and if you like please leave a 5 stars, or let me know any issues
this is only for lockscreen , when you are outside lockscreen you have the normal power menu
here its the link to play store
Click to expand...
Click to collapse
EDIT
Or with a rooted phone:
Once the phone is rooted, you install an app called Root Explorer which you get from the Google Play Store.
With this app, do the following please
Go to system > usr > keylayout
Find seckey.kl
Made backup from seckey.kl file.(copy paste in same place then rename or paste to other folder)
Change seckey.kl permission to become 0777, so we can edit the file.
Using text editor open secky.kl
find
KEY 116 POWER WAKE
edit to become
KEY 116 POWER
Save the change
Change seckey.kl permission back to 0655
Reboot the device
Click to expand...
Click to collapse
Fixed..... Replace the power button worth Rs, 500 in samsung service center
evilpharmacist said:
I love this phone! But one thing is really annoying.
I keep this phone in my jeans pocket, but often while walking I hear the reboot sound. The power button is pressed in my pocket. And if this happens long enough, the phone will reboot, even when the phone was locked...
Is there a way to disable this behaviour?
Click to expand...
Click to collapse
Replace the power button worth Rs, 500 in samsung service center
I replace that button now my phone works smooth no problem yet....
See that pic my replaced button thats the ****ing button do that automatic restart
Problem Solved
Put it in your left pocket. .. it happens if you put it in your right pocket
Sent from my GT-N7100 using Tapatalk 2
If my phone was rebooting in my pocket I would guess a ROM issue before imaging I'd pressed the power button too long.
Perhaps it's time to charity shop those skinny jeans.
Just in case somebody out there running a custom ROM has got the same problem and looks for an easy workaround:
There is a Xposed Module that allows you to modify the power button menu to your preferences and also to completely disable it when the phone is locked.
I have not tested it yet and it is unfortunately discontinued by the developer, but it looks pretty solid to me.
It was intended to run on Sony Xperia devices, but also works on many other devices with AOSP based ROMs.
ATTENTION: It does NOT WORK for TOUCHWIZ ROMs although you can install it to them via Xposed Installer!
Head over to the Advanced Power Menu XDA-Thread.
Cheers!

Categories

Resources