You are not logged in.

#1 2014-04-17 08:05:48

aqeeliz
Member
Registered: 2007-10-13
Posts: 46

[SOLVED] Pulseaudio, sound coming from both headphone and laptop speak

I switched to PulseAudio a while back, everything is working fine, except I can't find a way to get sound "only" in headphones.

"Built-in Audio Analog Stereo" has three Ports: 'Analog Output', 'Speakers' and 'headphones'. Choosing Speakers give no sound, and choosing Analog output and headphones gives sound from both headphones (if it's attached) and laptop speakers.

I have pavucontrol installed but can't find any option for it in it either. Any suggestions?

Last edited by aqeeliz (2015-01-29 08:52:20)

Offline

#2 2014-04-23 23:15:22

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

Re: [SOLVED] Pulseaudio, sound coming from both headphone and laptop speak

Try remapping channels, so that only channels you want have output.

Offline

#3 2015-01-29 07:36:48

aqeeliz
Member
Registered: 2007-10-13
Posts: 46

Re: [SOLVED] Pulseaudio, sound coming from both headphone and laptop speak

That code looks specific to that sound card, though I tried it anyways, by changing

device=hw:M2496

to

device=hw:1

(where  1 is index of my card), but now I can't get any sound from my sound card. I have commented out those lines, removed .config/pulse, restarted pulseaudio, restarted laptop, but I still can't get any sound from that soundcard anymore.  (EDIT: Apparently sound was muted in Kmix (thought it wasn't in pavucontrol), don't know how that works, maybe I missed something, anyways, I am again getting sound, but everything else is same.)

And my original problem still remains.

I am assuming if I know the names of channels (for headphone and laptop speaker), I can create a new sink/source and use that to route the sound properply, but I can't figure out exactly how to do all that.

P.S: If anyone is looking at the link shared by emeres, it's moved to here

Last edited by aqeeliz (2015-01-29 07:46:11)

Offline

#4 2015-01-29 08:01:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: [SOLVED] Pulseaudio, sound coming from both headphone and laptop speak

There's also an easier way if you don't need speakers at all and just want them to be muted on headphone plug in, check if alsamixer has an "automute"-control and enable that

Offline

#5 2015-01-29 08:51:51

aqeeliz
Member
Registered: 2007-10-13
Posts: 46

Re: [SOLVED] Pulseaudio, sound coming from both headphone and laptop speak

V1del wrote:

There's also an easier way if you don't need speakers at all and just want them to be muted on headphone plug in, check if alsamixer has an "automute"-control and enable that

Heh, so simple!

This way I can have sound from either Headphones, speaker or both, so I guess that covers all use cases smile Thanks

Offline

Board footer

Powered by FluxBB