maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   long wire for the headphone jack and sailfish_x (https://talk.maemo.org/showthread.php?t=100637)

norayr 2019-01-23 09:42

long wire for the headphone jack and sailfish_x
 
hello,
I was using my Jolla 1 device till recently, the jack died.

So I bought Xperia XA2, to be able to listen to music.
As I did with Jolla - with headphones, and also by connecting via a longer wire to the AUX of my car's audio system.

Now, XA2 under android did recognize the wire to the AUX of the car.
Since I installed Sailfish on it, it only recognizes the connected headphones. The wire to the audio system is longer, and the device does not 'feel' the connected wire.

I also tried at home, I have a 2 meter wire which I connect to the home audio system, and XA2 with Sailfish does not feel the connection.

So I wonder if that's a kernel/sound driver issue, and if that driver could be tuned by writing something to /proc or /sys files.

Thank you!

pichlo 2019-01-23 13:42

Re: long wire for the headphone jack and sailfish_x
 
I very much doubt it has anything to do with the wire length.
More like with what's at the end of it.

Headphones have a low impedance, usually 32Ω.
The audio line input impedance varies depending on the producer, but it is usually in the range of tens or kΩ (47kΩ and 100kΩ being quite common).

That's ten thousand times more! From the phone's point of view, that may look like an open circuit. Which is just a fancy way of saying "a cable with nothing connected at the other end".

A very easy way to check would be just connecting your headphones at the end of the long cable, perhaps with something like this:

https://i.ebayimg.com/images/g/LQsAA...56/s-l1600.jpg

A bit more advanced may be to use a Y splitter that allows to plug in two sets of headphones and instead of the other set just plug in the cable to your audio system. The sound will come out through both the headphones and the audio system but it will prove the concept.

norayr 2019-01-23 13:55

Re: long wire for the headphone jack and sailfish_x
 
thank you, i'll try tonight!

meanwhile i found this: https://together.jolla.com/question/...post-id-197858

they say it's detected as lineout, and lineouts are not supported.

now i think if i can get bluetooth to audio jack adapter to route audio via bt may be?

pichlo 2019-01-23 14:29

Re: long wire for the headphone jack and sailfish_x
 
Quote:

Originally Posted by norayr (Post 1553093)
now i think if i can get bluetooth to audio jack adapter to route audio via bt may be?

That will definitely work. I use that setup at home, with an old audio system.

norayr 2019-01-23 15:42

Re: long wire for the headphone jack and sailfish_x
 
this solves my problem:

pacmd list-sinks

to get list of outputs

then

pacmd set-sink-port sink.primary_output output-wired_headphone

routes audio via jack, and

pacmd set-sink-port sink.primary_output output-line

also routes audio via jack, but the volume is a bit lower.

i guess this is a correct setting.

pacmd set-sink-port sink.primary_output output-speaker

routes back to speaker.

found it by following hints of someone helpful from telegram sailfish chat.

imaginaryenemy 2019-01-23 16:13

Re: long wire for the headphone jack and sailfish_x
 
Quote:

Originally Posted by norayr (Post 1553095)
this solves my problem:

pacmd list-sinks

to get list of outputs

then

pacmd set-sink-port sink.primary_output output-wired_headphone

routes audio via jack, and

pacmd set-sink-port sink.primary_output output-line

also routes audio via jack, but the volume is a bit lower.

i guess this is a correct setting.

pacmd set-sink-port sink.primary_output output-speaker

routes back to speaker.

found it by following hints of someone helpful from telegram sailfish chat.

Are you saying that you have to manually change the output destination in order to get the phone to know how to route your audio?

mrsellout 2019-01-23 16:44

Re: long wire for the headphone jack and sailfish_x
 
Perhaps you could use the Situations app to execute a script containing those commands. The trigger could be plugging in a charge cable.

norayr 2019-01-23 17:00

Re: long wire for the headphone jack and sailfish_x
 
Quote:

Originally Posted by imaginaryenemy (Post 1553099)
Are you saying that you have to manually change the output destination in order to get the phone to know how to route your audio?

yes!
if the wire is connected to the audio system, not headphones.
apparently there is this thread https://together.jolla.com/question/...post-id-197869 as well.

norayr 2019-01-23 17:01

Re: long wire for the headphone jack and sailfish_x
 
Quote:

Originally Posted by mrsellout (Post 1553101)
Perhaps you could use the Situations app to execute a script containing those commands. The trigger could be plugging in a charge cable.

let me try situations.
if it provides just assignable buttons, it's cool.

i'll create two buttons, one for lineout, one for speaker.
ah, three, one for headphones.

norayr 2019-01-23 17:11

Re: long wire for the headphone jack and sailfish_x
 
i did not find how to execute my command line or script with situations.

i'll do that from console.

that is not a problem.


All times are GMT. The time now is 17:26.

vBulletin® Version 3.8.8