We have moved to a new Sailfish OS Forum. Please start new discussions there.
7

Is there a way to control output speaker for notifications seperately while using headset?

asked 2017-03-28 09:35:51 +0200

naytsyrhc gravatar image

updated 2017-03-28 13:39:36 +0200

I find notifications quite loud and disturbing while using a (bluetooth) headset and would like to have those notifications to use the main speakers so they will not interfere with music at all. Is there a possibility to achieve that?

Edit: adjusted Question and description text to clarify (see comments below).

edit retag flag offensive close delete

Comments

I've installed the situations app and added a condition to change the ringtone to 10-20% when a headset is connected (also works with bluetooth headsets)

till ( 2017-03-28 12:50:42 +0200 )edit
2

Yeah. That's what I did as well. Maybe I should clarify that the real question is for the alternative solution, if I can have notifications still played on main speaker instead of playing them on headphones. AFAIK know salifish uses pulse audio as audio driver and AFAIK the output can be routed for different services, so theroratically it could be possible?

naytsyrhc ( 2017-03-28 13:35:31 +0200 )edit

Ok. I adjusted the title/question and the description to clarify.

naytsyrhc ( 2017-03-28 13:40:10 +0200 )edit

you could try to use PulseTunnel from Warehouse to archieve this. It is a frontend for PulseAudio and i succesfully used it to stream to another host using this.

from a first glance you should be able to select another sink (output device in PulseAudio slang) for variouse streams (input in PA). But for example CuteSpot did not create its own stream for me but used the system one. But this might be another issue. I was able to route the audio from an sdl app to null though while keeping the rest of the system on my headphones.

vorletzter ( 2017-03-28 21:18:55 +0200 )edit

Ok. First couldn't find that on openrepos, but I now got it from jolla store directly. Unfortunately I did not figure out howto use it (yet).

naytsyrhc ( 2017-03-28 21:59:06 +0200 )edit

2 Answers

Sort by » oldest newest most voted
3

answered 2017-03-29 10:04:51 +0200

vorletzter gravatar image

updated 2017-03-29 10:07:38 +0200

Unfortunantly the Headphone Jack is another issue.

There seem to be three sinks available. One for the physical soundcard, where the driver (provided by alsa i suppose) decides where to output the sound. The others just point do /dev/null - because even linux useres have a need (schlechthinge abhängigkeit?) for the Myteriouse i suppose :)

You can set a default sink either by using PulseTunnel (long press on the sink and select "use as default" or by using the pacmd command If you have another output device (e.g. your bluetooth headset) you can route the stream of single application to that sink (again by using pacmd or PulseTunnle) or, if you fancy it, route the streams to two or more sinks simultaniously and effectivly creating a multi room audio system using sailfishos :) So you could set the default sink to default and just route the stream of your media player to the bluetooth device.

However i don't belive this is possible for the Speakers/Headphone Jack, due to hardware limitations. The Soundcard would need two Analog-Digital Converters to process two different audio streams (e.g. one for music and one for notifications). Which i don't belive would make any sense for smartphones.

However this limitation does not exist for bluetooth devices, because they have their own ADC (or is it DAC?)

edit flag offensive delete publish link more
0

answered 2017-03-28 21:29:11 +0200

lakutalo gravatar image

https://together.jolla.com/question/84999/make-output-of-notification-sounds-to-bluetooth-speaker-optional/

likewise ;)

edit flag offensive delete publish link more

Comments

Yes, partly agree. Allthough I also want this with normal headset via headphone jack. But besides that almost duplicate. Unfortunately that question is unanswered as well.

naytsyrhc ( 2017-03-28 21:57:24 +0200 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2017-03-28 09:35:51 +0200

Seen: 537 times

Last updated: Mar 29 '17