[Q] Prevent safe volume reset when plugging in headphones? - Android Q&A, Help & Troubleshooting

Plugging in headphones automatically adjusts to "safe" level. I hate this. Is there a mod (Xposed?) that prevents the volume from resetting? I'm not talking about the toast/pop-up about unsafe volume levels being dangerous (I've disabled that with Wanam). The devices I'm using are the Samsung Galaxy Light and LG 8.3 G Pad, both running 4.2.2, but I'm pretty sure it's a universal thing and the actual devices don't matter.

Looks like this might do the trick: https://play.google.com/store/apps/details?id=com.jakebasile.android.hearingsaver
"- Plugged/Unplugged Sliders - These control the volume that will be set when the headset is plugged in or unplugged, respectively. The volume that these refer to is indicated by the Radio buttons at the top."
That combined with the Xposed mod to disable the toasts will be an easy work around.

es0tericcha0s said:
Looks like this might do the trick: https://play.google.com/store/apps/details?id=com.jakebasile.android.hearingsaver
"- Plugged/Unplugged Sliders - These control the volume that will be set when the headset is plugged in or unplugged, respectively. The volume that these refer to is indicated by the Radio buttons at the top."
That combined with the Xposed mod to disable the toasts will be an easy work around.
Click to expand...
Click to collapse
I'm giving it a try, thanks. Seems to be working.

Related

[MOD][Request] Trackball to change volume on Lock Screen [N1 CM6 RC2]

Hi,
I use my N1 to listen music on my car. The problem is that the way the mobile is fixed prevents me from accessing the volume buttons. Since I use Cyanogenmod that now has music control on the lock screen, I was thinking that if there was a way to change the volume using the trackball there too It would be perfect ... less commands, less attention required to change the volume... less danger while driving.
Is it possible to make the trackball control the volume while in the lock screen? Not on the home and not when sleeping, just on the lock screen ...
I was thinking something like... rolling right and/or up to make the volume go up... and left and/or down to make it go down...
I would really appreciate any help.
why not just use the cars audio controls?
Because I use the cellphone plugged directly on an amplifier.
I know that it is a specific situation, but I would use it also with the dock. Sometimes when I want to raise the volume it gets out of the dock...
+1 on this one, would be very useful indeed!

Greater control of sound / audio / volume? I want quieter notifications -minor update

There seems to only be 7 steps for volume on the S3. I've found that the lowest setting for notifications is still quite loud in a quiet setting. Is there anyway I can make it quieter without resorting to using quieter notification sounds?
I'm coming from a Droid 3 and the lowest setting was perfect, it was just loud enough for me to hear at my desk without it bothering others.
Now I have to keep my S3 on vibrate at work, and it's annoying for me because I never seem to hear/feel the vibration.
mb27 said:
There seems to only be 7 steps for volume on the S3. I've found that the lowest setting for notifications is still quite loud in a quiet setting. Is there anyway I can make it quieter without resorting to using quieter notification sounds?
I'm coming from a Droid 3 and the lowest setting was perfect, it was just loud enough for me to hear at my desk without it bothering others.
Now I have to keep my S3 on vibrate at work, and it's annoying for me because I never seem to hear/feel the vibration.
Click to expand...
Click to collapse
Try volume + ,from playstore I've never used it to make the volume quieter but I think you can
drawde40599 said:
Try volume + ,from playstore I've never used it to make the volume quieter but I think you can
Click to expand...
Click to collapse
Do you mean Volume Control + by Coffeebreak Apps? (sorry can't post links yet) I tried that but it has the same limitations as the stock settings, just 7 predefined steps.
Or do you mean Volume+ (Volume Boost) by Meltus? I don't see how that app would help but I guess I'll try it.
Thanks.
Update: I installed Volume+ from androidaudiohacks dot com. I changed the levels to the lowest setting on everything and it made no difference to the notification volume :-\
I know I've seen one at least that does smaller steps, but I can't remember what it is called. I saw it when I search "volume widget"
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
natefish said:
I know I've seen one at least that does smaller steps, but I can't remember what it is called. I saw it when I search "volume widget"
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
I've tried a couple dozen different apps but they all seem to be tied directly to the same system settings that can't make it any quieter. If you happen to know of a specific one that might I would love to hear it (if you have the time that is, I'm not trying to inconvenience you)
There is a setting in build.prop. you can set it up to 20. Can't remember its name tho
Sent from my SPH-L710 using xda premium
mb27 said:
Do you mean Volume Control + by Coffeebreak Apps? (sorry can't post links yet) I tried that but it has the same limitations as the stock settings, just 7 predefined steps.
Or do you mean Volume+ (Volume Boost) by Meltus? I don't see how that app would help but I guess I'll try it.
Thanks.
Update: I installed Volume+ from androidaudiohacks dot com. I changed the levels to the lowest setting on everything and it made no difference to the notification volume :-\
Click to expand...
Click to collapse
Ya volume + wasn't sure if would work ... I.just tried lowest setting like u have and I.can't even hear it, u have some serious good hearing; )
drawde40599 said:
Ya volume + wasn't sure if would work ... I.just tried lowest setting like u have and I.can't even hear it, u have some serious good hearing; )
Click to expand...
Click to collapse
Hmm really? It lowered the volume of your notification sounds? My hearing is average, it's just that it didn't actually lower the sound for me. Perhaps I did something wrong? I'll try again later tonight and see if that is the case.
I'm also looking for a quieter volume setting. I'm surprised how loud the ringtone and notifications are at the quietest setting.
I suppose rooting and getting a custom rom might be the way to achieve this but having already bricked one S3 I'm a bit wary about diving right back into the pool! But if someone happens to find a ROM that gives more volume control let me know!
Volume Rocker?
Are you turning the notification volume down with the volume rocker? I just realized that the notification volume does not match the ringer volume as you adjust it with the volume rocker. On my Evo 4G I could check a box that made them adjust up and down at the same time. On the GS3 I have to press the volume rocker then press the settings button that is visible in the ringer volume pop up. From there I can adjust the notification volume independantly.
It does however mute the notifications when the ringer is set to vibrate or mute.
Can someone build that into a ROM? Where the notification and ringer volume go up and down together?
vipergtsr6 said:
Are you turning the notification volume down with the volume rocker? I just realized that the notification volume does not match the ringer volume as you adjust it with the volume rocker. On my Evo 4G I could check a box that made them adjust up and down at the same time. On the GS3 I have to press the volume rocker then press the settings button that is visible in the ringer volume pop up. From there I can adjust the notification volume independantly.
It does however mute the notifications when the ringer is set to vibrate or mute.
Can someone build that into a ROM? Where the notification and ringer volume go up and down together?
Click to expand...
Click to collapse
No I use a widget (Widgetsoid) that lets me change the two independently. If I wanted to I could check the box at the top (see attached screenshot) and then the volume rocker would adjust both at once.
I never had any luck getting Volume+ to alter the volume of my notifications.
mb27 said:
Hmm really? It lowered the volume of your notification sounds? My hearing is average, it's just that it didn't actually lower the sound for me. Perhaps I did something wrong? I'll try again later tonight and see if that is the case.
Click to expand...
Click to collapse
Are you mistaking the notification level for system level? System sounds kill my ears, and I actually have to adjust it through Settings > Sound > Volume. Looks like Widgetsoid might be an easier method, instead of going through settings every time. Also, I set a schedule in the Timeriffic app, so that it's ever too loud for me anymore.
Sent from my SCH-I535 using Tapatalk 2
Well, I thought I made some progress on this.
As you can see from the attachment, I did get there to be more steps. I had to make some adjustments to framework.jar to get it to change.
BUT, it doesn't do much good.
For the ringer volume steps 9-17 are silent. 8 is the loudest. 18 is the quietest..
For the notification volume, step 1 is still just as loud as before, and steps 8-15 are silent, so that was completely pointless. I'll edit the framework to have ringer and notifications be 30 to see if that does anything. It's really a crapshoot of what I'm editing, there are no descriptions just hex characters.

[APP][Perseus] HeadphoneAmpControl 03/26/2013

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
Ok but...
First time that I'm first
Any explanation about what this mod does? Must be based on stock ROMS or AOSP/AOKP works too?
Re: [APP] HeadphoneAmpControl
Thanks for this, one of the handier features I've missed from the Voodoo days.
Memphis_ said:
First time that I'm first
Any explanation about what this mod does? Must be based on stock ROMS or AOSP/AOKP works too?
Click to expand...
Click to collapse
Check the Perseus kernel thread in original dev.
Perseus only works with Samsung-based ROMs, Andreilux just implemented a new audio engine & this app allows for on the fly headphone amp volume changes, either unified or broken down to left/right channels. Stweaks has the same functionality under the audio tab, but also does every other kernel tweak, & it's slow & janky.
Sent from my GT-N7100 using xda premium
Updated first post and app
Memphis_ said:
First time that I'm first
Any explanation about what this mod does? Must be based on stock ROMS or AOSP/AOKP works too?
Click to expand...
Click to collapse
What onslaught86 said. By the way, I see from your sig that you are using NEAK kernel. Would you mind trying whether or not my app works with that kernel? I'd appreciate it. Thanks.
EternalMelody said:
What onslaught86 said. By the way, I see from your sig that you are using NEAK kernel. Would you mind trying whether or not my app works with that kernel? I'd appreciate it. Thanks.
Click to expand...
Click to collapse
Nevermind, I tested it myself and it doesn't work on NEAK. They have different implementations of Boeffla Sound.
Volume button hack added
I've tried using this, but the problem is that I can't find a way to keep both volume notifications from popping up.
On top of that, each time the volume is changed, the system interprets it as if it were a headphone disconnect, and whatever you are playing stops playing. So either you have to disable that setting in all your apps and take the risk of blaring something if your headphones get unplugged, or just never adjust the volume.
Anyone know how to get around these problems? The first one is just an annoyance, but the second one makes it unusable for someone like me (who constantly adjusts the volume).
I use many headphones, so being able to control hiss would be nice. Perhaps it would be better to use profiles that are user selectable, and then use the digital control to make minor modifications?
anishannayya said:
I've tried using this, but the problem is that I can't find a way to keep both volume notifications from popping up.
On top of that, each time the volume is changed, the system interprets it as if it were a headphone disconnect, and whatever you are playing stops playing. So either you have to disable that setting in all your apps and take the risk of blaring something if your headphones get unplugged, or just never adjust the volume.
Anyone know how to get around these problems? The first one is just an annoyance, but the second one makes it unusable for someone like me (who constantly adjusts the volume).
I use many headphones, so being able to control hiss would be nice. Perhaps it would be better to use profiles that are user selectable, and then use the digital control to make minor modifications?
Click to expand...
Click to collapse
Unfortunately there's no easy way that I know of to get around the first problem with the volume button hack. If this functionality were to be embedded in a ROM then its possible but as an app it can only rely on volume change intents.
I can't reproduce the second problem though.
By the way, in the meantime, you can still use the app without the volume button hack.
Interesting. When ASOP is stable on our phone, I'm going to come back to this. If needed, I can make my own mods to make things work the way I want. Will share if that's the case. Hate manufacturer "features". Like stupid WIndows 8 and all the preinstalled Metro apps.
nice work
Awesome job thanks for all the hard work works great...I wish there something like for Bluetooth headsets for phones call I hate the low volume level on the note 2
Rockin it from my Macknote2
EternalMelody said:
Unfortunately there's no easy way that I know of to get around the first problem with the volume button hack. If this functionality were to be embedded in a ROM then its possible but as an app it can only rely on volume change intents.
I can't reproduce the second problem though.
By the way, in the meantime, you can still use the app without the volume button hack.
Click to expand...
Click to collapse
Hey EternalMelody,
First, thanks very much for this nice app. great job!
Regarding the quoted discussion, any chance that the first problem can be solved via an xposed framework module?
The second one can be reproduced if you use youtube and try to adjust the volume. I think it's because adjusting the volume is causing the headphone amp to jump to the foreground and sends youtube to the background so it automatically pauses.
Thanks, and keep up the good work! :good:
First of all, I wanna say thank you for this nice app
But there's one thing which I don't like.. The sliders for the Balance are too big and the circle is not at the end of the line :/ I managed to get rid of the to big circles with resizing them from 64x64 to 32x32. Now everything's fine(except that they're not at the end of the line, but that is hard to notice anyway. )
Would be great if you could fix that one
Great app, have been using it with Perseus for a long time now and it makes my Note2 the primary music player for me now.
Wonder if you'd consider making the app work with the NEAK kernel for Note 2 as well? I'd do it myself but i haven't a clue how to do it. I want to move away from TW roms and NEAK is the only kernel with Boeffla sound on AOSP as far as I know.
This app is now open sourced and is available at:
https://github.com/EternalMelody/HeadphoneAmpControl

[Q] Media Volume Control Only.

On both iPhone and the new blackberry 10 phones. You can disable volume buttons turning the ringer up. You can make it so the volume buttons only controls media and nothing else no matter where you are.how do you do this on android.?
I don't think I've seen that option on any of the Android versions. But maybe if we had xposed working you could have a mod to make it work.

volume not working with S21 headphone

The Samsung Galaxy S21 got rid of the phone jack from previous models and now has only a USB-C connection. I bought a USB-C-to-phonejack converter so I could use the headphones I had from my S7 phone. It works when I am using the headphones to listen to music or watch videos. By "works" I mean not only do I hear sound through them, but I can control the volume either using the phones controls or the built-in controls on the headphones. EXCEPT! Except when on a phone call. When I use the headphones when using the phone, the volume control does nothing. Neither the controls on the phone itself, or the controls on the headphones. I end up deafened because the volume is at max and can't be turned down. Again, this is only while speaking on the phone; other apps let me use the volume controls.
Any ideas on ways to fix this?
Thank you,
S.
the_phantom095 said:
The Samsung Galaxy S21 got rid of the phone jack from previous models and now has only a USB-C connection. I bought a USB-C-to-phonejack converter so I could use the headphones I had from my S7 phone. It works when I am using the headphones to listen to music or watch videos. By "works" I mean not only do I hear sound through them, but I can control the volume either using the phones controls or the built-in controls on the headphones. EXCEPT! Except when on a phone call. When I use the headphones when using the phone, the volume control does nothing. Neither the controls on the phone itself, or the controls on the headphones. I end up deafened because the volume is at max and can't be turned down. Again, this is only while speaking on the phone; other apps let me use the volume controls.
Any ideas on ways to fix this?
Thank you,
S.
Click to expand...
Click to collapse
I can't guarantee that this will work. But often what seems obvious to me is something other people miss completely. (And the other way around too.)
When you press the volume down or up rocker on the phone, have you noticed the three horizontal dots at the top of the onscreen volume indicator? If you tap on that 3-dot menu, multiple vertical volume indicators appear. I haven't tested with a USB-C audio jack dongle but I am betting that if you have the dongle plugged in (regardless of whether the earphones are plugged into the dongle), one of those vertical volume sliders will be specifically for the dongle/USB-C output.
Give this a try and let us know if this works. If it does, I realize this might be annoying to do every time. But maybe then you can find a utility in the Play store that allows you to set individual volume levels.
Good luck.
P.S. I fully understand if you prefer the wired earphones. But I can tell you that when I use bluetooth earphones of various kinds, simply pressing the volume rocker does reduce/increase phone call volume.
goattee said:
I can't guarantee that this will work. But often what seems obvious to me is something other people miss completely. (And the other way around too.)
When you press the volume down or up rocker on the phone, have you noticed the three horizontal dots at the top of the onscreen volume indicator? If you tap on that 3-dot menu, multiple vertical volume indicators appear. I haven't tested with a USB-C audio jack dongle but I am betting that if you have the dongle plugged in (regardless of whether the earphones are plugged into the dongle), one of those vertical volume sliders will be specifically for the dongle/USB-C output.
Give this a try and let us know if this works. If it does, I realize this might be annoying to do every time. But maybe then you can find a utility in the Play store that allows you to set individual volume levels.
Good luck.
P.S. I fully understand if you prefer the wired earphones. But I can tell you that when I use bluetooth earphones of various kinds, simply pressing the volume rocker does reduce/increase phone call volume.
Click to expand...
Click to collapse
Thank you. I never really noticed those dots in the volume control; just ignored them all this time! I pressed them and see the extra options. I haven't tried the USB-C dongle yet... I just packed it away for a trip this week. I'll keep it in mind though and try it as soon as I unpack.
Learning something new every day,
S.

Categories

Resources