[建议]7.04声卡部发声解决方法

编译打包和其他
回复
wufei1981
帖子: 1
注册时间: 2007-04-29 11:18

[建议]7.04声卡部发声解决方法

#1

帖子 wufei1981 » 2007-05-05 20:01

在网上搜到的,我的声卡没声问题已经解决了
HdaIntelSoundHowto
Booting

If your boot hangs on loading the module for snd-hda-intel, try disabling the card in your BIOS. It is called "HD Audio Controller", "Azalia Audio" or similar. Then try solving the problem using the instructions below.
Identify the problem

Most cards seem to work as of Ubuntu 6.06 LTS using the stock kernel. However, the following problems might occur on some setups:

*

No sound at all
*

Low volume output
*

High pitched noise
*

Poor sound quality
*

Sound disappears when touching volume controls
*

Sound works at random after each reboot (possibly flavour 'm2-2' below)

Possible easy fix

The following command seems to fix some problems (specifically volume/sound quality) but may need to be run after each reboot (see bug #92171, [WWW] https://bugs.launchpad.net/ubuntu/+sour ... +bug/92171)

kill $(lsof -t /dev/dsp* /dev/audio* /dev/mixer* /dev/snd/*) ; sudo modprobe -r $(lsmod |grep ^snd |awk '{print $1}') && sudo modprobe snd-hda-codec && sudo modprobe snd-hda-intel model=auto
Update to the latest version of alsa

{i} These instructions do not interfere with the Ubuntu package structure or other kernel modules - in other words, the changes seem drastic however they are simply adding greater functionality to an existing kernel module

*

Install the required tools

sudo apt-get install build-essential ncurses-dev

*

Install your kernel headers

sudo apt-get install linux-headers-`uname -r`

*

Download the latest version of alsa from [WWW] Alsa project (driver, library, and utils) to a directory (eg. /home/naaman/installers/alsa)
o

[WWW] alsa-driver
o

[WWW] alsa-lib
o

[WWW] alsa-utils
*

Setup installation directories

sudo mkdir -p /usr/src/alsa
cd /usr/src/alsa
sudo cp /home/naaman/installers/alsa/* .
sudo tar xjf alsa-driver-1.0.14rc1.tar.bz2
sudo tar xjf alsa-lib-1.0.14rc1.tar.bz2
sudo tar xjf alsa-utils-1.0.14rc1.tar.bz2

*

Compile and install alsa-driver

cd alsa-driver-1.0.14rc1
sudo ./configure --with-cards=hda-intel
sudo make
sudo make install

*

Compile and install alsa-lib

cd ../alsa-lib-1.0.14rc1
sudo ./configure
sudo make
sudo make install

*

Compile and install alsa-utils

cd ../alsa-utils-1.0.14rc1
sudo ./configure
sudo make
sudo make install

*

Reboot

Manually specify which flavor you are using

If your sound still doesn't work after installing the latest alsa, it is likely that it was unable to autodetect your flavour.

*

Edit the file /etc/modprobe.d/alsa-base

gksudo gedit /etc/modprobe.d/alsa-base

*

Add the following line to the file, replacing '3stack' with your flavor (see below)

options snd-hda-intel model=3stack

*

Reboot

Choosing your flavour

You can try some flavours which have a good chanche of working with your setup. '3stack' works for many motherboard integrated chips with shared surrounds. Other models include '5stack', '6stack', 'laptop' and 'laptop-eapd'.

Sometimes it is also possible to use the more generic 'ref' flavour, which the hda driver uses to load manufacturer specfic presets (SigmaTel, Realtek, etc.).
Flavour m2-2

If your sound sometimes just doesn't work when you boot up, but works again after a reboot (or 2 or 3), you may have the 'm2-2' flavour.
More flavours

The full list of flavours is available in ALSA-Configuration.txt in the driver tarball under alsa-kernel/Documentation/. If one of those worked but was not autodetected, you can help the alsa developers by sending them the output of lspci -nv and the model you used on [WWW] Alsa BTS.
Extra hints to get sound working

Wrong mixer in use: Sometimes the volume control chooses the OSS mixer if the compatibility module is loaded. You may need to right click on the volume control applet in your gnome-panel and go to the preferences and change the device to the one called Alsa Mixer. The same applies to the gnome volume control program.

Mixer doesn't seem to work: The HD Audio standard has many output channels. As a result, the correct volume sliders might not be visible. Enable the volume sliders through Edit->Preferences in gnome volume control.
头像
chinakr
帖子: 193
注册时间: 2007-01-21 14:04
来自: 北京
联系:

#2

帖子 chinakr » 2007-05-05 23:33

呵呵,不追新的话,等到7.10这些问题可能就解决了
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#3

帖子 eexpress » 2007-05-06 2:53

这帖子。没重点的哦。@@
● 鸣学
头像
chenjiancong
帖子: 130
注册时间: 2007-05-17 17:49

#4

帖子 chenjiancong » 2007-05-20 21:19

汗,看不明
回复