LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Slackware 14.1 without audio! Even with loaded modules. (https://www.linuxquestions.org/questions/linux-hardware-18/slackware-14-1-without-audio-even-with-loaded-modules-4175511965/)

tharsis 07-22-2014 05:40 PM

Slackware 14.1 without audio! Even with loaded modules.
 
I checked alsamixer and modules without success. I wonder what and how to configure the sound to work! I have no sound. nothing.


# Sound Driver:
bash-4.2 # lspci | grep-i audio
00:1 B.0 Audio device: Intel Corporation 6 Series Chipset Family Series/C200 High Definition Audio Controller (rev 05)

# Sound modules:
bash-4.2 # lsmod | grep snd
snd_hda_codec_hdmi 29622 1
snd_hda_codec_realtek 34792 1
snd_hda_intel 34861 0
snd_hda_codec 143196 3 snd_hda_codec_realtek, snd_hda_codec_hdmi, 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 7 snd_hda_codec_realtek, snd_hwdep, snd_timer, snd_hda_codec_hdmi, snd_pcm, snd_hda_codec, snd_hda_intel
soundcore 5354 1 snd
bash-4.2 #

# Test sound without success.
bash-4.2 # aplay-D hw: 0,3 / usr / share / sounds / alsa / Noise.wav
Playing WAVE '/ usr / share / sounds / alsa / Noise.wav': Signed 16 bit Little Endian, Rate 48000 Hz, Mono
aplay: set_params: 1239: Channels count non available

bash-4.2 # cat / bin / ls> / dev / dsp

frankbell 07-22-2014 08:32 PM

Is this a laptop? If so, do you have a set of external speakers you could test with, if you haven't already done so?

It's just a shot in the dark, but it might provide some useful information.

ReaperX7 07-22-2014 09:51 PM

By any chance have you created an /etc/alsa.conf file to load and set the oss-emulation modules as well as an .asoundrc configuration in each user home to assign the proper pcm output handlers?

Also, does your system have an HDMI output as well?

Ztcoracat 07-24-2014 01:29 AM

Hi:

Try adding yourself to the audio group if you haven't already. (worked for me)
Code:

usermod -G (group name) (username)
To fix mine I ran:
Code:

usermod -G audio redcat
Make sure that all of the columns in the alsamixer are raised up all the way and are 'not muted.'
If the column is muted at the bottom of the column it looks like [mm] unmuted looks like [00]-

aplay -l will tell you your exact sound card (if that helps)-

selfprogrammed 07-28-2014 04:11 PM

With mine I had several problems.
First I had trouble with getting the right kernel module. My motherboard required the AC_97 sound driver.
I had more trouble with Alsa as it could not auto-recognize the correct mixer controls.
To get the mixer set right required running the alas config, to customize the /etc/alsa.config.
At first I had to hand edit it after config, but a later revision Alsa does not seem to require that anymore.

Even on this machine, which has had Alsa setup for years, I have lost sound and searched for an hour for some mixer setting (going through them all exhaustively) that would enable the sound for some application. I did finally find a sound control that enabled the sound from that application. It may have been a volume control in the application, which can apparently have their own mixers too.

Drakeo 07-28-2014 05:22 PM

Most of the time on these laptops snd_hda_codec_hdmi 29622 1 is set up for default.
and this means you will not get sound out of your speakers.
First if you make sure your user is in audio group.
second edit your /etc/modprobe.d/sound.conf so that snd_hda_intel is the first used device.
Code:

alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
options snd slots=snd-hda-intel

from now on the correct device will do local sound.
remember there is a reason why HDMI is first laptops are mobile and for
people to connect to another video output for presentations.

http://docs.slackware.com/howtos:har..._snd-hda-intel

you can also handle all this through kde desktop but it likes to revert.
this is why I set my own slots.

metaschima 07-28-2014 05:28 PM

An easier solution is to create a file in your home directory '~/.asoundrc' with:
Code:

defaults.ctl.card 1
defaults.pcm.card 1
defaults.timer.card 1


Drakeo 07-29-2014 06:24 AM

Quote:

Originally Posted by metaschima (Post 5210995)
An easier solution is to create a file in your home directory '~/.asoundrc' with:
Code:

defaults.ctl.card 1
defaults.pcm.card 1
defaults.timer.card 1


You do realize why many people do not use a local .asoundrc for a default device. If you do not then take time to run different
programs that require capturing default devices and see what you fall into when running multiple audio capturing programs.
Not say your wrong you are right but far from full Fix. I would only suggest using a ~/.asoundrc if you are trying to accomplish
certain tasks with jackd.

Fact is when running multiple audio capture programs it better to set things up system wide. And allow the programs to capture individual devices.
because you will always find things like Mplayer that has there own set of rules till it is configured.
This is from my experience.

rdx 08-03-2014 09:14 PM

Slackware64 14.1 on a HP 1512 desktop and no audio
 
Which of these advices can apply to a desktop? I put 14.1 on my desktop and no sound. It is rare that I do system setups so it will take me a long time to figure it out for myself. Any suggestions appreciated.
...
I now have sound on left channel only. How can I get it to go stereo?

Ztcoracat 08-04-2014 11:11 AM

Quote:

Originally Posted by rdx (Post 5214409)
Which of these advices can apply to a desktop? I put 14.1 on my desktop and no sound. It is rare that I do system setups so it will take me a long time to figure it out for myself. Any suggestions appreciated.
...
I now have sound on left channel only. How can I get it to go stereo?

Open the alsamixer in the terminal and make sure that all columns are raised up and that none are muted.
[mm] is muted. [oo] is unmuted. --If muted use the arrow key to go to that column and type the "m" key once--

rdx 08-07-2014 06:57 PM

success
 
Thanks, the mixer bars were not fully on.

Ztcoracat 08-08-2014 10:07 AM

Quote:

Originally Posted by rdx (Post 5217203)
Thanks, the mixer bars were not fully on.


Your Welcome-;)

It's nice to have sound isn't it:-

Enjoy your system rdx and have a good weekend!

tharsis 08-18-2014 08:02 PM

Thank's people!


All times are GMT -5. The time now is 12:52 AM.