Disable power button when lockscreen is active? - HTC Sensation

Basic problem with a simple solution you'd think. Because my phone is in my pocket all day and I do a lot of rolling about on the floor at work and crouching behind cupboards cabinets, and even just sitting down, the power button ends up being pressed which I've realised is why my battery is sometimes down to 30% by 5pm. Some days it can be 100% after 12-15 hours at work if I don't keep catching the power button so this is clearly a massive design flaw.
I've had a look around and not found any information that is useful. I've installed keyremapper and that doesn't do anything more than what I did when I had a play with the Generic.kl file. I can disable the power button wake function but then I can't wake the phone up with swype (or whatever that thing is where you unlock it with the soft buttons). I then tried reassigning the wake function the volume keys and this didn't work either.
Is there a solution to this or do I just have to put up with this massive failing of an otherwise decent phone?

jngfjngfvng said:
Basic problem with a simple solution you'd think. Because my phone is in my pocket all day and I do a lot of rolling about on the floor at work and crouching behind cupboards cabinets, and even just sitting down, the power button ends up being pressed which I've realised is why my battery is sometimes down to 30% by 5pm. Some days it can be 100% after 12-15 hours at work if I don't keep catching the power button so this is clearly a massive design flaw.
I've had a look around and not found any information that is useful. I've installed keyremapper and that doesn't do anything more than what I did when I had a play with the Generic.kl file. I can disable the power button wake function but then I can't wake the phone up with swype (or whatever that thing is where you unlock it with the soft buttons). I then tried reassigning the wake function the volume keys and this didn't work either.
Is there a solution to this or do I just have to put up with this massive failing of an otherwise decent phone?
Click to expand...
Click to collapse
can't you get a pouch? you think only about your power button. you never thought about the screen and the phone's body itself. one day you might take it out from your pocket and find the screen crack or heard something break in your pocket while you are working.

Yea I would look into getting a TPU case since it is much harder to press power button and doesn't really affect size of phone.
Or one of those big bulky leather pouches that you put your phone in like for belt loops and stuff.

Unfortunately that isn't going to work. I wear some Snickers work trousers and the phone goes in the phone pocket. There isn't room for a case in there as well. Plus my phone is already big enough, and it is insured so in the unlikely event it breaks I will get a new one.

I believe they're is a app in the play store called something like tap tap app. It allowed you to bypass the power button and user can use screen to turn on device. Don't know too much about the app but came across it one day. You might want to look into trying that. Hope this helps. Best wishes update, just checked the app and yes it definitely does control screen off and on. I think this could be the solution your looking for!
Sent from HTC sensation, soff, 3.33 firmware, viper Rom, sense 4.1,kernel- faux 10b6 , Mugen 3800 mah battery. Please press thanks if I helped in anyway.

realsis said:
I believe they're is a app in the play store called something like tap tap app. It allowed you to bypass the power button and user can use screen to turn on device. Don't know too much about the app but came across it one day. You might want to look into trying that. Hope this helps. Best wishes update, just checked the app and yes it definitely does control screen off and on. I think this could be the solution your looking for!
Click to expand...
Click to collapse
Doesn't disable the power button.

Related

New issue? On/Off button seam to "flicker"?

Hey ya all
Ive tried to google for this issue but haven't found anything. I got it yesterday evening, about 1-2 hours after OTA update to 2.3.4.
So what happens is when I hit the on/off button to turn of the screen, it sometimes goes black for about half a second and then turns back on. Same when I try to wake it, goes light and then goes dark. So it seams like a dubbleclick almost.
Sometimes I've also got the issue that my Home button just keeps making screen shots, took me a while to figure out thats conected to the power button. How am I supposed to take a screenshot? Could it be a simple hardware issue where the button gets stuck? I've tried to remove the backcover and clean up, but it all seams fine for my untrained eye.
How are you holding the phone when this happens? This same thing happens to me sometimes if I kind of wrap my hand around it when I pick it up. I unconsciously hit the volume button like half a second before I hit the power button, and the volume button wakes the phone & then the power button turns it right back off.
It can happen whatever way Im holding it im afraid, and it has only occured since last night. Lets see if someone else got this after 2.3.4 or if its just a wierd coincidence.
And also, as I said, it seam to bug out my screenshot function.
That's not a coincidence, happens to me as well.
My guess is that's because of the new screenshot feature (hold Power+Home). Can anyone hazard a guess as to how to turn it off?
Well, guess it's a good thing it aint then, hopefully it'll get fixed.
No one else with this issue? It anoyys me alot
I have this issue, but it only happens if I press the button too fast or something. I don't know how to explain.
happens to me too
Randomly enough, just tried the screenshot function and it said saved to Camera folder but it's not there. What app is used to take it? Someone said it was MySketcher but I don't know
I spoke to HTC support sweden today and they didnt seam to be aware of this issue atleast. Keeps happening to me about 30% of the times i hit the button.. I dont think its hardware issue but didnt care to factory reset the phone yet.. Anyone of you with the issue has other than stock rom? Did it only happen after you upgraded to latest firmware? Ive only had it since 2.3.4.
I'm getting this exact same issue since upgrading to 2.3.4. I have a stock ROM too. It's really annoying, press the on/off button and it doesnt always turn it off, it does exactly the same as what the op says.
Also getting it take screen shots when I press the home button.
isak888 said:
Hey ya all
Ive tried to google for this issue but haven't found anything. I got it yesterday evening, about 1-2 hours after OTA update to 2.3.4.
So what happens is when I hit the on/off button to turn of the screen, it sometimes goes black for about half a second and then turns back on. Same when I try to wake it, goes light and then goes dark. So it seams like a dubbleclick almost.
Sometimes I've also got the issue that my Home button just keeps making screen shots, took me a while to figure out thats conected to the power button. How am I supposed to take a screenshot? Could it be a simple hardware issue where the button gets stuck? I've tried to remove the backcover and clean up, but it all seams fine for my untrained eye.
Click to expand...
Click to collapse
well for same issue i got my power button changed...now its fine... i had this issue and was mad... so after change its gud... itz mostly coz of overstressed power button...c ur power button is fine... in recovery also it must b mis-behaving?
Edit : i am on 2.3.4 stock as of now
lalitsehgal21 said:
well for same issue i got my power button changed...now its fine... i had this issue and was mad... so after change its gud... itz mostly coz of overstressed power button...c ur power button is fine... in recovery also it must b mis-behaving?
Edit : i am on 2.3.4 stock as of now
Click to expand...
Click to collapse
Was abit tricky to understand you, well anyway, so you had it repaired then? Id love to avoid that, hate being without the phone. But maybe thats the only solution.
Thanks for your input.
Yea I'm not so sure if this is a software thing. I haven't experienced this during regular use, but I have experienced a double-press effect while in Clockwork Mod. If I press the button on the leftmost part and do it slowly, I can get a double click without actually clicking it twice. Scares the crap out of me when I'm flashing roms and kernels.
So maybe something is up with the power button itself? Too sensitive maybe?
same issue here, was afraid it was my button. first i thought it was crt animations that were causting it. i have to go in to build.prop and turn off power+home screen shots because half the time i hit home it take a screenshot. not sure what's up with the power button.
have the issue on both bulletproof and eaglesblood, both 2.3.4
Happens to me as well and drives me absolutely insane.. The problem is definitely hardware.. I got a replacement back cover under warranty and after two weeks the problem is back just as bad.
To somewhat remedy the screen off/on flicker, i use 'screen off and lock' for long press of search button.. Not the same I know, but at least it doesn't flicker back on.
As for recovery, you can use home/menu for up/down, back for back and search for select.. I find this light years easier than having to ninja push the power button to avoid a double press.
I wish there was some way to fix the damn button tho.. I don't understand how HTC screwed it up so bad.
Sent from my HTC Sensation Z710e using XDA App
Having the same problem. Is the problem with the back cover or the phone itself? I looked at the button underneath the case and it looks bent. I was thinking maybe a tiny piece of paper inside would help, if it does, I'll report back
EDIT: playing with the button with the case off shows no problem. It has to be the way the case interacts with the button
EDIT 2: A piece of paper doesn't completely relieve the problem but does make it much harder to reproduce, and in my opinion, it's much nicer to press now
EDIT 3: Thicker paper=issue solved. I'll send HTC an email about it not reaching the button all the way, maybe they can do a recall on affected backings
Flippy125 said:
Having the same problem. Is the problem with the back cover or the phone itself? I looked at the button underneath the case and it looks bent. I was thinking maybe a tiny piece of paper inside would help, if it does, I'll report back
EDIT: playing with the button with the case off shows no problem. It has to be the way the case interacts with the button
EDIT 2: A piece of paper doesn't completely relieve the problem but does make it much harder to reproduce, and in my opinion, it's much nicer to press now
EDIT 3: Thicker paper=issue solved. I'll send HTC an email about it not reaching the button all the way, maybe they can do a recall on affected backings
Click to expand...
Click to collapse
I dont understand exactly what you did, but id be glad to know!
isak888 said:
I dont understand exactly what you did, but id be glad to know!
Click to expand...
Click to collapse
I ripped off a little piece of paper from a paper cd case about the width of the button inside, I then folded it until I found the perfect thickness and set it on top. I just carefully put the backing back on. It pushes the power button up about double what it was. I'd take pics but all it is is a piece of paper sitting on top XD
Sent from my HTC Sensation 4G using XDA Premium App
Got an email back from HTC saying they'll use the information for "future devices"
Sent from my HTC Sensation 4G using XDA Premium App

[Q] Power button is a pain

Maybe I'm just a little dumb and uncoordinated and a good amount crotchety (ok, the use of the word "maybe" there is probably not needed), but I find it a bit of a pain in the ass to hit the power button to wake this phone up or put it to sleep. the button is on the top/back of the phone, and the way that it's angled and flush, I don't know, I just seem to have a hard time hitting it without really focusing on what I'm doing. I also usually end up hitting the volume buttons with the way I grab the phone to press the power button, and it's damn near impossible to do with the phone just lying flat on a surface.
I'm probably a little spoiled, coming from a Samsung Moment, which had Talk and End buttons on the front, and the End button served as the power button. It was so easy with a single thumb to wake the phone up, unlock the screen, do whatever, and put it back to sleep.
Unfortunately, the Shift is pretty limited when it comes to hard buttons. But I wondered, is it in any way possible to cause maybe a long press on the volume to wake/sleep the phone? I think that would solve most of my annoyances.
flu13 said:
Maybe I'm just a little dumb and uncoordinated and a good amount crotchety (ok, the use of the word "maybe" there is probably not needed), but I find it a bit of a pain in the ass to hit the power button to wake this phone up or put it to sleep. the button is on the top/back of the phone, and the way that it's angled and flush, I don't know, I just seem to have a hard time hitting it without really focusing on what I'm doing. I also usually end up hitting the volume buttons with the way I grab the phone to press the power button, and it's damn near impossible to do with the phone just lying flat on a surface.
I'm probably a little spoiled, coming from a Samsung Moment, which had Talk and End buttons on the front, and the End button served as the power button. It was so easy with a single thumb to wake the phone up, unlock the screen, do whatever, and put it back to sleep.
Unfortunately, the Shift is pretty limited when it comes to hard buttons. But I wondered, is it in any way possible to cause maybe a long press on the volume to wake/sleep the phone? I think that would solve most of my annoyances.
Click to expand...
Click to collapse
Regarding the power button, you'll get used to it.
Regarding the volume question, yes this is possible with Cyanogenmod 7. You need to be rooted to run Cyanogenmod 7.
flu13 said:
Maybe I'm just a little dumb and uncoordinated and a good amount crotchety (ok, the use of the word "maybe" there is probably not needed), but I find it a bit of a pain in the ass to hit the power button to wake this phone up or put it to sleep. the button is on the top/back of the phone, and the way that it's angled and flush, I don't know, I just seem to have a hard time hitting it without really focusing on what I'm doing. I also usually end up hitting the volume buttons with the way I grab the phone to press the power button, and it's damn near impossible to do with the phone just lying flat on a surface.
I'm probably a little spoiled, coming from a Samsung Moment, which had Talk and End buttons on the front, and the End button served as the power button. It was so easy with a single thumb to wake the phone up, unlock the screen, do whatever, and put it back to sleep.
Unfortunately, the Shift is pretty limited when it comes to hard buttons. But I wondered, is it in any way possible to cause maybe a long press on the volume to wake/sleep the phone? I think that would solve most of my annoyances.
Click to expand...
Click to collapse
If you want you can d/l 2 apps from market that might make things a little smoother for you.
One is quickboot, 4 options reboot,recovery,bootloader,and power off. Secondly one called screen off puts a button on your home screen tap it and your phone goes to sleep.
Sent from my Rooted Thrive
You just get this phone? I remember back when it was first released the forum was full of threads asking the same thing. Then we all just got used to it I used to hit my volume keys accidently all the time but I haven't done that in months now.
ALL HAIL OTAKING71, THE RAPER OF HBOOT!!!
Hell I still do when I'm using the physical KB lol
Sent from my Rooted Thrive
lol that was a problem for me too, but i got used to it.....
The power button didn't take long, but i remember every time I used to open/close my phone I would hold the volume down button and it got very annoying, but yeah just give it some time because i love the location of all the buttons now that I'm used to them
Sent from my Supreme Shift using XDA Premium
Like everyone else said you just get used to it really
eventually its like secondnature and wouldnt want to have it any other way lol
jesusice said:
You just get this phone?
Click to expand...
Click to collapse
Yeah, two weeks ago.
Glad to hear that it's not just me. Thanks for the responses. I guess I figured two weeks would be enough to get used to it, but maybe I just need to give it more time.
---------- Post added at 07:08 AM ---------- Previous post was at 07:06 AM ----------
VICODAN said:
Regarding the volume question, yes this is possible with Cyanogenmod 7. You need to be rooted to run Cyanogenmod 7.
Click to expand...
Click to collapse
That's cool, although I don't know if I'm ready to give up Sense yet (running MikShifted-G right now), but I do have CM7 on my Nook and I really like it. Thanks for the tip.
flu13 said:
Yeah, two weeks ago.
Glad to hear that it's not just me. Thanks for the responses. I guess I figured two weeks would be enough to get used to it, but maybe I just need to give it more time.
And the HW KB still feels funny, right? I used to love my Moment's keyboard but now when I use it I fell like I'm stuck on the short bus
ALL HAIL OTAKING71, THE RAPER OF HBOOT!!!
Click to expand...
Click to collapse
The Keyboard definitely feels different from the Moment. I can't say for sure which I like better. I did like having the dedicated number row on the moment. Now, I struggle to find the parentheses or asterisk. I also liked the sliding mechanism on the Moment much better. It had that satisfying snap into position that it did. I always feel like the Shift is a little stubborn about sliding.
I came from a spring loaded samsung also, was a lil hesitant at first too. Tell you what tho, I have made an artform out of opening this phones keyboard. Feels real fluid, like a natural extension. Now I try opening a spring assist device like the wifes epic & I damn near drop it due to the extra force to get the mechanism moving combined w/ the slick cover. Then when it finally pops, it damn near jumps outta my hand... Ok, I have dropped it a few times, not tellin her that tho.
Main point: I agree, "once you get used to it", you really appreciate the thought that went into the simplistic design; buttons to the board.
Sent from my Shifty Speed Brick using xda premium

Anyone finding their power button mashed down?

I've had my One S since it's come out, always keep in a case and I've noticed it's been harder and harder to push the power button down to wake it up.
I see Expansys has a replacement sim cover here http://www.expansys-usa.com/htc-one..._productfeed&gclid=COvFrtXItbACFUMCQAodJx8-7g
This should include the power button mechanism but I'm not sure if I'm ready to spend $20.
And I certainly don't want to go through the hassle of a replacement from TMO.
Anyone else having issues? Are there possible solutions?
I dont know if there are any solutions, but I notice a difference too from when i first got it to now.
I had the same problem occur to me on the HTC Sensation.
Might just be wear and tear from how much you keep on pressing the button. A solution to slow down this 'wear and tear' would be to unlock the phone by means of the softkeys or volumekeys.
Just to add gas to the starting flame: the Nexus 1 had massive widespread power button failures...
how do you unlock from the volumerocker or soft keys?
Xdpker06 said:
how do you unlock from the volumerocker or soft keys?
Click to expand...
Click to collapse
The Sensation had a feature in some custom ROMs called Swipe-to-unlock, basically you swipe your finger across the softkeys and the screen turns on. Swipe the other way to turn it off.
But I'm not sure if this is also on One S ROMs
i had to exchange 4 of them for various reasons and only my last unit has a perfect power button that still works as new. but it would be great to have swipe-to-unlock just because how tall this phone is.
usaff22 said:
The Sensation had a feature in some custom ROMs called Swipe-to-unlock, basically you swipe your finger across the softkeys and the screen turns on. Swipe the other way to turn it off.
But I'm not sure if this is also on One S ROMs
Click to expand...
Click to collapse
Yep, Swipe-to-Unlock is a great option! Hope to get it for our One S soon, and as sources are released, we'll probably get this option with some custom Kernels or additions...
Don't know if a "soft" solution is really good, but it will eat some battery for sure as the system is "waiting to be touched" and not really sleeping as it should be. Some has huge drain, some not... But I didn't test all these options, and not sure that they work with our phone.
Another popular solution for the sensation was using the Volume + button hack to wake the device.
I never had that issue with my sensation and after one month with the ONE S my power button still works fine.
(On his sensation) A friend of mine placed a small piece of paper under the power button to raise it and it seemed to work for him, maybe you can try something similar?
Xdpker06 said:
how do you unlock from the volumerocker or soft keys?
Click to expand...
Click to collapse
Ummm....I believe there is an app in the google play store that will let u wake the phone up with the volume buttons
Sent from my HTC VLE_U using xda premium

Sticky Power Button

Just got my white 32gb and out of the box it has a very sticky power button. Sticks all the way down almost every time I push it so the power menu comes up. Anybody else have something like this happen?
daledenton said:
Just got my white 32gb and out of the box it has a very sticky power button. Sticks all the way down almost every time I push it so the power menu comes up. Anybody else have something like this happen?
Click to expand...
Click to collapse
I'm having this happen actually. Did you find a way to pop the back off and fix it, or did you send it back?
http://www.ifixit.com/Teardown/Nexus+5+Teardown/19016 If you follow part of this guide then you can see how to carefully remove the back cover and then inspect why the power button is sticking.
DISCLAIMER: I am not responsible for any damages you may cause to your phone.
If I've helped them please hit the THANKS button.
sent from my neXus 5
CodemasterRob said:
I'm having this happen actually. Did you find a way to pop the back off and fix it, or did you send it back?
Click to expand...
Click to collapse
Actually after about a week of usage, it worked itself out and was fine. Haven't had a problem since, so I'd say just give it time and see if the problem resolves itself like mine.
Not sure if you've made the choice to unlock/root yet, but if you have, I'd highly suggest installing a kernel w/ sweep or tap to wake features. Additionally, it's (in my opinion, of course) a good habit to utilize a widget or toggle that will turn your screen off w/ a tap as well.
Obviously, if you determine you've got a manufacturer defect w/ the power button, by all means replace it. But the less dependent you are on the hard buttons, the less wear & tear on them. More often than not, these buttons are the first to go the longer you have your phone.
daledenton said:
Actually after about a week of usage, it worked itself out and was fine. Haven't had a problem since, so I'd say just give it time and see if the problem resolves itself like mine.
Click to expand...
Click to collapse
Mine seems to have sorted itself out too. The button doesn't seem to have that satisfying click my Nexus 4 did.
Glad your power button got sorted out. Being a new phone, I would probably send it back, rather than crack it open, but that's me.
On another note... Personally, I haven't touched my power button in a long time. I use "Gravity Screen," which shuts my phone off when I put my N5 in my pocket and turns it on when I pull it out, It also senses the micro-movements of my hands when I'm using it, and prevents the screen from timing out, If I set it down on a table, and it shuts off (due to timeout), I only have to wave my hand over it to turn it back on.
This app literally changed the way I use my phone, which is why I sprung for the $2 (ish) pro version, rather than the free one I linked. I highly recommend checking it out.
I RMA'd my 32GB White because of this as well as a vibration issue.
Sent from my Nexus 5
After 3 RMAs (= 4 different N5s) I stuck with the last phone and fixed the (loose) power button myself because I was fed up with the quality.
It is really no problem opening a phone, especially if you have done it with a PC before.
DISCLAIMER: I am not responsible for any damages you may cause to your phone.

[SOLVED] Is there an app to map a broken power button to another button that does NOT drain battery heavily?

I have an ooold phone, a rooted Xperia E (C1504) from 2013. This is important, because I am limited to using Android 4.1.1 Jelly Bean.
Long story short, the power on button is broken. I pulled it out with pliers because it was malfunctioning to the point of making the phone unusable. I actually use a clip folded so that it touches both ends where the button was soldered and it actually works perfectly fine as a substitute "button". Thing is, it's super inconvenient. I don't wanna take off the lid then put the clip just so the screen turns on so I can change the song playing.
Anyways, is there an app that allows me to turn on/off the screen or map my power button that does NOT heavily drain my battery?
I have tried several suggestions but they either don't do what I want/do it poorly, or are not compatible with jelly bean.
Or better yet, does anyone know of any app that turns ON the screen when connecting 3.5mm earbuds? This is an already included function in many phones so I imagine there should be an app or xposed module that can do that withouth relying on a wakelock running 24/7 draining battery.
Basically I want something that does what "Volume Power" does, the problem with this god tier app is that it drained half my battery on 5 hours of stand-by. It's a shame because it's exactly what I want.
Anyone has any ideas? Thank you
PS. as a side note, if you want to answer, I figured I'd rather ask here than making a thread for something like this.
I have an xperia arc s with a broken screen. If I lift it up of the case in a manner that the flex cables are tense, it works ok with many ghost touches. As soon as I remove what was under it holding it high above the phone case so that it sits normally, the image fades away. Backlight still works, but the image goes away. Only until I pull it up and tense the flex cable is that the image returns. I know the screen is shot, but still, I'm curious, any ideas what happened with it? lol
EDIT. PS.2. Well the problem with the screen I mentioned is that the flex cable was more sensitive than I was accustomed and I damaged, that's about it.
EDIT.
I did find something, and while it may not be a solution for everyone, it was almost exactly what I wanted. First I rooted, then I used Xposed Installer and used Xposed Additions so to be able to map the physical camera button and add "Screen Off" and "Screen On" conditions to it.
The only problem with it is that with a long press instead of showing the power menu (power off, restart) it just opens the camera, as it's supposed to.
I guess you could solve that but it doesn't matter in my case, since the power button switch is soldered directly into my phone's motherboard rather than being a flex cable addition or something, so I just removed the button with pliers and use a sanded paper clip to make a connection between the 2 points where the button was soldered, that way I bring up the power menu and also turn on the phone.
Again, this worked for me because of the way the power button was put on my motherboard and I did this only because the button was completely shot and unusable, like a ruptured appendix. It was turning off and on my phone, also preventing it from turning on and all of this completely at random. If your power button is a flex cable accessory that connects to the main board or is not completely shot like mine, don't do this because it will help nothing, hey, in your case it's probably better because you just replace the power button + volume buttons flex cable for another and you're good to go. You can get it from ebay or buy a 2nd hand phone that is not working (which should be cheap) and use the spares for your own.
Hope this helped someone, someday, anytime.

Categories

Resources