You are not logged in.

#1 2014-01-19 14:49:55

Indomitable
Member
Registered: 2013-02-11
Posts: 4

Pulse Audio jack detection problem.

Hi, In my work I use headphones for listening musing and if I shutdown the laptop and then remove the headphones and when I start it in home there is no sound. I found the solution: plug headphones and unplug them. For me Pulse audio does not make check on system start if there are headphones connected but uses last value, and only changes it on plug and unplug.

Is there are script that I can add to systemd on startup to check jack for headphones?

Thanks.

Offline

#2 2014-01-20 22:30:30

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Pulse Audio jack detection problem.

Couldn't you try to fake/force jacks disconnection before shutdown through unloading the module responsible for autodetection maybe? I do not use pulseaudio anymore and did not use that feature yet, so my guess would be a shutdown script before pulseaudio is killed with something similar to:

pacmd unload-module module-switch-on-port-available

Offline

#3 2014-01-27 09:45:20

pforcht
Member
Registered: 2011-01-08
Posts: 10

Re: Pulse Audio jack detection problem.

Hello,

since one recent update in January 2014 I notice the same Problem as Indomitable reported.

I am using Archlinux on my Lenovo X201 (KDE and Pulseaudio installed). After reboot I hear no sound from the internal speakers. As Indomitable sayed, plugging and unplugging some headphones fixes the problem until next reboot. (First I was afraid of a damaged jack causing a false detection - so I am now eased up that somebody else reports this behaviour, too.)


As a quick workaround in KDE (when you have no Sound through internal speakers and no Headphones laying around) you can go to [Audio & Video settings > Audio Hardware Setup > Device Configuration] and choose the Connector: "Speakers" instead of "Analog Output".
Of course this is no permanent solution since this bypasses the automatic jack detection.

Is this strange behaviour a bug or just a misconfiguration?

Last edited by pforcht (2014-01-27 09:47:09)

Offline

#4 2014-01-29 17:05:08

zero-giulio
Member
Registered: 2010-01-23
Posts: 70

Re: Pulse Audio jack detection problem.

The same for me.
Setting Speakers instead of Analog Output will solve the problem (I use pavu control, but any pulseaudio frontend should work, I guess).
But it's a bit annoying (in previous versions this problem did not exist)

Offline

#5 2014-04-03 07:53:49

Copycat
Member
From: Ukraine, Kiev
Registered: 2011-08-28
Posts: 12

Re: Pulse Audio jack detection problem.

Same problem.

pacmd unload-module module-switch-on-port-available

disable sound on headphones at all. Not good solution


Sorry for my bad English sad

Offline

#6 2014-04-03 09:24:33

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Pulse Audio jack detection problem.

You might want to look at hdajackretask found in alsa-tools and set jack detection to not present in advanced configuration for the front panel output jack (or whatever one you are using). That obviously should work only for hda compliant cards.

Last edited by emeres (2014-04-03 09:25:43)

Offline

#7 2014-04-07 18:20:09

ReiserFS
Member
Registered: 2014-02-01
Posts: 57

Re: Pulse Audio jack detection problem.

Same here.
I found a solution:

# sed -i "s/priority = 99/priority = 86/g" /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf

Log off

Last edited by ReiserFS (2014-04-07 18:30:22)

Offline

#8 2014-04-12 14:30:19

sl1pkn07
Member
From: Spanishtán
Registered: 2010-03-30
Posts: 371

Re: Pulse Audio jack detection problem.

ReiserFS wrote:

Same here.
I found a solution:

# sed -i "s/priority = 99/priority = 86/g" /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf

Log off

this don't work for me sad

EDIT: acpi_listen cannot detect/show unplug/plug jack :S

EDIT:2 downgrade kernel to 3.13.5 (my last kernel use) solve my problem

Last edited by sl1pkn07 (2014-04-12 18:15:03)

Offline

#9 2014-12-14 22:31:00

jakub
Member
Registered: 2013-09-14
Posts: 151

Re: Pulse Audio jack detection problem.

In my case jack detection problems looks like like this:

In general I see three options in pulse audio volume control:

"Speakers"
"Analog output"
"Headphones"

-jack plugged in: instead of using "Analog output" as port, "Headphones" option is used (which has postfix "plugged in"). But there is no sound until I manually switch to "Analog output".
-jack unpugged: Slection "Analog output" is not changed to "Speakers" automatically. I have to switch it by myselft and there is sound coming out of speakers instead "Sepakers" option has postfix "(unavailable)".   

So is it any way to fix this behaviour?

Offline

#10 2014-12-14 23:49:37

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Pulse Audio jack detection problem.

Indomitable wrote:

check jack for headphones

Can be done with ALSA.

Offline

Board footer

Powered by FluxBB