Speakers not muted when headphones inserted (Macbook 5.1, late 2008)

Bug #480796 reported by Iain Lane
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Linux
Fix Released
Undecided
Unassigned
Mactel Support
Fix Released
Undecided
Unassigned
linux (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Hiya,

The title pretty much says it. When I insert headphones into the jack on my laptop, the external speakers are not muted and the headphones are not activated. I have to lower the master volume to the minimum level (not 0 as this mutes all outputs) and raise the headphone volume. This should be done automatically.

  - Jack sense should work
  - Adjusting the master volume should also adjust the headphone volume (providing that the speakers are correctly muted...)

Regards,
Iain

ProblemType: Bug
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: laney 2112 F.... pulseaudio
 /dev/snd/pcmC0D0p: laney 2112 F...m pulseaudio
Card0.Amixer.info:
 Card hw:0 'NVidia'/'HDA NVidia at 0x93380000 irq 23'
   Mixer name : 'Realtek ALC889A'
   Components : 'HDA:10ec0885,106b3f00,00100103'
   Controls : 36
   Simple ctrls : 20
Date: Wed Nov 11 17:13:18 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release Candidate i386 (20091020.3)
NonfreeKernelModules: nvidia wl
Package: alsa-base 1.0.20+dfsg-1ubuntu5
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/usr/bin/zsh
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: alsa-driver
Uname: Linux 2.6.31-14-generic i686

Revision history for this message
Iain Lane (laney) wrote :
Revision history for this message
Iain Lane (laney) wrote :

This is similar to bug 437150, but is about a slightly different module. dtchen asked me to file a new bug and triage it to Linux, so that I have done.

affects: alsa-driver (Ubuntu) → linux (Ubuntu)
Daniel T Chen (crimsun)
Changed in linux (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
Andy Whitcroft (apw)
tags: added: kernel-karmic
Revision history for this message
Alex Murray (alexmurray) wrote :

I've developed a patch against alsa-driver-1.0.22.1 which should fix this (which I've attached to this bug), which you can test as follows:

First make sure you don't have any versions of linux-backports-modules-alsa installed:

apt-cache --names-only search linux-backports-modules-alsa | cut -f 1 -d ' ' | xargs sudo apt-get remove --purge

Now download alsa driver source and the patch, and compile and install a patched version of the driver:

cd ~
wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.22.1.tar.bz2
wget http://dl.dropbox.com/u/174251/alsa-driver-1.0.22.1-mb5.patch
tar xjf alsa-driver-1.0.22.1.tar.bz2
patch -p0 < alsa-driver-1.0.22.1-mb5.patch
cd alsa-driver-1.0.22.1
./configure
make
sudo make install

Now you need to reboot your machine. If this works I'll push the patch upstream and hopefully we can get it applied to linux-backports-modules-alsa as well.

Revision history for this message
Chase Douglas (chasedouglas) wrote :

I can confirm that the patch posted by Alex Murray fixes the issue for me.

Revision history for this message
Luke Symes (allsymes) wrote :

This bug is almost the same as bug 488103 which is about the MacBook Pro 5,1. Should it be marked as a duplicate?
Also, the same patch from Alex Murray is posted there, and fixes the issue for me on my MacBook 5,1.

Revision history for this message
Iain Lane (laney) wrote :

That bug conflates a lot of different issues, whereas this one is rather specific to jack sense on one particular model. It should be kept open and unduped until the problems the report describes are fixed for the model it refers to.

Revision history for this message
Alex Murray (alexmurray) wrote :

@Iain - can you confirm if the patch fixes this for you - it should, and so this bug should be marked as such.

Revision history for this message
Iain Lane (laney) wrote :

I will soon. But that won't affect the bug status. It should still be upstreamed and uploaded to Ubuntu as appropriate if indeed it is a good fix.

Revision history for this message
Iain Lane (laney) wrote :

I think it's working now on Lucid. Please, someone else confirm.

Revision history for this message
Iain Lane (laney) wrote :

(with a Macbook 5.1 please)

tags: added: patch
Revision history for this message
Alex Murray (alexmurray) wrote :

@Iain - as I just commented on bug #437150 this is in Lucid so its definitely confirmed fixed in Lucid.

Changed in linux (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Alex Murray (alexmurray) wrote :

Marked as fix released for Lucid and upstream kernel

Changed in linux:
status: New → Fix Released
Changed in mactel-support:
status: New → Invalid
status: Invalid → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.