No sound on the headphone for Macbook KDE-OpenSuse12.1

Hi
I just installed Opensuse 12.1 - KDE on my Macbook Core Duo (older Macbook but still Intel) and I get sound out of my speakers, but not my headphone port. So far, everything else seems to work except this.
Thanks for any help.
Corto

Could you provide some more information on your Macbook Core Due software and hardware audio configuration ? … You could do that by providing in your post the following information per the quoted instructions below:

/usr/sbin/alsa-info.sh 

and select the SHARE/UPLOAD option and after the script finishes it will give you a URL to pass to the support personnel. Please post here the output URL/website-address that gives. Just the URL/website-address. You may need to run that script twice (the first time with root permissions to update in the /usr/sbin directory, and the second time to get the URL).
.
Note if for some reason that gives you no website/url/address then run it with the no-upload option:

/usr/sbin/alsa-info.sh --no-upload

and post the file /etc/alsa-info.txt it creates to Pastebin.comand press SUBMIT on that site and again post here the URL/website-address it provides.

.
… some clarification on running the script “alsa-info.sh” … when you run:

/usr/sbin/alsa-info.sh 

you should get something like this (if it asks for an update, select NO):
http://thumbnails33.imagebam.com/9280/a5973e92794041.jpg](ImageBam)

followed by this (select the SHARE/UPLOAD option):
http://thumbnails30.imagebam.com/9280/5e84f992794044.jpg](http://www.imagebam.com/image/5e84f992794044)

followed by this (its quickest if you simply select ‘NO’ to seeing the output - you will see it on the web page) :
http://thumbnails32.imagebam.com/9280/214da092794048.jpg](ImageBam)

followed by this (where in RED is the URL).
http://thumbnails23.imagebam.com/9280/d9858092794051.jpg](ImageBam)

Just post the URL you get (similar to the RED URL in my example, but yours will be different).

Again, if you can not get that, then run this with the no upload option:

/usr/sbin/alsa-info.sh --no-upload

which will create the file /tmp/alsa-info.txt. Copy that file and paste it on Pastebin.com and press submit. That will give you a URL address. Please post that URL here.

Here is what I got: http://www.alsa-project.org/db/?f=563846c6010bb1dd7925fa0f85d527407c5a3af7
I hope I followed your instruction carefully. Thanks a lot already. I find it always amazing again how the linux community is helpful.

I do not have a Macbook, so you will unfortunately find a degree of speculation in my post/suggestions.

First, I am a bit puzzled by your mixer, as it refers to speaker-0, and speaker-1. You have speaker-0 not muted, and speaker-1 muted. What is speaker-1 ? Please confirm it is NOT your headphones:


**Simple mixer control 'Speaker',0**
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
**Simple mixer control 'Speaker',1**
  Front Left: Playback 64 [100%] [0.00dB] **[off]**
  Front Right: Playback 64 [100%] [0.00dB] **[off]**

You can see speaker-1 is muted. Try unmuting that.

You could also install the application pulse audio volume control (pavucontrol) and run that the 1st time you run any multimedia playback application and tune pulse audio for that application. I provided some hints on that in a blog post here: Pulseaudio Basics for openSUSE with pavucontrol - Blogs - openSUSE Forums

Next, I note your Macbook has a STAC9221 from the diagnostic script:


!!-------Mixer controls for card 0 [Intel]

Card hw:0 'Intel'/'HDA Intel at 0x90440000 irq 43'
  Mixer name	: 'SigmaTel **STAC9221** A1'

One could speculate that the reason that the headphones are not working is due to a non optimal configuration of the alsa sound driver upon booting. In which case you could try forcing a model configuration upon the driver, to see if a specific configuration works better than the automatic assignment. That is a bit of a stretch as the output jack appears to be ok from the dmesg:


  122.976675] input: HDA Intel Line In at Ext Left Jack as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11
  122.978104] input: HDA Intel Mic at Ext Left Jack as /devices/pci0000:00/0000:00:1b.0/sound/card0/input12
  122.978850] input: HDA Intel HP Out at Ext Left Jack as /devices/pci0000:00/0000:00:1b.0/sound/card0/input13

still … lets follow that path. The model options for the STAC 9221 are listed in the /usr/src/linux-3.1.9-1.4/Documentation/sound/alsa> directory in the HD-Audio-Models.txt file (substitute your kernel version - I’ve used 3.1.9-1.4 in my example) :


STAC9220/9221
=============
  ref		Reference board
  3stack	D945 3stack
  5stack	D945 5stack + SPDIF
  intel-mac-v1	Intel Mac Type 1
  intel-mac-v2	Intel Mac Type 2
  intel-mac-v3	Intel Mac Type 3
  intel-mac-v4	Intel Mac Type 4
  intel-mac-v5	Intel Mac Type 5
  intel-mac-auto Intel Mac (detect type according to subsystem id)
  macmini	Intel Mac Mini (equivalent with type 3)
  macbook	Intel Mac Book (eq. type 5)
  macbook-pro-v1 Intel Mac Book Pro 1st generation (eq. type 3)
  macbook-pro	Intel Mac Book Pro 2nd generation (eq. type 3)
  imac-intel	Intel iMac (eq. type 2)
  imac-intel-20	Intel iMac (newer version) (eq. type 3)
  ecs202	ECS/PC chips
  dell-d81	Dell (unknown)
  dell-d82	Dell (unknown)
  dell-m81	Dell (unknown)
  dell-m82	Dell XPS M1210
  auto		BIOS setup (default)

For example lets speculate you wish to try the “macbook-pro” configuration (and it may NOT be that model option, but it may be ANOTHER option). Then to try that option modify the /etc/modprobe.d/50-sound.conf file, adding this line to the START of that 50-sound.conf file:


options snd-hda-intel model=macbook-pro

restart the alsa driver (easiest way to explain is for you to reboot) and test your sound (speaker, headphones, mic). That might break one or more of those, in which case change macbook-pro for another option (perhaps ‘macbook’) and save the change, and restart the alsa driver and test. Try each model option one at a time until you find one that works.

Do NOT keep backup copies in the /etc/modprobe.d/ directory, but rather keep backups in the /home/username directory.

I am already unable to find a solution to your first question. I do not find Speaker 0 and Speaker 1 on KMic or on Pavucontrol. Must I use the Terminal and which command to use to unmute Speaker 1? One supplementary information: when I plug the headphone the internal speakers stop: so somewhere the computer is able to identify that something has been plugged in.

To re-iterate, I do NOT have your Macbook hardware, and so I am forced to speculate to a large extent.

Try the ‘alsamixer’ or ‘amixer’ command from a konsole. In the case of amixer you will need to first type ‘man amixer’ to figure out the precise syntax needed with that command.

That suggests to me that the headphones are muted, and increases the probability that speaker-1 is a headphone mute control. Again - speculation as I do not have your hardware.

I succeeded to unmute speaker 1 with alsamixer which was far more easy to handle than amixer. Thanks for your help.

So this thread is solved.

EXCELLENT. Congratulations on your determination to stick with and solve this. I’m glad to read its working now ! :slight_smile: