Sound – Fehler finden

Grundinfos zur Konfiguration und Einrichtung einer Soundkarte gibt es hier. Diese Seite ist eher für die Fehleranalyse gedacht.

Bei Problemen mit dem Sound ist es sinnvoll über ein 2. Betriebssystem die Lautsprecher zu testen. Falls man kein Dualboot hat reicht auch eine Live-CD. Aber bitte eine andere Distribution testen . Gentoo basiert eher auf Debian. Daher ist es sinnvoll zum Beispiel Linux-Mint zu testen. Hier gibt es Befehle in der Übersicht um Infos über die Hardware unter Gentoo zu bekommen:

localhost /home/michi # cat /proc/asound/cards

localhost /home/michi # cat /proc/asound/cards 
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7120000 irq 125
localhost /home/michi # aplay -L
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
    HDA Intel PCH, ALC887-VD Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, ALC887-VD Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Digital
    IEC958 (S/PDIF) Digital Audio Output
usbstream:CARD=PCH
    HDA Intel PCH
    USB Stream Output

Durch su username wird zum entsprechenden Benuzter gewechselt. Über die Eingabe von groups wird überprüft ob der User der Gruppe wheel angehört.

localhost # su michi 
michi@localhost ~ $ groups
wheel michi

Ein Hinzufügen zu einer gewünschten Gruppe geschieht über usermod

localhost  # usermod -a -G audio michi
localhost  # su michi
michi@localhost ~ $ groups
wheel audio michi

Ein Test der Lautsprecher / des Sound über Speakertest:


michi@localhost ~ $ speaker-test -c 2 -D front
speaker-test 1.2.1

Wiedergabe-Gerät ist front
Stream-Parameter sind 48000 Hz, S16_LE, 2 Kanäle
Verwende 16 Oktaven rosa Rauschen
Rate ist 48000 Hz (angefordert: 48000 Hz)
Puffergröße von 64 bis 16384
Periodengröße von 32 bis 8192
Verwende maximale Puffergröße 16384
Perioden = 4
gesetzt: period_size = 4096
gesetzt: buffer_size = 16384
 0 - Front Left
 1 - Front Right
Zeit pro Periode = 5,632176
 0 - Front Left
 1 - Front Right
Zeit pro Periode = 5,973778
 0 - Front Left
 1 - Front Right

Auflistung der vorhandenen Hardware

michi@localhost ~ $ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
sysdefault:CARD=PCH
    HDA Intel PCH, ALC887-VD Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Digital
    IEC958 (S/PDIF) Digital Audio Output
usbstream:CARD=PCH
    HDA Intel PCH
    USB Stream Output

Durchsuchen der LOGS / der dmesg nach Infos zum Sound

michi@localhost ~ $ dmesg | egrep -i "alsa|snd"
[    0.956424] udevd[1447]: ctx=0x555aca7b5d80 path=/lib/modules/4.19.86-gentoo/kernel/sound/pci/hda/snd-hda-codec.ko error=No such file or directory
[    5.268855] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[    5.268959] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops intel_dual_link_lvds_callback [i915])
[    5.314928] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC887-VD: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[    5.314929] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    5.314930] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[    5.314931] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    5.314931] snd_hda_codec_realtek hdaudioC0D0:    dig-out=0x11/0x0
[    5.314932] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    5.314932] snd_hda_codec_realtek hdaudioC0D0:      Front Mic=0x19
[    5.314933] snd_hda_codec_realtek hdaudioC0D0:      Rear Mic=0x18
[    5.314934] snd_hda_codec_realtek hdaudioC0D0:      Line=0x1a
[    5.327045] snd_hda_codec_generic hdaudioC0D2: autoconfig for Generic: line_outs=0 (0x0/0x0/0x0/0x0/0x0) type:line
[    5.327046] snd_hda_codec_generic hdaudioC0D2:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    5.327047] snd_hda_codec_generic hdaudioC0D2:    hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    5.327047] snd_hda_codec_generic hdaudioC0D2:    mono: mono_out=0x0
[    5.327048] snd_hda_codec_generic hdaudioC0D2:    inputs:

PCI Device finden bzw. suchen

root@localhost ~ $ lspci | grep -i audio
00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio
michi@localhost ~ $ 

Hinweis: Bei dem Fehler lspci command not found überprüfen ob das Paket pciutils installiert ist. Der Befehl kann nur als Root ausgeführt werden.

root@here ~ $ lspci | grep -i audio
bash: lspci: Kommando nicht gefunden.

here /home/michi # lspci
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 0d)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Desktop 9 Series) (rev 02)
00:14.0 USB controller: Intel Corporation 200 Series/Z370 Chipset Family USB 3.0 xHCI Controller
00:16.0 Communication controller: Intel Corporation 200 Series PCH CSME HECI #1
00:17.0 SATA controller: Intel Corporation 200 Series PCH SATA controller [AHCI mode]
00:1c.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #5 (rev f0)
00:1d.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #11 (rev f0)
00:1d.3 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #12 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Device a2ca
00:1f.2 Memory controller: Intel Corporation 200 Series/Z370 Chipset Family Power Management Controller
00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio
00:1f.4 SMBus: Intel Corporation 200 Series/Z370 Chipset Family SMBus Controller
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
here /home/michi # 

Oder nach Audio filtern:

here /home/michi # lspci | grep -i audio
00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio