[APP][Perseus] HeadphoneAmpControl 03/26/2013 - Galaxy S III Themes and Apps

REQUIRES PERSEUS KERNEL 34.2 OR ABOVE
Disclaimer: I am not responsible for any damage this app may cause.
This app is now open sourced and is available at:
https://github.com/EternalMelody/HeadphoneAmpControl
This app allows the user to handily change Headphone Amplifier Levels. Root access is required for file permission changes to the following files:
-"/sys/class/misc/wolfson_control/headphone_left"
-"/sys/class/misc/wolfson_control/headphone_right"
Two launchers can be found in the app drawer. One launches the Control app, another launches an overlay dialog for quick amplification level changes.
App Guide:
-Balance L/R toggle: Toggles amplification level balance between the left and right channels. When checked, disables the right channel seekbar and copies the left channel amplification level value to the right channel.
-Main seekbars: Current amplification level values. The top one is left channel's, bottom one is right channel's. The minimum and maximum values are defined by "Min level" and "Max level".
Control App Guide:
-Min level seekbar: Minimum amplification level that is settable by the main seekbars. Cannot be higher than safety level or max level.
-Max level seekbar: Maximum amplification level that is settable by the main seekbars. Cannot be lower than safety level or min level.
-Toggle service (notification bar shortcut): Enables notification shortcut. Must be checked to enable safety level. Notification only appears when headset is currently plugged in.
-Toggle volume button hack: Automatically sets checked volume type to almost max. The volume buttons can then be used to directly adjust amp levels, depending on context. The seekbar determines amp level jump.
-Hack music volume: Enables volume button hack for music, media, video, and games volume
-Hack voice call volume: Enables volume button hack for voice call volume
-Hack ring volume: Enables volume button hack for call ringtone volume
-Safety level: When headset is plugged in the first time, the current amplification level is compared with the safety level. If current level is higher than the safety level, then the current level is lowered to the safety level.
Development made possible by help of:
-AndreiLux

Do you think you can hook into the volume button events and override the digital volume? Would be a great addition in functionality.
Edit: missed that sentence in your post

AndreiLux said:
Do you think you can hook into the volume button events and override the digital volume? Would be a great addition in functionality.
Edit: missed that sentence in your post
Click to expand...
Click to collapse
On the i317 version of your kernel,
The amp level now can't be lower than 20? If I try to set it below 20 (whether through STweaks, my app, or directly editing the file), it will just be assigned 20. Intentional? Because STweaks isn't updated to reflect this.
By the way I just updated the app to have volume button support.

EternalMelody said:
On the i317 version of your kernel,
The amp level now can't be lower than 20? If I try to set it below 20 (whether through STweaks, my app, or directly editing the file), it will just be assigned 20. Intentional? Because STweaks isn't updated to reflect this.
By the way I just updated the app to have volume button support.
Click to expand...
Click to collapse
Yes, you're right. It's currently hardcoded to a minimum of 20, I'll change in the next version.
I can't seem to get the button hijack to do anything at all though with your new version? Still only controls the stock/digital volume.

AndreiLux said:
Yes, you're right. It's currently hardcoded to a minimum of 20, I'll change in the next version.
I can't seem to get the button hijack to do anything at all though with your new version? Still only controls the stock/digital volume.
Click to expand...
Click to collapse
Even when the notification icon shows up?

EternalMelody said:
Even when the notification icon shows up?
Click to expand...
Click to collapse
That option currently doesn't do anything, no icon shows up.

AndreiLux said:
That option currently doesn't do anything, no icon shows up.
Click to expand...
Click to collapse
Hmm the icon needs to show up for it to work. The icon will only show up when headset is plugged in. Is headset plugged in? Btw there's also a bug in the checkboxes behavior which I just fixed. Try the new .apk.

EternalMelody said:
Hmm the icon needs to show up for it to work. The icon will only show up when headset is plugged in. Is headset plugged in? Btw there's also a bug in the checkboxes behavior which I just fixed. Try the new .apk.
Click to expand...
Click to collapse
Ah I see now. Stupid me. I thought you were also overriding the speaker amp.
Nevermind then, everything works fine in that case. I'll fix the minimum volume in the next kernel version.

guys can it also be implement on bluetooth headphone?

edan1979 said:
guys can it also be implement on bluetooth headphone?
Click to expand...
Click to collapse
Unfortunately, this will not work on bluetooth headphones.

Hi. I have downloaded the App but I can't get it working....if I enabled balanced L/R but if I move the slider to the left the volumn doesn't get lower

Hi DirkStorck. Can you give me more details? The audible volume didn't get lowered with headphones on?

Short question: on what level should I keep the normal, digital volume control for best sound quality? Does it matter? Thanks
Sent from my GT-I9300 using xda app-developers app

hickz123 said:
Short question: on what level should I keep the normal, digital volume control for best sound quality? Does it matter? Thanks
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
For best sound quality it is advised to keep digital volume at max.
Sound quality is not altered by digital volume. However, you want the analog volume (the amp levels) to be as low as possible for your purpose, because higher analog volume means more noise.

Eternal, is there a way to use it with boeffla kernel?
Ty a lot!

Great app! I can't believe I didn't find it until now.
If I could wish for something it would be a gray scale notification icon - silly little thing, I know. But I also realize that you've probably moved on by now. Regardless, thanks a million for this.

This app is now open sourced and is available at:
https://github.com/EternalMelody/HeadphoneAmpControl

Related

[Q] Auto Brightness in Extended Controls

I've seen references to it elsewhere on XDA and elsewhere, but cannot seem to find that setting on my Incredible.
Ideally, I would like to be able to toggle the brightness manually, but then also quickly switch it back to autobrightness when I want to.
Try add > Widget > Power control
The right one toggles through brightness
NilsP said:
Try add > Widget > Power control
The right one toggles through brightness
Click to expand...
Click to collapse
+1, although i don't believe it has control for 'auto' brightness, still have to do that manually
MMBosstones86 said:
+1, although i don't believe it has control for 'auto' brightness, still have to do that manually
Click to expand...
Click to collapse
I just came back to say that. It just cycles through low to high
I believe cyanogen incorporates auto brightness into the power control.. unless it was some other ROM that put it on my phone
Assuming you have >v4.0 of Extended Controls, add a widget with the brightness toggle. Under the settings for brightness, use a Custom Brightness Type, and check Auto Brightness. Now you can toggle through various levels, including Auto.

[Q] How to lower minimum screen brightness?

I know this is possible in CM9's display settings, but I'm currently running AOKP. Is there any other way to lower the minimum screen brightness?
I've given Tasker root permissions, approved it as a device administrator, and approved it as an accessibility service. Still, when I use a task to lower the brightness to very low levels, the brightness will only hold for a fraction of a second before it ramps up to the factory minimum.
So is there some system component I can modify to allow lower brightness, or is this only available as a ROM control like in CM9?
byrong said:
So is there some system component I can modify to allow lower brightness, or is this only available as a ROM control like in CM9?
Click to expand...
Click to collapse
FWIW the lowest possible brightness setting can't be altered via the CM9 settings, only the auto brightness levels, both sensor input levels ("bins") and the brightness level associated with that input/bin. The minimum value of 19 for the lowest slot can't be lowered further. There are other display parameters (related to brightness) that can also be altered in the CM9 settings, but it won't accept a value less than 19.
Edit: I see from a link in your sig that you're familiar with the custom levels
Yes we can do it in the frameworks to go lower than 19. I did it on other phones. I'm not sure why it hasnt been done yet for nexus, and ive been too lazy myself.
But we can even take it down to zero or 4-5 etc so its much dimmer at night. Its on my to do list.
Also i posted some kernel code in a similar thread where this question was already asked. But mod the framework is much quicker.
RogerPodacter said:
Yes we can do it in the frameworks to go lower than 19. I did it on other phones. I'm not sure why it hasnt been done yet for nexus, and ive been too lazy myself.
But we can even take it down to zero or 4-5 etc so its much dimmer at night. Its on my to do list.
Also i posted some kernel code in a similar thread where this question was already asked. But mod the framework is much quicker.
Click to expand...
Click to collapse
I should have clarified more clearly that my post above was regarding doing it via the CM settings.
I'll mod mine...at some point...but like you, too lazy for something that won't blow me away.
You want this app, works great https://play.google.com/store/apps/...yZy5wcm9qZWN0dm9vZG9vLmRpc3BsYXlmaWx0ZXIiXQ..
Sent from my Galaxy Nexus GSM using Tapatalk expect possible typos
I'm an idiot; I just found it in AOKP. It's in the custom backlight settings.
My experience does not mirror you guys. When I decrease the "screen dim level" in the custom brightness settings, it applies globally. I just did it in AOKP the same way I used to in CM9 and now with Tasker I've taken the screen all the way down to 1
Is there any way to decrease the minimum brightness on stock?
aidanbree said:
Is there any way to decrease the minimum brightness on stock?
Click to expand...
Click to collapse
Yes with above linked app. I confirm it works on stock
Sent from my Galaxy Nexus using Tapatalk
I've used a similar app called Screen Filter. My only problem with these types of apps is that I find the black/gray filter they use greatly decreases contrast at low brightness levels (more so than a "true" brightness level at an equivalent setting). Still, if you are running a setup in which they are your only option, they certainly beat having nothing.
The problem with using a screen filter is that it limits the maximum brightness when in sunlight.
I only want to affect the minimum as it is too bright.
Has anyone been able to do this on a stock rom? I too think that the minimum brightness is too high, but I don't want to use the above linked program because it also affects the maximum brightness too. I would like to be able to set custom light levels as per cm9/cm10 and pretty much any custom ROM right now, albeit with my stock ROM. Any flashable zips out there?
Cheers,
Dan

[Q] AOKP Screen Brightness

The lowest brightness setting is not dim enough for me in low light conditions so I've been looking to alter it.
After reading around the capabilities of some apps it seems that they only add an overlay which reduces contrast. I would much prefer to do it natively.
I then realised that the AOKP ROM has this functionality!
However, I can't seem to get it to work.
Settings>Display>Custom backlight settings
Changing the screen dim level doesn't seem to change anything for me.
Can anyone offer some tips or advice?
Thanks
Works fine for me. I know it doesn't help your problem any...
danger-rat said:
Works fine for me. I know it doesn't help your problem any...
Click to expand...
Click to collapse
Does your display dim more when you select a lower than default value or did you have to change something else?
Did you change the corresponding value in "Edit Other Levels" as well (if you're on auto brightness)? Not on AOKP, but mine is fully functional both on manual, and auto.
Their implementation is the same as CM9 (which is nearly identical, if not the same as the CM7 implementation).
Edit: just a thought, not sure if the AOKP status bar brightness slider is hardcoded to a certain minimum level? Are the results the same if you adjust your brightness via the Settings>Display>Brightness slider?
Settings>Rom Control>Performance>color multipliers.
Drag the three bars all the way down.
As far as your problem...
Are you on auto brightness?
And have you adjusted the "Dim Level" prior to adjusting the screen levels?
(Dim Level is the level your screen dims to after not touching it for 15 seconds or whatever).
Jubakuba said:
And have you adjusted the "Dim Level" prior to adjusting the screen levels?
(Dim Level is the level your screen dims to after not touching it for 15 seconds or whatever).
Click to expand...
Click to collapse
Screen dim level is the minimum brightness value attainable (I lower mine to 12 so I can enter a screen value of 12 in my custom levels), but also does correspond to what you mentioned.
Another AOKP user expressed similar concerns but found an app called Root Dim or something that solved his problem.
OpusX11 said:
Another AOKP user expressed similar concerns but found an app called Root Dim or something that solved his problem.
Click to expand...
Click to collapse
The implementation must be still broken then; haven't tested the latest AOKP releases. Root dim apps tend to create lag.
Implementation works perfectly here.
Jubakuba said:
Implementation works perfectly here.
Click to expand...
Click to collapse
Same.
Jubakuba said:
Implementation works perfectly here.
Click to expand...
Click to collapse
Attaining an altered screen dim level when on auto as well?
Edit: comment wasn't an indictment; just remembering issues that were there on b35 or b36 (?).
Sent from my Galaxy Nexus
Yep.
Microwave. said:
Does your display dim more when you select a lower than default value or did you have to change something else?
Click to expand...
Click to collapse
I select a lower than normal default brightness, and it appears to just work. The auto brightness decreases, which is what i was looking for at night, and also the overall min brightness decreases. The max brightness seems unaffected...
remember when making these changes you do have to save and apply. many people forget that step.
tspderek said:
remember when making these changes you do have to save and apply. many people forget that step.
Click to expand...
Click to collapse
That's an especially annoying mis-step after entering 23 custom levels.
CMNein said:
That's an especially annoying mis-step after entering 23 custom levels.
Click to expand...
Click to collapse
Lol.
And no offense taken at all, man.
And me personally, I just use 5 levels.
One that goes all the way to 600[whateverambientlightismeasuredby] and a screen level of 5.
This keeps my phone from dicking about with it's brightness when I'm indoors...and I have no problem reading it. I don't mind a super-dim screen in general.
The remaining levels I ramp up fairly aggressively for two "by a window" scenarios...
And outside.
And OMGSUNNY outside.
Jubakuba said:
Lol.
And no offense taken at all, man.
And me personally, I just use 5 levels.
One that goes all the way to 600[whateverambientlightismeasuredby] and a screen level of 5.
This keeps my phone from dicking about with it's brightness when I'm indoors...and I have no problem reading it. I don't mind a super-dim screen in general.
The remaining levels I ramp up fairly aggressively for two "by a window" scenarios...
And outside.
And OMGSUNNY outside.
Click to expand...
Click to collapse
I add 2 levels for the high end, and reduce the other brightness levels considerably. Ultimately I usually end up with the perfect'ish level for most scenarios. I hate having to adjust brightness the old fashioned way
Sent from my Galaxy Nexus
CMNein said:
Screen dim level is the minimum brightness value attainable (I lower mine to 12 so I can enter a screen value of 12 in my custom levels), but also does correspond to what you mentioned.
Click to expand...
Click to collapse
Which values do you change in the custom levels?
OpusX11 said:
Another AOKP user expressed similar concerns but found an app called Root Dim or something that solved his problem.
Click to expand...
Click to collapse
Yeah, I know an app could potentially solve the problem but I don't like using 3rd party apps when the solution can be more elegantly achieved using native tweaks.
Jubakuba said:
Lol.
And no offense taken at all, man.
And me personally, I just use 5 levels.
One that goes all the way to 600[whateverambientlightismeasuredby] and a screen level of 5.
This keeps my phone from dicking about with it's brightness when I'm indoors...and I have no problem reading it. I don't mind a super-dim screen in general.
The remaining levels I ramp up fairly aggressively for two "by a window" scenarios...
And outside.
And OMGSUNNY outside.
Click to expand...
Click to collapse
Could you send me a screenshot of your custom levels, that sounds like the exact thing I'm after - a dimmer screen in general, and having a lower min brightness.
So am I correct in thinking that you need to lower the dim value in order to set lower values in the custom levels?

Widget to change sound setting?

Anyone can recommend a small widget which I can use to change sound setting?
So, I like to have different kind of sound settings, for example:
- All silence, except alarm and phone call
- All on, except media is off
- All max
I am wondering if I can have an "icon" on the home screen which I can quickly change it and also "show" which setting is on.
Thanks.
There's an app called Tiles in the playstore. It's fantastic. You can add all kinds of useful things to quicksettings included vibration mode and volumes. I can link it shortly.
Or you can try Ringer Modes - Quick Tile which will place it for you in the notifcations drop down.
https://play.google.com/store/apps/details?id=com.cgollner.quicktiles&hl=en
Another option is HD Widgets
https://play.google.com/store/apps/details?id=cloudtv.hdwidgets&hl=en
That is an option in there as well. It has lots of customization. It's even on sale right now.
Thanks all, I will take a look at those.
I've been using Audio Manager PRO from Smart Android Apps, LLC for years.
You can set levels for alarm, media, ringer, system, call, and save the settings to profiles that can be placed on any home screen. I have one for work, home, car, and they do have a widget showing current levels as well.
Might be a fit for what you're looking for.

Missing Equalizer in Note 10 plus

Anyone knows why the equalizer for the frequency, bass treble are missing? It was so useful in Note 9
Im trying to translate from my swedish note 10+: Settings -> Sound and vibration -> Advanced sound settings -> Sound quality and effects -> Equalizer
Yes it is still there but only with preset equalizer. Now we can't change the frequency bass anf treble
Did you click custom?
Yes but no bass why Treble adjustment.
Can't find it either. I'm guessing you mean those two 'wheels' you could turn for quick changing?
When I choose custom I got them, but not the wheels:
So basically only the advanced custom equalizer? I am OK with that, as I never used the wheels anyway. Always used the custom tab to adjust the equalizer.
I am not sure I am the only one, but on Samsung phones, adjusting the equalizer for most of the db settings actually made the sound far quieter. The only way to get the most sound was to leave the equalizer almost the same everywhere but maybe the middle to settings one could adjust a bit. Has made me wonder if the DAC in the Samsung phones is simply trying to not allow people to hurt their hearing by cranking up certain bandwidths in the custom equalizer settings. Not a huge deal, but kind of disappointing that a phone this expensive doesn't have a kick ass DAC and even normal equalizer settings to play with.
teegunn said:
So basically only the advanced custom equalizer? I am OK with that, as I never used the wheels anyway. Always used the custom tab to adjust the equalizer.
I am not sure I am the only one, but on Samsung phones, adjusting the equalizer for most of the db settings actually made the sound far quieter. The only way to get the most sound was to leave the equalizer almost the same everywhere but maybe the middle to settings one could adjust a bit. Has made me wonder if the DAC in the Samsung phones is simply trying to not allow people to hurt their hearing by cranking up certain bandwidths in the custom equalizer settings. Not a huge deal, but kind of disappointing that a phone this expensive doesn't have a kick ass DAC and even normal equalizer settings to play with.
Click to expand...
Click to collapse
I have the same complain and worst, this level decrease affect Bluetooth too, so, isn't a DAC thing but maybe, a normalization setting kicking in when a particular frequency is boosted....
How I miss the old "two wheels" to adjust EQ like the one in Note9, I think it worked much better than the multiband equalizer in S10/Note10
angka8 said:
Anyone knows why the equalizer for the frequency, bass treble are missing? It was so useful in Note 9
Click to expand...
Click to collapse
For music get the paid for Poweramp player. Excellent equalizer and much more.
This is the one you want to handle audio thru put.
It has a lot of settings and will take a considerable amount of time to set up all it's features.
Completely customizable.
Export and save settings. If reloaded on a new OS it will reaquire it's library in under a minute (I have over 6000 wav files organized as albums). It automatically rebuilds playlists as long as you saved the settings ie SD card etc.
Developer continues to support and update it.
Trick stuff, it's sweet
As this old thread is woken up, I might add that the old wheels where OP was looking for are still there...but not via sound menu in settings though:
When changing volume with the rockers, press the two arrows at bottom of appearing slider on screen. The Pop-up window will expand to allow various volume settings. At top-right the equaliser icon can be pressed, which opens an again a pop-up window with equaliser settings, which includes a toggle at top (4th of right) to chose between the frequency sliders or the "two wheels" (bass-trebble and instrument-voice).
My description may suggest it is a quite a hassle, but once used and preference set it is quite ok.

Categories

Resources