How to get alarms/notifications in speaker if headphones plugged in. - Galaxy S II Q&A, Help & Troubleshooting

Hello Fellas!
Recently i started to listen to music/audiobooks before i go to sleep,
the problem is that in android 4.2/4.1 even with clock apps that tries to force audio through speaker (at least on my phone) only plays the audio through the headphones which has fallen of during night.
So i though i should make an post instructing how i got the alarm to play through the speaker even with the headphones connected.
the answer is Soundabout combined with Tasker (you could probably use other automation tools as well)
1. download soundabout free from market.
2. set Media Audio to speaker.
3. force close soundabout.
4. Download Tasker (which is a paid app but is well worth the money) (or other automation tool)
4a. go to settings and untick beginner mode.
5. Download and place "userbackup.xml" in the "tasker" folder in the root of your sdcard
userbackup.xmll
6. Open tasker, press the menu button --> data --> restore.
This hack will open soundabout at 6am if the headphones are plugged in, if you are rooted it will also force kill soundabout when you unplug.
NOTE: if you have any profiles allready you should make a backup and add my profile at the bottom of your "userbackup.xml."
Hope this helps!
Best Regards

Thanks

No problem, the only problem is that you have to force close the app every single day though,
i emailed the developer of soundabout about this and he said he would try to make a tasker plugin to make this easier!

Hey guys.
Any update on this?
Thanks
Alan

I dont get it... Soundabout runs a service, so it should be able to force audio through speakers without the need to fc it and start it via Tasker
But the fact is that it does not work on my phone. I have a headset plugged at all times and I just miss all calls
It is said that music apps can prevent soundabout from routing audio through speakers.. i am still testing, will post if I come to a conclusion on what music app does not bring this issue
I ****ing hate those ****tards at google who thought they should change that... since the beginning of time, call and sms alerts always went to speaker regardless the headset is plugged

maeman said:
I dont get it... Soundabout runs a service, so it should be able to force audio through speakers without the need to fc it and start it via Tasker
But the fact is that it does not work on my phone. I have a headset plugged at all times and I just miss all calls
It is said that music apps can prevent soundabout from routing audio through speakers.. i am still testing, will post if I come to a conclusion on what music app does not bring this issue
I ****ing hate those ****tards at google who thought they should change that... since the beginning of time, call and sms alerts always went to speaker regardless the headset is plugged
Click to expand...
Click to collapse
I guess you dont have to fc, but i atleast had to force everything to the speaker. So the easiest way to get the sound back to my earplugs was to force close it.
The updated version does it automaticly so im good for now

Will pay $ for tasker script.
Hi to all of You.
I would like to have profile that force incoming call ringing and notifications to speaker when wired headphones with mic is plugged but not media sounds like YouTube or games, media sounds should be played only by wired headphones with mic.
I am willing to pay some reasonable amount of $ for person, who will write such tasker script for me.
([email protected])

Audio through external speaker with headphones plugged in - Tasker
Any better solution found for this yet? I would like to get tasker to still play audio through the external speaker when the headphone jack is plugged in. I would prefer not to use another app for this, just a tasker profile.
I just received a pressy like headphone button but it mutes the external audio since the phone thinks headphones are plugged in. The apps available for the Klick buttom don't seem too trust worthy or functional. I still want to use it to keep the dust out of the jack but not miss all the audio calls and notifications. A simple tasker profile to accomplish this would be great.
Any ideas?

pzayx said:
I guess you dont have to fc, but i atleast had to force everything to the speaker. So the easiest way to get the sound back to my earplugs was to force close it.
The updated version does it automaticly so im good for now
Click to expand...
Click to collapse
also with Xprivacy you can change and give permission to prevent soundabout from changing speaker after, or there are many other permissions it's asking for.
Couldn't dig deeper, but may give an idea to someone.

I had a similar issue, except in my case I use a wired handset with my phone and I wanted notifactions to sound through the phone speaker rather than through the handset. My solution was to use the Automate app with the configuration attached. Plugging the handset mutes the notification, then on SMS received it plays a sound, with the output stream set as "ring" so it sounds through the phone speaker.
As far as I'm aware, it's not possible to play audio through two streams simultaneously- don't cross the streams...
I'm using a Sony Z3 with LineageOS, but I guess this should work with any android compatible with the current version of Automate.

Related

dev competition - disabling headset remote

Hello developers,
You are simply great. You make a lot of nice stuff day by day. Thanks all of you!!!
My question:
Can someone of you disable the hero receiving signals from the headset. Even if I use simple earphones, when I stand up, or turn my body, the music stops, the phone calls the latest called person.
Can somebody do it?
Roland
You can use a different music player from the market. As far as I know not every app reacts to remote commands
You should edit your /etc/bluez/audio.conf file
[General]
Enable=Sink,Headset,Gateway,Source
Disable=Control
This SHOULD work, but you've gotta test it.
@klaus27
it's a good idea
but it still makes calls
@adwinp
I don't have this file
which ROM has it?
liljom said:
@adwinp
I don't have this file
which ROM has it?
Click to expand...
Click to collapse
EVERY ROM has it.
just adb pull it, and re-push it, then reboot.
Or you can edit in place, just remount /system/ as rw, open the file in nano, and that's it.
liljom said:
@adwinp
I don't have this file
which ROM has it?
Click to expand...
Click to collapse
Try /system/etc/bluez/audio.conf
/system/etc is the real location of the etc folder. /etc/ is a symlink to /system/etc, and maybe it's not there in all ROMs.
EDIT: Although, I'm not 100% sure changing the bluetooth settings will affect a plug-in headset.
I found it, thanks
I'm editing it right now
It didn't work. : I
The remote still works, and it drops calls if I move while calling
Is there any way to redirect music to bluetooth? That would solve everything.
the file looks like this now:
# Configuration file for the bluez audio plugin (A2DP)
[General]
Enable=Source,Gateway,Sink,Headset
Disable=Control
# Switch to master role for incoming connections (defaults to true)
#Master=true
# Just an example of potential config options for the other interfaces
[A2DP]
SBCSources=1
MPEG12Sources=0
[AVRCP]
InputDeviceName=AVRCP
Is it okay like this?
just buy a set of headphones off eBay for a quid.sorted
I have one and I love it
but it does the same, even if it has no remote
I sit down, stand up, turn around and it drops calls, stops music etc.
what developer can help me to disable it?
it is so stupid. I bought this phone not really cheap, and now I have to buy an mp3 player?!
android is opened
I'm sure, that somebody can help me.
I pay 10$ for the person, who solves it. Exactly: I can listen to music on my wired earphones without changing to the next, calling somebody or dropping call by itself.
I have never had that, but with the apple inear headphones clicking the center button twice made it call the last person in the call list but " Meridian Player conservative " has an option to turn on the controls for the player so now double clicking the middle changes the song! Give it a try
Hoped this helped
If I understand exactly, you use simple headphones WIRED, no BT.
And, try you another headphones? Or problem is in HERO. Some broke down in jack connector?
What original firmware? Same problem?
I use koss plugin with hero fw htc, sensehero1.6 and now with Androbin, without problem.
With my previous phone i have similar problem with hands-free headphones with "call button".
I have sensehero 1.6 on the device and it is the same with the original headset or my simple philips earphones.
But I'll try the meridian player : )
danwar said:
And, try you another headphones? Or problem is in HERO. Some broke down in jack connector?
What original firmware? Same problem?
Click to expand...
Click to collapse
liljom said:
it is the same with the original headset or my simple philips earphones
Click to expand...
Click to collapse
Sounds like its the jack connector then. You got warranty?

Anyone know how to off voice commands?

Anyone using the razr headset with the phone? everytime i workout with this headset i feel like banging my phone on the blardy wall..
For some strange reason it automatically dials my recent calls. I think its something to do with the microphone..when i pant or take deep breaths the voice command thingy comes on, and sometime suddenly just randomly call people...good god its annoying as hell!
anyone know how to disable it? the only reason i use this headset over my seinheriser is cause its LOUD. when your in the gym you need loud bass to keep the pump!
Have you tried restarting the phone? I've had Voice Commands go crazy on me and not let me use my headset to control my music. A simple restart fixed it.
Have you tried a different headset? Maybe you got some sweat in the mic and it screwed something up. I've had this happen also. Do the Sennheisers you mentioned have a mic with music control?
If you're rooted you can freeze Voice Command using Titanium Backup.
Ill try freezing it and see how it goes. No my Sennheisers do not have a mic, thats why it does not happen when i use them, but the sound produced is softer, which is why i dont use em.
Restarting does not help.
Ran in to the same problem with my brother's phone; the problem is voice commands hijacks the headset button. There is an easy way to disable that, for those who are not rooted or don't want to freeze the app: go to settings, Applications and change the double-tap home launch setting to None. Now headset works as it should and controls PowerAmp, rather than popping up voice commands every time.
I had the same issue with mine. Freezing it with Titanium worked perfectly.
If you have an issue with it stopping your music as if disconnected it, I haven't found a fix for that.
And i always find best sony earphones with isolation and with noise cancelling, you'll enhance max trebles in sound settings, get PowerAmp to enhance on basses and for sake of this gorgeous combination forget about microphone.
Original earphones are always not good enough. Always must buy separately.
mass.w on droidrazr
Use "rom tool box" and freeze
mass.w on droidrazr
U can go to settings and changing the double tap home button to something else. Ur probably hitting the home button twice during ur work out.
Sent from my DROID RAZR using XDA
Has anyone been able to disable voice commands on stock? It's annoying trying to use pandora with headphones that have a button because the voice command prompt keeps popping up. One work around I've found is to use Headset Button Controller app.
You can also use media button router.... its free in the play store... allows you to map bluetooth device buttons to a specific app or apps... necessity with the ICS leaks because android hijacks the play button for voice commands if you use Pandora or a third party app to play music...
Sent from the cutting edge of my RAZR

[Q] Tasker script to solve headphones/incoming call/notification issue

Anyone able to create a profile to solve the issue we have with our note. The issue is the following,
If headphones are plugged in and we get an incoming call, the ringtone will play on both speaker and headphones.
If headphones are plugged in and we get a notification, the sound will only play through speaker.
I tried to do a basic script that has headphones plugged in and incoming call for context, then set ringer volume to 0 and play music ringtone.mp3. Add exit task to for the opposite, raise ringer volume, stop music.
The problem is, it worked, if I didn't have music playing already when I get an incoming call, which is the whole reason why I would have headphones plugged in to begin with. The task successfully sets the ringer volume to 0 so at least it didn't play on the speaker, but then nothing would play on the headphones, and the music I was playing would pause (like it's supposed to), but the ringtone I specified didn't play. Ending the call resumes the music I was playing.
Anyone willing to shed some insight on this?
This issue is next on my list. I believe it is an issue with how the phone distinguishes what the sound is. ..phone vs media...hard to explain
Sent from my SAMSUNG-SGH-I717 using XDA App
This would be a great fix
Would love to have this profile, let me know if there is anything I can do to help!
Is this kinda what you want, I think it is kinda what i want.
http://forum.xda-developers.com/showthread.php?t=1559541
jfout said:
Would love to have this profile, let me know if there is anything I can do to help!
Is this kinda what you want, I think it is kinda what i want.
http://forum.xda-developers.com/showthread.php?t=1559541
Click to expand...
Click to collapse
that does look like what i want, but i'll have to get home before I can test it.
btw, where are the notification sounds stored? the ones that came with the phone.
System.media.audio
kaishi00 said:
that does look like what i want, but i'll have to get home before I can test it.
btw, where are the notification sounds stored? the ones that came with the phone.
Click to expand...
Click to collapse
Sent from my SAMSUNG-SGH-I717 using XDA App
just tested, did not work, or maybe i did something wrong.
anyone willing to give the script a try and see if it works, or I just did something wrong.
I'll try tonight

No audio from browser, audio player but phone works. possibly skype related.

Hey together. I'm a noob *duck* - but I did quite some search on google and on these forums before posting, and I'm not a very stupid noob.
Today I got the situation that no audio is audible any longer from my browser, games, audio apps, or from an audio player (all of them previously worked). This is the case for headphone and also the built in speaker. The problem occurred very likely after using skype. I also still have audio in phone calls and also I still have sound for ringtones and other alarms. Handset functioms all still work fine.
The first obvious thing I did was checking volume settings in the android settings. There I moved all sliders - the one responsible for regular audio did not give me any feedback. If I use the volume buttons on the phone while I'm on my home screen I get audible feedback - but that doesn't influence my problem.
Funnily the sound in skype still works. More funnily: during skype calls the audio from my browser or the audio player is also audible (I tried this just out of couriousity as I suspected Skype to be the cause of my problem. Et voila - I got sound from a TV News page and also from the Walkman app while the call on skype was still running. As soon as the call in Skype ended the audio from browser and adio player got muted again.
I also tried to kill skype during a call in order to kill it before it can again mute the audio - No luck. as soon as the skype app is killed also the audio from audio player and Browser vanishes.
I also tried some audio apps - all have the same issue of having no sound.
I then tried different apps which control volumes - without any luck. So at the moment I don't have audio, except during skype calls.
I guess that skype has either access to some hardware settings which aren't used usually (I hated skype for things like this as long as it had existed) - or I'm missing something very obvious. Or something else. Does anybody of the developers here know about linux settings I could modify? (is there something like alsamixer which is only possible to access via jni or similar?)
// Edit:
Just found out that toggling airplane mode ON I have sound for media (audio player, browser). (but also lose the ability to use my cellphone and network). As soon as I switch back to airplainmode OFF also audio is muted again. And for sure - I also tried rebooting in different states of my phone quite often without any difference.
// Edit 2:
looks like I found a workaround but no permanent solution - I installed an app SoundAbout (free app) recommended for similar problems in an other thread: 89996-galaxy-s3-media-volume-stuck-mute.html (I have now put output permanently to "headphones" for media sounds. However as soon as this setting is reset to the default (let app decide) it is muted again when airplane mod is set to off - looks like an other app resets it? (could not find any app obviously doing this though as I stopped the usual suspects)
I still suspect Skype as the original reason for this problem as I just recently had it updated when the problem appeard and it also messes with this kind of stuff during usage (and I don't really use other apps dealing with audio except of browser, music player which weren't updated for a long time).
Maybe also of concern:
It's an sony xperia p, running Android 4.0.3 and it is currently rooted.

[Q] S4 audio lowered.

I use my phone to connect to my cars bluetooth. I've had since the phone since July and it sounded really good up until about three days ago. For some reason the audio lowered and doesn't sound as crisp as it used to. I know it is not the car stereo because my other devices still play perfectly. I have to turn my radio up to the point where the music will sound distorted.
Example = s4 on bluetooth turned to 25 - sounds great
s4 on bluetooth now turned to 25 - can barely hear it.
Is there a setting or even an equalizer that I can use to maybe fix this issue? Also is there any setting in the phone ( running stock ) that I might've pressed that decreased my volume?
Look into a custom rom, I know Hyperdrive has a volume hack slight/loud which works for me. Hopefully someone has an easier way to accomplish this.
Unfortunately I can't root this phone because it was given to me for work purposes.
Sometimes I have this problem, idk how busy you are, but hangouts will sometimes lower volume for me to make a notification sound and forget to put it back, try making your phone give you a notification sound and see if puts it back
Sent from my SCH-I545 using xda app-developers app

Categories

Resources