You are not logged in.

#1 2014-08-01 08:21:16

p90
Member
Registered: 2013-06-07
Posts: 21

Alsa: how to controll the auto mute feature?

Hi,

I have a slight problem with my laptop.
I have a headphone jack, a analogue volume control wheel and my normal speakers.

What I like to have is this:
Plug in headphones => sound only from headphones
No headphones plugged => sound from main speakers (I do not care if sound is still put onto the headphone jack as I would not here it one way or the other)

Right now, this is not working out of the box.
Plugging in my headphones mutes the speakers, great, but it does not unmute my headphones so I hear nothing until I go into alsamixer and unmute my headphones.
This would not be a problem but once I unplug my headphones, alsa mutes them. Ergo, everytime I unplug and plug my headphone I have to unmute them in the alsa mixer.

Can someone tell me where I can controll this behaviour to fix this?
I have seen multiple entries for pulseaudio (which I am not usign right now) or references to a auto-mute button in alsamixer which I do not seem to have in mine.

With best regards,

p90

Offline

#2 2014-08-01 12:01:17

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

Re: Alsa: how to controll the auto mute feature?

I assume this is a hda compliant sound card, so it should be possible to use hdajackretask from alsa-tools package to en/disable jack sensing. Check how the settings look before and after plugging the headphone jack in. Other than that post the output before and after for 'amixer' and 'amixer -c 1'.

Offline

#3 2014-08-01 17:43:35

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,367

Re: Alsa: how to controll the auto mute feature?

This is a problem that occurs when I unplug and go on the battery.  It keeps auto muting on and off. Hdajackrestask is now part of the alsa-tools.

Last edited by nomorewindows (2014-08-01 17:57:32)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#4 2014-08-01 18:38:25

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

Re: Alsa: how to controll the auto mute feature?

@nomorewindows See if the same happens with power_save and power_save_controller parameters set to 0.

@p90 did you try replugging twice or more times? One more thing you can try is to run 'alsactl store' before plugging headphones in with speakers outputting sound, then after unplugging run 'alsactl restore'. You can use -f switch, see the manual.

Offline

#5 2014-08-04 10:31:24

p90
Member
Registered: 2013-06-07
Posts: 21

Re: Alsa: how to controll the auto mute feature?

Hi,

I just disabbled all jack sensing for now. It now does exactly what I want it to do (at least I haven't seen the muting problem anymore) as my laptop bios apparently automatically disabled my speaker once a headset is plugged in.

Thanks for all your work!

Offline

#6 2014-08-04 10:57:35

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

Re: Alsa: how to controll the auto mute feature?

I do not think BIOS is actually responsible for that feature, should you have any information on this, please share. Mark the thread as solved then. You are welcome.

Offline

#7 2014-08-04 14:16:16

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,367

Re: Alsa: how to controll the auto mute feature?

OSS would allow me to run both the headphone and the speaker at the same time.  I could get some surround sound going.  But OSS is not necessary for sound with my hardware, so I stay with alsa.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#8 2014-08-04 18:32:17

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

Re: Alsa: how to controll the auto mute feature?

@nomorewindows p90 accomplished just that with alsa. What is your point?

@p90 https://wiki.archlinux.org/index.php/Fo … ow_to_Post

Last edited by emeres (2014-08-04 18:36:23)

Offline

Board footer

Powered by FluxBB