power button broke so i reassigned it ;) - MDA, XDA, 1010 General

Tried to turn on my XDA yesteday and the button fell into the device ! This caused not to be able to turn on the screen unless I got a call. I downloaded Vito SystemTools' button maping program which allowed me to make my calendar button (when held down) to turn the screen on and off. The problem is that turning the screen on and off is not doing the same thing as the power button did. I was under the impression that all the power button did was turn the screen on and off to save battery and prevent unintended input. However, now my battery dies in 6-8 hours of use compared to the normal 2 days. Obviously, there is somthing more that the power button does.
What I'd like to know from the developers is if there is a program called by the power button and how I should access it. The button mapper program allows me to map any program I want to (almost) any hardware button (not the volume button). If it's a DLL or somthin I can probably write a wrapper program for it with some pointers.
I'm also in the market for a dummy xda or just another power button if someone has one just to get it to look better. However I like the functionality of holding down the calendar button for 1 second to turn the device on/off and would like to keep that permanently.
-Kevin

The power button is probably hard-wired to some processor wake-up logic. So when you turn the processor off, it's going to be very hard to make it wake up by anything else. You could write something that makes it wake up very very momentarily, say every few seconds, to check for a button-press. But my guess is what you want is a new power button.

damn Well i'm waiting on a dummy phone auction unless anyone over here has one to sell me.

I got exactly the same problem, the only difference is that i managed to get it back and i putted some silicone glue in it. It works and don't ask me how ;-)
Anyway, why don't you just press on the call - hang-up , calendar, volume button to wake the phone up?
Than just change the settings in battery power to make it shut down after 5min or 10min. It should help you reduce your battery life time since the phone gets automaticly in sleep mode after that time.
good luck,
Yann

I have my phone set not to wake up without the power button being pressed. I can turn this off but then buttons get pressed in my pocket since I don't like belt clip holders.

Related

Problem: when I swith off my XDA, i sometimes can't power on

im getting trouble to power it on
sometimes even the power button doesnt do anything
i didnt lock the keys
it is happen 5 6 times in a day
most of the time the 2 buttons of the contact and the calendar doesnt power it on when im pressing on them while the o2 is off
does anybody had this problemm - maybe it is because some software that i installed ?
tx
My contacts and calendar keys do not power it on either. Also, if you press one of those, it seems to lock out the power button for a few seconds. If you press them multiple times, it may take a while before it will power on. Mine always responds instantly to the power button as long as I have not pressed one of the others.
options
There are options, under security settings I think.
I have mine selected. It only allows the XDA to be switched on by pressing the power button. Doesn't always seem successful though..
I quite often sit on mine, so the key-lock feature is absolutely essential...
Martin

[Q] Touchscreen stopped working. - solved

I was reading a book and the screen just stopped responding to finger touches, I think a reset might fix it but I can't switch it off. Long press on the off switch gives me the Android power options but of course I can't select any of them.
Any ideas? apart from waiting for the battery to go dead.
/edit solved it, long press of power and center button uintil you see the HP logo. I thought there might be some Android specific way.
For touchscreen not responding, I often just click power button to turn off the screen, then home to wake it up. That seems to fix it more often than not.
Next time you need to reboot, just hold down Home + Power for 10+ seconds

[Q] Disable power button long press = power off ?

Hi,
When doing a long-press on the power button of my Galaxy SII, after a few seconds, it powers off. This happens whether it is locked or not, and without asking for confirmation on the screen.
I'm using a Sena leather case, which presses on the power button. Each time I put it in the case, it powers off, then it restarts, and stays on "enter SIM pin code" screen. I may have discovered a new way to switch to Airplane mode but I'd like to avoid that.
Moreover, there is a distinction between :
- long press (2 seconds) : brings the power menu (Airplane / Reboot / Switch OFF)
- very long press (approx. 8 seconds) : switches the phone OFF
Also, these two keys are active even when the phone is locked.
Here's what I would like to do : disable both the 2 seconds press and the 8-seconds press when the phone is locked
I found some threads about key remapping applications or direct edit of keymap files, but none of them were successful.
Could someone point me out an application / a way to achieve that ? Does someone know if it's ever possible ?
(For now, the only workaround I found is a hardware one : disassemble the phone and sand the power button to reduce its height, so that it stays inside the casing)
Thank you in advance. Kind regards
My old HTC Hero used to do that too, which leads me to believe it is something hard-coded into Android itself. I'd suggest there is nothing much you can do, but wait and see if a dev replies or something.
Sent from my GT-I9100 using XDA
I don't know if it's possible but if it is it has to be something in the kernel.
The 8 second power off function works the same way as the on on your PC and is used if your phone stops responding so I don't see a way to disable it with an app because it's ment to turn the phone off even if an app freezes your whole phone.
Hi,
If the 8-seconds press is hard-coded, I think precautions should have been taken to avoid unwanted power off each time you put the phone into a leather pouch !
On iPhone f/ex, you have to press both power and home button during several seconds to trigger hard reboot, which makes unwanted action hard to happen unexpectedly.
It's always frustrating to encounter such a basic problems on a $600 phone using the latest state-of-the-art technology, which powers off each time you put it into your pocket ;-)
I hoped some developer has found a way to workaround this. I googled a lot, but I didn't find anything.
So, if the power button features are hard-coded, the only solution may be to hard-remove the entire power button
Problem solved.
I disassembled the phone, I removed the power button, I carefully grinded it to reduce its height, and I put it back into the phone.
(For those who may already owned an iThing, disassembling a Galaxy SII is very easy, it's a matter of seconds with a good old mini-screwdriver; proceed carefully when grinding, because if you reduce the height too much, the buttom may break)
Now my power button height is just below the casing. It's still possible to press on it with a finger, but it does not press by itself when putting the phone into my leather pouch.
Thank you for explaining it I had an issue with my S II and it went to service to solve it, they totally changed the board and was shocked when I found the short press on power button doesn't show the power menu I used to have and it switched off immediately!
I've got to return it to service and your post made me thinking it's a simple issue! It won't take time
Regards,

remapping the power button

Is this possible? I just want it to not turn on the screen. I notice in my front pocket sitting down sometimes the power button gets pressed and turns on the screen. I would prefer the home button only cause it is flatter and more flush with the device. I am able to edit the home button to either wake or not wake the phone, but the power button wakes the phone even when I erase the fields in all the system/usr/keylayout files. There must be a backup file or something somewhere telling the power button to turn the screen on. I use WidgetLocker also.
Are you sure it's not the home button turning your screen on? Pretty common occurrence...
Sent from my Xposed Beans Note 2
Its TwiX said:
Are you sure it's not the home button turning your screen on? Pretty common occurrence...
Sent from my Xposed Beans Note 2
Click to expand...
Click to collapse
No. I have disabled that and will leave it disabled until I can figure out how to disable the power button.
i would like to see this as well, the power button is too easy to press accidentally. i tried editing the keylayout files but i couldnt get it to work either.... here's my ideal setup: the home button wakes the phone, the power button does nothing unless you long press it to bring up the power options menu. or press it while the screen is on to turn off screen.
I too have this problem.
The power button is easy to press when it's on my pocket and I even have a case on it. The case makes it a little harder to press but I can still hear the click of the button when so I know when it happens.

Power Button locks and then wakes up phone with one press

Hey guys, so basically when I am locking my phone with the power button it locks and the phone will then wake up like .5s after the screen turns off and is locked. I start with my phone unlocked and it does everything correct except it wakes the screen after it is locked. I am running stock standard MIUI Global, no root or anything special. I have tested this to no end to make sure I am not double tapping the button and I am not holding it down or anything. Any thoughts as to what it might be?
What version MIUI global rom you're using it..?, is it official or mod/ custom version..?
You can try flashing latest global fastboot rom..with MiFlash Tool (Clean All method)..then see if that issue still apear..
This does happen to me too once in a while. Same as you, stock, MIUI 8.0.5.0. i suspect that "Wake with volume keys" option does this. You have this option ON?
mine does this. The power button seems to be a bit loose. Press it a bit harder and see what happens.
This is hardware problem, it happened to me too. You probably (like i did) at some point pressed and held power button really hard. I fixed it by opening phone and realigning power button contact plate. Fortunately, i did not break it so it was quick & easy fix.
Just open your phone, disconnect battery and buttons flex cable, remove tape from power button and realign plate a little to one side. I noticed that my power button did not react if i pressed it at bottom side (i heard mechanical click but screen did not turn on/off), at middle (normal press) and at top it reacted but most times it was like as if i pressed it twice really fast so screen turned on/off fast. So thats why i pushed plate a little to bottom where button did not react, now it works perfectly no matter how i push button - just like it did on first day when i bought this phone.

Categories

Resources