天天看點

Ubuntu9.04沒有聲音解決辦法

1.在/etc/modprobe.d/alsa-base.conf檔案中加入下面這行      

options snd-hda-intel model=5stack enable=1 index=0 (主要就是修改這些參數)

2. sudo alsa force-reload 下文可以不看了。。。

可能是硬碟安裝的緣故,這次安裝的ubuntu9.04總是沒有聲音,隻是沙沙響,偶爾打開音樂播放器時有聲音,但是漸漸就沒有了,然後再也聽不見了。今 天按照https://help.ubuntu.com/community/SoundTroubleshooting裡面的方法,隻改了一行。

Ubuntu9.04沒有聲音解決辦法

Is the system recognizing your sound card?

Open a terminal window, and type "aplay -l ". Your output should look something like this:

**** List of PLAYBACK Hardware Devices ****

card 0: Intel [HDA Intel], device 0: ALC861VD Analog [ALC861VD Analog]

  Subdevices: 0/1

  Subdevice #0: subdevice #0      

If you see aplay: device_list:221: no soundcard found... , Ubuntu is not recognizing your sound card for playback. Check that you have the proper modules installed.

Do you have the sound modules installed?

Open a terminal window, and type "find /lib/modules/`uname -r` | grep snd ". You should see a whole list of items come up. If you don't, it means that the upgrade process missed installing the kernel modules for sound. To fix this, type this at the command line:

sudo aptitude install linux-ubuntu-modules-`uname -r` linux-generic      

After installing the modules, you will need to reboot.

If the modules are already installed, check to see whether your hardware is recognizing the sound card as installed

Is the sound card physically installed and recognized by your hardware?

Open a terminal window, and type "lspci -v | less ". This will check your computer's motherboard, and attempt to list out all devices that it's recognized as installed. There is probably a lot of things listed, but the one you're looking for will be labeled "Audio device". Mine is listed below:

00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)

        Subsystem: Toshiba America Info Systems Device ff01

        Flags: bus master, fast devsel, latency 0, IRQ 22

        Memory at dc440000 (64-bit, non-prefetchable) [size=16K]

        Capabilities: <access denied>

        Kernel driver in use: HDA Intel

        Kernel modules: snd-hda-intel      

Most users have a "built in" sound card for their computer on the motherboard. If yours is built in, and isn't showing up in this step, then you probably need to enable it in your BIOS. When you first boot, or reboot your computer, there's usually a key sequence telling you how to enter the BIOS Configuration Screen. You'll need to sort through your BIOS and enable the built in sound card.

If you are not using a built in sound card, and this step does not show your audio card, the card may be seated incorrectly on your motherboard, or may be bad or otherwise incompatible with your motherboard. You will probably want to test the card in another computer to see if it works there.

以上都是為了驗證性質的,下面說的是上面都正常的情況下的解決步驟。

Is ALSA using the correct model?

If you are experiencing problems with your sound card after upgrading to Ubuntu 9.04, it might be because ALSA is using the wrong model for your chipset.

To figure out your chipset you can run this command:

wget -O alsa-info.sh http://alsa-project.org/alsa-info.sh && bash ./alsa-info.sh



執行完這條指令後,會把系統資訊儲存在/temp/alsa-info.txt檔案中,下面的設定需要依照裡面的資訊。


      

This will provide you with a URL to a webpage with lots of information about your sound setup. Open it up, and keep it open; you'll need it as a reference.

You can take a look at this webpage as a reference.

Now you need to figure out what models are supported by your soundcard. This part is a bit backwards, you have to browse the ALSA git repository.

The repository is located at http://git.alsa-project.org/?p=alsa-kmirror.git , so open up this URL.

If you look at the webpage with information about your soundsetup, you'll notice it has a section like this:

!!ALSA Version

!!------------



Driver version:     1.0.18

Library version:    1.0.18

Utilities version:  1.0.18      

Notice the driver version. This is the version you should be navigating to in the git repository. If you look at the 'tags' section there's a tag called v1.0.18 , which is the one we want.

When I navigated into this tag repository, I also had to click the tree link on the top of the page to get a directory listing.

Click the Documnetation directory, and then click ALSA-Configuration.txt .

Remember these links are for the v1.0.18 driver version only, you need to find the appropriate ALSA-Configuration.txt for your driver version.

Now you need to figure out what module is loaded by ALSA on your machine. The webpage with all the information about your system comes to the rescue again:

!!Loaded ALSA modules

!!-------------------



snd_hda_intel      

You might have to do a bit of digging to find your module in the ALSA-Configuration.txt file. For my module, it is in the section called:

Module snd-hda-intel      

Now I have to figured out what Codec my soundcard uses. This is also on the webpage with my sound configuration.

It has a section that looks like this:

!!HDA-Intel Codec information

!!---------------------------

--startcollapse--



Codec: SigmaTel STAC9227      

Now take a look at ALSA-Configuration.txt again, and you will find a section that looks like this, which matches up with my soundcards codec:

STAC9227/9228/9229/927x

   ref           Reference board

   3stack        D965 3stack

   5stack        D965 5stack + SPDIF

   dell-3stack   Dell Dimension E520

   dell-bios     Fixes with Dell BIOS setup      

A stack is the same as a jack plug in your soundcard.

By inspecting your computer you have to figure out how many jacks(插座) you have on your soundcard. I have six jacks in the back and two in the front of my computer, so I chose the 5stack model configuration.

So armed with this knowledge, it's about time to start configuring your system.

This is the steps that were necessary to get a Dell Dimension E520 with Intel HDA and SigmaTel STAC9227 Codec to work after upgrading to Ubuntu 9.04:

This part will depend on your soundcard, it consists of the module name (snd-hda-intel ) and the model I found in ALSA-Configuration.txt , 5stack :

And finally: