You are not logged in.

#1 2014-11-24 11:41:09

nerorevenge
Member
Registered: 2014-11-24
Posts: 5

Sound was working perfectly and then one-by-one everything stopped ..

Hello

I installed Arch about a month ago. After the second update things looked okay
till vlc could'nt play sound .. firefox could play flash videos with sound well enough.
And then today without warning ( I did not even reboot the computer nor did I install
anything) sound through firefox stopped working. The computer beep sounds fine.
Please help.

My Environment -> Xmonad Window Manager, NO explicit desktop environment such as gnome,mate,kde,cinnamon,etc

 
Update:
      1. Put in a live-cd and had the sound working perfectly fine
      2. removing lasa-utils didn't do much but then again alsa is built into ther kernel, so recompiling the kernel
         may be a route
 speaker-test

this command seems to be doing something

 speaker-test 1.0.28

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 16384
Period size range from 1024 to 1024
Using max buffer size 16384
Periods = 4
was set period_size = 1024
was set buffer_size = 16384
 0 - Front Left
Time per period = 2.66554

also the aplay command

 aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: MID [HDA Intel MID], device 0: 92HD81B1X5 Analog [92HD81B1X5 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

further information

lspci -nn | grep -i audio
00:1b.0 Audio device [0403]: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio [8086:3b56] (rev 05)
01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Cedar HDMI Audio [Radeon HD 5400/6300 Series] [1002:aa68]

Also non of the channels are muted ... ( via alsamixer)

Last edited by nerorevenge (2014-11-25 01:51:21)

Offline

#2 2014-11-24 11:49:23

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: Sound was working perfectly and then one-by-one everything stopped ..

So, tell us a bit more. DE/WM, pulseaudio, alsa?

Does your sound work fine on other OSes (live CD of a different linux distro, or dual boot windows maybe)?

Offline

#3 2014-11-24 11:59:38

nerorevenge
Member
Registered: 2014-11-24
Posts: 5

Re: Sound was working perfectly and then one-by-one everything stopped ..

oh yeah I had both alsa and pulse-audio running ... I removed pulseaudio-alsa and then pulse-audio.
That did not work , so I'm left with just alsa.

I really should check out to see whther other distros can work the sound well. WHat a pain.

I'm running xmonad so I think that's just a window manager , no explicit desktop environment.

Last edited by nerorevenge (2014-11-24 12:01:54)

Offline

#4 2014-11-24 17:20:10

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: Sound was working perfectly and then one-by-one everything stopped ..

nerorevenge wrote:

I really should check out to see whther other distros can work the sound well. WHat a pain.

The reason I asked was to rule out hardware issues, not to convince you to change distro tongue

Anyway, so pulse and alsa? Is pulse set up correctly? Have you checked the troubleshooting section on the wiki? (Sorry, I am no expert when it comes to pulseaudio, or ALSA for that matter)

EDIT: Sorry, read your text too quickly and missed that you removed pulse. Have you tried reinstalling ALSA and resetting/removing the settings? It could be that pulse left you with messed up ALSA settings. Also, check your default device. Is it sending sound to the wrong sink?

Last edited by runical (2014-11-24 17:24:45)

Offline

#5 2014-11-24 23:54:16

nerorevenge
Member
Registered: 2014-11-24
Posts: 5

Re: Sound was working perfectly and then one-by-one everything stopped ..

@runical I understand why you asked me to use live-cd of distros.

What is getting on my nerves is that if it is a hardware issue ... I shouldn't be able to hear system beeps right? but that works just fine.
Or is that both are mutually exclusive?

I could use whatever help I can get, so no worries there. I'd look into reinstalling alsa and the live-cd lookup is still pending.
This may take some time. Just when I took up a serious project to work on .. this happens ...I really should to get to know
Arch more nicely.

UPDATE:

  live-cd has the sound working fine
   alsa is bult into the linux kernel, so now things are getting tricky

Last edited by nerorevenge (2014-11-25 01:52:16)

Offline

#6 2014-11-25 12:08:49

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: Sound was working perfectly and then one-by-one everything stopped ..

As far as I know the hardware beeps are separate from the normal sound config, but I am not sure.

So, not a hardware issue. Can you tell me what is in the folder

/usr/share/alsa/alsa.conf.d

If there are pulseaudio configs, you can try backing them up and see if that helps.

Offline

#7 2014-11-25 22:05:25

nerorevenge
Member
Registered: 2014-11-24
Posts: 5

Re: Sound was working perfectly and then one-by-one everything stopped ..

Hello .

Thank you for the reply.

Three files reside in /usr/share/asla/alsa.conf.d

1. 50-pulseaudio.conf                 
2. 99-pulseaudio-default.conf.example 
3. README

contents of 50-*

# Add a specific named PulseAudio pcm and ctl (typically useful for testing)

pcm.pulse {
    type pulse
    hint {
        show on
        description "PulseAudio Sound Server"
    }
}

ctl.pulse {
    type pulse
}

contents of 99-*

# Default to PulseAudio

pcm.!default {
    type pulse
    hint {
        show on
        description "Default ALSA Output (currently PulseAudio Sound Server)"
    }
}

ctl.!default {
    type pulse
}

I was wondering shouldn't this info be useless because I already removed pulseaudio or does it pertain to the alsa's config ?.
I understand the pulseaudio is just a layer on alsa.

Offline

#8 2014-11-25 22:22:45

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: Sound was working perfectly and then one-by-one everything stopped ..

This pertains to the alsa config. These files are run when alsa inits, so they could be a possible problem.

The 50 and 99 file are useless if you don't have pulse installed, as you can probably tell. You can check if the files are owned by ALSA. If not, you can try removing them (back them up though!).

Which device is your default device?

Offline

#9 2014-11-26 18:28:30

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 341
Website

Re: Sound was working perfectly and then one-by-one everything stopped ..

Read up on an alsa-base.conf file and determine your default audio device therein, so it gets ( and continues to get ) slot 0. https://wiki.archlinux.org/index.php/Ad … sound_card

In your case create said file and put in this 1 line

options snd_hda_intel index=0

Save it and reboot.
This will make the onboard intel soundcard default, easiest way to switch between it and the HDMI is to install pulseaudi and pavucontrol, play around with settings in pavucontrol until you get desired output.

Last edited by cirrus (2014-11-26 18:44:45)

Offline

#10 2014-11-27 03:49:41

nerorevenge
Member
Registered: 2014-11-24
Posts: 5

Re: Sound was working perfectly and then one-by-one everything stopped ..

Well @cirrus

That did not work.

@runical

um isn't a aplay output what you're asking?

this from the alsa page and the output is a bit weird ( because I don't see why the same module is loaded twice )

 cat /proc/asound/modules 
 0 snd_hda_intel
 1 snd_hda_intel  

I'm planning to take whole day off just to sit and read the alsa page and compare configs.

Offline

#11 2014-11-27 07:18:49

grubenm
Member
Registered: 2014-02-25
Posts: 35

Re: Sound was working perfectly and then one-by-one everything stopped ..

You may want to install the alsa-utils package to give you access to the ncurses-based alsamixer (relevant ArchWiki link)

Offline

#12 2014-11-27 11:10:12

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: Sound was working perfectly and then one-by-one everything stopped ..

nerorevenge wrote:

@runical

um isn't a aplay output what you're asking?

this from the alsa page and the output is a bit weird ( because I don't see why the same module is loaded twice )

 cat /proc/asound/modules 
 0 snd_hda_intel
 1 snd_hda_intel  

I'm planning to take whole day off just to sit and read the alsa page and compare configs.

What I meant was that you have 2 devices. One of those 2 has to be default and it is probably desired to take the non-HDMI one as default. But indeed, it seems that is the output of aplay. My bad.

Unfortunately, I am currently out of ideas.

EDIT: I just checked, and it seems that the output of 

cat /proc/asound/modules

is consistent with my own system (running pulse and ALSA). So, it might not be a problem.

Last edited by runical (2014-11-27 11:12:48)

Offline

#13 2014-11-27 14:08:39

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 341
Website

Re: Sound was working perfectly and then one-by-one everything stopped ..

As grubenm advised, did u try alsamixer and try muting, unmuting things ? That is a common cause of audio output woes. If you have pulseaudio installed do the same using pavucontrol. I see on a previous post you say nothing is muted in alsamixer, IIRC there is something that should be muted in order for you to have audio out.

Last edited by cirrus (2014-11-27 16:04:59)

Offline

#14 2014-11-27 18:10:21

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: Sound was working perfectly and then one-by-one everything stopped ..

In his first post he mentions:

nerorevenge wrote:

Also non of the channels are muted ... ( via alsamixer)

Offline

#15 2014-11-27 20:52:54

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 341
Website

Re: Sound was working perfectly and then one-by-one everything stopped ..

@ runical

cirrus wrote:

I see on a previous post you say nothing is muted in alsamixer

  yer that's what i said hmm  however iirc there is something that needs to be muted,i use pulseaudio so i cant look,im sure someone will remind me which slider needs to be muted.

Last edited by cirrus (2014-11-27 20:56:23)

Offline

#16 2014-11-28 14:54:09

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: Sound was working perfectly and then one-by-one everything stopped ..

neorevenge,

cirrus is probably referring to digital / analog outputs.

On many (all ?) cards you need to mute one of them to get audio.

If you use analog audio you will have to mute s/pdif , if using digital output you will have to mute analog output.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#17 2014-11-30 04:15:05

dedxi
Member
Registered: 2014-11-30
Posts: 3

Re: Sound was working perfectly and then one-by-one everything stopped ..

What are the contents of your ~/.asoundrc file (if it exists)?

Offline

Board footer

Powered by FluxBB