You are not logged in.

#1 2020-11-28 21:44:37

indeedwatson
Member
Registered: 2018-10-07
Posts: 28

Switch between headphones and speakers

There seems to be a solution, but it does not work for me, which makes this all the more confusing. I've followed the steps here:

https://wiki.archlinux.org/index.php/Ta … on-the-fly

https://bbs.archlinux.org/viewtopic.php?id=253879

Meaning, I've edited analog-output-headphones to

[Element Front
switch = off
volume = off

And I've disabled Auto-mute mode in alsamixer, then restarted pulseaudio. But when I select to use headphones from pavu control, sound comes out from the speakers too. What am I missing or doing wrong?

Offline

#2 2020-12-02 13:17:58

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

Re: Switch between headphones and speakers

You need to enable Auto-Mute if that's what you want

Offline

#3 2020-12-02 13:29:18

indeedwatson
Member
Registered: 2018-10-07
Posts: 28

Re: Switch between headphones and speakers

V1del wrote:

You need to enable Auto-Mute if that's what you want

I disabled it cause I read to do that in the post I linked. There's no combination of settings that allows me to have both headphones and speakers plugged in, and be able to switch from which the sound comes out of manually.

I struggle to understand why this is so complicated, I remember I had this setup years ago and it was working. In fact I just fiddled with it again to confirm that what you said doesn't work, and now the sound just won't come out and I have to reboot.

Last edited by indeedwatson (2020-12-02 13:31:05)

Offline

#4 2020-12-02 13:38:13

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

Re: Switch between headphones and speakers

Oh wait I misread you do actually want to have them plugged in and just switch via a software toggle? Yes you want to have Auto-Mute disabled in that case, FWIW what you posted here has a typo and you aren't properly closing the [Element Front]

Are these the actual controls of your card? What output do you get for

aplay -lL
amixer -c0 #Replace the 0 with appropriate card index as given by aplay -l
pacmd list-cards
pacmd list-sinks

Last edited by V1del (2020-12-02 13:39:37)

Offline

#5 2020-12-03 03:31:22

indeedwatson
Member
Registered: 2018-10-07
Posts: 28

Re: Switch between headphones and speakers

The typo was just on the post, the file itself is correct.

>~ aplay -lL
https://paste.xinu.at/7UflKk/

> ~ amixer -c1 |fb
https://paste.xinu.at/Pq53b/

> ~ pacmd list-cards | fb
https://paste.xinu.at/Y8L/

> ~ pacmd list-sinks | fb
https://paste.xinu.at/tFcb/

I'm not entirely sure what to do with all of this.

Every time I make a change, and revert after seeing that it doesn't work (and restarting pulse), headphones just won't play any sound. Do I really have to reboot every time I want to test something? Why is this in particular so obtuse?

Last edited by indeedwatson (2020-12-03 03:36:17)

Offline

Board footer

Powered by FluxBB