New iMac (9,1, March 09) headphone jack works, speakers do not

Bug #346170 reported by jamesey
34
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Mactel Support
New
Undecided
Unassigned
alsa-driver (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I got a new iMac, (version 9,1 March 09). Everything works perfectly except the sound. Sound comes out of the headphone jack. Sound does not come out of the speakers. I've tried numerous fixes, but I think it comes down to the newest iMac hardware not being supported yet.

lspci-v

00:08.0 Audio device: nVidia Corporation MCP79 High Definition Audio (rev b1)
 Subsystem: nVidia Corporation Device cb79
 Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 15
 Memory at d3580000 (32-bit, non-prefetchable) [size=16K]
 Capabilities: <access denied>
 Kernel modules: snd-hda-intel

 aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC883 Analog [ALC883 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC883 Digital [ALC883 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I get the same results in 8.10 and 9.04

Revision history for this message
jamesey (jameseyla) wrote :

I tried all of the following options for /etc/modprobe.d/alsa-base and /etc/modprobe.d/options:

 ALC882/885
   3stack-dig 3-jack with SPDIF I/O
   6stack-dig 6-jack digital with SPDIF I/O
   arima Arima W820Di1
   targa Targa T8, MSI-1049 T8
   asus-a7j ASUS A7J
   asus-a7m ASUS A7M
   macpro MacPro support
   mbp3 Macbook Pro rev3
   imac24 iMac 24'' with jack detection
   w2jc ASUS W2JC
   auto auto-config reading BIOS (default)
   3stack-dig 3-jack with SPDIF I/O
   6stack-dig 6-jack digital with SPDIF I/O
   3stack-6ch 3-jack 6-channel
   3stack-6ch-dig 3-jack 6-channel with SPDIF I/O
   6stack-dig-demo 6-jack digital for Intel demo board
   acer Acer laptops (Travelmate 3012WTMi, Aspire 5600, etc)
   acer-aspire Acer Aspire 9810
   medion Medion Laptops
   medion-md2 Medion MD2
   targa-dig Targa/MSI
   targa-2ch-dig Targs/MSI with 2-channel
   laptop-eapd 3-jack with SPDIF I/O and EAPD (Clevo M540JE, M550JE)
   lenovo-101e Lenovo 101E
   lenovo-nb0763 Lenovo NB0763
   lenovo-ms7195-dig Lenovo MS7195
   haier-w66 Haier W66
   3stack-hp HP machines with 3stack (Lucknow, Samba boards)
   6stack-dell Dell machines with 6stack (Inspiron 530)
   mitac Mitac 8252D
   clevo-m720 Clevo M720 laptop series
   fujitsu-pi2515 Fujitsu AMILO Pi2515
   auto auto-config reading BIOS (default)

I tried all of that in fresh, clean, installs of 8.10 and 9.04 Beta. Sound only comes out of the headphone jack. Sound does not come out of the speakers. This is the newest iMac released in March 09, (Model 9,1)

I'll be happy to be a guinea pig for fixing this, since I know the hardware is new and not many people have it yet.

Revision history for this message
jamesey (jameseyla) wrote :

cat /proc/asound/cards
 0 [NVidia ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xd3580000 irq 21

cat /proc/asound/devices
 2: : timer
  3: : sequencer
  4: [ 0- 2]: digital audio capture
  5: [ 0- 1]: digital audio playback
  6: [ 0- 1]: digital audio capture
  7: [ 0- 0]: digital audio playback
  8: [ 0- 0]: digital audio capture
  9: [ 0] : control

cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.18rc3

james@james-ubuntu:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC885 Analog [ALC885 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC885 Digital [ALC885 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

As shown above, alsa says I have ALC885
As shown in the image, Gnome sound mixer says I have ALC889A

Revision history for this message
Micah Bucy (micah-bucy) wrote :

I got alsa working correctly using 1.0.19 I'm attaching a patch I believe should work on the version currently in intrepid. I have not tested 1.0.18, so I'm not sure if it will work correctly. If it doesn't work correctly, then let me know, and I'll try to create a set of alsa debs using 1.0.19 as well as attach that patch here. I already posted the 1.0.19 patch to alsa-devel mailing list.

-Micah

Revision history for this message
Micah Bucy (micah-bucy) wrote :

I should note that with this patch, the model option is imac91, which is automatically detected if /proc/asound/card0/codec#0 contains Subsystem Id: 0x106b4900

I should also note, that in my case, there was no sound at all, either from the headphone jack or the built in speakers. I'm guessing sound from the headphone jack would have worked in Intrepid and possibly earlier versions of Jaunty, since I believe those versions of alsa did not contain the clause for this model to use the 883/888 alc. 882/885 alc is required. One can tell which is being used by the output of aplay -l

Revision history for this message
Luke Yelavich (themuso) wrote : Re: [Bug 346170] Re: New iMac (9, 1, March 09) headphone jack works, speakers do not

Have you also tried sound/mic input? Sound can't be classed as completely working until input is tested and is working.

Revision history for this message
Luke Yelavich (themuso) wrote :

I also suggest you send this patch as a git commit to alsa upstream. If you are unsure how to do this, I am happy to do this for you, giving you credit of course.

Revision history for this message
jamesey (jameseyla) wrote :

thanks micah.

I'm using Jaunty (9.04 Beta) which currently has alsa drivers version 1.0.18. I'm a bit of a newbie at working with drivers in linux. How do I apply the patch? right now I've simply saved it to my desktop.

Revision history for this message
Micah Bucy (micah-bucy) wrote :

I have not had a chance to test input yet. Guess I should have said I got output completely working. I'll try to test input tomorrow. As far as getting this to git, something else was borked from a fresh nightly, so I didn't create a patch using it. It wasn't able to detect the audio card at all. I'll have to give it a try some other time.

-Micah

Revision history for this message
Brian Murray (brian-murray) wrote :

I'm setting this to incomplete until input testing is done.

Changed in alsa-driver (Ubuntu):
status: New → Incomplete
Revision history for this message
Marc (m-chabot) wrote :

In my case, NO SOUND at all.

Nothing froms internal speakers and nothing from headphone jack.

Tested the built-in mic and it works (from the status bar) but nothing from the input jack.

I am willing to provide you with all the info you need to help me solve this issue.

Revision history for this message
Micah Bucy (micah-bucy) wrote :

I've gotten the output working, and the built-in mic. Nothing so far from the input jack. I'll upload the new patch version next week after I follow the alsa patching guidelines so it can be ported upstream when I've got a complete patch.

Revision history for this message
jamesey (jameseyla) wrote :

thanks micah.

Revision history for this message
watitdo (snapyourfingaz) wrote :

Any news on this patch? Micah? :)

Revision history for this message
jamesey (jameseyla) wrote :

any updates?

Revision history for this message
sml (smlubuntu) wrote :

any news yet on this one?
macbook pro 2.26 ghz - no sound.

Revision history for this message
jamesey (jameseyla) wrote :

updates? will 9.10 fix this?

Revision history for this message
Luke Yelavich (themuso) wrote : Re: [Bug 346170] Re: New iMac (9, 1, March 09) headphone jack works, speakers do not

The easiest way to find out is to download a live CD and try it yourself. You can get the latest daily images of Ubuntu from here: http://cdimage.ubuntu.com/daily-live/current.

Revision history for this message
Giorgio Wicklein (giowck) wrote :

On 9.10 Alpha 5, there is no sound. So, still not working.

(iMac 24" 9,1)

Revision history for this message
Jonas Weinen (weinen) wrote :

Hi!

I used the module-assistant tool to build new alsa modules including Micah's patch. Maybe this is useful for someone, so here are the steps involved:

sudo aptitude install module-assistant
sudo m-a update
sudo m-a prepare
sudo m-a get alsa-source
sudo m-a unpack alsa-source
cd /usr/src/modules/alsa-driver
sudo patch -p1 < /path/to/imac91-1.0.18.patch
sudo m-a build -O alsa-source
sudo m-a install alsa-source

The universe repository must be activated, then m-a should take care of the dependancies. After the module is build, the system should be rebooted or all alsa modules reloaded. At least the build and install steps need to be repeated after a kernel update.

In the Gnome volume control, channel mode must be set to 6ch. Maybe you need to change volume levels a bit, before sound is actually played. I did not test line in or mic. I used Ubuntu 9.04.

Jonas

Revision history for this message
Giorgio Wicklein (giowck) wrote :

THANKS Jonas, with your procedure i got my sound card working on the iMac 24" (9,1).
For other users: to change the cannel to 6ch you have first to enable channel mode in the gnome volume manager.

Great. Why is this still not fixed in karmic? Or is the patch not merged in the main alsa project?

Revision history for this message
Jonas Weinen (weinen) wrote :

In alsa 1.0.21, sound works using the model=mb5 option. (again, I only tested the built-in speakers and no inputs). I tested this with the same procedure as above but with the alsa-source package from Debian unstable and without any patch.

Is there any chance that alsa 1.0.21 will get into karmic?

Jonas

Revision history for this message
Jonathan Coffeng (liberalist) wrote :

Hi everyone, I have just tried Karmic Koala on the same iMac model mentioned here (9,1 March 2009; 20"). For me, the internal speakers and headphone jack do not work. I don't know about the mic, as I have tested in a Live environment and therefore could not install Audacity to check. If I type in aplay -l, the output is the same as in the bug description, except the sound card being ALC889A? Is this some kind of revision?

Anyway, should I continue to install regardless of sound? It seems a daunting task to fix the problem in my opinion.

Revision history for this message
Giorgio Wicklein (giowck) wrote :

we are still waiting for a fix

btw. you can get it working by adding to /etc/modprobe.d/alsa-base.conf

this line:
options snd-hda-intel model=lenovo-sky

Revision history for this message
jamesey (jameseyla) wrote :

giowick, that fix only works on the 24in imac. not the 20 inch.

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

I am pretty sure this should be fixed if you install the package 'linux-backports-modules-alsa-karmic-generic' - please try this and see if it fixes your sound problems before trying to manually patch the drivers.

Revision history for this message
Jonathan Coffeng (liberalist) wrote :

Thank you so much for your kind replies. It always amazes me how diligent the Ubuntu crowd is. So far, if I install the package on a virtual machine, the sound works. I still have to install Kubuntu on a dedicated partition, but I am positive sound will work with that particular package. I will report back if I succeed.

Happy Holidays to everyone.

Brad Figg (brad-figg)
tags: added: imac
tags: added: no-sound-speakers
Revision history for this message
holber (mikael-holber) wrote :

I have tried the ppa-kernel from http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.33/ and can confirm that the options snd-hda-intel model=imac91 works for my Imac 9,1 24".

Revision history for this message
Giorgio Wicklein (giowck) wrote :

Hi,

Today is a great day because this has been fixed on Ubuntu 10.10 Maverick Alpha 2 :)

Sound works on imac 24" early 09 without any manual configuration change...

Thanks

Revision history for this message
Luke Yelavich (themuso) wrote :

Closing as per most recent comment.

Changed in alsa-driver (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Henrique Ferreiro (henrique-ferreiro) wrote :

I have just tried the maverick beta live cd and it didn't work for me. I don't know if the alsa driver choosed model=imac91 automatically or not. I cannot install it right now and don't know how to change that with the module already loaded. Anyway, either the option doesn't work, or it isn't being picked by default.

Nor the jack nor the speakers worked for me. Additionally, I tried changing "Analog Stereo Duplex" to "Digital Stero Duplex", and then pressing "try it" (or something like that) crashed the sound preferences application.

Changed in alsa-driver (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
jamesey (jameseyla) wrote :

I also just tried Maverick Beta. Sound definitely does not work after a fresh install. iMac 9,1, 20 inch.

Revision history for this message
jamesey (jameseyla) wrote :

I did a fresh install of MM 10.10 beta. To get sound working, you just have to go to /etc/modprobe.d/alsa-base.conf and add the line snd-hda-intel model=imac91.

Then in terminal enter "alsamixer", and max out the volume on each bar. Then in sound preferences, go to the hardware tab and choose the "analog stero output option."

Sound will work perfectly and the tinny quality is gone. The speakers finally sound how they should. It's definitely not working straight out of the box.

Revision history for this message
Daniel T Chen (crimsun) wrote :

Please run apport-collect 346170

Revision history for this message
Henrique Ferreiro (henrique-ferreiro) wrote : apport information

AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
AudioDevicesInUse:
 Cannot stat file /proc/4543/fd/33: Stale NFS file handle
 Cannot stat file /proc/4543/fd/40: Stale NFS file handle
                      USER PID ACCESS COMMAND
 /dev/snd/controlC0: ubuntu 3053 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'NVidia'/'HDA NVidia at 0x93580000 irq 21'
   Mixer name : 'Realtek ALC889A'
   Components : 'HDA:10ec0885,106b4300,00100103'
   Controls : 32
   Simple ctrls : 17
DistroRelease: Ubuntu 10.10
LiveMediaBuild: Ubuntu 10.10 "Maverick Meerkat" - Release Candidate amd64 (20100928)
NonfreeKernelModules: wl
Package: alsa-driver (not installed)
ProcEnviron:
 LANG=gl_ES.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Tags: maverick
Uname: Linux 2.6.35-22-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 04/27/09
dmi.bios.vendor: Apple Inc.
dmi.bios.version: IM91.88Z.008D.B08.0904271717
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: Mac-F2218EA9
dmi.board.vendor: Apple Inc.
dmi.chassis.asset.tag: Asset Tag#
dmi.chassis.type: 13
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-F2218EA9
dmi.modalias: dmi:bvnAppleInc.:bvrIM91.88Z.008D.B08.0904271717:bd04/27/09:svnAppleInc.:pniMac9,1:pvr1.0:rvnAppleInc.:rnMac-F2218EA9:rvr:cvnAppleInc.:ct13:cvrMac-F2218EA9:
dmi.product.name: iMac9,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

tags: added: apport-collected
Revision history for this message
Henrique Ferreiro (henrique-ferreiro) wrote : AlsaDevices.txt

apport information

Revision history for this message
Henrique Ferreiro (henrique-ferreiro) wrote : AplayDevices.txt

apport information

Revision history for this message
Henrique Ferreiro (henrique-ferreiro) wrote : ArecordDevices.txt

apport information

Revision history for this message
Henrique Ferreiro (henrique-ferreiro) wrote : BootDmesg.txt

apport information

Revision history for this message
Henrique Ferreiro (henrique-ferreiro) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Henrique Ferreiro (henrique-ferreiro) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Henrique Ferreiro (henrique-ferreiro) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Henrique Ferreiro (henrique-ferreiro) wrote : PciMultimedia.txt

apport information

Revision history for this message
Henrique Ferreiro (henrique-ferreiro) wrote : ProcCpuinfo.txt

apport information

Changed in alsa-driver (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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