You are not logged in.

#1 2008-12-03 20:31:18

BeholdMyGlory
Member
Registered: 2008-08-30
Posts: 93

Mute speakers when plugging in headphones

Well, my speakers doesn't mute when plugging in headphones to the laptop.
Allthough, if I mute the option "surround" in kmix, the speakers are muted but not my headphones, but to get the speakers back, I have to unmute it, which feels quite impractical.
(and also, in kmix I have two "front", one of which controls the headphones, and the headphones channel doesn't seem to do anything, and the only option is to mute it, no volume control. The PC Speaker doesn't do much either. It seems all of my channels have rndomly switched names)

What gives?

Offline

#2 2008-12-08 05:02:45

escondida
Package Maintainer (PM)
Registered: 2008-04-03
Posts: 157

Re: Mute speakers when plugging in headphones

Is there a headphone jack sensor pseudo-mixer? If that exists and is muted, your speakers won't mute when you plug in the headphones.

Offline

#3 2008-12-08 14:11:29

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Mute speakers when plugging in headphones

I guess you will need to add an option to modprobe.conf, but first you have to find out which sound codec you have and check the alsa documentation to see which options apply to your sound codec.
use "aplay -l" to find out which codec is used, then check here http://www.mjmwired.net/kernel/Document … ration.txt the options you can use for your codec.
Then add something like:
options snd-hda-intel model=lenovo
to /etc/modprobe.conf, where snd-hda-intel is the driver used by your soundcard and replace lenovo with one of the models allowed for your driver.
This did the trick for me smile

Last edited by R00KIE (2008-12-08 14:11:54)


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2009-02-21 00:08:10

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 628

Re: Mute speakers when plugging in headphones

I have exactly the same problem as BeholdMyGlory, but I don't have the possibility to mute "surround" speakers in KMix.

40a6725f4187c21am.png

My laptop model is MSI MegaBook GX600P-208NL with SoundBlaster compatible sound card using snd_hda_intel module. According to documentation it has a digital/analog SPDIF 5.1 line-out. Below you can see what "aplay -l" has to say about it

zbyszek ~ $  aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC888 Digital [ALC888 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

According to kernel documentation ALC883/888 cards could use following values

ALC883/888
858          3stack-dig    3-jack with SPDIF I/O
859          6stack-dig    6-jack digital with SPDIF I/O
860          3stack-6ch    3-jack 6-channel
861          3stack-6ch-dig 3-jack 6-channel with SPDIF I/O
862          6stack-dig-demo  6-jack digital for Intel demo board
863          acer        Acer laptops (Travelmate 3012WTMi, Aspire 5600, etc)
864          acer-aspire    Acer Aspire 9810
865          medion    Medion Laptops
866          medion-md2    Medion MD2
867          targa-dig    Targa/MSI
868          targa-2ch-dig    Targs/MSI with 2-channel
869          laptop-eapd   3-jack with SPDIF I/O and EAPD (Clevo M540JE, M550JE)
870          lenovo-101e    Lenovo 101E
871          lenovo-nb0763    Lenovo NB0763
872          lenovo-ms7195-dig Lenovo MS7195
873          haier-w66    Haier W66
874          6stack-hp    HP machines with 6stack (Nettle boards)
875          3stack-hp    HP machines with 3stack (Lucknow, Samba boards)
876          6stack-dell    Dell machines with 6stack (Inspiron 530)
877          mitac        Mitac 8252D
878          auto        auto-config reading BIOS (default)

But which one to chose?


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

#5 2009-02-21 11:25:37

BeholdMyGlory
Member
Registered: 2008-08-30
Posts: 93

Re: Mute speakers when plugging in headphones

@Zibi1981

Sorry for not doing a followup, I did actually solve this (even though I've switched to OSS now).
I added:

options snd-hda-intel model=lenovo-nb0763

to my modprobe.conf, and it worked like a charm. But seeing as you don't have the same laptop nor the same codec as me, it might be unlikely that that's the one for you. I guess the best you can do is to just try everyone and see what works best. That's what I did, even though I was lucky and got the right one on the third try.
Try searching google after your laptop model and the problem, you might find a forum post by someone with the same laptop.

Offline

#6 2009-02-22 10:48:28

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 628

Re: Mute speakers when plugging in headphones

Well, it looks like there's no other option for trying those entries out one by one. I wonder is there a possibility to check which "version" of S/PDIF one has. Any console command perhaps?
Thanks anyway BeholdMyGlory smile

EDIT

I've added

options snd-hda-intel model=targa-2ch-dig

and now external speakers are being muted when I plug-in my headphone, and unmuted when I unplug them big_smile Unfortunately while booting-up Splashy fails on some error. Dmesg shows nothing wrong.

Last edited by Zibi1981 (2009-02-22 11:10:27)


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

#7 2009-03-16 21:05:23

aaaantoine
Member
Registered: 2008-12-12
Posts: 44

Re: Mute speakers when plugging in headphones

Hm...  I have an Acer Aspire 5050 with ALC883.  I tried 3stack-dig, 3stack-6ch-dig, acer, and acer-aspire from that list with no such luck.  I'll report my findings here if I come across any, because I've tried many times in the past to troubleshoot this specific issue.

The instructions say to run lspci -nv if it doesn't work out of the box, and this is what I have:

00:14.2 0403: 1002:437b (rev 01)
        Subsystem: 1025:010f    
        Flags: bus master, slow devsel, latency 64, IRQ 16
        Memory at c0000000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2           
        Capabilities: [60] MSI: Mask- 64bit+ Count=1/1 Enable-  
        Kernel driver in use: HDA Intel                         
        Kernel modules: snd-hda-intel

Bug reported here: https://bugtrack.alsa-project.org/alsa- … hp?id=4452

Last edited by aaaantoine (2009-03-16 22:10:08)

Offline

#8 2009-05-16 06:28:11

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 628

Re: Mute speakers when plugging in headphones

What does lspci -nv command show exactly? Here's what I got

00:1b.0 0403: 8086:284b (rev 03)
        Subsystem: 1462:3fad
        Flags: bus master, fast devsel, latency 0, IRQ 22
        Memory at d8200000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Capabilities: [60] MSI: Mask- 64bit+ Count=1/1 Enable-
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [100] Virtual Channel <?>
        Capabilities: [130] Root Complex Link <?>
        Kernel driver in use: HDA Intel
        Kernel modules: snd-hda-intel

I still have issues with muting my speakers while using headphones and still splash fails on boot on some strange, ALSA-related errors.


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI Raider GE78HX 13VI-032PL

Offline

#9 2011-03-24 00:09:15

fakedrake
Member
Registered: 2011-02-09
Posts: 18

Re: Mute speakers when plugging in headphones

There are several topics like this, just wanted to note that i fixed this problem on my laptop (turbo-x) wich had a codec named ALC269 ( http://www.mjmwired.net/kernel/Document … els.txt#82 ) with the quanta model name big_smile
hope this helps someone

Offline

#10 2012-01-24 11:46:42

akshay2000
Member
From: Kanpur
Registered: 2011-08-01
Posts: 29
Website

Re: Mute speakers when plugging in headphones

Okay, the thread is a bit old. Still I'll expect a reply. My model is Dell XPS L401x and aplay -l shows that I have ALC665 and there's nothing about 665 in the documentation. What options should I put?


Wit beyond measure is man's greatest treasure!
Windows Phone app for Linux!

Offline

Board footer

Powered by FluxBB