Mac Mini 4,1, Mac Os X Mountain Lion, HDMI sound not working: Solved.

I’ve had this problem since the first use of Mountain Lion. With Snow Leopard everything worked without problem, except for stuck volume controls (this is why I moved to Mountain Lion).
I searched, over many seas, a solution to this common problem: someone call the apple customer care, some others install modified kexts. I did nothing of the above. Here I show a really simple workaround to start again using your HDMI audio. Keep reading.

My Mac Mini 4,1 is connected via HDMI to my ASUS 22″ 1080p monitor.
When you press option+click on the volume control you’ll see a list of available devices to output your audio. If you have a setup similar to mine, you then have headphones and HDMI monitor option listed. Like this image shows.
0If you select your HDMI monitor, selection goes to the headphones automatically, and also does your audio. Pretty disappointing! It will be more fair not showing me that option!
But let’s move on.

Give a CTRL-Space to open Spotlight and search for midi audio, like this:

2

In this panel we can see what’s going on in our Mac, you know how they say:

Don+_e3eca75e0b637d4f19b1257bbf148b1a

LET’S SEE ALL THE PERIPHERALS!!

So here is the panel, you’ll se headphones option, and also HDMI. If you click on HDMI and then select Configure button on bottom-right, you’ll be amazed to know that audio works by testing left and right channel!!! Why do they don’t work normally by default then? The answer is: I don’t know!

3

So what’s next? Hit the plus button bottom-left and then add a combined device(translations may vary)
5And select with device use with this new device. In my case I want audio to go only via the HDMI port, so I checked that. Then right-clicked this new device and told it to be the default one for audio (you can change this also with option+click on volume control). Be sure to have 44100Hz selected (option that worked for my setup).

4

This is another shot, a useless one, but I can’t just throw it in the bin…it’s always a creation of mine, you know what I mean?

Let’s sums things up: this new device lets you use you HDMI monitor to play audio like it did before. You can personalize your menu, renaming device, hide others, but this is not the point of this post.
Here’s the result:
1And it works like a charm! Without calling Apple Geniuses, installing modified kext (dangerous) and other tricks!
I hope this was somewhat useful to you.
Let me know how it goes, or better solutions in the comments below!
Thanks for your time.

Annunci

Again: Shell-fm.

This time for Mac Os X Snow Leopard.

(note: this is not a ssh session on my raspberry pi; it’s really on my mac!)
As briefly explained in my last post (https://piergiu.wordpress.com/2012/07/22/raspberry-pi-last-fm-shell-fm-a-lightweight-last-fm-radio-player/), installing shell-fm on a debian-based system was quite easy thanks to apt-get & synaptic & all the good stuff that debian comes with.

On Os X things differ a little bit. We do not have apt-get or synaptic, and even if you try to install Fink (alternative to apt-get for mac) some packages are too old or not existing at all.

First thing to do to is to download Pkg-config for mac(google it, is on sourceforge), libmad and shell-fm (this one via git, that meaning you should have git installed on your system).

  1. Install pkgconfig.pkg.
  2. Unzip libmad and enter in it with a terminal shell.
  3. Type usuals ./configure followed by a make and then a sudo make install .
  4. Now the tricky part:
    1. type nano /usr/lib/pkgconfig/mad.pc to create a file that is used by pkg-config during the making of shell-fm.
    2. A command line editor appears and fill it with this

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: mad
Description: MPEG audio decoder
Requires:
Version: 0.15.1b
Libs: -L${libdir} -lmad
Cflags: -I${includedir}

Then give a ctrl-x followed by a Y and then Enter.

You’ve just created that file.
Now enter shell-fm directory(created by git) and give a make and then a sudo make install    .
shell-fm is now ready to be launched on your mac.
I’m disappointed with this long process on a Mac.
They should learn package handling from debian systems and similars.

 

Bonus!!!
Here is my configuration file for speeding up startup of my shell-fm.
You have to put these things inside  ~/.shell-fm/shell-fm.rc   (maybe using nano like you’ve done a few lines above in this post)
(  ~   is your home directory ) 

username=YOURUSERNAME
password=YOURPASSWORD
default-radio=lastfm://user/YOURUSERNAME/library
quiet=true
volume-update=%v

 

Then ctrl-x  and  y and enter to save the file and exit.