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
Hi,
I just installed the ROM OpenSEMC-U CM 10.1 RC2 on my Sony Xperia S and it seems to be working just fine except for one little thing :
The led bar for the buttons lights up every time I touch the screen whereas it only lit up when hitting the buttons on the offical ROMs.
I already searched the forum and some advised to look for an xposed module that would do this.
I didn't find any.
Do you have a solution ?
I you only have a few information on how it's handled in the system, I could try to build the xposed module myself but I don't know where to find the part of the system handling this functionnality.
I would have posted this in the right development forum but I don't have the rights because I juste created my accout...
Thanks.
Regards.
Up !
Does anyone have an idea ?
Thanks.
I've come across some posts about the sys files controlling the leds :
I've seen you can change the lightning behaviour by changing values affected to the virtual files /sys/class/leds/button-backlight/ ...
The problem is that there are several values I can change and I couldn't find any documentation. For example, I wonder if the file trigger cannot be set to a value for which it only lights up when the buttons are touched and not every time the screen is touched.
Regards.
nrdev said:
I've come across some posts about the sys files controlling the leds :
I've seen you can change the lightning behaviour by changing values affected to the .
The problem is that there are several values I can change and I couldn't find any documentation. For example, I wonder if the file trigger cannot be set to a value for which it only lights up when the buttons are touched and not every time the screen is touched.
Regards.
Click to expand...
Click to collapse
i have been facing a problem,i have installed "OpenSEMC-mr2-alpha2"
when i control my brightness the illumination bar light remain full
but in stock ROM when i reduce my brightness the intensity of that illumination bar light also decreases .
it is very annoying if you are doing something in night with low brightness and the illumination bar light is full.
please help
and how to get over these
virtual files /sys/class/leds/button-backlight/ ..
any app use to explore or in cmd prompt
deepanshunamdeo said:
i have been facing a problem,i have installed "OpenSEMC-mr2-alpha2"
when i control my brightness the illumination bar light remain full
but in stock ROM when i reduce my brightness the intensity of that illumination bar light also decreases .
it is very annoying if you are doing something in night with low brightness and the illumination bar light is full.
please help
and how to get over these
virtual files /sys/class/leds/button-backlight/ ..
any app use to explore or in cmd prompt
Click to expand...
Click to collapse
If we can figure out which parameter to change, we can then write into thoses virtual files in the hw-config script file, which sets the parameters right on startup.
Hello all in need of some help. I am currently on the awesomness we call DomPop:good:and have removed the volume safe warning dialouge the prompts when raising the volume to high when using headphones, what I would like to do is take the image from the system volume(volume slider that pops up when using no headphones) or any other volume slider that does not have the RED color in it and just use one of those images and rename to the image with the Red color in it but for the life of me I can not fing this said image, is it a .png or a qmg even if some one could nudge me with the name I can hunt it down from there but I am stumped. I have looked in the framework-res,SystemUI, and even the TouchWiz launcher and can not find this darn thing so any help or guidance will be much appreciated.:highfive:
I have attached images of the one I want to change with red and replace with the one with all blue
Thanks
If I recall correctly, it's in framework, and the color is just a tint in xml...
Is there a way to customize the capacitive button’s brightness?(maybe by editing XML or all file?) I found an app in play store that can set brightness to maximum but there's still some minor bug. Plus I'd prefer to modify the system file on my own than having an app running background the whole time.
Any help would be appreciated.
BrianKuo1853 said:
Is there a way to customize the capacitive button’s brightness?(maybe by editing XML or all file?) I found an app in play store that can set brightness to maximum but there's still some minor bug. Plus I'd prefer to modify the system file on my own than having an app running background the whole time.
Any help would be appreciated.
Click to expand...
Click to collapse
the brightness is controlled by the light sensor..the darker it is the lower the brighter the higher the brightness of the capactive buttonbrightness.
back on the m7 there was a seperate array in framework-res.apk that you could easily configure.
Now it's working a bit different. only way to modify is add some custom code in AutomaticBrightnessController (services.jar).
..or flash our rom, we have it configurable:
j to the 4n said:
the brightness is controlled by the light sensor..the darker it is the lower the brighter the higher the brightness of the capactive buttonbrightness.
back on the m7 there was a seperate array in framework-res.apk that you could easily configure.
Now it's working a bit different. only way to modify is add some custom code in AutomaticBrightnessController (services.jar).
..or flash our rom, we have it configurable:
Click to expand...
Click to collapse
ayyy
I worked around a little bit, found the file at /sys/class/led/button-backlight
Hope this helps anyway.
BrianKuo1853 said:
ayyy
I worked around a little bit, found the file at /sys/class/led/button-backlight
Hope this helps anyway.
Click to expand...
Click to collapse
Could have tell you that...but as said once the lightsensor value changes the file will change.
you could change it to your desired value..then chmod it to read only...but I doubt you will find a satisfying value that fits in the dark and bright
Hello everyone, is anybody know how to customize system sound for note 10 plus without root? Such as following below:
Keypad tone
Phone startup tone
Ringtone
Default tone setup
Lock screen default sounds
Camera shutter sound
Thank you.