Slackware - Installation This forum is for the discussion of installation issues with Slackware. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-14-2014, 03:22 PM
|
#1
|
LQ Newbie
Registered: Apr 2011
Location: Loveland, CO
Distribution: Debian, LMDE,Xubuntu, Slackware
Posts: 12
Rep: 
|
(solved) Slackware64-14.1 ALSA Configuration?
I decided to investigate Slackware and I thought I was getting along quite well with Slackware64-Xfce until I realized I heard not a sound. Oops, not good. So I have been trying for several days to first diagnose and then repair my problem. No luck thus far. What I hve larned is that I do not understand how to configure ALSA in Slackware.
Various documents on the web suggest using the “ALSA configurator” (alsaconf) to configure ALSA. Apparently that set of tools no longer is packaged with ALSA?
Question: Is there some functional substitute?
If I select ALSA-mixer (alsamixer) it shows me 3 unmuted S/PDIF devices. These evidently relate to the circuits on my System76 laptop labeled as HDA Intel MID which shows priority 0 on the device list.
If I use F6 I can select HDA Intel PCH with priority 1. If I select this I see the ALSA mixer sliders I am accustomed to seeing. The master slider is muted by default. I have learned how to unmute it and save that configuration so that the ALSA mixer is not muted when it comes up. I still hear no sounds of any sort. So that alone does not solve my problem.
Question: Am I correct that I need to set HDA Intel PCH as priority 0 and HDA Intel MID as priority 1 in order to solve my problem? I have no idea how to do that. Can anyone direct me to a document that explains how to do it?
Is there some other way to solve this problem that I have missed?
Thank you for reading this post.
Last edited by julian516; 04-16-2014 at 06:32 PM.
|
|
|
04-14-2014, 05:54 PM
|
#2
|
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
|
Last edited by Drakeo; 04-14-2014 at 05:55 PM.
|
|
|
04-14-2014, 05:57 PM
|
#3
|
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
|
you will see aplay -l will give you the read out that will show you your default card down.
Quote:
ash-4.2$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: VT2020 Analog [VT2020 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: VT2020 Digital [VT2020 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 2: VT2020 Alt Analog [VT2020 Alt Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 3: Headset [HP Digital Stereo Headset], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
|
this is mine.
but for some reason Slackware liked to put my webcam first or my nvidia hdmi so to fix this problem I did this. I created a /etc/modprobe.d/sound.conf
looked like this.
Quote:
# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF version 1.0.25 ---
alias char-major-116 snd
alias char-major-14 soundcore
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd slots=snd-hda-intel,snd-usb-audio
|
then from http://docs.slackware.com/howtos:har..._snd-hda-intel
you will read how to load the proper module. If the kernel is having issues.
pat named it the /etc/modprobe.d/snd-hda-intel.conf
Quote:
Diagnosing the issue
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.
The fix
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.
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.
A simple way is to execute (as root)
echo "options snd-hda-intel model=auto" > /etc/modprobe.d/snd-hda-intel.conf
If you use an editor to create files in /etc/modprobe.d/ be sure to remove any backup copies.
|
Last edited by Drakeo; 04-14-2014 at 06:09 PM.
|
|
|
04-15-2014, 01:02 AM
|
#4
|
Member
Registered: Sep 2009
Location: Perth, W.A.
Distribution: Slackware, Debian, Gentoo, FreeBSD, OpenBSD
Posts: 208
Rep:
|
Just in case Drakeo's post isn't clear to you, you may find that the problem is a missing module that needs to be loaded with modprobe as root.
|
|
1 members found this post helpful.
|
04-15-2014, 12:58 PM
|
#5
|
LQ Newbie
Registered: Dec 2010
Location: Eichstätt, Germany
Distribution: Slackware64-current
Posts: 8
Rep:
|
IMHO the easiest solution is to tell which modules you don't want to have as your main sound card. This can also be seen as the reverse configuration of Drakeo.
Example for my setup:
Code:
> cat /etc/modprobe.d/alsa.conf
options snd slots=,cx88_alsa,snd_hda_codec_nvhdmi
This will prefer every other soundcard before using my TV card and my HDMI output. You will just have to replace those with your unwanted driver - as in Drakeo's description lsmod | grep ^snd_pcm should give you the relevant module names. If you want to use it as a reverse list then just don't forget the leading comma after the equals sign. That one line should be everything you need.
Last edited by ifo; 04-15-2014 at 01:01 PM.
|
|
|
04-15-2014, 04:25 PM
|
#6
|
LQ Newbie
Registered: Apr 2011
Location: Loveland, CO
Distribution: Debian, LMDE,Xubuntu, Slackware
Posts: 12
Original Poster
Rep: 
|
Thank you all! This is what I needed to get some traction on this problem. I will report back hoping we can mark this thread as "solved" when I do so.
|
|
|
04-16-2014, 06:31 PM
|
#7
|
LQ Newbie
Registered: Apr 2011
Location: Loveland, CO
Distribution: Debian, LMDE,Xubuntu, Slackware
Posts: 12
Original Poster
Rep: 
|
We have a solution thanks to the several people who posted and the HowTos on SlackDocs. Let me report the next steps in my successful search for sound with Slackware64-14.1. Doing so might help someone else.
Drakeo was right. I had missed some relevant documents. Slackdocs/HowTo articles-Hardware contains "Audio and snd-hda-intel"and also "Sound Problems on Slackware." These two documents held the keys to this problem. So here is what I did.
Q. What does aplay -l show?
**** List of PLAYBACK Hardware Devices ****
card 0: MID [HDA Intel MID], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: MID [HDA Intel MID], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: VT1802 Analog [VT1802 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 2: VT1802 Alt Analog [VT1802 Alt Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
What I noticed was that the HDMI devices were listed as card 0 while the VT1802 was listed as card 1.
Q. What does lsmod | grep snd show?
snd_hda_codec_via 19806 1
snd_hda_codec_hdmi 29622 1
snd_hda_intel 34861 4
snd_hda_codec 143196 3 snd_hda_codec_hdmi,snd_hda_codec_via,snd_hda_intel
snd_hwdep 6388 1 snd_hda_codec
snd_pcm 76009 3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc 7098 2 snd_pcm,snd_hda_intel
snd_timer 18614 1 snd_pcm
snd 58630 15 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_via,snd_pcm,snd_hda_codec,snd_hda_intel
soundcore 5354 1 snd
I understood that snd_hda_intel showed the proper module being loaded.
Q. What did alsamixer show?
It showed three S/PDIF devices as 0 HDA Intel MID. Using F6 I went to “1 HDA Intel PCH”. This showed the ALSA mixer controls I would expect to see. The Master was not muted.
Q. What was the solution path?
According to "Sound Problems on Slackware" I should be able to test this card by specifying the card to test as follows: "aplay -D plughw:1,0 test.wav" This returned "No such file or directory." So where was test.wav? This set off a rather long search.
In /usr/share/sounds/alsa/ I did not see test.wav but I did see Noise.wav, so I tried that. "aplay -D plughw:1,0 Noise.wav" returned the same “No such file ..." So I next tried this with the full path to Noise.wav doing "aplay -D plughw:1,0 /usr/share/sounds/alsa/Noise.wav"
This worked! OK, now I knew that the card at 1,0 could make noise. It looked to me that the remaining task was to make it the default card.
So I followed Drakeo and went back to the "Audio and snd-hda-intel" document I had missed initially. I then did
echo "options snd-hda-intel model=auto" > /etc/modprobe.d/snd-hda-intel.conf
A check of modprobe.d showed the file in place. I then rebooted the system.
No joy; alsamixer still reported the HDMI ports as Card 0 and the Intel PCH card as card 1. This was confirmed by aplay -l. If I did cat /etc/modprobe.d/snd-hda-intel.conf it read back “options snd-hda-intel model=auto” as I thought it would.
I then reviewed the several posts on this thread as well as the two HowTos in SlackDocs mentioned earlier. I elected to follow the suggestions in "Sound Problems on Slackware" to create /etc/asound.conf as shown in that document, since card 1, device 0 was also my working alsa card. This seemed to me the simplest approach. With that done I then rebooted hoping to see a change in the default order of preferred sound-cards.
Interesting: There was no apparent change in the order of the cards but asound.conf must route the sound to the proper card because my speakers now work just as they should!
There is one small thing I do not understand but doubtless more experienced Linux folks do. I can no longer start alsa mixer at the cli by simply typing “alsamixer”. Instead I must now specify the card, “alsamixer -c1” If I do that I can control alsamixer from the cli.
I started the Xfce desktop and clicked on the mixer app. Everything worked as it should.
So my problem is solved with my thanks to all who contributed. I learned a lot starting with the fact that the first place to look is SlackDocs!
You know I think Slackware is a keeper and that means I really ought to purchase something from the Slackware store.
|
|
2 members found this post helpful.
|
01-30-2016, 04:23 PM
|
#8
|
LQ Newbie
Registered: Jan 2016
Posts: 1
Rep: 
|
Setting Alsa default card with multiple sound devices.
Alsa.conf is located here now...
/usr/share/alsa/alsa.conf
I have 2 sound cards and while I was able to set everything in Phonon, but flash streaming video had no sound.
I ran aplay -l and determined the card I wanted to be the default was #2. So in the above file I made this change...
From (a section a little ways down)
# defaults
#
# show all name hints also for definitions without hint {} section
defaults.namehint.showall off
# show just basic name hints
defaults.namehint.basic on
# show extended name hints
defaults.namehint.extended off
#
defaults.ctl.card 2 #Changed from card 0
defaults.pcm.card 2 #Changed from card 0
Restart alsa or reboot and that's it. More info at...
https://wiki.archlinux.org/index.php...d_Architecture
Now when you start alsamixer if in fact the default card has been properly set alsamixer will open it, not another card. The others will have to be opened via F6 key.
|
|
|
All times are GMT -5. The time now is 10:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|