Is there a way to disable the menu option when long pressing the power button when the phone is in lock mode?
My phone is switching its self off sometimes while in my pocket.
I have tried widget locker but that does the same as the stock screen and still offers this menu while the phone is locked.
I'm using Redmi Note 8 pro Miui 12 Global Rom Android 10 i not found the option sec_key.kl
I can't answer your question directly other than to say you may be blaming the wrong thing - is it really possible that you can keep sustained preasure on the switch for about 8 seconds?
Is it possible that your phone may be rebooting / hanging / freezing in your pocket like mine and many others are?
Have a look here and here to start
Two seconds is enough in my stock lockscreen. So it's very much possible.
Stupid how the shutdown-window is accessible through the lockscreen. Takes away the whole function of this so called lockscreen..
prodygee said:
Two seconds is enough in my stock lockscreen. So it's very much possible.
Stupid how the shutdown-window is accessible through the lockscreen. Takes away the whole function of this so called lockscreen..
Click to expand...
Click to collapse
I agree. For me, it's just under a second. I mean come on. Really?
prodygee said:
Two seconds is enough in my stock lockscreen. So it's very much possible.
Stupid how the shutdown-window is accessible through the lockscreen. Takes away the whole function of this so called lockscreen..
Click to expand...
Click to collapse
But you then have to select "Power off" and then click "OK". Are you suggesting that's happening in your pocket?
naddie said:
I agree. For me, it's just under a second. I mean come on. Really?
Click to expand...
Click to collapse
Tapping or pressing thepower button will bring the swipe screen / lock screen back but this does not stitch off the phone!
From OFF, if I press and hold the power switch, the lock screen comes on, then goes off after 5 seconds. At this point, the phone has not shut down.
From OFF, if I hold the button down for about 9 seconds, it does shut down.
As I said, I don't think this is all that easy to do by accident - maybe even impossible! BTW, my phone is stock.
I'd still say it's the dreaded phantom rebooter
johncmolyneux said:
But you then have to select "Power off" and then click "OK". Are you suggesting that's happening in your pocket?
Click to expand...
Click to collapse
Never mind, you're right about that. I stand corrected. It takes a lot of effort to shut your phone off with the power button, so that can't be the reason OP's phone is shutting off.
http://forum.xda-developers.com/showthread.php?t=1098981
.hide said:
http://forum.xda-developers.com/showthread.php?t=1098981
Click to expand...
Click to collapse
Thanks very much for this
Just removed the wake option from the power button.
To answer a few other posts. The few times it has switched off it has only been while in my jacket pocket. Carrying my niece, seat belt on/off etc. I know it appears difficult to replicate but I have not had any other issues like mentioned in the other forums linked in post 2.
The reason I think its the power button is because I have taken my phone out of my pocket recently and noticed that the menu to shut down has been visable on the screen. I haven't had an issue of it turning off while on a desk etc which is why I think its the power button.
I may be wrong and if it carries on turning off I will look at other options but I do think its silly (how ever hard to replicate) that an option to access the shut down menu while in lock mode is stupid.
By removing the option to wake from the power button and setting widgetlocker to block homehelper there is no way to access the menu the power button had until the phone is unlocked. Which is how the lock screen should work regardless of if it solves my problem or not.
For SGS2 users, I used Root Explorer to edit:
Code:
/System/usr/keylayout/sec_key.kl
I found the following line:
Code:
key 116 POWER WAKE
To disable the Power button from waking up your device, simple delete the word 'WAKE', save the file, and reboot.
Cheers to the others in the HD2 thread for the tip.
same problem with galaxy w
jonamafun said:
For SGS2 users, I used Root Explorer to edit:
Code:
/System/usr/keylayout/sec_key.kl
I found the following line:
Code:
key 116 POWER WAKE
To disable the Power button from waking up your device, simple delete the word 'WAKE', save the file, and reboot.
Cheers to the others in the HD2 thread for the tip.
Click to expand...
Click to collapse
i have the same phantom restart problem......but i cant access the phone to use the root explorer ....wat should i do????
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
Play Store Link
zen kun said:
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
Play Store Link
Click to expand...
Click to collapse
Nice, this was exactly what I was looking for on my Nexus 4 running 4.3 and Cerberus. Unfortunately only the power off menu is disabled (it just flashes for a millisecond) but long pressing the power button still shuts off the phone...
Sent from my Nexus 4 using Tapatalk 2
itenos said:
Nice, this was exactly what I was looking for on my Nexus 4 running 4.3 and Cerberus. Unfortunately only the power off menu is disabled (it just flashes for a millisecond) but long pressing the power button still shuts off the phone...
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
yeah, i cant do anything without change whole rom :/ its just a workaround :/
Sometimes when I flash something using CW, the back menu button is disabled shortly after. Why does that happen?
s1lenz said:
Sometimes when I flash something using CW, the back menu button is disabled shortly after. Why does that happen?
Click to expand...
Click to collapse
when i flashed simply honey for the first time i went to advanced to wipe dalvik and back disappeared so i couldnt go back to reboot
it was because i didnt have the GB bootloaders
maybe thats why ??
well, it's happened to me a few times before. Sometimes if you wait it seems like the back button re-enables itself. Other times it doesn't. Today I was flashing project V and then I flashed a theme over it and the back button disabled so it left me a bit perplexed...
s1lenz said:
well, it's happened to me a few times before. Sometimes if you wait it seems like the back button re-enables itself. Other times it doesn't. Today I was flashing project V and then I flashed a theme over it and the back button disabled so it left me a bit perplexed...
Click to expand...
Click to collapse
it's a certain back and forth combo that disables it. it's not voodoo specific. if you do the same combo again, it'll re-enable. (i can't remember what the combo is though).
When it goes blank, pressing home button brings it back to main menu of recovery.
Running 3 mobiles SII with Foxhound sniper wolf and Siyah kernel 3.2.6.3
Occasionally when I go to unlock my phone with the home button, the torch turns on instead and the screen remains unresponsive. The torch stays on for as long as I hold the button down for, and after a period of responding like this for 10 or so seconds the home button does what it should do again. Using the side lock button gets it out of this most of the time. Any have any ideas why this might be happening ?
TIA
Hey there
When I was in GB, I could easily take screen shots by pressing the home key and meanwhile press the power button, but after upgrading to 4.0.4 this method didn't work anymore,
Do you know a way to capture screen in ics rom without installing a third party program
vol down and power button will do and also you can press the power button bit long it will show u a option to take a screen shot
Try power button and home key this work for me (also 4.0.4)
Hold down power button and home button at the same time and keep it like that for 3-4 seconds. It will take a screen shot.
:angel:
Sent from my GT-I9100 using xda premium
thanks, i just didn't keep it for 3 seconds, as far as i remember in gb it didn't require this time.
Sent from my GT-I9100G using Tapatalk 2
I have been playing with my MOTO E for quite a few days.
The ONE thing that kept bothering me for all these days were the Random Reboots.
After trying many thing finally I have come up with a practical solution to this problem.
I have been having random reboots with the Stock Rom as well as other Custom Roms. Usually while pressing the power button the power menu used to appear for few seconds and then without pressing anything the phone to restart, and this happened with the stock rom as well as other custom roms. I had contacted Motorola, they had asked me to boot into SAFE mode and see if the problem persisted , and it did. So I started using the trail and error method and what I found out that it's a hardware issue, or a issue with how our power button works.
SOLUTION :
So basically what I did is I replaced the power button with the Volume buttons for waking up the device, and for putting it to sleep i assigned the pull up gesture(which is usually for launching google now). I assigned the sleep function in CM11 for the pull up gesture(if you are using the stock rom you'll need to use screen lock apps which allows that function).
After applying this, I have been using my phone for about a month now, WITHOUT a single random reboot.
This is a simple yet effective solution.
Hopefully this'll help you and save you those annoying random reboots.
Can you please explain in detail ? I am using stock rom, and my phone reboots randomly few times a day.
kramkumar said:
Can you please explain in detail ? I am using stock rom, and my phone reboots randomly few times a day.
Click to expand...
Click to collapse
Use "Pocket Lock" application to lock and unlock/wake your device instead of the power button and check if the problem persist...!!
Hello,
as I was going mad with the "Power Button random reboot", I discovered your helpful post. I didn't know it was possible to set the phone to wake up on volume buttons. On the other hand CM allows you to put your phone in sleep mode touching the notify bar twice.
Half a day with these settings, it seems good, Moto E has a real problem with power button, now I have to control myself not to touch it anymore !
Thanks.