[SOLVED] Alsa: How to disable auto-mute when plugging in headphones?

I have a set of headphones plugged into my workstation permanently (the headphone jack is hard to reach so I don't want to plug those headphones in and out) as well as some speakers. Jack sensing works perfectly - when I unplug the headphones, the speakers are unmuted and when I plug the headphones back in the speakers are muted. Now as I said, my headphones are plugged in permanently and occasionally I want to have sound on the speakers at the same time. So far I have not found a way to have both headphones and speakers unmuted simultaneously.
I originally thought this was a problem with Pulseaudio (I am using Cinnamon as my desktop) but when I directly go to the Alsa hw device I get exactly the same behavior. The sound chip is a built-in VIA VT1818S and aplay displays the correct cards and devices:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: VT1818S Analog [VT1818S Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: VT1818S Digital [VT1818S Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 2: VT1818S HP [VT1818S HP]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
I verified with "mpg123 -a hw:0,0" that I get no sound on the speakers when the headphones are plugged in and vice versa. I tried a lot of different settings with alsamixer and amixer to no avail. These are my current settings:
$ amixer -c 0 contents
numid=42,iface=CARD,name='Front Headphone Jack'
; type=BOOLEAN,access=r-------,values=1
: values=on
numid=44,iface=CARD,name='Front Mic Jack'
; type=BOOLEAN,access=r-------,values=1
: values=off
numid=46,iface=CARD,name='HDMI Phantom Jack'
; type=BOOLEAN,access=r-------,values=1
: values=on
numid=45,iface=CARD,name='Line Jack'
; type=BOOLEAN,access=r-------,values=1
: values=off
numid=40,iface=CARD,name='Line Out CLFE Jack'
; type=BOOLEAN,access=r-------,values=1
: values=off
numid=38,iface=CARD,name='Line Out Front Jack'
; type=BOOLEAN,access=r-------,values=1
: values=on
numid=41,iface=CARD,name='Line Out Side Jack'
; type=BOOLEAN,access=r-------,values=1
: values=off
numid=39,iface=CARD,name='Line Out Surround Jack'
; type=BOOLEAN,access=r-------,values=1
: values=off
numid=43,iface=CARD,name='Rear Mic Jack'
; type=BOOLEAN,access=r-------,values=1
: values=off
numid=47,iface=CARD,name='SPDIF Phantom Jack',index=1
; type=BOOLEAN,access=r-------,values=1
: values=on
numid=37,iface=MIXER,name='Master Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=36,iface=MIXER,name='Master Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=42,step=0
: values=23
| dBscale-min=-63.00dB,step=1.50dB,mute=0
numid=13,iface=MIXER,name='Headphone Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=12,iface=MIXER,name='PCM Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=11,iface=MIXER,name='PCM Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=31,31
| dBscale-min=-34.50dB,step=1.50dB,mute=0
numid=28,iface=MIXER,name='Front Mic Boost Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
: values=0,0
| dBscale-min=0.00dB,step=10.25dB,mute=0
numid=24,iface=MIXER,name='Front Mic Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=23,iface=MIXER,name='Front Mic Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=31,31
| dBscale-min=-34.50dB,step=1.50dB,mute=0
numid=2,iface=MIXER,name='Front Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=1,iface=MIXER,name='Front Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=42,step=0
: values=42,42
| dBscale-min=-63.00dB,step=1.50dB,mute=0
numid=4,iface=MIXER,name='Surround Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=3,iface=MIXER,name='Surround Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=42,step=0
: values=42,42
| dBscale-min=-63.00dB,step=1.50dB,mute=0
numid=6,iface=MIXER,name='Center Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=5,iface=MIXER,name='Center Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=42,step=0
: values=42
| dBscale-min=-63.00dB,step=1.50dB,mute=0
numid=8,iface=MIXER,name='LFE Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=on
numid=7,iface=MIXER,name='LFE Playback Volume'
; type=INTEGER,access=rw---R--,values=1,min=0,max=42,step=0
: values=42
| dBscale-min=-63.00dB,step=1.50dB,mute=0
numid=26,iface=MIXER,name='Line Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=25,iface=MIXER,name='Line Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=31,31
| dBscale-min=-34.50dB,step=1.50dB,mute=0
numid=16,iface=MIXER,name='Capture Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=18,iface=MIXER,name='Capture Switch',index=1
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=15,iface=MIXER,name='Capture Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=0,0
| dBscale-min=-16.50dB,step=1.50dB,mute=0
numid=17,iface=MIXER,name='Capture Volume',index=1
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=0,0
| dBscale-min=-16.50dB,step=1.50dB,mute=0
numid=14,iface=MIXER,name='Loopback Mixing'
; type=ENUMERATED,access=rw------,values=1,items=2
; Item #0 'Disabled'
; Item #1 'Enabled'
: values=0
numid=35,iface=MIXER,name='IEC958 Default PCM Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=31,iface=MIXER,name='IEC958 Playback Con Mask'
; type=IEC958,access=r-------,values=1
: values=[AES0=0x0f AES1=0xff AES2=0x00 AES3=0x00]
numid=32,iface=MIXER,name='IEC958 Playback Pro Mask'
; type=IEC958,access=r-------,values=1
: values=[AES0=0x0f AES1=0x00 AES2=0x00 AES3=0x00]
numid=33,iface=MIXER,name='IEC958 Playback Default'
; type=IEC958,access=rw------,values=1
: values=[AES0=0x04 AES1=0x00 AES2=0x00 AES3=0x00]
numid=34,iface=MIXER,name='IEC958 Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off
numid=30,iface=MIXER,name='Dynamic Power-Control'
; type=ENUMERATED,access=rw------,values=1,items=2
; Item #0 'Disabled'
; Item #1 'Enabled'
: values=0
numid=29,iface=MIXER,name='Independent HP'
; type=ENUMERATED,access=rw------,values=1,items=2
; Item #0 'OFF'
; Item #1 'ON'
: values=0
numid=19,iface=MIXER,name='Input Source'
; type=ENUMERATED,access=rw------,values=1,items=4
; Item #0 'Rear Mic'
; Item #1 'Front Mic'
; Item #2 'Line'
; Item #3 'Stereo Mixer'
: values=1
numid=20,iface=MIXER,name='Input Source',index=1
; type=ENUMERATED,access=rw------,values=1,items=4
; Item #0 'Rear Mic'
; Item #1 'Front Mic'
; Item #2 'Line'
; Item #3 'Stereo Mixer'
: values=0
numid=27,iface=MIXER,name='Rear Mic Boost Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
: values=0,0
| dBscale-min=0.00dB,step=10.25dB,mute=0
numid=22,iface=MIXER,name='Rear Mic Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=off,off
numid=21,iface=MIXER,name='Rear Mic Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=23,23
| dBscale-min=-34.50dB,step=1.50dB,mute=0
numid=10,iface=MIXER,name='Side Playback Switch'
; type=BOOLEAN,access=rw------,values=2
: values=on,on
numid=9,iface=MIXER,name='Side Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=42,step=0
: values=42,42
| dBscale-min=-63.00dB,step=1.50dB,mute=0
numid=49,iface=PCM,name='Capture Channel Map'
; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
: values=0,0
| | TLV size error (257, 8, 0)!
numid=50,iface=PCM,name='Capture Channel Map',index=1
; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
: values=0,0
| | TLV size error (257, 8, 0)!
numid=48,iface=PCM,name='Playback Channel Map'
; type=INTEGER,access=r----R--,values=8,min=0,max=36,step=0
: values=0,0,0,0,0,0,0,0
| | TLV size error (257, 8, 0)!
numid=51,iface=PCM,name='Playback Channel Map',device=1
; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
: values=0,0
| | TLV size error (257, 8, 0)!
numid=52,iface=PCM,name='Playback Channel Map',device=2
; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
: values=0,0
| | TLV size error (257, 8, 0)!
If I read the Alsa kernel docs right, the VIA driver simply does not provide any option to disable auto-muting: http://git.alsa-project.org/?p=alsa-ker … xt;hb=HEAD.
I would be glad if I had misread/misunderstood something or there were any other means of achieving what I am after? All I found so far is lots of posts where auto-muting did not work but very few people seem to want the opposite. FWIW, my old installation of Ubuntu 11.10 was working fine in that regard, i.e. it probably did not support auto-muting for my hardware.
Last edited by fax (2013-03-24 20:20:19)

Solved, well, good enough for me anyway. In alsamixer, I enabled "Independent HP". Independent HP means that two of the six surround channels get diverted to the headphones. Alsa creates a second device, one for line out and the other one for the headphones. It is a very neat feature that is meant to allow you to e.g. do a voice call with your headphones while you play music through the speakers at the same time. I can now choose in PulseAudio whether I want output to my headphones or the speakers. It required that in /etc/pulse/default.pa, I added the line "load-module module-alsa-sink device=hw:0,2" after this paragraph:
### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
### Use the static hardware detection module (for systems that lack udev support)
load-module module-detect
.endif
# Take Independent HP into use.
load-module module-alsa-sink device=hw:0,2
All this really is a work-around for two bugs:
Call it a bug or a missing feature, but it does not look like the Alsa snd_hda_codec_via driver allows to disable auto-muting.
Before the change to default.pa, PulseAudio already allows me to switch between two output devices - "analog output" and "analog headphones". "Analog headphones" however does the same thing as "analog output" and plays sound on the external speakers and not the headphones. I suspect that the PulseAudio module-udev-detect detects both Alsa devices but wires them wrongly.
The above still doesn't give me what I originally asked, i.e. sound on both speakers and headphones at the same time, but I realized that I don't really need that. I just need a way to switch on speakers occasionally while my headphones are plugged in.
Last edited by fax (2013-03-24 23:06:27)

Similar Messages

  • How to disable auto mute in pulseaudio?

    I'm going to listen to some music with my computer from my phone via Bluetooth, so I have to use pulseaudio, but I have a problem. My laptop's sound system is so weird, it must have Headphone and Speaker both un-muted in alsamixer to make internal speaker having sound, So I comment "load-module module-switch-on-port-available" in /etc/pulse/default.pa, this stopped mute/un-mute headphone/speaker when I plug in/unplug my earphone, but pluseaudio auto mute the Headphone and set volume to 0 every time when I reboot he computer(the Speaker is set as fallback in pavcontrol), I have to un-mute it and increase volume from alsamixer so that internal speaker can have sound, so is there any way to stop pusleaudio auto muting?

    Anyone got any ideas?

  • How to disable auto notification when Leads assigned

    Hi,
    Does anyone know how to disable or modify the automatic notification that gets sent to owner of Leads when rules assign Leads?
    I've found where to change the "from" email address but want to change/stop these altogether
    Thanks
    Example below:
    -----Original Message-----
    From: XXXXX
    Sent: Monday, November 17, 2008 10:09 PM
    To: XXXXX
    Subject: Lead(s) have been assigned to you in Oracle Siebel CRM On Demand
    192 Lead(s) have been assigned to you in Oracle Siebel CRM On Demand.
    Click the following URL to review your new Leads:
    https://secure-XXXXX.crmondemand.com/OnDemand/user/LeadsHomepage

    At this time there is no way to disable this email notification to the owner of the lead as a result of going thru the lead assignment rules.

  • How to disable auto lookup when typing in address

    I don't like the new automatic lookup that happens when I type a web address. For example, if I start typing google.com it comes up with new.google.com. I don't want it to search within the text. I am not one of those people who thinks the address is a search box. I know what address I want to go to. I don't use bookmarks. I just want it to start with the letters I type in (except www).
    If I type goo it should come up with www.google.com but not new.google.com.

    HI Gregg,
    About the only thing you can do for the time being to avoid this is use Private Browsing which you can enable from the Safari Menu Bar. Click Safari/Private Browsing. Safari won't remember pages you visit, search history or your AutoFill information from which Safari fetches data from when you type a url in the address bar.
    Providing feedback here will help.
    http://www.apple.com/feedback/safari.html
    Carolyn

  • How to disable auto charge via usb?

    So the question is as that: is it possible to disable auto charge when plugging iphone to the macbook in order to save the battery of macbook.
    Tried everything but couldn't find any solution. Moreover it seems like I was questioned something like "permit to charge iPhone via usb?" when I first plugged it to the Mac, but I'm not sure
    Thanks alot for any help!!

    I am reasonably sure since there are no hidden menus to enable this.

  • How to Disable "Auto Align" in [System Pref.] - [Display] - [Arrangement]

    Does anyone know How to Disable "Auto Align" in [System Preferences] -> [Display] -> [Arrangement]?
    It always want to align the two screens from the top when they are lined up close together and I need them to be aligned from the bottom. Since the resolution heights are so close together (1080 & 1050) it does not allow one to align side by side from the bottom as it prioritizes top alignment.
    I guess I'm looking for a script to disable this feature.

    Anyone got any ideas?

  • How to disable auto clear feature in a text box in IE10

    How to disable auto clear button in Text box in IE10
    Hi Team,
    I saw this question on Microsoft forum but I did not find any reply to this question, therefore, I am re-posting it.
    When I run web interface application on IE10, i see there is a new feature which has 'X' at the end of text box and on clicking it it clears the text.
    Are there any settings of IE10 that can be changed to disable it or some code snippet?
    I find the 'X' sign at the end of text box very annoying and would like to turn it off and make it compatible with older versions of IE and other explorers.
    Looking forward to your answer at the earliest.
    Regards
    Sakshi

    Hi,
    Please try the steps in the following thread to see whether it could help:
    Remove IE10's “clear field” X button on certain inputs?
    http://stackoverflow.com/questions/14007655/remove-ie10s-clear-field-x-button-on-certain-inputs
    Regards,
    Vincent Wang
    TechNet Community Support

  • How to disable autostart (application) when managed server restart ?

    Hi Ppl,
    How to disable autostart (application) when managed server restart ?
    I want some of the applications to remain not started. In WebSPhere, we have an option disable auto start for applications.
    I don't find in weblogic.
    Thanks

    Hi,
    I agree with Faisal. When you shutdown your WL server while the application is running, the thing is when you start your server again, it would automatically start the application with it. Now if the application was down when you shutdown the server, it _the application_ won't start with the server.
    So it depends on the application last state, when you start your server.
    Regards,
    Mohab

  • How to disabled mutli desktop when I using Full Screen?

    How to disabled mutli desktop when I using Full Screen?
    Some app have a preferences option to do this which like iTerm2
    In Lion-Style FullScreen windows, I can't use command + tab to  quickly switch between in the apps, I must switch to the  app own desktop which is using fullscreen, It's so trouble. I even think this is a flaw in Apple's design.
    So, How can I have use this  feature in others apps such as Google Chrome, Mail, Safari and so on.
    Please Help me!  Thanks! Thanks! Thanks!

    nobody can help me ?

  • How to disable auto charge of iPhone via PC?

    How to disable auto charge of iPhone via PC?

    I'm thinking you may have the concern of not overcharging or messing with charge cycles of your phone, but according to apple the Li-ion batteries in iDevices work this way for example
    -Your phone has 50% battery left, you charge it
    -after using again, you're back with 50 and charging it till full once again makes it 1 charge cycle
    Doesn't work like nickel batteries.
    Here's the article:
    Www.apple.com/batteries for some
    Battery care tips.

  • How to disable auto sign in

    how to disable auto
    signin

    Hi, Dominic; yes, I tried that x2 or 3.
    Finally called Apple; eventually realized I needed to re-launch Safari after deselecting autofill users and p-words.
    But thank you for your help!

  • How to disable auto detect browser settings

    When I want to start scan to Optimize Internet in "Easy Solve" feature of Comcast. It says DISABLE AUTO-DETECT BROWSER SETTINGS to enable scan running. Please send me the answer.

    Is this page accessible to non-subscribers? If so, please provide a URL. If not, hopefully Comcast can answer this question.

  • How to Disable Auto Updates on Flash Player 10 using mms.cfg

    Hi Friends,
    I am a newbee into this.I am trying to install a customized Adobe Flash  Player 10.2.153.1 in which auto updates are disabled.  I went through the Adobe guidelines and found that it is possible to do the same using a MMS.CFG file. Can anyone tell me how exactly this would look like. I will be extremely thankful if someone can attach a sample of the same.
    One more question...
    When we disable auto updates using mms.cfg file, will this be updated in the Global Settings Manager ?
    Tries from my end till now:
    I tried to create a mms.cfg by editing a txt file and adding "AutoUpdateDisable=0 " and then saving teh same as mms.cfg using UTF-8 encoding. this didnt make any difference in the Global Settings manager.
    Please help me...
    Regards,
    Dilip

    http://kb2.adobe.com/cps/167/16701594.html
    But it seems that you have done everything correctly; doesn't it work?
    dilzmail wrote:
    One more question...When we disable auto updates using mms.cfg file, will this be updated in the Global Settings Manager ?
    No, I don't think so; these settings are stored in a different place.
    Some users have reported that AutoUpdateDisable via mms.cfg does no longer work in Flash Player 10.3.  Please check if this failure already occurs in Flash Player 10.2.

  • How to disable auto updates

    How does one disable "check for automatic updates" in Java 6, version 17? On the Update tab, the box is checked, but it is grayed out and won't let me un-select it.
    Thanks for any help.

    http://kb2.adobe.com/cps/167/16701594.html
    But it seems that you have done everything correctly; doesn't it work?
    dilzmail wrote:
    One more question...When we disable auto updates using mms.cfg file, will this be updated in the Global Settings Manager ?
    No, I don't think so; these settings are stored in a different place.
    Some users have reported that AutoUpdateDisable via mms.cfg does no longer work in Flash Player 10.3.  Please check if this failure already occurs in Flash Player 10.2.

  • How to disable Auto Play of downloaded music?

    Whenever I download music from a file delivery service, it automatically opens in iTunes. How can I disable a music file automatically opening in any application when I download it? I've checked Settings, and preferences for Safari, iTunes, Finder, etc. But can't seem to find the place to disable auto opening of music files.

    Open the General tab of Safari's preferences and set it not to automatically open safe files. This applies to more than just music.
    (126662)

Maybe you are looking for