[REQUEST] Universal 30-step volume mod for AOSP ROMs - Samsung Galaxy Nexus

Android is notorious--at least in my opinion--for having nowhere near enough granularity in the volume control. With only fifteen steps in the Media volume, music is often either thunderously loud or far too quiet, with no happy medium.
Sure, I did what most folks do and used MusicFX/DSPManager equalizer to boost volume across the board slightly, but while it gives me a decent volume for most of my music, it doesn't solve the problem, it just bandaids it. Each volume increment is too great a leap.
I did notice that a Nexus S ROM, AOSP+, had this mod at one point and I was wondering if it was possible to make a universal CWM-flashable zip that would enable a Galaxy Nexus running an AOSP ROM to gain the benefit of having more granularity in the volume control.
I'm also wondering why the hell Google thought only 15 steps was a good idea...

I'd like this too.
It's not just Android, I find many phones and mp3 players don't provide enough steps in volume.

You can change the amount of incall volume steps by altering "ro.config.vc_call_vol_steps=" in the build.prop to whatever you want (not tried this in ICS though, it might be different), but I don't think changing the amount of system volume steps would be that easy, it would probably have to done from source.

Meltus said:
You can change the amount of incall volume steps by altering "ro.config.vc_call_vol_steps=" in the build.prop to whatever you want (not tried this in ICS though, it might be different), but I don't think changing the amount of system volume steps would be that easy, it would probably have to done from source.
Click to expand...
Click to collapse
It's the number of steps in the Media volume I want to change. In-call volume needs to be turned up all the way in order for me to hear it, anyway.

Check here:
http://forum.xda-developers.com/showthread.php?t=1411317
Use that myself, and it works fine.
However in our roms it's called array_9.

tristan202 said:
Check here:
http://forum.xda-developers.com/showthread.php?t=1411317
Use that myself, and it works fine.
However in our roms it's called array_9.
Click to expand...
Click to collapse
Would this potentially break the screen-off volume controls to skip tracks? I'm game to give it a shot myself later on, but it'd be nice to know if it interferes with any other mods.

This is exactly what I want (for AOKP ROM hehe). I was at the gym listening to Google Music with headphones and kept going between two volume levels..one was too loud and the other too quiet, no perfect medium. Such a stupid thing of Google to overlook.

Or we need voodoo
Sent from my Galaxy Nexus using Tapatalk

synaesthetic said:
Would this potentially break the screen-off volume controls to skip tracks? I'm game to give it a shot myself later on, but it'd be nice to know if it interferes with any other mods.
Click to expand...
Click to collapse
No, it doesn't affect the volume rocker track skip.
Sent from my Galaxy Nexus using xda premium

I've modded the framework.jar file but I haven't actually put it in yet, because I've noticed something else that's rather odd. My GN will more often than not bump up two volume notches every time I press the volume key!
I'm not really sure what's going on here. Maybe I need to reboot, but when I press up or down on the volume rocker, about 80% of the time it moves by two steps rather than just one.
Edit: Applied the modified framework.jar. No problems so far, but my volume key still seems to skip two steps (though now the steps are half the size) after the first press. There's a pattern to it. The first press of the key will only increment once, but all subsequent presses in the same direction will increment twice. So if you have the volume set at 15/30 and press up once, it'll go to 16/30, but if you press again, it'll go to 18/30 instead of 17/30, and continue to go up by two every time until you press Volume Down. Pressing Volume Down at 18/30 will reduce it to 17/30, but then any subsequent Volume Down presses will decrement by two.
This is annoying, though it does seem to explain why I was fairly easily able to find a happy median volume on my Nexus S with 15 volume steps, but never quite was able to on the GN without a lot of ****ery. Because when I'm pressing the damn volume keys, it's not always only incrementing by one! >.<
Though now with the 30-step volume applied, the "skip two" effect is basically nullified. Still, I'd like it to work properly.

synaesthetic said:
I've modded the framework.jar file but I haven't actually put it in yet, because I've noticed something else that's rather odd. My GN will more often than not bump up two volume notches every time I press the volume key!
I'm not really sure what's going on here. Maybe I need to reboot, but when I press up or down on the volume rocker, about 80% of the time it moves by two steps rather than just one.
Edit: Applied the modified framework.jar. No problems so far, but my volume key still seems to skip two steps (though now the steps are half the size) after the first press. There's a pattern to it. The first press of the key will only increment once, but all subsequent presses in the same direction will increment twice. So if you have the volume set at 15/30 and press up once, it'll go to 16/30, but if you press again, it'll go to 18/30 instead of 17/30, and continue to go up by two every time until you press Volume Down. Pressing Volume Down at 18/30 will reduce it to 17/30, but then any subsequent Volume Down presses will decrement by two.
This is annoying, though it does seem to explain why I was fairly easily able to find a happy median volume on my Nexus S with 15 volume steps, but never quite was able to on the GN without a lot of ****ery. Because when I'm pressing the damn volume keys, it's not always only incrementing by one! >.<
Though now with the 30-step volume applied, the "skip two" effect is basically nullified. Still, I'd like it to work properly.
Click to expand...
Click to collapse
I will try and look into it later today when I get home. I will take a look at the source and see if any other values control the increments.
Sent from my Galaxy Nexus using xda premium

tristan202 said:
I will try and look into it later today when I get home. I will take a look at the source and see if any other values control the increments.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Just wanted to let you know that before you start plowing through a lot of code, the "skip a step" volume key bug is related to a mod included in the ROM I'm using, the mod that allows you to skip tracks by long-pressing the volume key while the screen is off.
Disabling that functionality immediately restored the volume keys to normal.

synaesthetic said:
Just wanted to let you know that before you start plowing through a lot of code, the "skip a step" volume key bug is related to a mod included in the ROM I'm using, the mod that allows you to skip tracks by long-pressing the volume key while the screen is off.
Disabling that functionality immediately restored the volume keys to normal.
Click to expand...
Click to collapse
Nice to know. Took a look at the AudioService.java file yesterday, but couldn't find anything that could explain the behaviour.

Related

[Q] How to prevent the "click" following Volume change?

The "click" that follows each volume pressing drives my wife crazy, especially at night. Of coarse there is an option to get rid of the woman, but before taking such drastic measure, maybe the experienced folks here have an alternate idea??
The click should only happen when changing ringer volume, and i don't see why you would need to change it that much...
imo, it would be easier just to use the silent/vibrate/volume widget, since ringer volume is usually none or max...
314 said:
The click should only happen when changing ringer volume, and i don't see why you would need to change it that much...
imo, it would be easier just to use the silent/vibrate/volume widget, since ringer volume is usually none or max...
Click to expand...
Click to collapse
Thank you for your reply.
Well, basically you are right. However, in order to avoid the difficulty to press the power button (awfully located) , I am using the "Fix Broken Power Button" app. That requires the use of the volume keys as a substitute to the power switch. Now, each "waking up" the DHD is accompanied with a loud "click", the one whicj I am trying to eliminate.
Thank you for your attention.
Maybe much better to change your wife? )))
Sent from my Desire HD using XDA App
Try a different app, there shouldn't be a sound when unlocking to the lock screen instead of skipping it
CM7 has options to unlock to the lock screen or skip it, and skipping it makes a sound

[Q]uestion - Change wake phone button?

I promise - I watched the video and searched the hell out of this before posting...
can you change the wake phone function from the power button to, say, the volume keys and/or the home soft button?
thanks in advance. please don't slaughter me if this is posted elsewhere!
hobakill said:
I promise - I watched the video and searched the hell out of this before posting...
can you change the wake phone function from the power button to, say, the volume keys and/or the home soft button?
thanks in advance. please don't slaughter me if this is posted elsewhere!
Click to expand...
Click to collapse
Idk where it is at in the samsung devices but usually you can change the key layout by editing user-key layout you can also remap the search button to any app.
Killbynature said:
Idk where it is at in the samsung devices but usually you can change the key layout by editing user-key layout you can also remap the search button to any app.
Click to expand...
Click to collapse
i can see how that would be useful but i couldn't find it and moreover, i think when the phone goes into sleep-mode, those soft keys are disabled. i guess i am looking for a way to either wake the phone with the volume keys - or - somehow enable those soft buttons so i can hit the home one and wake up my phone.
hobakill said:
i can see how that would be useful but i couldn't find it and moreover, i think when the phone goes into sleep-mode, those soft keys are disabled. i guess i am looking for a way to either wake the phone with the volume keys - or - somehow enable those soft buttons so i can hit the home one and wake up my phone.
Click to expand...
Click to collapse
You would have to give the keys a set wake option. I can do it for htc devices but i don't know much about samsung devices. You would want a volume rocker wake I'm guessing or menu and back wake right. You can also use an app called widget locker it enables you to wake the device from volume rocker etc.
thanks again for the thoughts.
i think i'll patiently wait a few weeks for people smarter than me to start writing apps specific to this phone.
have a great day!
I think this will come in handy since some of us don't want to wear out the power button but be able to use both. The only problem I might see using the volume button is when you are listening to something with your headphones. Would pressing the volume button be changing the volume or waking the phone? hahaha..i'm sure there will be options.
The latest version of Juggernaut has that as an option, if you're into flashing custom roms.
Sent from my SGH-T989 using xda premium
skadude66 said:
The latest version of Juggernaut has that as an option, if you're into flashing custom roms.
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
+1
That is correct, Juggernaut 2.6 has this feature and flashing is pretty simple.
i use this option on Juggernaut too. its great cuz i cant always reach the power button even tho i have huge hands.
which ROM except Juggernaut has this option, I mean waking phone up by sound button?
Darkside's Dewizzed does. and it's a GREAT rom.
I actually hate the 'feature'. I listen to music lots with my phone, and having to double tap the volume rocker to adjust volume sucks, and then it turns on the screen. Since half the time it's in my pocket and i'm pushing buttons through that... long story short i've pocket texted a couple times.
/rant.
Yes, and you can do this without rooting and without installing a custom rom by using the application widget locker, which has an option to wake the phone using the volume keys. Otherwise several roms support this such as the Darkside Dewizzed rom.
Epic bump, but Josh from mobile tech videos gave my phone a solution like this when my phone had an internal shortage. He set the volume+ button as the wake button and it did involve the key layout as someone in this thread had said earlier. Ill be back with a link to an xda thread that had the same idea but for a different device.
I bump this because even though he changed the button layout, I completely forgot about it and flashed a different rom :S now I seek a solution.
samsung s 2 wake up without power button
hobakill said:
thanks again for the thoughts.
i think i'll patiently wait a few weeks for people smarter than me to start writing apps specific to this phone.
have a great day!
Click to expand...
Click to collapse
you can download an app like dragon and enable wake up phrase and set lock screen to none the wake up phrase you choose will wake up device so you can access apps with your voice
galaxyst said:
which ROM except Juggernaut has this option, I mean waking phone up by sound button?
Click to expand...
Click to collapse
ParanoidAndroid also has this function. I already had my power button fail once and had to replace it I now have the option of using the volume buttons or power button to wake the phone.

Disable Volume Wake Galaxy Nexus 4.0.4 Leaked ROM

Ever since I've flashed the leaked "stock" 4.0.4 ROM the volume buttons will wake the screen as well as the power button. (I'm told stock doesn't do this so someone has been playing around....?) I don't recall which 4.0.4 ROM I downloaded but regardless - if your Nexus does this and you don't like it, here is how to fix it.
Navigate to /system/usr/keylayout/ with Root Explorer or such and mount as read/write.
Make a backup of tuna-gpio-keypad.kl -- just in case
Then open tuna-gpio-keypad.kl in a text editor.
You will see 3 values after all of the header text information:
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 116 POWER WAKE
Delete the "WAKE" from the buttons you wish NOT to have wake the phone.
Save the file and restart.
FINALLY! No more accidental unlocking. I'm not sure why one would want the volume keys to unlock the phone when the power button does already but to each their own.
Consequently... if you wanted your stock phone to wake on volume you could maybe open the file and add in the "WAKE" - or the whole lines if they aren't already there. No guarantees on that though. Also no guarantees on this either - of course.
Why would anyone want that? Because its less wear and tear on the power button. I almost always only used the volume for audio. So allowing it to wake the device is allowing me to use volume and power buttons more evenly.
Sent from my Galaxy Nexus using xda premium
That doesn't happen on stock anyway, even if leaked. Not unless someone enabled it before you flashed it.
davidstech11 said:
Why would anyone want that? Because its less wear and tear on the power button. I almost always only used the volume for audio. So allowing it to wake the device is allowing me to use volume and power buttons more evenly.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
The big problem for me is I use Tasker to automatically switch to different volume modes based on where I am. Having such a big button on one side seems to almost daily get triggered and then my ringer isn't where I want it or I miss calls/texts because it got on silent (one volume press down from vibrate). I've also done weird things accidentally because I'll reach in my pocket and touch a volume button and as I'm pulling it out things get touched on the screen.
I should probably also mention I'm not using a lock screen - that's probably also part of what makes it such a pain having it accidentally pressed.
Again, to each their own. I found it annoying for my situation so I'm sure someone else will as well and will appreciate the tutorial.
adrynalyne said:
That doesn't happen on stock anyway, even if leaked. Not unless someone enabled it before you flashed it.
Click to expand...
Click to collapse
Right. Which is why I'm wondering why a "stock" 4.0.4 ROM had this messed with.... I wish I remembered which ROM it was because I think it was mis-labeled... lol
Must have been
I've heard this a couple times, but I flashed my wife's phone with IMM30B (the ota, not a rom) when it leaked, and it has never existed this behavior.
Mah-ha! Googled the kernel version and found it.
http://forum.xda-developers.com/showthread.php?t=1481613
I only got the "Rooted,De-odexed,Zip-aligned ROM With Stock Insecure Boot Image Without Radios & Bootloader" and the "Native Tethering Hack".
davidstech11 said:
Why would anyone want that? Because its less wear and tear on the power button. I almost always only used the volume for audio. So allowing it to wake the device is allowing me to use volume and power buttons more evenly.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Here's another reason. The pogo pins are on the same side as the power button. So when the phone is in the horizontal desktop dock you can't unlock the phone. At least not with anything less than 4.0.4 and I'm not sure how they do it because I don't have it yet. It may very well be with that change to the power button. That may be why they did it in 4.0.4.
NCguy said:
Here's another reason. The pogo pins are on the same side as the power button. So when the phone is in the horizontal desktop dock you can't unlock the phone. At least not with anything less than 4.0.4 and I'm not sure how they do it because I don't have it yet. It may very well be with that change to the power button. That may be why they did it in 4.0.4.
Click to expand...
Click to collapse
Doubt it as the method in 4.0.4 doesn't work with slide unlock. It only works when the os is not locked.
So the volume only wakes the screen if not locked. If it is locked, it does not work.
I can confirm that the volume buttons wake the device on a 100% stock Sprint Galaxy Nexus. I checked the file and sure enough, both buttons on the volume rocker have WAKE next to them. Kind of annoying when the phone constantly wakes throughout the day due to my slightly-snug case. I was going to wait and see how long I could go before rooting, but this may just be a deal breaker.
so i can add the volume wake in a stock rom by entering those lines?
edit: those lines are there.. but volume doesnt wake
king23adrianc said:
so i can add the volume wake in a stock rom by entering those lines?
edit: those lines are there.. but volume doesnt wake
Click to expand...
Click to collapse
So adding the "WAKE" doesn't cause the volume buttons to wake the phone? Interesting.
c0mp13371331337 said:
I can confirm that the volume buttons wake the device on a 100% stock Sprint Galaxy Nexus. I checked the file and sure enough, both buttons on the volume rocker have WAKE next to them. Kind of annoying when the phone constantly wakes throughout the day due to my slightly-snug case. I was going to wait and see how long I could go before rooting, but this may just be a deal breaker.
Click to expand...
Click to collapse
It won't wake if the phone is actually locked.
adrynalyne said:
It won't wake if the phone is actually locked.
Click to expand...
Click to collapse
I have my device set to lock with a pattern, if that's what you mean. I press the power button to lock the device and turn the screen off, then when I press either button on the volume rocker, the phone's screen turns right back on and prompts me to enter the pattern, just as pressing the power button would.
Huh...Sprint must have changed the behavior, because AOSP 4.0.4 only works that way if it is not locked.
adrynalyne said:
Huh...Sprint must have changed the behavior, because AOSP 4.0.4 only works that way if it is not locked.
Click to expand...
Click to collapse
They must have; the only reason I can think of would be, as I believe someone else mentioned in the thread, the upcoming (current?) availability of an official dock would mean that the phone can't be woken up without the volume keys, unless you physically remove it from the dock, press the power button, then re-dock it.
The pros way outweigh the cons with the Galaxy Nexus. Especially if your not rooting. Because you could easily change the volume wake feature.
You go to another phone because you don't want to root and change a feature-and then get a phone with “skin" over ICS? You also get all kinds of crapware from the manufacturer and carrier. Again, the GN stock is still a better choice than a lot of other devices.
Sent from my Galaxy Nexus using Tapatalk 2
c0mp13371331337 said:
I can confirm that the volume buttons wake the device on a 100% stock Sprint Galaxy Nexus. I checked the file and sure enough, both buttons on the volume rocker have WAKE next to them. Kind of annoying when the phone constantly wakes throughout the day due to my slightly-snug case. I was going to wait and see how long I could go before rooting, but this may just be a deal breaker.
Click to expand...
Click to collapse
The pros way outweigh the cons with the Galaxy Nexus. Especially if your not rooting. Because you could easily change the volume wake feature.
You go to another phone because you don't want to root and change a feature-and then get a phone with “skin" over ICS? You also get all kinds of crapware from the manufacturer and carrier. Again, the GN stock is still a better choice than a lot of other devices.
Sent from my Galaxy Nexus using Tapatalk 2
Sent from my Galaxy Nexus using Tapatalk 2
chjade84 said:
The big problem for me is I use Tasker to automatically switch to different volume modes based on where I am. Having such a big button on one side seems to almost daily get triggered and then my ringer isn't where I want it or I miss calls/texts because it got on silent (one volume press down from vibrate). I've also done weird things accidentally because I'll reach in my pocket and touch a volume button and as I'm pulling it out things get touched on the screen.
I should probably also mention I'm not using a lock screen - that's probably also part of what makes it such a pain having it accidentally pressed.
Again, to each their own. I found it annoying for my situation so I'm sure someone else will as well and will appreciate the tutorial.
Click to expand...
Click to collapse
I see. With you NOT using the lock screen it makes sense for not using the volume wake feature. I do use the lock screen. It feels great having all these options with our Android devices.
Sent from my Galaxy Nexus using Tapatalk 2
davidstech11 said:
The pros way outweigh the cons with the Galaxy Nexus. Especially if your not rooting. Because you could easily change the volume wake feature.
You go to another phone because you don't want to root and change a feature-and then get a phone with “skin" over ICS? You also get all kinds of crapware from the manufacturer and carrier. Again, the GN stock is still a better choice than a lot of other devices.
Click to expand...
Click to collapse
Oh for sure. I'm by no means saying that I'm turning in my Galaxy Nexus because a button does something that I don't want it to do. Eventually I'll root it and just edit the file to suit my needs.
I completely agree that the pros outweigh the cons on the GN. Hell, I stuck with a Samsung Moment for two and a half years, despite all of its craptastic bugs, issues, and painful nuances.
I was merely pointing out that this is my biggest gripe with the phone thus far, and given that it's a pretty minor one, I'd say we're all doing pretty well with the device.

[Q] volume rocker to pause and resume

I've been searching for a mod to allow the volume rocker to pause and resume media while the screen is off. Many roms have borrowed the "volume rocker to skip tracks" feature from cyanogenmod, but I rarely skip backwards and I would rather have a hard key option to pause/resume without having to turn on the the screen.
Also, I don't want to totally remap the volume keys, just edit the long-press function while the screen is off.
Any help would be greatly appreciated.
Sent from my Galaxy Nexus using Tapatalk 2
Quickly searching, I couldn't find anything like that other than remapping, but I did find this music player app. It does use the typical Volume rocker skip forward and back.
But if you read the description, you can use the power button double press to pause and double press to start the music , and you can edit the options of that function slightly.
https://play.google.com/store/apps/details?id=com.purelogicapps.android.tactileplayerfree
It appears to run a service and isn't an actual music player in itself. You simply activate it, and then the functions apply to your music player. I can attest that the pause and skip FW and BK function works with AudioGalaxy. I don't use any other players but I may install and try a few with it.
It may be a battery drain, but that is to be determined.
Thanks... I hadn't seen that app before so I gave it a try. It uses double presses of the hard keys for media controls. Unfortunately it has a few drawbacks.
First, while you can use the power button to pause while the screen is off, it turns on the screen. Second, the the volume controls become a bit unruly and it tends to skip tracks when trying to change volume. I think this app would benefit from using long presses instead of multiple presses.
Sent from my Galaxy Nexus using Tapatalk 2
That is a good point. Perhaps you should send that to the dev. Or if you know how to make your own apps........
After having messed with it since I found it, although some might find it useful, I agree with you on the long press vs double tap, and I would think having it running would just add memory demand and battery usage. As well its another thing to turn on and off.
Maybe you can try tasker.
Swiftkey'ed on my CM9 Galaxy Nexus
+1 for Tasker. Forgot about it.
Should be able to get it to function as desired. It is a tricky app to learn, be forewarned, but it can do amazing things once you start to figure it out.
Tasker is really cool and I've tried it on several occasions for this issue but I couldn't find a way to program long presses.
I thought there may be a simple way to edit the cyanogenmod "long press to skip back" into a pause/resume function (like a simple text edit) but I've had no luck. Wish I was a programmer...
Sent from my Galaxy Nexus using Tapatalk 2

On/Off Button Placement

Anybody else bugged by the fact that they put the on/off button, like, the least reachable place on the phone?
I always have to juggle the phone around in my hand to reach the button, and then I have to juggle it back to reach the unlock ring. I mean, the two things I do most, pressing the on button and then sliding the unlock ring, are placed as far apart as possible. It's oddly cumbersome for such an elegant device. It's just a matter of time until I drop the damn thing. (I guess that way HTC sells more replacement screens... )
The volume buttons are where my thumb is, but I never use them. They are mostly in the way and I press them more by accident than on purpose.
Any idea whether there's a way to switch the on and volume buttons? There's probably no mod that can currently do this, but is this technically possible?
That is where the purpose of volume button to wake comes in handy. And yes, it is possible to do that.
Naah... not with me..
Yes it was a little bit difficult... but now I've become used to it....
there's a a mod for that
volume buttons to wake up the phone
use rc 3.0 or else search its thread
ckpv5 posted a long time ago
ummm... try searching -apm+ volume to wake
Sent from my HTC One V
I am using the volume wake thingie. But it will, you know, change my volume setting if I listen to any audio. Which I do a lot.
Also, you can't lock the phone with it. Which precludes my main use of the button: unlock phone, check clock or notifications, lock phone.
Anyways, I wondered about the technical possibility of just switching the buttons.
BirthdayDog11 said:
I am using the volume wake thingie. But it will, you know, change my volume setting if I listen to any audio. Which I do a lot.
Also, you can't lock the phone with it. Which precludes my main use of the button: unlock phone, check clock or notifications, lock phone.
Anyways, I wondered about the technical possibility of just switching the buttons.
Click to expand...
Click to collapse
paresh kalinani pls change your signature
the diffrent colours + size is hurting my eyes
@birthdaydog lolss..i wanted the volume keys to be the camera key just when we start the cam as to click self photos easily
quite diff to click self by touching screen
paarthdesai said:
@birthdaydog lolss..i wanted the volume keys to be the camera key just when we start the cam as to click self photos easily
quite diff to click self by touching screen
Click to expand...
Click to collapse
Well, then there is public interest in finding a way to mod the keys, right?
Try a two second timer.
I have somewhat large hands, and the placement doesn't bother me. I can reach the button with my index finger and reach the ring with my thumb.
I do really miss having an external camera button.
yeah its not too much of a problem for me. i can hit the power button, and then use the unlock ring, but it requires a bit of stretching. i dont have to move the placement of the phone in my hand though.

Categories

Resources