Soundkarte ----------- -- installiere alsamixer * pacman -S alsa-utils * -- Check Kernelmodul - kontrolliere, wieviele Treiber genutzt werden. * cat /proc/asound/modules * - falls mehr als 1, dann manuelle Justierung der treiber: # # /etc/modprobe.d/mySound.conf # # schalte 1. Karte ab (2 Karten nutzen gleichen Treiber) options snd_hda_intel enable=0,1 # # alsamixer geraete-reihenfolge 0, unmute LineInput (bugfix) options snd_hda_intel index=0 power_save=0 power_save_controller=N # - zur Laufzeit default soundcard aendern (bei usb Lautsprecher + mainboard) # # nano /etc/asound.conf # defaults.pcm.card 1 defaults.ctl.card 1 # - reboot system * reboot * -- starte alsamixer * alsamixer * mit Einstellungen fuer rote Front-Mic-Buchse und gruene LS: Master; 89% und unmute Headphone+LO: 89% Front: unmute Capture 1: 84% unmute mit Leerschlag -> zuviel volume macht Mikrofon stumm!! Channel Mode; 2ch Input Source: Line (egal) Input Source 1; Front Mic ALLES ANDERE; \"Mute\", \"0%\" oder \"disabled\"" falls keine etc/asound.conf oder ~./asoundrc existiert sind moeglicherweise noch folgende Einstellungen notwendig PCM 100% loopback enabled digital 23% -- teste LS: * speaker-test aplay piano2.wav * -- teste Mic: * arecord -vv -f cd /dev/null # mic anzeige beachten * -- Noch emfohlen (falls nicht schon laeuft) * alsactl store systemctl start alsa-restore * Troubleshooting: ---------------- Problem: Knistern bei Aufbnahme. Genauere Analyse mit Audacity offenbart unerklaerliche Unterbrueche im Signal Behebung/ Test: Ueberblick der Soundkarte mit * arecord -l * Waehle selektiv Aufnahmegeraet: * arecord -vv -f cd -D hw:0,2,0 outfile.wav # wobei: "hw:,, * Falls besser geworden, aber noch vom Zufall abhaengt dann weiter mit * arecord -vv -f cd -D hw:0,2,0 --period-size=500000 outfile.wav * Falls jetzt Ruhe dann erzeuge configfile # # nano /etc/asound.conf # pcm.!default { type asym capture.pcm { type plug slave { pcm "hw:0,2,0" # define "hw:,," via arecord -l rate 48000 # 48000 (alsa default bus) or 96000 (create more buffer size) } } playback.pcm { type plug slave.pcm "dmix" # dmix is the std outmixer # slave.pcm "myTee" # optional to record youtube videos (see below) } } Youtube Record direkt ab Soundkarte ----------------------------------- Als Zusatzgoodie kann oben genannter asound.conf -Eintrag ergaenzt werden. -- Aendere ' slave.pcm "dmix" ' in ' slave.pcm "myTee" 'und fuege hinzu: pcm.myTee { type route; slave.pcm { type multi; slaves { a.pcm "dmix" # std outmixer a.channels 2 b.pcm "hw:1,0,0" # loopback input, outputs to "hw:1,1,0" b.channels 2 } bindings { 0 { slave a; channel 0; } 1 { slave a; channel 1; } 2 { slave b; channel 0; } 3 { slave b; channel 1; } } } #volume controls 0.0 - 1.0 (four channels) ttable [ [ 1 0 1 0 ] [ 0 1 0 1 ] ] } pcm.youtube { type plug slave.pcm "hw:1,1,0" } -- Fuege ein loopback-Device hinzu: * modprobe snd_aloop * Stelle sicher dass dieses die CARD -Nr 1 hat damit korrekt: hw:1,0,0 = loopback input hw:1,1,0 = loopback output Du machst dies persistent mit einem Configfile: # # /etc/modprobe.d/mySound.conf install snd_hda_codec_realtek /sbin/modprobe --ignore-install snd_hda_codec_realtek; /sbin/modprobe snd_aloop # # Die Idee ist die richtige Lade-Reihenfolge beim Bootup Du findest den richtigen Treibernamen via * dmesg |grep snd * -- damit firefox alsa unterstuetzt aendere: # /usr/share/applications/firefox.desktop #... # Exec=/usr/lib/firefox/firefox %u (auskommentieren) Exec=/usr/lib/firefox/firefox # neue Linie # -- Test wahlweise (zuerst Videostream laufen lassen): * arecord -vv -f cd -D youtube record.wav ffmpeg -f alsa -ar 44100 -i youtube record.mp3 *