You are not logged in.

#1 2016-03-25 10:20:51

steoguitar
Member
Registered: 2015-04-23
Posts: 54

Pulse audio's weird configuration

hi,
I've installed pulseaudio in order to switch audio from pc to hdmi when I need it.
the problem is: at boot pulseaudio is mute and in order to listen audio contents I have to open pulseaudio mixer and switch to "hearphones (unplugged)" and so I can listen music from pc speaker....
why pc speaker is not recognized?

Offline

#2 2016-03-25 12:00:41

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

Re: Pulse audio's weird configuration

Sometimes detection is somewhat flaky, you can work around this by commenting out

load-module module-switch-on-port-available

in your /etc/pulse/default.pa . Additionally use

pacmd list-sinks

to find  the name of your card and the name of the port to switch to, and append said information at the end of the default.pa like so

set-sink-port $cardname $portname

i.e.:

pacmd list-sinks #Filtered for the relevant parts
name: <alsa_output.pci-0000_0c_04.0.analog-surround-40>
...
ports:
                analog-output: Analoge Ausgabe (priority 9900, latency offset 0 usec, available: unknown)
                        properties:

I only have one port here, but the command to switch to the correct port to be appended at the end of the default.pa would be

set-sink-port alsa_output.pci-0000_0c_04.0.analog-surround-40 analog-output

Offline

#3 2016-03-26 12:47:27

steoguitar
Member
Registered: 2015-04-23
Posts: 54

Re: Pulse audio's weird configuration

thank you! I'll try..
but what if I have two ports?
here my output:

	name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
(...)
	ports:
		analog-output-speaker: Altoparlanti (priority 10000, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Cuffie analogiche (priority 9000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-headphones"

which one do I have to append?

edit: I appended the first one but with no results....

Last edited by steoguitar (2016-03-26 13:10:40)

Offline

#4 2016-03-26 14:30:34

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

Re: Pulse audio's weird configuration

you have to add the second one since that's the one that's producing sound

Offline

Board footer

Powered by FluxBB