[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

This is an old revision of the document!


PlayGround

Audio and snd-hda-intel

Γενικά

Overview

Αυτό το HOWTO αφορά θέματα σχετικά με κάρτες ήχου με το chipset Intel HDA. This HOWTO deals with issues related to sound cards which use the Intel HDA chipset.

Έχετε προβλήματα ήχου όπως: Do you encounter audio problems such as:

  • Κανένας ήχος;
  • Λειτουργούν τα ακουστικά αλλά όχι τα ηχεία;
  • Λειτουργούν τα ηχεία αλλά όχι τα ακουστικά;
  • Δεν αναγνωρίζεται εισερχόμενος ήχος;
  • No sound?
  • Headphones work but speakers do not?
  • Speakers work but headphones do not?
  • Speakers do not mute when headphones are plugged in?
  • Audio inputs are not recognised?

Διάγνωση του προβλήματος

Diagnosing the issue

Δώστε την εντολή

lsmod | grep snd

σε ένα παράθυρο κονσόλας. Αν τα αποτελέσματα συμπεριλαμβάνουν το snd_hda_intel, τότε έχει φορτωθεί το kernel module snd_hda_intel σαν οδηγός συσκευής για το τσιπάκι του ελεγκτή και τα τσιπάκια codec του διαύλου HD-audio. Execute the command

lsmod | grep snd

in a terminal window. If there is a reference to snd_hda_intel in the output then the snd-hda-intel kernel module has been loaded as the driver for the controller chip and the codec chips on the HD-audio bus.

Το snd-hda-intel kernel module προσπαθεί να εντοπίσει και να ρυθμίσει το υλικό ήχου, αλλά αυτό δεν πετυχαίνει πάντα. Κάποιες πρόσθετες ρυθμίσεις μπορούν να βοηθήσουν. The snd-hda-intel kernel module tries to autodetect and configure your sound hardware, but this is not always successful. Some further configuration may help.

Συχνά η λύση είναι απλή. Απλά δημιουργήστε ένα αρχείο στην αρχειοθήκη /etc/modprobe.d/ και δώστε τις κατάλληλες επιλογές στο snd-hda-intel kernel. Το όνομα του αρχείου δεν είναι σημαντικό, αλλά πρέπει να τελειώνει σε .conf. Μπορείτε να το ονομάσετε snd-hda-intel.conf. Τα ονόματα που χρησιμοποιούνται σε άλλες διανομές για τέτοια αρχεία, συμπεριλαμβάνουν τα sound.conf και alsa-base.conf. Often the fix is simple. Just create a file in the /etc/modprobe.d/ directory and provide suitable options to the snd-hda-intel kernel module. The actual file name is not important although it must have a .conf suffix. You could use snd-hda-intel.conf. Names used by other distributions to hold this information include sound.conf and alsa-base.conf.

Ένας απλός τρόπος είναι να δώσετε (ως διαχειριστής/root) την εντολή

echo "options snd-hda-intel model=auto" > /etc/modprobe.d/snd-hda-intel.conf

A simple way is to execute (as root)

echo "options snd-hda-intel model=auto" > /etc/modprobe.d/snd-hda-intel.conf
Εάν δημιουργήσετε ή αλλάξετε αρχεία με κάποιον editor εντός του /etc/modprobe.d/ πρέπει να σιγουρευτείτε ότι διαγράψατε πιθανά αντίγραφα backup.
If you use an editor to create files in /etc/modprobe.d/ be sure to remove any backup copies.

Μάλλον το πιο εύκολο είναι να κάνετε επανέναρξη (reboot) σε αυτό το σημείο, για να δείτε αν λειτουργεί σωστά. It is probably easiest just to reboot at this stage to check if it works right.

Πώς βρίσκουμς τις σωστές ρυθμίσεις;

How to find the right options?

Συχνά το πρόβλημα έχει ήδη λυθεί. Χρησιμοποιήστε την αγαπημένη σας μηχανή αναζήτησης και αναζητήστε “snd-hda-intel <κατασκευαστής> <μοντέλο>” (του υπολογιστή σας). Very often the problem has already been solved. Use your favourite internet search engine and search for “snd-hda-intel <Your make> <Your model>”.

Εάν αυτό δεν πετύχει, τότε δώστε την εντολή

cat /proc/asound/card*/codec* | grep Codec

Το αποτέλεσμα θα μοιαζει με το ακόλουθο If that is unsuccessful then execute

cat /proc/asound/card*/codec* | grep Codec

The output from that command should be something like

  Codec: SigmaTel STAC9227

Στη συνέχεια μπορείτε να διαβάσετε την τεκμηρίωση στο αρχείο /usr/src/linux/Documentation/sound/alsa/HD-Audio-Models.txt για να δείτε ένα κατάλογο με τα πιθανά μοντέλα που ταιριάζουν με το δικό σας codec chip. Η προκαθορισμένη τιμή είναι πάντοτε model=auto, αλλά έχει αναφερθεί ότι κάποιες συσκευές χρειάζονται την ρητή αναφορά της συγκεκριμένης ρύθμισης για να λειτουργήσουν σωστά. You can then read the documentation in the file /usr/src/linux/Documentation/sound/alsa/HD-Audio-Models.txt to see a list of possible models that can be used with your codec chip. The default is always model=auto, but it has been reported that some devices seem to need that option supplied explicitly to be made to work.

Εάν κι αυτό αποτύχει και σας ενδιαφέρει πολύ, ρίξτε μια ματιά στο αρχείο /usr/src/linux/Documentation/sound/alsa/HD-Audio.txt If that does not work and you are very keen then take a look at the file /usr/src/linux/Documentation/sound/alsa/HD-Audio.txt.

Ο παρακάτω πίνακας αναφέρει επιλογές που έχουν αναφερθεί ότι λειτουργούν. Πολύ ευπρόσδεκτες προτάσεις για προσθήκες και διορθώσεις! The table below shows options that have been reported to work. Suggestions for additions/amendments are very welcome!

Κατασκευαστής Μοντέλο Αποτέλεσμα της '/sbin/lspci | grep Audio' Option Slackware Version
Make Model Output of '/sbin/lspci | grep Audio' Option Slackware Version
? ? 00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01) options snd-hda-intel model=auto 13.37
? ? 0:1b.0 Audio device: Intel Corporation 6 Series Chipset Family High Definition Audio Controller (rev 05) options snd-hda-intel model=auto 13.37
Asus Eee PC 1001px ? options snd-hda-intel model=auto 13.1 with ALSA 1.0.24
Dell Dimension E520 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02) options snd-hda-intel model=3stack 13.37
Dell Inspiron 1420 ? options snd-hda-intel model=dell 13.37
Dell Inspiron 1545 ? options snd-hda-intel model=dell-m4-1 13.1
Dell Inspiron 15R i7 ? options snd-hda-intel model=dell-s14 13.1
Gateway 4022 00:10.1 Audio device: nVidia Corporation MCP51 High Definition Audio (rev a2) options snd-hda-intel model=3stack 13.1
Gateway GT5468 ? options snd-hda-intel model=haier-w66 ?
Gigabyte GA-M68MT-S2 Motherboard 00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2) options snd-hda-intel model=auto 14.0
HP Pavilion dv6-2140ca 01:00.1 Audio device: ATI Technologies Inc RV710/730 options snd-hda-intel model=hp-dv5, enable_msi=1 13.37
Lenovo X120e 00:01.1 Audio device: ATI Technologies Inc Device 1314 options snd-hda-intel index=1 13.37 (with 2.6.38.4 kernel from /testing)
Toshiba Satellite L30-10X 00:14.2 Audio device: ATI Technologies Inc IXP SB4x0 High Definition Audio Controller (rev 01) options snd-hda-intel model=hp 12.0.0, 12.1.0, 12.2.0 (audio input not tested
Εάν η βασισμένη-στο-Slackware-based live διανομή σας δεν περιέχει τα αναφερόμενα αρχεία τεκμηρίωσης (/usr/src/linux/Documentation/“ κ.α.), μπορείτε να τα βρείτε στο διαδίκτυο στην ιστοσελίδα www.kernel.org ή και σε κάθε πλήρες αντίγραφο της έκδοσης του πυρήνα της διανομής σας. Το ίδιο ισχύει για όλη την τεκμηρίωση κάθε kernel module.</note> <note>In case your Slackware-based live linux is striped of the Documentation files refered here, you may find them online at kernel.org or in any original full copy of your kernel. The same goes for all references to any other kernel module.</note> ====== Sources ====== * Originally written by David Allen for the SlackDocs Wiki Project * Contributions by Harishankar * Greek Translation by Olgamari ====== References ======= * /usr/src/linux/Documentation/sound/alsa/HD-Audio.txt * /usr/src/linux/Documentation/sound/alsa/HD-Audio-Models.txt''