[Q] Disable powerbutton when screen is off - Galaxy S III Q&A, Help & Troubleshooting

I want to turn off my power button when my screen is off, since my phone keeps restarting itself when I have it in my pocket.
I found this thread: http://forum.xda-developers.com/showthread.php?t=1389946 and tried to follow it. I couldn't find a sec_key.kl file, but there's a bunch of files such as AVRCP.kl, generic.kl, gpio-keys.kl, qwerty.kl and sii9234_rcp.kl . Reading them, I figured that I should modify gpio-keys.kl, as it contains the line ≫key 116 POWER WAKE≪. I tried removing WAKE and rebooting my device, but nothing is changed: my power button still turns the screen on.
Any ideas on how to solve this? I'm running 4.1.2, VikingWay v. 2.3 rom, which is a modified touchwiz rom (which I'm sure haven't changed the keys in any way).

Even if you disable the wake function, longpressing it will turn the device off, there's not a way to change that. It works from recovery, even without a ROM, even when the phone freezes completely, so it's hardwired

so there is no chance? (mod or something else)
if it's really hard-wired than it's a feature

I don't think your phone is rebooting because your pressing the power button.
Its probably some software issue by rom kernel or smtn u installed
Sent from my GT-I9300 using xda premium

oae08 said:
I don't think your phone is rebooting because your pressing the power button.
Its probably some software issue by rom kernel or smtn u installed
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
Exactly.
Are you on a custom kernel if so try flashing it again, or maybe you are oc/uv. If nothing works flash the rom again.
Sent from my GT-I9300 using xda app-developers app

it's definitly not the custom rom!
if my phone is in a handybag i have no problem,
but when i change the back case und put it in a handybag i have reboots... (back case is metallic. so the phone is larger and there is less space left in the bag --> pushing the power button)
it could be the long pressing power button in the lockscreen, which opens a windows with shutdown, reboot,...

FlorianW said:
it's definitly not the custom rom!
if my phone is in a handybag i have no problem,
but when i change the back case und put it in a handybag i have reboots... (back case is metallic. so the phone is larger and there is less space left in the bag --> pushing the power button)
it could be the long pressing power button in the lockscreen, which opens a windows with shutdown, reboot,...
Click to expand...
Click to collapse
Check what eMMC chip you have, then Flash a kernel with the sudden death fix if you are not safe. I remember someone said their phone was rebooting occasionally before it died. You may not have the same problem but it is better to be safe.
Sent from my GT-I9300 using xda app-developers app

the emmc check app says "NO Sane chip", eMMC chip 10/2012
so what is this sudden death fix?
i think the problem is, that the metallic back case makes the phone larger and so the power button would be pressed when it's in my handybag..

Related

[Q] How to disable power button's long press when screen is locked

i have an extremely annoying problem with the vibrant
when i put it in my pocket, locked, after a few seconds it would restart.
apparently the power butter gets long pressed if you hold it for 6-8 seconds, your phone will restart, even when locked.
anyone has a fix for that ?
i would greatly appreciate it...
Mine wont power off or reboot if the screen is locked...
Sent from my SGH-T959 using XDA App
Why would you put it in a pocket with anything else in it, you looking to scratch the phone?
I doubt a key or something would be able to "randomly" press the power button in for that long, you sure it's not the phone?
i've retested this again and again.
holding the powet button while phone is locked and screen is off for about 8 seconds does a reboot.
I don't get the shutdown animation, only the startup.
if you can't reproduce it, what mod/kernel are you using?
I'm on stock kernel ji6
Sent from my SGH-T959 using XDA App

RAZR Maxx Broken Power Button

My Power button quit working yesterday. I am trying to remap my volume button to wake the screen, and be the new power button. I can't seem to get it to work. I am rooted and I am using root explorer to edit the text.
I have found a number of apps that will wake my screen and some of them work okay, but I have to have lock screen enabled because of my corporate email, and once the screen locks, the apps don't work.
Also, I am worried that if my phone ever get's powered down (runs out of battery), I don't know how I would turn it back on.
Any advice???
Have you tried button saviour worked on desire he for me a treat
Sent from my XT910 using xda app-developers app
I tried it
htcmodteam said:
Have you tried button saviour worked on desire he for me a treat
Sent from my XT910 using xda app-developers app
Click to expand...
Click to collapse
I need a physical button. I'm rooted on Gingerbread and I want to update to ics but I can't figure out how to fastboot without a physical power button
There's a few apps in the store like 'quickboot' that'll allow you to boot into fastboot if rooted. Just remember for menus like recovery, you're likely to be stuck once you need to use the power button to select an option
eljefeguapo said:
My Power button quit working yesterday. I am trying to remap my volume button to wake the screen, and be the new power button. I can't seem to get it to work. I am rooted and I am using root explorer to edit the text.
I have found a number of apps that will wake my screen and some of them work okay, but I have to have lock screen enabled because of my corporate email, and once the screen locks, the apps don't work.
Also, I am worried that if my phone ever get's powered down (runs out of battery), I don't know how I would turn it back on.
Any advice???
Click to expand...
Click to collapse
Send it to service to get it repaired. It's pretty cheap for repairing a single button.

[Q] can't access settings?

just bought a note. the problem I'm having is that i can't access the settings. i press it and nothing happens. also the screen turns on randomly stays on. I searched around and I'm wondering if this may have been a store display with a settings disabled so no one messes with it. Is there anything i can do?
Try and enter recovery by pressing volume keys and power until it vibrates then let go of the power button. Once in recovery do a system wipe. Sounds like some heavily corrupted android.
Sent from my Nexus 7 using XDA Premium HD app
thanks i tried that and it didn't change anything.

AT&T Samsung Galaxy S2 Randomly rebooting

Hi everyone,
I have a problem with my S2, it keeps randomly rebooting at random moments. Sometimes it would give hints that it is about to reboot by randomly popping up the "Device Option" window which has the power and restart option (this is when you hold the power button). So I figured that something must be wrong with my power button. I then remapped the power button (not sure if its 100% right) to volume up instead. Now my volume up is my power button. However, my S2 is still rebooting. I then bought a new battery because of the "spin test" I read somewhere (the battery had a tiny bulge in the middle). The new battery was created December of 2013, so pretty new. To my dismay, the problem still persisted. I tried flashing a rom for the first time (Slim Bean 4.2.2) but still to no avail. I did system testing of ram and cpu, everything checked...
I am at a lost here... If any one can give any advice that would be great.
US variants have their own fora, belongs here. I've asked mods to move your thread, sit tight until they do.
Sounds like the power button is going bad. That power menu you mention popping up generally occurs when you hold the power button down briefly, so the fact that it appears on its own would lead me to believe that's your problem.
Baldomero13 said:
...So I figured that something must be wrong with my power button. I then remapped the power button (not sure if its 100% right) to volume up instead. Now my volume up is my power button. However, my S2 is still rebooting....
Click to expand...
Click to collapse
Are you sure that your power-to-volume remap completely disables the power button? I am also leaning toward the power button being the issue.
What button remap method did you use? I would like to see if it disables the power button on my i777.
cyril279 said:
Are you sure that your power-to-volume remap completely disables the power button? I am also leaning toward the power button being the issue.
What button remap method did you use? I would like to see if it disables the power button on my i777.
Click to expand...
Click to collapse
Using root explorer, I went to system > usr > keylayout....
I simply switched VOLUME_UP with POWER on "Generic.kl" (only on key 115 and 116 for this file), then on "Gpio-keys.kl," then on "qwert.kl" It seemed to have worked but there might be some conflict because it would reboot in a minute or so if i pressed the power button.
I don't think I was thorough enough with my changes... I honestly wasn't sure on what I was doing, I was just so frustrated. I tried an app from this forum
http://forum.xda-developers.com/showthread.php?t=850464
but that didn't work.
I changed everything back to normal now. I returned it to bone stock 2.3.4 and did not install any app, it still rebooted, so it must be a hardware problem somewhere. I just updated it through samsung kies to 4.1.2 and ran Framaroot and got it rooted.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
check out my post here: http://forum.xda-developers.com/showthread.php?t=2635602
Sent from my SGH-I777 using XDA Premium 4 mobile app

Software to Diagnose a Phone over USB

Is there any software or commands I could use to diagnose my phone over USB? The screen is black, even during boot (no logos), but the phone is still working in the background. The notification LED blinks normally, menu and back button lights up when pressed, and it even rings when someone calls, though I can't see who it is b/c of the black screen. The screen is not cracked or damaged, and I didn't drop it, so not sure why this is happening. I want to test the GPU or other components before I put down a lot of money for a new screen and it no resolve the issue.
Phone is a rooted SM-N910V that has been working great for 3 months.
Thank you!
Modify_inc said:
Is there any software or commands I could use to diagnose my phone over USB? The screen is black, even during boot (no logos), but the phone is still working in the background. The notification LED blinks normally, menu and back button lights up when pressed, and it even rings when someone calls, though I can't see who it is b/c of the black screen. The screen is not cracked or damaged, and I didn't drop it, so not sure why this is happening. I want to test the GPU or other components before I put down a lot of money for a new screen and it no resolve the issue.
Phone is a rooted SM-N910V that has been working great for 3 months.
Thank you!
Click to expand...
Click to collapse
Hi , try with key kombination .
1. Make sure your phone is OFF
2.Now Press toghether Vol + and power button and hold like that until second vibration (reboot)
3. If that doesn't work try with another combination .
Vol - and Power button
Vol + & Home button & Power button for about 10 second
Vol - & Home button & Power button for about 10 second
Good Luck
Teddy Lo said:
Hi , try with key kombination .
1. Make sure your phone is OFF
2.Now Press toghether Vol + and power button and hold like that until second vibration (reboot)
3. If that doesn't work try with another combination .
Vol - and Power button
Vol + & Home button & Power button for about 10 second
Vol - & Home button & Power button for about 10 second
Good Luck
Click to expand...
Click to collapse
Thanks for the suggestions, though I have already tried all those plus other things.
I've left the battery out for over a day, removed sim card, held power button in to drain any residue power.
I'm lost as to why all of sudden the black screen. Hoping there's a way to test the phone to confirm if its the lcd or something else like the gpu chip. On a laptop you could plug a monitor in the vga port, don't guess phones have this option
Sent from my SAMSUNG-SGH-I337 using Tapatalk
Modify_inc said:
Thanks for the suggestions, though I have already tried all those plus other things.
I've left the battery out for over a day, removed sim card, held power button in to drain any residue power.
I'm lost as to why all of sudden the black screen. Hoping there's a way to test the phone to confirm if its the lcd or something else like the gpu chip. On a laptop you could plug a monitor in the vga port, don't guess phones have this option
Sent from my SAMSUNG-SGH-I337 using Tapatalk
Click to expand...
Click to collapse
I read that the phone was rooted so maybe that custom rom has some bug and that way you get black screen .
Try to flash him back to stock firmware and see if the problem is solved .
It is just rooted on the standard firmware, I didn't install any custom firmwares. But I was wondering if I could possibly reflash it from a backup I made with twrp. I cant get to recovery, well actually I could if I new the exact steps since everything works, I just cant see crap.
Is this even possible or is there another way to access twrp over the usb?
Sent from my [device_name] using XDA-Developers Legacy app

Categories

Resources