SparkyLinux Forums

Software & hardware support => Hardware => Topic started by: Calatea on March 09, 2015, 08:27:34 PM

Title: [Solved] Problem audio
Post by: Calatea on March 09, 2015, 08:27:34 PM
Hi,
It's one months that Sparky's audio is off! I don't know why! I've  2 SO on this pc, and in Lubuntu I can ear all Music, Video ecc but here no.
Can someone  help me?
Thanks
Title: Re: Problem audio
Post by: pavroo on March 10, 2015, 01:00:40 PM
Run Gnome Alsa Mixer and check is something marked as mute.
Title: Re: Problem audio
Post by: Calatea on March 11, 2015, 12:03:00 PM
Nothing is marked as mute.
How do you  insert immage?  I've got 2 screenshot
Title: Re: Problem audio
Post by: pavroo on March 11, 2015, 12:59:21 PM
I have created quick howto:
http://sparkylinux.org/forum/index.php/topic,2921.0.html
Title: Re: Problem audio
Post by: Calatea on March 11, 2015, 01:38:20 PM
 http://postimg.org/image/520gf8ltf/
http://postimg.org/image/aepatd9pv/
Title: Re: Problem audio
Post by: pavroo on March 11, 2015, 06:12:01 PM
Show me the output:
lspci | grep Audio
Title: Re: Problem audio
Post by: Calatea on March 11, 2015, 10:42:39 PM
 serena@debian:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC282 Analog [ALC282 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Title: Re: Problem audio
Post by: Calatea on March 11, 2015, 11:05:20 PM
 serena@debian:~$ lspci | grep Audio
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02)
Title: Re: Problem audio
Post by: pavroo on March 12, 2015, 11:58:56 AM
Looks like you have two cards.
Run: alsamixer and change the default card via F6 key.
Make sound test:
aplay /usr/share/sounds/alsa/*.wav
speaker-test -c 2

If still no effects show me:
lsmod | grep snd
cat /proc/asound/cards
grep 'audio' /etc/group
Title: Re: Problem audio
Post by: Calatea on March 12, 2015, 02:31:46 PM
serena@debian:~$ lsmod | grep snd
snd_hda_codec_realtek    67127  1
snd_hda_codec_hdmi     45118  1
snd_hda_codec_generic    63107  1 snd_hda_codec_realtek
snd_hda_intel          26327  8
snd_hda_controller     26727  1 snd_hda_intel
snd_hda_codec         104463  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep              13148  1 snd_hda_codec
snd_pcm                88662  5 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer              26614  1 snd_pcm
snd                    65244  23 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
soundcore              13026  2 snd,snd_hda_codec
serena@debian:~$ cat /proc/asound/cards
0 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0x90240000 irq 76
1 [Generic_1      ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0x90244000 irq 77


How you can imagine the sound test failed. So that is the next.
Title: Re: Problem audio
Post by: pavroo on March 13, 2015, 12:10:56 PM
What about groups?
Title: Re: Problem audio
Post by: Calatea on March 14, 2015, 01:08:44 PM
Sorry I don't know how you mean
Quote from: pavroo on March 13, 2015, 12:10:56 PM
What about groups?
Title: Re: Problem audio
Post by: pavroo on March 14, 2015, 04:41:00 PM
I asked you before to show me the output too:
grep 'audio' /etc/group
Title: Re: Problem audio
Post by: Calatea on March 14, 2015, 08:18:06 PM
serena@debian:~$ grep 'audio' /etc/group
audio:x:29:pulse,serena
Title: Re: Problem audio
Post by: pavroo on March 14, 2015, 08:38:49 PM
OK, it looks fine.
The Kabini HDMI card modules are loaded, but doesn't work, but I found nothing in the net to fix it.
FCH Azalia doesn't work at all but some guys fixed it after removing pulseaudio.
So uninstall 'pulseaudio' package, reboot and run alsamixer after (F2 and F6) to choose the second card.
Let me know does it help.
Title: Re: Problem audio
Post by: MoroS on March 14, 2015, 09:12:51 PM
Hi. I've been away for a while, so I couldn't reply in time.

The setup really looks like it's a dual-card system. The first one being a virtual card (HDMI cable), the second one being the physical. Depending on which one you have connected at the time of sound playback you need to check the appropriate one. Fire up the alsamixer in the terminal. Have something playing (like a YouTube video, something that won't stop after a few seconds so you have time to experiment). In the alsamixer use the F6 key to switch between sound cards and try changing different volume levels (arrow keys, left and right - different options, up and down - volume levels) and mute status (the M key switches between muted and unmuted, MM symbol being muted and OO being unmuted). Check which card reacts to these changes. When you find it we'll think about setting it as the default card.
Title: Re: Problem audio
Post by: Calatea on March 15, 2015, 02:45:50 PM
serena@debian:~$ aplay /usr/share/sounds/alsa/*.wav
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
aplay: main:722: audio open error: File o directory non esistente
serena@debian:~$ speaker-test -c 2

speaker-test 1.0.28

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,File o directory non esistente

After uninstalled pulseaudio and made a reboot, it says so.
I used a live cd and the audio is perfect... ???????
Now I'll reinstall pulseaudio... sic :D
Title: Re: Problem audio
Post by: Calatea on March 15, 2015, 03:00:37 PM
Quote from: MoroS on March 14, 2015, 09:12:51 PM
Hi. I've been away for a while, so I couldn't reply in time.

The setup really looks like it's a dual-card system. The first one being a virtual card (HDMI cable), the second one being the physical. Depending on which one you have connected at the time of sound playback you need to check the appropriate one. Fire up the alsamixer in the terminal. Have something playing (like a YouTube video, something that won't stop after a few seconds so you have time to experiment). In the alsamixer use the F6 key to switch between sound cards and try changing different volume levels (arrow keys, left and right - different options, up and down - volume levels) and mute status (the M key switches between muted and unmuted, MM symbol being muted and OO being unmuted). Check which card reacts to these changes. When you find it we'll think about setting it as the default card.

No prob Moro.
I've tried but none of them works. The audio with the live cd is perfect... ??
Title: Re: Problem audio
Post by: MoroS on March 18, 2015, 11:42:13 PM
I wonder is it's a PulseAudio problem. You can try using pavucontrol (from the package with the same name) to try to adjust the settings (mainly output and configuration tabs).
Title: Re: Problem audio
Post by: Calatea on March 19, 2015, 01:27:04 PM
Thanks a lot, I didn't had pavucontrol, I've installed it and I've discovered that the audio were cecked on HDMI output.
Finally it's settled!!! ;D