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 :/
Related
been having a problem with the 2.2 roms. I install them and the screen will go to sleep during a call, and the only way to wake it up is to either hang up the call or plug in the charging cord. The phone will wake normal when i flash back to a 2.1 rom. Does anyone have any ideas how to fix on froyo roms.
Enable trackball to wakeup under cyanogen settings or something like that.
press send + vol up (or vol down, believe it's vol up) to wake up phone. mods please move to q&a thread. thanks and hope this helps.
mjb413 said:
press send + vol up (or vol down, believe it's vol up) to wake up phone. mods please move to q&a thread. thanks and hope this helps.
Click to expand...
Click to collapse
You almost had it.
Press and hold vol+, then while holding that, press and release the send button. That will wake the screen without disturbing the call.
push this to system/usr/keylayout
http://www.multiupload.com/AFKG4K2IBB
sorry 5thagent. remembered seeing the instructions somewhere around. thanks for the correction! :-( i tried. I had forgotten about the other fix.
was just about to post on this today. thx for the infoz
Also... all you should have to do is pull the phone away from your face and it should turn back on almost immediately. I've never ever had this problem lol
Hungry Man said:
Also... all you should have to do is pull the phone away from your face and it should turn back on almost immediately. I've never ever had this problem lol
Click to expand...
Click to collapse
I agree that should normally work,but at least for me when using speaker phone I can't just move the phone to wake it. using trackball wake/unlock works fine though
Sent from my FroShedYo.V6 using XDA App
tazzpatriot said:
push this to system/usr/keylayout
http://www.multiupload.com/AFKG4K2IBB
Click to expand...
Click to collapse
What is that and what does it do?
How hard is it to program the ROM so that the screen turns back on when you touch it?
Hungry Man said:
Also... all you should have to do is pull the phone away from your face and it should turn back on almost immediately. I've never ever had this problem lol
Click to expand...
Click to collapse
this is how i test my roms callin 226 and it alwayz works
Hungry Man said:
Also... all you should have to do is pull the phone away from your face and it should turn back on almost immediately. I've never ever had this problem lol
Click to expand...
Click to collapse
That works but if you have your phone on the table in front of you w/speakerphone enabled while some robot is giving you 5 minutes of number equations, the phone will timeout. When the trackball wake option is selected in CyanogenMod settings/input settings, it will wake the device after you've manually turned the phone off but it doesn't wake the screen after it's timed out. I have been trying to use tasker as a way around this problem but I haven't been able to successfully write a working profile
Blma617 said:
That works but if you have your phone on the table in front of you w/speakerphone enabled while some robot is giving you 5 minutes of number equations, the phone will timeout. When the trackball wake option is selected in CyanogenMod settings/input settings, it will wake the device after you've manually turned the phone off but it doesn't wake the screen after it's timed out. I have been trying to use tasker as a way around this problem but I haven't been able to successfully write a working profile
Click to expand...
Click to collapse
just use the vol up + send?
playpolo4life said:
just use the vol up + send?
Click to expand...
Click to collapse
I was never aware of this method.. Thanks dude
Sent from my FroShedYo V10-ERIS using XDA App
playpolo4life said:
just use the vol up + send?
Click to expand...
Click to collapse
I'm bumping this thread because I have the same problem but my volume rocker is broken/missing so it is very difficult for me to press vol up/down. I need to use a pen tip or needle, which I usually do not have readily available.
Is there any other option out there for me? Why can't I use the trackball or just the Send key????????????
If anyone can help, I would greatly appreciate it.
FYI, I'm running GSB 1.4 (CM-7 Gingerbread based ROM).
edit: Some users on the CM forums said that pressing the Menu or Home keys worked, but that doesn't work for me. They were on CM6, so maybe that doesn't work in CM7, I don't know.
CrayzeeCarl said:
I'm bumping this thread because I have the same problem but my volume rocker is broken/missing so it is very difficult for me to press vol up/down. I need to use a pen tip or needle, which I usually do not have readily available.
Is there any other option out there for me? Why can't I use the trackball or just the Send key????????????
If anyone can help, I would greatly appreciate it.
FYI, I'm running GSB 1.4 (CM-7 Gingerbread based ROM).
edit: Some users on the CM forums said that pressing the Menu or Home keys worked, but that doesn't work for me. They were on CM6, so maybe that doesn't work in CM7, I don't know.
Click to expand...
Click to collapse
I seem to recall that in CM settings, you can configure what buttons can wake the phone up. You should be able to set it to the trackball.
Is there an app that allows you to reassign the functions of the power button to another key? I am trying to minimize how often I have to use the power button because of the issues several of us are having with the power button.
What are the issues with the power button?
Its hard to describe, its as if the Power Button is moving into the phone it is not sticking out nearly as much as it was when it was new as a result it is becoming tougher to push as it becomes flush with the top of the phone.....
http://forum.xda-developers.com/showthread.php?t=1046425
HarlyFan said:
Its hard to describe, its as if the Power Button is moving into the phone it is not sticking out nearly as much as it was when it was new as a result it is becoming tougher to push as it becomes flush with the top of the phone.....
Click to expand...
Click to collapse
I know what you mean. I came from the Droid X and my first thought when using the Thunderbolt was "WTF at the power button!?" It sits too damn flush with the top of the phone. It took me a good 2-3 days to get used to it. I kept having to look at the top of the phone to get my finger in the right spot.
Anyways... are you rooted? Das BAMF has a feature that allows the volume rockers to be used to wake up the phone. You could then download something like SwitchPro and use a widget to turn to the screen off. Essentially you'd never have to use the power button then.
dbisch said:
I know what you mean. I came from the Droid X and my first thought when using the Thunderbolt was "WTF at the power button!?" It sits too damn flush with the top of the phone. It took me a good 2-3 days to get used to it. I kept having to look at the top of the phone to get my finger in the right spot.
Anyways... are you rooted? Das BAMF has a feature that allows the volume rockers to be used to wake up the phone. You could then download something like SwitchPro and use a widget to turn to the screen off. Essentially you'd never have to use the power button then.
Click to expand...
Click to collapse
Yes I am rooted, I have not tried any custom roms yet. I will try SwitchPro and see how that works. Thanks for the info!!!
SwitchPro does not have anything that looks like it would work as a power button, are there any other suggestions?
I use the free version of quick boot and hardly ever use the power button it allows:
reboot
recovery
bootloader
Power off
crookshanks said:
http://forum.xda-developers.com/showthread.php?t=1046425
Click to expand...
Click to collapse
don't ignore this link because its the only way to get it to wake with the volume rocker buttons
I also downloaded Screen Off to put my device in sleep mode. With these two apps the only time I need to use the power button is when I'm updating ROMs or I need to power on my phone.
Good luck
HarlyFan said:
SwitchPro does not have anything that looks like it would work as a power button, are there any other suggestions?
Click to expand...
Click to collapse
Did you even follow the link I posted?
HarlyFan said:
SwitchPro does not have anything that looks like it would work as a power button, are there any other suggestions?
Click to expand...
Click to collapse
Hmm... I could have sworn that it had a button to turn the screen off. My bad man.
Sent from my ADR6400L using XDA Premium App
Hi guys, I got the HTC Legend, and I'm finding it a pain to have to press on the lock button every time to wake it from sleep and so I want to be able to wake it by pressing on the optical trackpoint or any of the capacitive buttons as well.
It really frustrates me sometimes if I forget I've turned it off already and I try to wake it, so I press the power button, and it boots up instead and I have to wait for it to turn on only to turn it off again.
If anyone knows any solution please help me. It's driving me insane. On the iPhone I could just press the home button to wake and it wouldn't turn on the phone if it's off. I'm on stock Froyo 2.2 with sense UI, not rooted. Would prefer not to root and definitely not install a new ROM as it is not my phone and I don't want to mess with it too much. Thanks.
you could use an app like widgetlocker to achieve this. link to market
I'm curious, how the phone turns off when u press the power button to unlock the screen.
Do you have the lock screen setup? It should not be able to turn off untill screen is unlocked then the power button pressed and held again.
sent from my legend, currently using extream legend fuse™
jellymelly said:
Hi guys, I got the HTC Legend, and I'm finding it a pain to have to press on the lock button every time to wake it from sleep and so I want to be able to wake it by pressing on the optical trackpoint or any of the capacitive buttons as well.
It really frustrates me sometimes if I forget I've turned it off already and I try to wake it, so I press the power button, and it boots up instead and I have to wait for it to turn on only to turn it off again.
If anyone knows any solution please help me. It's driving me insane. On the iPhone I could just press the home button to wake and it wouldn't turn on the phone if it's off. I'm on stock Froyo 2.2 with sense UI, not rooted. Would prefer not to root and definitely not install a new ROM as it is not my phone and I don't want to mess with it too much. Thanks.
Click to expand...
Click to collapse
Trackball waking cannot be done via froyo sense! If you are willing to root your phone then flash Cm 7.1 as your rom. Then you can go to settings to activate trackball waking.
Other than that you can look around the market for apps that allow this.
Sent from my Legend using xda premium
ranger4740 said:
I'm curious, how the phone turns off when u press the power button to unlock the screen.
Do you have the lock screen setup? It should not be able to turn off untill screen is unlocked then the power button pressed and held again.
sent from my legend, currently using extream legend fuse™
Click to expand...
Click to collapse
what I meant was to unlock the screen while the phone is on by pressing any button apart from the power button, because at night I turn off my phone (the normal way), then I forget if I've turned it off or not, so I press the power button again, and then the startup screen appears - Sh*t! so I have to wait for it to turn on again so I can turn it off.
So essentially I want to press the capacitive buttons or trackpoint so that
1. It will unlock the phone if it is on.
2. It will not turn on the phone if it is off
ranger4740 said:
I'm curious, how the phone turns off when u press the power button to unlock the screen.
Do you have the lock screen setup? It should not be able to turn off untill screen is unlocked then the power button pressed and held again.
Click to expand...
Click to collapse
what I meant was to unlock the screen while the phone is on by pressing any button apart from the power button, because at night I turn off my phone, then I forget if I've turned it off or not, so I press the power button again, and then the startup screen appears - Sh*t! so I have to wait for it to turn on again so I can turn it off.
mph_aut said:
you could use an app like widgetlocker to achieve this. link to market
Click to expand...
Click to collapse
hmm thanks. But when I looked through the comments everyone finds it a huge battery drain... So I'd rather not.
Thanks for the suggestions guys but if anyone knows an app that can does this it'd be great! So frustrating!
So stock rom in locked mode only reacts to pwr? Hmm
Sent from my Legend using Tapatalk
MarkInDaPark said:
So stock rom in locked mode only reacts to pwr? Hmm
Sent from my Legend using Tapatalk
Click to expand...
Click to collapse
Yep. Not good.
Anyone has solution?
jellymelly said:
Yep. Not good.
Anyone has solution?
Click to expand...
Click to collapse
Currently no app except for widget locker and some launchers allow this. The only other way is to root and flash.
Sent from my Legend using xda premium
ranger4740 said:
I'm curious, how the phone turns off when u press the power button to unlock the screen.
Do you have the lock screen setup? It should not be able to turn off untill screen is unlocked then the power button pressed and held again.
sent from my legend, currently using extream legend fuse™
Click to expand...
Click to collapse
I think what he is saying is that he can't check if the phone is off or not.
Why you don´t use the rom from blay0 (http://forum.xda-developers.com/showthread.php?t=866849)? It is based on HTC stock version and has several extensions and wake on trackpad. It is very stable and i had no problems with this rom in the last months.
It is a weird problem. Not a killing one, but still it's absurd.
How would I know that my phone is sleeping (standby) or completely shut down (off)?
You may say, just press the power button on backside. But if I do that, that's going to turn on the phone anyway if it was off.
I want to know without turning the phone on whether the phone is actually off or not.
Any idea guys? Any way to find out?
[PS: This is my first post. ]
binokary said:
It is a weird problem. Not a killing one, but still it's absurd.
How would I know that my phone is sleeping (standby) or completely shut down (off)?
You may say, just press the power button on backside. But if I do that, that's going to turn on the phone anyway if it was off.
I want to know without turning the phone on whether the phone is actually off or not.
Any idea guys? Any way to find out?
[PS: This is my first post. ]
Click to expand...
Click to collapse
When you press shortly on the power botton- if the phone is sleeping the screen will turn on to the lock screen, if the phone is off it will turn on to the red M initial screen.
That is a really weird question, why should you ask it? if you turned your phone off it is off, if you just turned the screen off it is asleep (shhhh, don't disturb him :silly: )
:cyclops:
I don't want to disturb him, that's what I want.
Moonshield said:
When you press shortly on the power botton- if the phone is sleeping the screen will turn on to the lock screen, if the phone is off it will turn on to the red M initial screen.
That is a really weird question, why should you ask it? if you turned your phone off it is off, if you just turned the screen off it is asleep (shhhh, don't disturb him :silly: )
:cyclops:
Click to expand...
Click to collapse
If the phone was sleeping, I would know as it will show lock screen when I press the power button. But if it was off and I press the power button, it will turn on the phone. And I don't want that. I just want to know whether the phone is off, and if it is off I don't want to disturb him.
In other phones, they have separate unlock button, here it is combined with power. That's the problem. But moto could have made long press for turn on and short press for unlock. I think there is no solution to my problem. :crying: Thanks anyways.
binokary said:
If the phone was sleeping, I would know as it will show lock screen when I press the power button. But if it was off and I press the power button, it will turn on the phone. And I don't want that. I just want to know whether the phone is off, and if it is off I don't want to disturb him.
In other phones, they have separate unlock button, here it is combined with power. That's the problem. But moto could have made long press for turn on and short press for unlock. I think there is no solution to my problem. :crying: Thanks anyways.
Click to expand...
Click to collapse
Call your number?
Plug in the headset and press the headset button?
Plug in the charger?
Pair it with wifi/bluetooth and see if connection is alive from paired device?
I'm sure there are hundreds of other creative ways to find out whether the phone is off or on standby without pressing the power button.
binokary said:
If the phone was sleeping, I would know as it will show lock screen when I press the power button. But if it was off and I press the power button, it will turn on the phone. And I don't want that. I just want to know whether the phone is off, and if it is off I don't want to disturb him.
In other phones, they have separate unlock button, here it is combined with power. That's the problem. But moto could have made long press for turn on and short press for unlock. I think there is no solution to my problem. :crying: Thanks anyways.
Click to expand...
Click to collapse
I know what you mean, like in the Nokia 700 (or any symbian phones), there are two seperate buttons, where the lock button does not switch on the phone, but instead the power button does. I know some Android devices need a long press to switch on, while a short press does nothing while off, but Motorola doesn't use this "feature".
Sent from that Atrix.
If you use a CM based rom you can set the volume rocker to wake the phone. If you use a blur based rom you can install an app from the play that does the same.
:cyclops:
Thanks!
Moonshield said:
If you use a CM based rom you can set the volume rocker to wake the phone. If you use a blur based rom you can install an app from the play that does the same.
:cyclops:
Click to expand...
Click to collapse
Thanks Moonshield, that was what I wanted! :laugh:
what is asleep mode?
i only know 3 situations:
1. powered on - locked (screen is off)
2. powered on - unlocked (screen is on)
3. powered off.
quetzalcoatl2435 said:
Call your number?
Plug in the headset and press the headset button?
Plug in the charger?
Pair it with wifi/bluetooth and see if connection is alive from paired device?
I'm sure there are hundreds of other creative ways to find out whether the phone is off or on standby without pressing the power button.
Click to expand...
Click to collapse
Or how about wake up with volume and that would fix everything its easy and takes 2 seconds to do.
Sent from my MB860 using Tapatalk 2
Or use light flow app and turn on a led indicator for phone signal.
unforgivenmercy said:
Or how about wake up with volume and that would fix everything its easy and takes 2 seconds to do.
Sent from my MB860 using Tapatalk 2
Click to expand...
Click to collapse
Yep, but it's not available on stock ROM.
Sent from my MB860 using xda app-developers app
Despite having no lock screen set, I cannot get the volume button long press to work to load the applications. Any ideas what I'm doing wrong? The option is enabled, and I've only disabled applications that deal with the voice recognition stuff from LG.
Edit: Go figure... After half an hour of research and trying different things it only works after I posted this question. I have no idea what I did differently.
stargate125645 said:
Despite having no lock screen set, I cannot get the volume button long press to work to load the applications. Any ideas what I'm doing wrong? The option is enabled, and I've only disabled applications that deal with the voice recognition stuff from LG.
Edit: Go figure... After half an hour of research and trying different things it only works after I posted this question. I have no idea what I did differently.
Click to expand...
Click to collapse
I assume your talking about the screen off press and hold to launch camera or quick note trick? I've noticed a couple Times it hasn't worked right for me, but it usually does.
Make sure your screen is off, and press vol down and hold for a good couple seconds and it should launch the shortcut. Also make sure the proximity sensor isn't covered. Mine didn't work at all when it was covered, which is the same for the double tap to wake.
Btw, do you know how to change what the button launches? I like the camera but don't care for quick note, and didn't see a way to change it.
XXchocolatetouchXX said:
I assume your talking about the screen off press and hold to launch camera or quick note trick? I've noticed a couple Times it hasn't worked right for me, but it usually does.
Make sure your screen is off, and press vol down and hold for a good couple seconds and it should launch the shortcut. Also make sure the proximity sensor isn't covered. Mine didn't work at all when it was covered, which is the same for the double tap to wake.
Btw, do you know how to change what the button launches? I like the camera but don't care for quick note, and didn't see a way to change it.
Click to expand...
Click to collapse
I have found they will not launch for me if I am in a Chromecast session, or playing some music with the screen off through the phone's speaker. I am assuming that was my problem since I can't replicate it under any other circumstances.
There is an option in the phone's menu system to turn it on or off, but it does not allow for the shortcut to be changed. We'll have to wait for custom ROMs to give us this feature.
stargate125645 said:
I have found they will not launch for me if I am in a Chromecast session, or playing some music with the screen off through the phone's speaker. I am assuming that was my problem since I can't replicate it under any other circumstances.
There is an option in the phone's menu system to turn it on or off, but it does not allow for the shortcut to be changed. We'll have to wait for custom ROMs to give us this feature.
Click to expand...
Click to collapse
Yeah that does make sense. And I didn't think they were changeable but it's good to know this is confirmed.