[Q] Wake with volume rocker? - Nexus 4 Q&A, Help & Troubleshooting

I hate making a new thread -- but I haven't been able to get the volume rocker to wake the device.
After looking at various other volume wake mods, I looked and worked with /system/usr/keylayout/keypad_8064.kl but haven't been able to get it to work.
Here's it's contents in case anyone else can figure it out:
Code:
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
I've tried removing the word WAKE, but that doesn't do anything. Either the key definitions are wrong so WAKE doesn't fire, or that file is ignored altogether.
Anyone have any ideas?

I'm also looking for a solution to this. Appreciated if anyone can help.

Also interested...
The TPU case I use makes the power button pretty stiff, but the volume ones are just fine. This would be very helpful.

Has anybody came up with a volume rocker mod to wake the screen for the Nexus 4?

Most custom roms have this feature to be activated in their settings.
AOKP as well as CyanogenMod.

I'm using xylon which is based off of both cm10 and aokp and it offers this option and it works great.
Sent from my Nexus 4

Related

[FYI] A realization when doing some of the mods

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.

[Guide] Anti pocket unlock tweak

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

[SOLVED] Any key screen wake for stock?

As the title says, is there any way to set the function of, let say, the back key or the search key to wake the screen?
I know that the ICS port has this function natively but i'm using stock.
i tried Button Remapper and NoLock without success.
any ideas?
note: the reason being is that i need to replace the camera pcb since the power is busted.
it works.... if i pressed on the button with extreme force (yes, i've attempted to rectify the issue myself, but screwed up to the point where i can't undo and fix.)
SOLVED: I edited key 248 (rotation key) with "POWER WAKE".
so now that key can turn off the tablet or wake it.
Makes things with tablet much more bearable until i get the front camera pcb ]replaced.

[Q]Volume Rocker Wake

So I am using paranoid android the latest stable before 2.99 and cannot wake my screen using the Volume Rocker
I have it set to on. and it maybe works within the first 3s after a screen is off but any longer and it wont wake the screen.
I have toggled it off, rebooted; toggeld back on, rebooted. But no luck.
If anyone knows any fixes to this or any tips that would be awesome, thanks.
:what:
Just use the button right next to the volume key. Really its not any different. Works just like the volume buttons. Just apply sufficient pressure as to cause the surface of the key to become flush with the side of the device and you're good to go.
Sent from my Paranoid Nexus 7 using XDA Premium

Volune rocker wake not working after deep sleep. (CM10.1 nightlies)

Volume rocker wake works as long as the screen has been powered down recently, but after a few minutes the device won't turn unless you hit the power button.
I know that the power button is right besides it, but it's just something that I've grown accustomed to doing on my phone and see no good reason other than a bug in the nightlies as to why its not working. Does anyone have any insight as to why? Does this happen in PA and AOKP as well?
Edit: nevermind, resolved after installing the latest nightly.

Categories

Resources