Fix lỗi headphone jack trên Ubuntu 10.04

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Font size:

Ảnh: ifixit.comMáy tớ sau khi cài Ubuntu 10.04 bị hiện tượng loa ngoài thì vẫn nghe được nhưng cắm tai nghe vào thì lại không nghe được (headphone jack problem).

Dưới đây là cách tớ đã fix lỗi trên máy tớ. Bạn nào bị lỗi này có thể thử xem có okie hay không.

Đầu tiên, bạn cần tìm xem model mà sound card của bạn đang sử dụng là model nào

cat /proc/asound/card0/codec#* | grep Codec

Lệnh trên sẽ trả về model sound card của máy bạn. Như ở máy tớ nó trả về « IDT 92HD73C1X5 », như vậy model sound card của máy tớ là : 92HD73C1X5.

Tiếp theo, bạn cần tìm kernel hoặc ALSA module được sử dụng tương ứng với model sound card trên máy bạn.

Bạn vào trang sau : http://www.kernel.org/doc/Documentation/sound/alsa/HD-Audio-Models.txt và dùng Ctrl + F để search modules.

Như với sound card của máy tớ, tớ search được kết quả sau :

STAC92HD73*

===========

ref Reference board

no-jd BIOS setup but without jack-detection

intel Intel DG45* mobos

dell-m6-amic Dell desktops/laptops with analog mics

dell-m6-dmic Dell desktops/laptops with digital mics

dell-m6 Dell desktops/laptops with both type of mics

dell-eq Dell desktops/laptops

alienware Alienware M17x

auto BIOS setup (default)

Ở đây tớ sẽ chọn module dell-m6 bởi vì máy tớ không phải là Dell Alienware, tớ cũng không chắc là mic tớ sử dụng là analog (dell-m6-amic) hay digital (dell-m6-dmic) nên cứ chọn cả 2 loại (both type of mics) cho nó lành :D

Sau khi chọn được module bạn mở file alsa config :

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

và thêm vào cuối dòng sau :

# Fix headphone jack problem

options snd-hda-intel model=[MODULE]

Ở đây, MODULE là module mà bạn đã chọn lựa ở bước trên. Như trên máy tớ sẽ là :

# Fix headphone jack problem for Dell XPS 16

options snd-hda-intel model=dell-m6

Chú ý : dấu # ở đầu dòng cho biết dòng đấy là dòng comment, nên thực ra ở trên chỉ cần dòng thứ 2 thôi, dòng 1 chỉ để comment cho biết tác dụng của câu lệnh ở dòng 2.

Cuối cùng, bạn restart lại máy là xong. Chúc các bạn thành công.

References :

https://help.ubuntu.com/community/HdaIntelSoundHowto

https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/553002

http://www.kernel.org/doc/Documentation/sound/alsa/HD-Audio-Models.txt

Share with: Twitter Delicious Facebook Digg Stumbleupon Wordpress Googlebuzz Myspace Gmail Newsvine Favorites More
You can leave a response, or trackback from your own site.

Leave a Reply