I've been having fun playing with wanam tweaks after root but somewhere in the changes I'm turning off the ability to use the power button to turn off the screen. Any ideas where I'm making my mistake? Thanks
6347 people just hit their power button to "make sure"..... whew...
Related
Some of you have probably seen some of the mods in the Hero Development forum and have applied them. One thing that I have noticed, or that I thought was a really cool mod was removing the end call button from the screen - mainly because it can hang up an important call if you face dial (not a problem I currently have, but the 1 time it happens can be devastating)...another mod that is really cool is remapping the hard keys (menu, search, back, home, vol up and down). I have already utilized the mod to allow my search button to control play/pause of media files without waking the phone up.
To the point: Yesterday, I was looking through the remap mod to find out if there is a way to map actions to hard-press buttons, in looking for that, I found that there is an option for Power. Now, as many of you know, the Hero does not have a power button to turn the screen off when in a phone call - that is what the Power option does - turns the screen off WITHOUT hanging up on the person you are talking to. Now, the only way to end the call is to press the End Call button on the dialer...kind of hard to do if you removed the button LOL...so for anyone doing mods, save your work, you never know when you will have to go back...I deleted the backup files because I thought I was done with modding the dialer/phone.
Hope this helps someone.
evilvoice said:
Some of you have probably seen some of the mods in the Hero Development forum and have applied them. One thing that I have noticed, or that I thought was a really cool mod was removing the end call button from the screen - mainly because it can hang up an important call if you face dial (not a problem I currently have, but the 1 time it happens can be devastating)...another mod that is really cool is remapping the hard keys (menu, search, back, home, vol up and down). I have already utilized the mod to allow my search button to control play/pause of media files without waking the phone up.
To the point: Yesterday, I was looking through the remap mod to find out if there is a way to map actions to hard-press buttons, in looking for that, I found that there is an option for Power. Now, as many of you know, the Hero does not have a power button to turn the screen off when in a phone call - that is what the Power option does - turns the screen off WITHOUT hanging up on the person you are talking to. Now, the only way to end the call is to press the End Call button on the dialer...kind of hard to do if you removed the button LOL...so for anyone doing mods, save your work, you never know when you will have to go back...I deleted the backup files because I thought I was done with modding the dialer/phone.
Hope this helps someone.
Click to expand...
Click to collapse
Yup, nandroid FTW. Curious, did you get it fixed? Or are you also asking for assistance?
Havent fixed it yet, though I could just send the keylayout undoing the power button for now. In the end, I will have to add the end call button back because I am really liking the ability to turn the screen off without hanging up. I just cant remember what I did to do the mod, if I actually removed lines of code or commented them out. It is JsChiSurfs mod, but because the files posted were old, I edited my file with his method...looks like it is apktool time.
Edit: I should point out that with the mod, pressing the end call button on the dialer isnt the ONLY way, even though I said it was. You could also reboot the whole phone - currently what I have to do now for those that dont terminate the call. JOY!
Oh my!!!!! I always wanted to find a way to turn off the screen while on a call. Please, please, please find out how you did it.
The thread by Decad3nce is Here. You basically change
Code:
key 107 ENDCALL WAKE_DROPPED
to
Code:
key 107 POWER WAKE_DROPPED
Hell yeah!!!! That's what I'm talking about.
I find power button is extensively used during EVO operation. Each time I want to check the the screen, or after making a call, I have a press that small tiny little power button to light up the screen. I am not sure whether this button is the weakest part of EVO.
Are there any tricks to save the use of this button?
http://www.xda-developers.com/android/a-concerning-amount-of-evo-users-report-power-button-crack/
No crack here so looks like they fixed it.
For tricks. Get an app that will turn the screen off. Change the setting to keep the screen on longer so if you are reading something it won't turn off. Have someone call you so the screen turns on and you don't have to use the power button.
Might be a way to use the volume rocker to turn the screen on. Have not looked into that since I am not concerned about my power key not working.
Aosp roms have configurations that allow you to turn the screen on and off without using the power button. Plus theirs an app in the market called screen locker that allows you to shut the screen with the "search" soft key
Sent from my PC36100 using xda premium
New guy here!
I'm from holland and I have a 2009 hd2 which is currently running AOKP Milestone 5 SE
So this is my first guide and i'll start with something simple.
Eliminating those frustrating pocket unlocks and the screen turning on in your pocket which drains your battery.
The easiest option is to start using your volume rocker as a unlock button and removing all the front button mappings for waking your phone.
Your power button is still your lock button though.
1. Find out if your rom has any special rom options (e.g. rom control, some toolbox, cynogen mod options etc)
2. Go through those options and try to find something with volume wake, it's probably under lockscreen options.
3. If you have found the option enable it, if not you have to download WidgetLocker in the market it comes with the option in it.
4. Once you've tested it we can begin with disabling the front keys by downloading ButtonRemapper in the market.
5. Now when you're in the app, you are seeing a list of key numbers with their name and function behind it. key number 116 is the only one you need to keep on its original state, it is for the power button when the phone is unlocked.
6. Start by clicking a key and putting its state in NONE and press ok, now do this for the remaining keys, EXCLUDING 116.
7. Hit the apply button and see your hd2 hot rebooting
8. When the phone comes to its senses again, try it out!
Lock with your power button
Unlock with your volume rocker.
It almost feels like a modern android phone with the lock/unlock button on the top or side.
I hope you like it, because I really do!
3ll0s said:
New guy here!
I'm from holland and I have a 2009 hd2 which is currently running AOKP Milestone 5 SE
So this is my first guide and i'll start with something simple.
Eliminating those frustrating pocket unlocks and the screen turning on in your pocket which drains your battery.
The easiest option is to start using your volume rocker as a unlock button and removing all the front button mappings for waking your phone.
Your power button is still your lock button though.
1. Find out if your rom has any special rom options (e.g. rom control, some toolbox, cynogen mod options etc)
2. Go through those options and try to find something with volume wake, it's probably under lockscreen options.
3. If you have found the option enable it, if not you have to download WidgetLocker in the market it comes with the option in it.
4. Once you've tested it we can begin with disabling the front keys by downloading ButtonRemapper in the market.
5. Now when you're in the app, you are seeing a list of key numbers with their name and function behind it. key number 116 is the only one you need to keep on its original state, it is for the power button when the phone is unlocked.
6. Start by clicking a key and putting its state in NONE and press ok, now do this for the remaining keys, EXCLUDING 116.
7. Hit the apply button and see your hd2 hot rebooting
8. When the phone comes to its senses again, try it out!
Lock with your power button
Unlock with your volume rocker.
It almost feels like a modern android phone with the lock/unlock button on the top or side.
I hope you like it, because I really do!
Click to expand...
Click to collapse
Nice guide! Very similiar to my original mod here but you make it a bit more simplified xD
After removing WAKE and WAKE_DROPPED from the keys, clicking buttons doesn't wake the screen (as expected), but lights the buttons, and they stay lit forever (i.e. until the next unlock/lock).
Do you also experience the same thing? Any solution?
d4v0r said:
After removing WAKE and WAKE_DROPPED from the keys, clicking buttons doesn't wake the screen (as expected), but lights the buttons, and they stay lit forever (i.e. until the next unlock/lock).
Do you also experience the same thing? Any solution?
Click to expand...
Click to collapse
Yes this is normal, caused by a gpio wake lock from the kernel. No solution yet, I personally don't care as it drains a lot less battery than having your screen come on
Sent from my HTC HD2 using Tapatalk
elesbb said:
Yes this is normal, caused by a gpio wake lock from the kernel. No solution yet, I personally don't care as it drains a lot less battery than having your screen come on
Sent from my HTC HD2 using Tapatalk
Click to expand...
Click to collapse
gpio don't need wakelocks in kernel, when interrupt is raised, cpu exits suspend and services the raised gpio interrupt. This is problem with bad coding logic of the key's backlight driver, i will see what can be done in some days (really busy atm).
Rick_1995 said:
gpio don't need wakelocks in kernel, when interrupt is raised, cpu exits suspend and services the raised gpio interrupt. This is problem with bad coding logic of the key's backlight driver, i will see what can be done in some days (really busy atm).
Click to expand...
Click to collapse
This is still kernel related though right? as it deals with the driver? And you really dont have to work on it its not that big of a deal, put it on lowwwww priority you do amazing work here so as it is
the most important thing is to not keep anything else metal and/or hard, in your pocket with the hd2. Items like batteries or keys
3ll0s said:
...
Lock with your power button
Unlock with your volume rocker.
...
Click to expand...
Click to collapse
This idea is awesome, thank you!
I've customized it a little bit to save my power button (and so my touchscreen connector).
I've set all my hardware buttons to power, but without wake property.
Now, I can:
Lock with any hardware button
Unlock with volume rocker.
thanks a lots aha
I disabled my lockscreen and instead changed the button mapping to only turn on the screen when I double press and hold either power or home with Xposed Additions, which works perfect (Home button sometimes doesn't wake, power does). Problem though is this damn annoying battery warning keep on waking my phone.
Anybody know a method to disable it that still works on Android 6.0 Touchwiz?
ok, so as you should've known already Mia1 power button often double clicks even when we only click one time. Will this cause any unwanted things to happen while trying to root and when trying to flash custom rom?? Some procedures requires power button and I'm afraid if the messed up power button causes any unwanted things to happen.
I had the same issue with power button every time i pressed it to wake device Camera app opens