Hi.
Cooking my fxdjxxxxxx roms I never tested where hardware keys were working.
Simply I did not need them ever.
Recently I decided to map some piece of software to camera button and .... it turned out that all hardware keys ( excluding stby/power of course ) are dead.
Both my low level keyboard scanning and certain available software for keyboard mapping showed that none keyboard codes are generated when pressing camera button or volume up/down buttons. Only software keys and keys available at the bottom of touch screen generates any codes.
Of course mentioned hardware keys are not damaged so it must be any software responsible for that.
Does anybody knows the reason ?
Reagards
fxdjacentyfxd
With a my c# program I can get the keys code.
CAMERA BUTTON = code 91
POWER BUTTON = code 133
VOLUME+ = code 117
VOLUME- = code 118
<-, home, central slide button, give me code 92
Warning they are don't be scan key code but KeyDown keyvalue code.
I hope help you .
Thanks but problem was with absence of keypad driver and that was why I did not get and scan codes. Some time ago I was experimenting with keypad driver and forgot about it .
Regards
fxdjacentyfxd
Sorry I did understand your problem .
May be you have a hardware problem so you never can get any keys on that line.
Try another rom and if you have the same problem you have certainly a hardware problem.
Regards
Related
I have a bizarre problem with my HD2, which seems to be hardware based ... kind of....
*Sorry if this ends up being really long*
Basically my Volume up and down buttons have stopped working along with the windows button and "back" button.
However, the "home", "call" and "end call" buttons still work, but not properly.
When the phone boots you can briefly see the windows (not HTCSense) volume indicator pop up just before Sense loads, which didnt used to happen.
Once the phone has loaded up only the call, home and end call buttons do anything, they light up the buttons when pressed, and the "home" button does indeed take you "home" and the "end call" button locks the phone and turns off the screen, however, pressing the "call" button doesnt bring up my call list, I have to use a soft key.
I also cannot bring up the hard reset menu, holding the volume keys and booting doesnt do anything, which is why i think its hardware based???
Another interesting problem is that the "up, down, left, right" soft buttons dont work on the keyboard (since this all started)
I had this issue about 6 months ago, I flashed my phone, to no avail .... but about 6 hours after flashing it, it just started working.
The only think I have tweeked on the phone really is installing CHT as I've been booting to Android for the last couple of months, which now I cant do as it hangs after about 5 seconds of booting.
ANY suggestions would be great.
Same problem here I got the phone from craigslist and same problem as above. Can anyone tell as if is hardware or software related problems and if anyone solve this before ?
Any help will be much appreciated.
Sorry I've only just replied, but I ended up having to send mine to HTC, they ended up replacing the main board (apparently). So definately hardware. Sorry bud.
Sent from my HTC HD2 using XDA App
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!!!!!
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,
I wanted to enable the volume key as an additional key for awake the phone!
http://forum.xda-developers.com/showthread.php?t=1118562
I read this link which explains how to change the keys hard, I did quanche trial but I have not gotten any results .....
Anyone know how to do?
Hi
My Samsung Galaxy A3 2016 only boots in safe mode because the volume down button was damaged by water. Upon further usage I discovered that by pressing it even once the phone believe that I’m holding it down and, for some reason, after I do it the power button does not respond. I thought I had the solution and I tried editing the Generic.tar file found in /sysyem/usr/keylayout/:
key 113 VOLUME_MUTE
# key 114 VOLUME_DOWN
key 115 VOLUME_UP
key 116 POWER
key 117 NUMPAD_EQUALS
Indeed, the volume down button was being disabled and I was greeted by the normal OS (confirming that the safe mode is triggered by volume down being pressed). The only problem was that also all the others physical buttons weren’t working (not the softkeys). Disabling any other button works as intended.
It is worth saying that, even though the power button does not work after I press volume down, in LineageOS if I double tap it the camera application starts as programmed (long and short presses don’t work -> adb reboot). This in my opinion suggests that although the problem is in the hardware it can be bypassed via software somehow.
Generic apps found in play store of course won’t do the job. I had tried with the repair service and they said that the damage is in the motherboard, and it’s not worth the money.
I’m out of idea but this is becoming a matter of principle and I’m not willing to let a piece of silicon win. Can you please help me with this problem?
bump