You are not logged in.

#1 2017-06-02 15:38:59

avi9526
Member
Registered: 2015-05-15
Posts: 116

pulseaudio sometimes give delayed volume switch after output switch

This happens sometimes, full restart helps (restart pulseaudio not)
I have "Line out" (always unpluged, volume 50%) and "headphones" output (volume 30%)
When headphones not connected output is switched to "line out". If I connect headphones output switches from "line out" to "headphones", and for half a second volume for headphones is set to 50%, which is too much. If I manually switch output using kde sound settings  I get same bug: new output for short time has volume of previous output. I think this can be dangerous for ears and equipment (in case if previous output has volume >80% and new one connect to device with big gain and need volume <20%)

Does anyone have this problem?

Offline

#2 2017-06-02 15:54:00

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: pulseaudio sometimes give delayed volume switch after output switch

Moved, by request


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2017-06-02 15:56:25

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,410

Re: pulseaudio sometimes give delayed volume switch after output switch

find the line load-module module-udev-detect in your /etc/pulse/default.pa  and make it read

load-module module-udev-detect deferred_volume=false

restart pulse

systemctl --user restart pulseaudio

does that help? you might also want to post the output of a

journalctl -f --user-unit=pulseaudio

during plug/unplug maybe there are some interesting warnings or the like

Offline

#4 2017-06-07 21:07:31

avi9526
Member
Registered: 2015-05-15
Posts: 116

Re: pulseaudio sometimes give delayed volume switch after output switch

V1del wrote:

deferred_volume=false … does that help?

it looks like it helps, but i sometimes get short click noise when switching from loud output, weird

V1del wrote:

you might also want to post the output of a

journalctl -f --user-unit=pulseaudio

during plug/unplug maybe there are some interesting warnings or the like

nothing

seems like you are right, problem with deferred_volume, which seems to be useless for me as I have flat-volumes=no

will need to check more, because this problem is rare (seems depend on uptime)

IMHO: i find flat-volumes feature extremely hard to understand and with unobvious behaviour, have no idea why it exists

Last edited by avi9526 (2017-06-07 21:08:01)

Offline

Board footer

Powered by FluxBB