[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.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howtos:hardware:sound_problems_on_slackware [2013/05/12 01:34 (UTC)] – Applied corrections mentioned on discussion page allend | howtos:hardware:sound_problems_on_slackware [2018/12/07 01:15 (UTC)] (current) – Add caveat to not apply alsa fixes to pulse-based systems bassmadrigal | ||
---|---|---|---|
Line 1: | Line 1: | ||
<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | ||
<!-- Reviewed 2012-12-24 hazel --> | <!-- Reviewed 2012-12-24 hazel --> | ||
+ | <!-- Reviewed 2018-02-15 alienbob --> | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | **NOTE: on my systems, my default card is 1 and default device is 0 so I will use 1,0 through out this page** | ||
+ | |||
+ | |||
======Sound Problems on Slackware====== | ======Sound Problems on Slackware====== | ||
**Investigate the problem** | **Investigate the problem** | ||
- | 1) See which kernel modules are loaded: | + | - See which kernel modules are loaded: |
+ | lsmod | grep snd | ||
+ | </ | ||
+ | - See which sound devices are detected by alsa:< | ||
+ | aplay -l | ||
+ | </ | ||
+ | - Test sound devices to see which one(s) work:< | ||
+ | alsamixer 0 | ||
+ | < | ||
+ | <select a card(s)> | ||
+ | <adjust volumes and make sure they aren't muted> | ||
+ | < | ||
+ | |||
+ | aplay -D plughw:0,0 test.wav | ||
+ | aplay -D plughw:0,1 test.wav | ||
+ | aplay -D plughw:1,0 test.wav | ||
+ | aplay -D plughw:1,1 test.wav | ||
+ | </ | ||
- | lsmod | grep snd | + | ---- |
- | Use this information along with your motherboard sound chipset to verify that the correct sound drivers are loading. | ||
+ | **PROBLEM: | ||
- | 2) See which sound devices are detected by alsa: | + | **FIX:** Create / |
- | aplay -l | + | defaults.pcm.card 1 |
+ | defaults.pcm.device 0 | ||
+ | defaults.ctl.card 1 | ||
- | Most likely, alsa is loading the correct modules but setting the wrong sound device as default. | + | -or- |
- | 3) Test sound devices to see which one(s) work: | + | pcm.!default { |
+ | type hw | ||
+ | card 1 | ||
+ | device 0 | ||
+ | } | ||
+ | ctl.!default { | ||
+ | type hw | ||
+ | card 1 | ||
+ | } | ||
- | | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | |||
- | aplay -D hw0,0 test.wav | ||
- | aplay -D hw0,1 test.wav | ||
- | aplay -D hw1,0 test.wav | ||
- | aplay -D hw1,1 test.wav | ||
- | ---- | + | OR, if you just want the changes for a single user create ~/.asoundrc in the user's home directory and put the above in it... |
+ | ----- | ||
- | **PROBLEM: | + | **PROBLEM: |
- | **FIX: | + | **FIX: |
- | pcm.!default { | + | 1) Edit/Create / |
- | type hw | + | |
- | card 1 | + | |
- | | + | slave.pcm " |
- | | + | } |
- | ctl.!default | + | |
- | | + | pcm.softvol { |
+ | type softvol | ||
+ | slave { | ||
+ | | ||
+ | } | ||
+ | control | ||
+ | | ||
card 1 | card 1 | ||
- | | + | |
- | | + | |
+ | max_dB 20.0 | ||
+ | | ||
+ | } | ||
+ | **WHERE: " | ||
- | OR, if you just want the changes for a single user create ~/.asoundrc in the user's home directory and put the above in it... | + | 2) Reboot |
+ | 3) After you reboot a PREAMP control is supposed to appear in your mixer controls but, it doesn' | ||
+ | ----- | ||
+ | **PROBLEM: | ||
+ | **FIX:** Enable the equalizer \\ < | ||
+ | |||
+ | Output can either be from the audio device or the mixer. For the device use the following: | ||
+ | |||
+ | 1) Edit/Create / | ||
+ | | ||
+ | type equal; | ||
+ | } | ||
+ | pcm.plugequal { | ||
+ | type equal; | ||
+ | slave.pcm " | ||
+ | } | ||
+ | pcm.!default { | ||
+ | type plug; | ||
+ | slave.pcm plugequal; | ||
+ | } | ||
+ | |||
+ | **WHERE: " | ||
+ | |||
+ | Should you wish to play from more than one application simultaneously via the mixer (dmix), use the below: | ||
+ | |||
+ | | ||
+ | type equal; | ||
+ | } | ||
+ | pcm.plugequal { | ||
+ | type equal; | ||
+ | slave.pcm " | ||
+ | } | ||
+ | pcm.!default { | ||
+ | type plug; | ||
+ | slave.pcm plugequal; | ||
+ | } | ||
+ | |||
+ | |||
+ | To access the equalizer, run " | ||
====== Sources ====== | ====== Sources ====== | ||
+ | AlienBOB' | ||
+ | |||
<!-- If you are copying information from another source, then specify that source --> | <!-- If you are copying information from another source, then specify that source --> | ||
<!-- * Original source: [[http:// | <!-- * Original source: [[http:// |