03.07.2010

Silence! I kill Your sound card!

It took me half a week to notice that my brand new Ubuntu installation had no sound. Turns out the driver module was loaded with the wrong option. In case You ran into the same problem (sound card was detected, everything seems fine except that there's nothing coming out of the speakers) and provided that You have an HD Audio card, here's how to get the sound back (You need to run most of the commands as root or with sudo):
  1. Determine Your sound chip
    Code:
    $ cat /proc/asound/card*/codec* | grep Codec
    Depending on Your hardware, You may get multiple lines of output (e.g. one for a modem and one for the sound card). I presume You're able to find out which one is the sound chip.
  2. Find out what options are available for the kernel module. These can be found in /usr/share/doc/alsa-base/driver/HD-Audio-Models.txt.gz. If You can't find Your specific card or are not sure which one to take, You'll have to try out some of them, especially the generic ones (like 3stack).
  3. Find out which kernel module is responsible for Your sound card.
    Code:
    $ lsmod | grep snd_page_alloc
    It's the one on the right side next to snd_pcm, mine was snd_hda_intel, for example.
  4. As root, add a line options <kernel module name> model=<model name from step 2>, to /etc/modeprobe.d/options, e.g.
    Code:
    $ echo "options snd_hda_intel model=3stack-dig" >> /etc/modprobe.d/options
That's it! You're done!

Keine Kommentare:

Kommentar veröffentlichen