[MOD] [4.22.11]Wake on volume keys - Thunderbolt Android Development

Judba on IRC and I have been looking at this for a while, and its been stumping us because the key mappings are already set for it to wake the phone from sleep.
As you know, only the power button currently wakes the device.
This patch will enable the wake on volume function.
Credit jcase, rhcp, and myself.
jcase and rhcp figured out the modification needed, I decompiled and recompiled.
Use this at your own risk. Only tested with BAMF roms.
http://adrynalyne.grdlock.net/bamf/patches/wake_on_volume.zip

Nice, been hoping for this.....thanks!

Great work. The number of mods and ROMs and kernels are increasing so fast. Good jobs every dev.

This might get me to finally root my Thunderbolt.

Does it put it to sleep too?

suzook said:
Does it put it to sleep too?
Click to expand...
Click to collapse
Good question!
&
Good job dev's!
Sent from my ThunderBolt with Das BAMF v1.4 Remix + BAMF 4.4.2 kernel + URBaN v6.4. THEME-R3Ds

I hope not. . Otherwise it would kind of be worthless for volume control. . But yes good question.

My volume button is pretty sensitive. I can see this turning my phone on in my pocket all the time.
Besides that, I use WidgetLocker.
Nice job, devs! I'm sure a lot of people will love this mod.

Cool, I've been wanting this

Gonna give this a shot, might take some getting used to. Thanks guys.
Sent by the Tbolt

very nice. it's little things like this make me love my thunderbolt =)

FYI, works great on Liquid Thundersense 1.25...
jc

If you do not mind losing your lock screen then there is an appropriate called No Lock in the market that does this too

installing right now, running virus r1b3, let you know what happens
*Crashed on boot, had to battery pull...
*Seems to work fine now, I hate battery pulls..
BUT GOOD WORK, THANKS!!!

Wooot Thanks! It's so difficult hitting that power button, much preferred the Droid 1's power button - closer to the edge of the phone. AWESOME.

Adry how does this function when your playing music with the screen off?

How do i make this work
Sent from my SGH-T959 using XDA App

Took a long time to boot, was stuck on thunderbolt screen long enuff for me to start taking the case off for a battery pull, then it just booted completely. Running BAMF remix 1.5 with included kernel and some of the ZH pilot mods.
THANKS

chingy51o said:
Adry how does this function when your playing music with the screen off?
Click to expand...
Click to collapse
It wakes the screen while increasing volume.
Sent from my ADR6400L using XDA App

chingy51o said:
Adry how does this function when your playing music with the screen off?
Click to expand...
Click to collapse
For me, a single press turns screen on then adjusts volume while still locked
(using htc music)

Related

can you turn the screen on without pushing power button?

title says it all; its a PITA to reach around through the case to turn the screen on all the time, and, even though the screen is supposed to come on when you push the menu key on the hardware keyboard, it doesnt work that way, at least for me..
Can anyone offer any other suggestions?
I know once I root this, there will be other choices, but, I want to learn more about the device before I root it
thanks so much for your help!
no, since xoom doesnt have soft keys so the only way to turn the screen on its to touch the power button. in other terms if you want to wake the xoom up when screen is off you need to press power button.
hopefully, some one will develop a software fix
for this; I cant be the only person that is annoyed by this..
thanks!
What's so hard about pressing the power button?
Sent from my CM7 - EVO via XDA App
if you have the motorola folio case on it, its a pain reaching through the cut out every few minutes to turn the screen on..
Idk if it works on the xoom but simply lockscreen on the market has a feature that uses the devices proximity sensor to unlock the phone, it might be just what you are looking for. Like I said, not sure about compatibility but the developer is pretty active here on xda and he might be able to figure something out.
Sent from my SCH-I500 using XDA Premium App
Sent from my SCH-I500 using XDA Premium App
Huntredgo said:
Idk if it works on the xoom but simply lockscreen on the market has a feature that uses the devices proximity sensor to unlock the phone, it might be just what you are looking for. Like I said, not sure about compatibility but the developer is pretty active here on xda and he might be able to figure something out.
Sent from my SCH-I500 using XDA Premium App
Sent from my SCH-I500 using XDA Premium App
Click to expand...
Click to collapse
The Xoom does not have a proximity sensor. One developer that frequents the forms and gave us all a screenshot app for the Xoom for free, has an App Killswitch which does the opposite action that you want. When you close the case, the light sensor senses the darkness and turns the screen off. It would take more battery but likewise would be possible to do it the way you wish when opening the cover. Maybe if we ask nicely, he can make it happen
well, I installed nolock, from the market, and it reduces the steps to one to get the screen on; when you push the power button, there is no lock screen to go through, which helps, but I wish there was a way to wake it up with either the keyboard, or just tapping the screen..
I'm sure this will come one of these days..
EDIT: It only works sometimes, not ready for 3.0 I guess....
It is possible but will not work until we have a deodexed ROM. The is a way to remap the volume keys to wake the screen but as soon as the keyguard kicks in the volume keys are disabled. With a deodexed ROM I can disable keyguard. An alterative option I might be able to work out is to wake the screen with a paired keyboard via blurtooth. So far in my testing this is working well.
Basically I have mapped the F1 key on my keyboard to wake/sleep the Xoom.
Sent from my Xoom using Tapatalk
that would be fantastic!
I bought the moto keyboard, hoping those features might be baked into it, but they arent.
I could have saved 70 bucks, and just used my apple mini BT keyboard...
Keep us informed, and if you need a tester, I will be glad to help out!
thanks
wase4711 said:
that would be fantastic!
I bought the moto keyboard, hoping those features might be baked into it, but they arent.
I could have saved 70 bucks, and just used my apple mini BT keyboard...
Keep us informed, and if you need a tester, I will be glad to help out!
thanks
Click to expand...
Click to collapse
Try to push the below file using adb ... you need root for this to work. After rebooting the right ctrl key on the Motorola keyboard should become a power button for you. Let the screen goto sleep for a few minutes and attempt to wake it using the button. Let me know if this works.
Download:
http://www.mediafire.com/download.php?hsqqsehpcjr812t
ADB PUSH:
adb remount
adb push Vendor_22b8_Product_093d.kl \system\usr\keylayout\Vendor_22b8_Product_093d.kl
adb reboot
Make sure you unplug the USB cable before testing. I think while it is plugged into USB keyguard is disabled.
EDIT:
Getting Back to Default Settings:
Download:
http://www.mediafire.com/download.php?3sxm4n1wh86a7u8
ADB Push:
adb remount
adb push Vendor_22b8_Product_093d.kl \system\usr\keylayout\Vendor_22b8_Product_093d.kl
adb reboot
I appreciate it man, but I haven't rooted the xoom yet..
I want to wait a bit, and learn it better before I do.
Even when I got my evo last june, I waited a few weeks b4 rooting to learn it beter.
thank you for the file!
This has been discussed many times on this forum.
Long story short, I agree with you, especially since I leave the xoom on a table during a meeting. My solution...I downloaded Widgetsoid2.x. Among other widgets, I have a no turn-off widget on my main page. walking into a meeting, i hit it, forcing the xoom to stay on. obviously kills the battery, but i still get two full days.
not pretty, but it works.
wase4711 said:
I appreciate it man, but I haven't rooted the xoom yet..
I want to wait a bit, and learn it better before I do.
Even when I got my evo last june, I waited a few weeks b4 rooting to learn it beter.
thank you for the file!
Click to expand...
Click to collapse
I guess I figured everyone was like me and rooted on day one. LOL. No problem. Anyone else with a Moto keyboard give that file a shot and let me know. It will only work with the Moto keyboard.
wase4711 said:
its a PITA to reach around through the case to turn the screen on all the time
Click to expand...
Click to collapse
?! ... it is?
Never did get why people malign the power-button placement so much. I think it's perfect, myself ....
kcrudup said:
?! ... it is?
Never did get why people malign the power-button placement so much. I think it's perfect, myself ....
Click to expand...
Click to collapse
I personally don't like the power button placement myself. It's all personal preference. But that's the benefit of getting and Android platform right? If something doesn't quite fit our preference we can personalize it. I think that's all the OP is asking for.
microbespecialty said:
I personally don't like the power button placement myself. It's all personal preference. But that's the benefit of getting and Android platform right? If something doesn't quite fit our preference we can personalize it. I think that's all the OP is asking for.
Click to expand...
Click to collapse
Ditto. The case I bought till a nice option comes along doesn't have the hole for the power button. That's why I started looking for alternative options.
Sent from my Xoom using Tapatalk
http://forum.xda-developers.com/showthread.php?t=1016594
Posted the how-to in the dev section for Moto/Apple/Generic Bluetooth keyboards for those interested.
What is that you are doing that it is going to sleep? The easiest thing would be not to let it sleep so quick. Set the timeout to 15 minutes or something.
I guess I am still treating this like my EVO, which, doesnt get the best battery life if you leave it on too long..this thing gets awesum battery life, so I think I wll start leaving the screen on longer, until someone comes up with software that will wake it up easily..

New feature request (slide 2 wake kernel)

http://www.androidpolice.com/2011/1...-capacitive-buttons-with-slide-2-wake-kernel/
I want it. And I want to know what we have to do to get it
^^^^^^^^
same what he said
Umm we have a BIOMETRIC FINGER PRINT SCANNER in my opinion that's way cooler and plus they have it working on cm7 now
CM7 Some current version lol @ 1.45ghz, thanks XDA Developers!!
kix08 said:
Umm we have a BIOMETRIC FINGER PRINT SCANNER in my opinion that's way cooler and plus they have it working on cm7 now
CM7 Some current version lol @ 1.45ghz, thanks XDA Developers!!
Click to expand...
Click to collapse
Yes although the finger print scanner is cool and all, it sucks that you have to pick up the phone to actually use it. Most of the time at work my phone is on the desk beside my keyboard and I don't really want to pick up/lift the phone just to wake it. It's much easier to us 1 finger and swipe across to wake it.
+1 for this. Would be awesome to have on my atrix. I haven't used the fingerprint scanner since I switched to CM7 it is cool but I agree that it's inconveniently located on the phone. this feature would be nice to have if at all possible.
anips said:
Yes although the finger print scanner is cool and all, it sucks that you have to pick up the phone to actually use it. Most of the time at work my phone is on the desk beside my keyboard and I don't really want to pick up/lift the phone just to wake it. It's much easier to us 1 finger and swipe across to wake it.
Click to expand...
Click to collapse
Yeah I guess you got a point there. There an option to unlock with menu key but you would have to pick it up to power on then press menu so that wouldn't with either.
CM7 Some current version lol @ 1.45ghz, thanks XDA Developers!!
kix08 said:
Yeah I guess you got a point there. There an option to unlock with menu key but you would have to pick it up to power on then press menu so that wouldn't with either.
CM7 Some current version lol @ 1.45ghz, thanks XDA Developers!!
Click to expand...
Click to collapse
Volume rocker wake works pretty good.
Sent from my MB860 using XDA App
andrew.cambridge said:
Volume rocker wake works pretty good.
Sent from my MB860 using XDA App
Click to expand...
Click to collapse
Indeed, it's what I use now, although you still need your whole hand to stabilize the phone when pressing the volume rocker My laziness just amazes me sometimes lol.
DUDE WTF!!!
I thought about this idea the other day on my way home and was starting my
investigation to see what it would take to make an app out of it..
im supporting this too. slide2wake kernel for atrix. faux should get in touch with its developer.

Sweep2wake - any kernel master to bring this for dhd?

I just saw this amazing option/work of developer and tought we can have it too on ours dhds. Anybody? That would be great! They should include it in all phones above 4inchs by default.
http://youtube.com/watch?v=jri2BMQHHrs
http://forum.xda-developers.com/showthread.php?t=1572015
I likeeee a lot.
If a kernel dev wants this feature I could take some time and port it over, though due to lack of a dhd I would not be able to test it
show-p1984 said:
If a kernel dev wants this feature I could take some time and port it over, though due to lack of a dhd I would not be able to test it
Click to expand...
Click to collapse
I think a lot of dhd users would be grateful for that. Man this option rocks for big phones! No more looking for POWER button "somwhere over the rainbow" hehe
I miss the times of HTC Magic and hardware power button under screen. That was perfect solution. Lat say samsung placed power good enough too but htc? Hello 4,7 inch screen (htc one x) and power high above and hard to press by one hand...
omg omg omg, please soooo please port this.
my power button is wearing out.
EDIT:
*facepaw*
I can program, hey, anyone wanna help me make the sweep2wake for dhd? i have no clue how to patch it in
i think pacha want to take it into his rom/kernel. i ask him about this in his xtreme rom thread
show-p1984 said:
If a kernel dev wants this feature I could take some time and port it over, though due to lack of a dhd I would not be able to test it
Click to expand...
Click to collapse
Show-p, I'm willing to try an DHD kernel port out for you, if you want to test it. It would be a cool addition for the DHD/Inspire devices
klquicksall is working on this
http://forums.acsyndicate.net/showt...CIFS-NLS-OC1-9-VDD-TUN-2WCR&p=20832#post20832
so if anyone would care to work on this, it would be best to contact him, no point in reinventing the wheel.
im very interested in this one too, so if you need testers, i can help. not much else unfortunately, since i cant code at all
close but no cigar, i need a ics kernel.
We'll be back in a month or so then lol.
Come on kernel 3 alls dev.
Sent from my Desire HD using XDA Premium App
We have got this on the Desire S on our CM9 port, using the old kernel 2.
You need to build and integrate this from source
Desire S • Fallout V2.0.0 • xda premium
ideally, you want to keep the capacitive sensors open to input, then the math from there. i simple dont have the source or know how to do this myself.
Be warned, this drains excessive battery unnecessarily. Cool feature to show off, but prepare to charge your phone more often.
Desire S • Fallout V2.0.0 • xda premium
olyloh6696 said:
Be warned, this drains excessive battery unnecessarily. Cool feature to show off, but prepare to charge your phone more often.
Desire S • Fallout V2.0.0 • xda premium
Click to expand...
Click to collapse
Battery drain on desire hd is a big problem lol...
olyloh6696 said:
Be warned, this drains excessive battery unnecessarily. Cool feature to show off, but prepare to charge your phone more often.
Desire S • Fallout V2.0.0 • xda premium
Click to expand...
Click to collapse
there are two methods of doing this, and one of them is said to be much more battery friendly than the other
t0mas_ said:
there are two methods of doing this, and one of them is said to be much more battery friendly than the other
Click to expand...
Click to collapse
Has anybody tried checking the maH while in testing? Curious how mush power it actually consumes
---Don't forget to pound the THANKS button if this helped....sent from my CoreDroidized Inspire---
ljjehl said:
Has anybody tried checking the maH while in testing? Curious how mush power it actually consumes
---Don't forget to pound the THANKS button if this helped....sent from my CoreDroidized Inspire---
Click to expand...
Click to collapse
Well, I haven't got any statistics on me. I'm from the Desire S forum, we have the same specs. Some guys reported an increased mah drainage. in sleep we had 8-9mah, with the kernel mod, we had 14-15mah.
If someone can port this to DHD, you can ask LorD ClockaN to add this in his kernel.
olyloh6696 said:
Well, I haven't got any statistics on me. I'm from the Desire S forum, we have the same specs. Some guys reported an increased mah drainage. in sleep we had 8-9mah, with the kernel mod, we had 14-15mah.
Click to expand...
Click to collapse
Hmm, I guess it isn't too bad, as you can refine the Rom to get as low as 2-3 maH before the mod.
---Don't forget to pound the THANKS button if this helped....sent from my CoreDroidized Inspire---

[Req] skip tracks with volume buttons

While screen is off. Since we don't have lock screen controls this mod might be extremely useful for some. If someone can make it happen i'll gladly donate $10 or if that's not enough maybe I can get a bounty going.
Yes! I have no idea why the manufacturers or google haven't made this a feature yet. God damn I miss the hard button controls on cm7.
I have missed that since before my first droid!
Sent from my SPH-L710 using xda app-developers app
Yes please!
Glad to see some action in here. Lets keep this thread going, maybe it will catch the eye of one of our amazing Devs!
Would love to see this.
Sent from my SCH-I535 using xda app-developers app
This is how I set it up on my iPhone using sbsetting. Hold power for 1 second to start playing. Hold home for next track or skip. Since the galaxy s iii has the home button, I figure we could d the same
EDIT: I wouldn't use the volume buttons since I use them to adjust volume
Sent from my iPhone using Tapatalk
Download AOKP ROM...it has it and 4328957209348 better than stock anyway
i dont mean changing the volume buttons to skip tracks, I meant holding the button down to skip tracks. I guess I should've made that clear. All of the Roms I ran on my last phone had this feature. It was either baked in or it was a flashable mod.
And ROFLMFAO at iPhone!!!! Ur in the wrong place buddy
Working fine on CM9
I'm honestly surprised no one has made an app available on the market that makes this feature available. I personally believe there is potential money to be made with this idea. I'm no Dev, but from what I understand it involves manipulating the framework files which may vary from phone to phone. Might be why this app doesn't exist? Just to clarify, I'm talking about the way it's implemented on CyanogenMod and some other custom ROMS, not "shake to skip" or one of these other apps that are currently available. I believe the CM style is the type of implementation the OP is talking about.
Super bump
Why they don't include this stock boggles my mind. This seriously should be a basic feature. I miss this so my about cm7 on my dx.
would love a flashable mod for this! i miss this the most from my previous htc incredible
I'm sure some Dev can shine some light on this topic. Spread the word ppl!

ROM with hardware gestures?

Hello guys!
Been lurking, but this is my first post and first of all I just wanted to say this: big fan of what's going on in this forum! Love seeing the positive atmosphere and intelligent projects being posted here!
So to my somewhat small question(?), I'm coming from iOS, and once you jailbroke it, you were able to install a tweak which made you able to skip songs by doing a longer pressing down of the volume bar. It was really convenient, because then you could skip backwards, forwards, and even start/stop the songs without pulling your phone out.
So, is there anything similar to this for the Android? Maybe a ROM that has it or something?
See you guys around
Hegemonia said:
Hello guys!
Been lurking, but this is my first post and first of all I just wanted to say this: big fan of what's going on in this forum! Love seeing the positive atmosphere and intelligent projects being posted here!
So to my somewhat small question(?), I'm coming from iOS, and once you jailbroke it, you were able to install a tweak which made you able to skip songs by doing a longer pressing down of the volume bar. It was really convenient, because then you could skip backwards, forwards, and even start/stop the songs without pulling your phone out.
So, is there anything similar to this for the Android? Maybe a ROM that has it or something?
See you guys around
Click to expand...
Click to collapse
Hi buddy, that is a nice first post.
Welcome to Android.
With Android you don't need to root/jailbreak your phone to get these feauters, are you using OnePlus 2, if yes, Go to settings> Gestures you can find all amazing features you can do without even switching your phone screen on.
krishna442 said:
Hi buddy, that is a nice first post.
Welcome to Android.
With Android you don't need to root/jailbreak your phone to get these feauters, are you using OnePlus 2, if yes, Go to settings> Gestures you can find all amazing features you can do without even switching your phone screen on.
Click to expand...
Click to collapse
Thank you for your reply krishna442!
However, it seems I'm only able to turn on four gestures, and they're all bound to touching the screen, which in turn means I have to pull my phone out of the pocket. It may seem like a small thing, but I really miss that one small thing from the iOS. Being able to change songs while running/when having tight pants and the hassle that brings about (haha) and such.
What I'm looking for is a hardware gesture, bound to the volume buttons, and from what I can see, that does not exist.
Oh, forgot to say, I'm using OxygenOS 2.2.1.
With kind regards,
Hege
Hegemonia said:
Thank you for your reply krishna442!
However, it seems I'm only able to turn on four gestures, and they're all bound to touching the screen, which in turn means I have to pull my phone out of the pocket. It may seem like a small thing, but I really miss that one small thing from the iOS. Being able to change songs while running/when having tight pants and the hassle that brings about (haha) and such.
What I'm looking for is a hardware gesture, bound to the volume buttons, and from what I can see, that does not exist.
Oh, forgot to say, I'm using OxygenOS 2.2.1.
With kind regards,
Hege
Click to expand...
Click to collapse
Haha, I know that feel bro!
That option is right now not available in OxygenOS 2.2.1, how ever you can install custom ROM for this option, like CyanogenMod.
krishna442 said:
Haha, I know that feel bro!
That option is right now not available in OxygenOS 2.2.1, how ever you can install custom ROM for this option, like CyanogenMod.
Click to expand...
Click to collapse
So it does exist?? That's wonderful news! I'm gonna learn the flashing procedure as soon as possible!
Haha, this made me so excited!!
Thanks for all your help Krishna! I wish you all the best
Hegemonia said:
So it does exist?? That's wonderful news! I'm gonna learn the flashing procedure as soon as possible!
Haha, this made me so excited!!
Thanks for all your help Krishna! I wish you all the best
Click to expand...
Click to collapse
Nice, hope the same to you, thanks for being kind.
Some of useful links.
http://forum.xda-developers.com/oneplus-2/general/welcome-to-forum-message-moderators-t3143722
http://forum.xda-developers.com/oneplus-2/general/index-roms-kernels-uis-oneplus-t3147878
http://forum.xda-developers.com/oneplus-2/general/assistance-solutions-tips-tricks-t3335469
Have a nice stay at Xda.
You don't need to flash a new ROM to do this. You just need Poweramp, which is generally regarded as one of the best music players on Android, and Pocket Skip Track. This will let you skip tracks on a double press of the volume buttons (but only when the screen is off). If you're rooted and use a kernel set to Permissive mode you can set it to work on long press as well, but double clicks are fine for me.
I think it's possible using xposed+gravitybox
Sent from my ONE A2005 using Tapatalk

Categories

Resources