zz 解決ubuntu10.04插上耳機仍有外音問題

特別引用,文章來源:http://blog.csdn.net/xlfarm/article/details/6771997

第一步:Upgrade Alsa (1.0.23) on Ubuntu Lucid Lynx 10.04 (升級聲卡驅動)

 

注意:方框裏的命令都需要在終端裏運行,其中要聯網下載東西,這段時間最長,可以去幹其他事情哦。要耐心點解決ubuntu10.04插上耳機仍有外音問題 - 照魂銷 - 照魂銷哦……(http://monespaceperso.org/blog-en/2010/05/02/upgrade-alsa-1-0-23-on-ubuntu-lucid-lynx-10-04/)

To do this, we must begin by determining our version of alsa as follows :

cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.21.

To avoid problems during the upgrade of Alsa-utils, we need to stop it with the following command :

sudo /sbin/alsa-utils stop

We must then install the necessary tools to compile along with the kernel headers :

sudo apt-get -y install build-essential ncurses-dev gettext xmlto libasound2-dev
sudo apt-get -y install linux-headers-`uname -r` libncursesw5-dev

Then, we go in our personal folder and download alsa-driver, alsa-lib and alsa-utils :

cd ~
rm -rf ~/alsa* ~/.pulse*
wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.23.tar.bz2
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.23.tar.bz2
wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.23.tar.bz2

After that, we create a new folder for the compilation and installation of the 3 files. Then, we move the 3 tar files that we just downloaded in this folder :

sudo rm -rf /usr/src/alsa
sudo mkdir -p /usr/src/alsa
cd /usr/src/alsa
sudo cp ~/alsa* .

Unpack the 3 tar files :

sudo tar xjf alsa-driver*
sudo tar xjf alsa-lib*
sudo tar xjf alsa-utils*

We compile and install alsa-driver :

cd alsa-driver*
sudo ./configure
sudo make
sudo make install

We compile and install alsa-lib :

cd ../alsa-lib*
sudo ./configure
sudo make
sudo make install

We compile and install alsa-utils :

cd ../alsa-utils*
sudo ./configure
sudo make
sudo make install

Then, we remove the 3 tar files in our personal folder that are not anymore necessary :

rm -f ~/alsa-driver*
rm -f ~/alsa-lib*
rm -f ~/alsa-utils*

Then, just restart your computer and your alsa version should be 1.0.23!

You can verify that you have now indeed have this version of alsa :

cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.23.
Compiled on May 2 2010 for kernel 2.6.32-21-generic (SMP).

Just to be sure everything is well configured, execute this command :

sudo alsaconf

and reboot again!

第二步:配置alsa-base.conf文件

  輸入以下指令

 sudo gedit /etc/modprobe.d/alsa-base.conf

打開alsa-base.conf後在最後一行添上options snd-hda-intel model=xxxxx 注意等號兩邊沒有空格。

如果沒法更改則可能權限不夠,輸入指令:

cd /etc/modprobe.d/

chmod 777 alsa-base.conf

下面最重要的就是xxxxx的配置。快捷鍵ctrl+f進入搜索功能,輸入ALSA-Configuration.txt查找後打開,然後根據自己的聲卡配置,不知道的同學可以在終端下輸入alsamixer,card和chip後的名稱則分別是聲卡和芯片。我的電腦是華碩,改成asus不能用,最後改成lenovo-3000就行了。

如果懶得查找的同學可以把options snd-hda-intel model=xxxxx更改爲以下試試;

options snd-hda-intel model=lenovo-3000

options snd_hda_intel model=lenovo-nb0763 

options "snd_hda_intel" model=lenovo-101e

options snd-hda-intel model=acer

options snd-hda-intel model=ideapad

options snd-hda-intel model=auto

options snd-hda-intel model=asus

 

友情提醒:

在執行第一步(升級聲卡驅動)之前,可以先執行第二步(更改配置),然後重啓,檢查耳機是否有聲音。

如果沒有聲音,執行第一步。

Samsung 電腦配置:

options snd-hda-intel model=samsung-p50
關健是後面的model:xxxxx, 注意改成自己機器對應的.


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章