[Q] power button issue - XPERIA X10 Q&A, Help & Troubleshooting

Hi guys,
The power button on my xperia does not seem to work correctly - it powers my xperia up but that is it. Once on, I can not use the power button to turn the screen off, I have to wait for it to time out..... I also have to pull the battery to switch the phone off :-S
Has anyone had this issue?
Thanks for your help.
Anuj

I have the same problem! ; ;
im searching the whole forum now so if i find anything ill let you know!!
i think that it has something to do with flashing the baseband wrong?

what baseband are you on?
kernel?
and rom?

anujkapila said:
Hi guys,
The power button on my xperia does not seem to work correctly - it powers my xperia up but that is it. Once on, I can not use the power button to turn the screen off, I have to wait for it to time out..... I also have to pull the battery to switch the phone off :-S
Has anyone had this issue?
Thanks for your help.
Anuj
Click to expand...
Click to collapse
I had this issue when I had spare parts installed. I had accidently deactivated the power button in the settings.

it worked
Aphex33 said:
I had this issue when I had spare parts installed. I had accidently deactivated the power button in the settings.
Click to expand...
Click to collapse
i did this and it worked for me!
to clarify its:
Spare Parts > Spare Parts Settings > End Button Behavior > Go To Sleep

So I lied... The whole spare parts thing didn't work for me.
After getting frustrated with this on multiple roms i found a solution.
I'd post the thread that i sort of found it in but i cannot exactly find it.
What i did was edit the es209a_keypad.kl in /system/usr/keylayout (with RootExplorer)
this file maps the hardware buttons on the phone and to what they do
after i changed it:
key 107 ENDCALL WAKE
key 62 ENDCALL WAKE
key 231 CALL WAKE
key 61 CALL WAKE
key 102 HOME WAKE_DROPPED
key 116 POWER WAKE
Now there are other buttons that are in the file but i just left them blank, meaning it says *key ### NAME *, with no wake or wakedropped
hopefully this can help some people
PS: you need to restart your phone for the file to take effect.
After the boot it took about 3 presses but now the power button is fully functional it puts the phone to sleep, wakes it up, and brings up the power option on long press!!!!!

Related

power button broke so i reassigned it ;)

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.

[Q] Disable the Power button options when the phone is locked

Hi,
I've found no info regarding the subject above, actually i found but not answers
http://forum.xda-developers.com/showthread.php?t=943243&highlight=disable+power+button
Need to disable the power button options when long pressed in lock screen. Having it awaken is fine when pressed, but i have often found the phone on silent or flight mode (& once it was switched off ) when inside a jeans pocket (mostly).
Is there a modification, not to pop the power button options when in lock screen ?
Its annoying...
Im wonder too.
Send from My X10i Rooted GB v2.3.3
hmm...i never experienced this.
Solution is keep ur phone in upward direction in ur pocket..lol

UNLOCK the Strek by volume UP or DOWN even Camera button!!!

METHOD 1
So this day's i had a little problem with the power button not working very good, i got scared because some people told me the power button is beginning to die....
So i begin to search for a method to unlock the phone by camera button or volume up-down, i read here that some people use the sensor but i din't like it. I begin to make modf. to android.policy.jar and other tweaks but not even one worked, but i found a simple solution to make it work.
You need to use a file manager and edit 1 file from /system/usr/keylayout.
The file is surf_keypad.kl, open surf_keypad.kl with notepad and put this line WAKE_DROPPED to:
THIS IS FOR CAMERA BUTTON
key 59 FOCUS
key 212 CAMERA
example:
key 59 FOCUS WAKE_DROPPED
key 212 CAMERA WAKE_DROPPED
THIS IS FOR VOLUME BUTTONS
If you want only VOLUME_UP to unlock phone put WAKE_DROPPED to VOLUME_UP if you want VOLUME_DOWN to work put WAKE_DROPPED only there.
key 115 VOLUME_UP
key 114 VOLUME_DOWN
example:
key 115 VOLUME_UP WAKE_DROPPED
key 114 VOLUME_DOWN WAKE_DROPPED
And you need also a widget to put on the desktop to lock the phone after you modf the file you need to reboot sow it can take effect.
This is only for DSC1.0 android.policy.jar modf by me with this tutorial, the buttons volume up and down should work flawless with surf_keypad.kl modification,when using camera you need to push 2 times to wake from deep sleep.
I tested this only on DSC.1.0 this is the rom i'm running now.
p.s. sorry for my english.
METHOD 2
Widget Locker is what _nop_ is using and it's working flawless with camera button, you need also to modf the surf_keypad without need to change android.policy.jar
I tied this method but by using button remapper. The problem for me is once the Streak goes in to deep sleep mode any button other than the power key won't wake it up.
CM7 being the only thing works with volume keys unlocked even the phone is sleeping.
Sent from my Dell Streak
After how much time is the streak going to sleep mode i tested after 10 minutes and it still works.
asianftw said:
I tied this method but by using button remapper. The problem for me is once the Streak goes in to deep sleep mode any button other than the power key won't wake it up.
CM7 being the only thing works with volume keys unlocked even the phone is sleeping.
Sent from my Dell Streak
Click to expand...
Click to collapse
I used button remapper before too, and when the phone is in deep sleep, the camera button took a few presses to get it working. A drawback of button remapper was that it was a complete remap of the camera button, not like the CM7 implementation where vol- and vol+ only were mapped to wake up the phone when screen was off.
I will leave the phone untouch for 1 hour to see what is going on, i hope is going to still work even if in deep sleep.
Short test gives that camera button cannot wake device at once from deep sleep
But hack, menting posted link to, works fine.
I wonder can it help to solve "cannot resume playing" with button on headset.
ok i waited 40 minutes and press volume down and it works, but i dont know why if you guys tell me that you tested this method and is not working, then it must be the modf to the android.policy.jar that is making it work. i have to test even more, need your help to guys to make test's to see what way is the best way to save the power button.
With unchanged policy i can use only FOCUS key to wake the device. And it requires pressing it many times when device sleeps.
That's my experience.
Maybe that's because keyguard filters other presses?
It could be that is filtering other presses and then going to the wake press, i've beem waiting for 1 hour and 10 minutes you thinc i should wait longer to get deep sleep?
But there is a strange thing i don't seem to get, i only made the modf to the volume down but it seams that all the buttons work when i press, that is weird.
_n0p_ said:
With unchanged policy i can use only FOCUS key to wake the device. And it requires pressing it many times when device sleeps.
That's my experience.
Maybe that's because keyguard filters other presses?
Click to expand...
Click to collapse
same here only the camera button works.
_2bad4u_ said:
It could be that is filtering other presses and then going to the wake press, i've beem waiting for 1 hour and 10 minutes you thinc i should wait longer to get deep sleep?
But there is a strange thing i don't seem to get, i only made the modf to the volume down but it seams that all the buttons work when i press, that is weird.
Click to expand...
Click to collapse
deep sleep should happen within a few min I think.
So you don't need to work any longer
ok after 1 hour and a half still working the best test will be in the morning,
but now if you guys test with out policy.jar it means that policy activates the volume and the keyguard is working?
but is's also strange cuz until made modf to the keyguard the policy din't work, something is not right here, i made other modf to other files but i change them back.
thanks guy, you bring to me & my Streak new life.
The power button is almost died, it was a suffering every time I tried to wake on the phone.
Now is the camera button that is doing the same dirty job and works like a charm!
Thank you for life!
Ok so the volume down it's working great, i have no problems and not once i had to press 2 times to wake the phone, now i'm testing with out android.policy.jar to see if is working.
It works!
Applied the changes on my Streak having the GingerStreak ROM2.4.4 and it works.
I don't know how many took the example seriously ,because I did ,and changed both camera and focus key to the mentioned values.When the phone goes in deep sleep you need to press a bit harder,not to hard.I saw that the button has two stops,you press gently it stops and it doesn't work ,when the phone goes in sleep mode ,but it works if you press it just after the screen goes out ,you press a bit harder it goes further and then it works.I suppose that this is the state when the phone exits from the deep sleep.
For me this change is very useful because I don't know how many times I pressed the camera button to unlock,simply because it was easier to reach than the power.Thanks again,mate, you deserve a keg of whatever drink,(plum brandy from north-palinca),you like!
It seems that surf_keypad.kl works flawless with volume down & up if you make modification to android.policy.jar. If i remove android.policy.jar it doesn't always respond but it still works, i've tested only for volume down & up, camera button i thinc is dying on me (make's a strange sound).
I've tested only with android.policy.jar modf but it seems that it doesn't work, i don't know why :-? .
Updated......

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.

phone behavior after getting wet

Hello,
After my phone got wet recently, it is showing a strange problem. the phone does not turn down its display after 1 mins (default), I press the power button, the screen turns off back to on again. Please help.
thanks
How is this related to Tasker?
this helped
http://forums.androidcentral.com/sa...galaxy-s4-mini-screen-keeps-turning-back.html
problem was that the home button internal circuit lies close to the power button, so when I pressed the power button, the home button also got activated after the phone got wet.
So, I looked for a solution where pressing the home button doesn't wake up the phone.
and finally I found it in wannam exposed module.
Yes it's not directly linked to Tasker, button we can also achieve the same function with Tasker by playing with the kl files in system/usr/keylayout folder
This doesn't belong here.
You should go to your device forum.
Hopefully a moderator will delete this post.

Categories

Resources