You are not logged in.

#1 2012-06-05 05:36:23

xworld
Member
Registered: 2012-05-27
Posts: 153

[SOLVED]Sound

I am having a little sound trouble. I have alsa-utils and alsa plugins installed. I unmuted the master channel and I found out my default sound card using aplay -l. Here's my ~/.asoundrc:

defaults.pcm.card 0
defaults.pcm.device 3
defaults.ctl.card 0

It originally worked. I went to a youtube video and played it just fine. Here's the output of lsmod | grep '^snd' | column -t:

snd_hda_codec_hdmi     24120   1
snd_hda_codec_realtek  114123  1
snd_hda_intel          24021   2
snd_hda_codec          92713   3   snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi
snd_hwdep              6556    1   snd_hda_codec
snd_pcm                74812   3   snd_hda_codec,snd_hda_intel,snd_hda_codec_hdmi
snd_page_alloc         7217    2   snd_pcm,snd_hda_intel
snd_timer              19222   1   snd_pcm
snd                    59656   11  snd_timer,snd_pcm,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi

Here's the output of ls -l /dev/snd:

total 0
drwxr-xr-x  2 root root       60 Jun  4 15:14 by-path
crw-rw----+ 1 root audio 116,  7 Jun  4 15:14 controlC0
crw-rw----+ 1 root audio 116,  6 Jun  4 15:14 hwC0D0
crw-rw----+ 1 root audio 116,  5 Jun  4 15:14 hwC0D3
crw-rw----+ 1 root audio 116,  4 Jun  4 15:14 pcmC0D0c
crw-rw----+ 1 root audio 116,  3 Jun  4 15:14 pcmC0D0p
crw-rw----+ 1 root audio 116,  2 Jun  4 15:27 pcmC0D3p
crw-rw----  1 root audio 116,  1 Jun  4 15:14 seq
crw-rw----+ 1 root audio 116, 33 Jun  4 15:14 timer

I then put alsa in my daemons array. I also created /var/lib/alsa/asound.state and added alsactl -f /var/lib/alsa/asound.state restore to /etc/rc.local. I remind you that I had sound working at first. When I rebooted the sound stopped working and even if I run through all the steps again like new I can't get it to work.

Last edited by xworld (2012-06-12 01:28:41)

Offline

#2 2012-06-05 06:47:28

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,568
Website

Re: [SOLVED]Sound

Ah .... so it was working, then you added a bunch of stuff for no apparent reason, now it doesn't work.

Have you thought about undoing all those things you did for no apparent reason?  Or was there a reason you did them?  I'm sure there was a reason, the odds of typing randomly at a keyboard and making just those changes .... well, chimps, typewriters, and shakespeare.

Why did you make those changes?

Edit: maybe I misread.  You said you went through all the steps again.  Does that mean you undid them?  Did you remove alsa from your rc.conf and rc.local?

Last edited by Trilby (2012-06-05 06:49:30)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2012-06-05 21:22:57

xworld
Member
Registered: 2012-05-27
Posts: 153

Re: [SOLVED]Sound

Because in the wiki it said that if I want the changes to take affect at reboot I need to do those things.....maybe I jumped the gun. Sorry Arch forums members and admins, I'll read more and post less.

Offline

#4 2012-06-05 21:30:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,568
Website

Re: [SOLVED]Sound

I'm not saying they were bad things to do.  But if your system works perfectly, and you decide to try doing "A", then your system stops working, I'd think undoing "A" would be a natural troubleshooting step, no matter what "A" was.

There should be no need to have that command in rc.local, should there?

man alsactl wrote:

-f, --file
              Select   the   configuration   file   to   use.   The   default   is
              /var/lib/alsa/asound.state.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2012-06-05 22:01:52

xworld
Member
Registered: 2012-05-27
Posts: 153

Re: [SOLVED]Sound

"This will create the file /var/lib/alsa/asound.state, saving the alsamixer settings.
Then, add the alsa daemon to your DAEMONS array in /etc/rc.conf to automatically restore the mixer settings at boot."

This is why I put alsa in the daemons. And yes I undid everything except for putting my card info into ~/.asoundrc

Last edited by xworld (2012-06-05 22:02:08)

Offline

#6 2012-06-05 22:14:52

windscape
Member
Registered: 2010-04-30
Posts: 69

Re: [SOLVED]Sound

Hi xworld,

What does aplay -l output? You might want to try setting the default sound card in /etc/asound.conf and see if that helps. Are the channels still unmuted?

Offline

#7 2012-06-05 22:33:31

xworld
Member
Registered: 2012-05-27
Posts: 153

Re: [SOLVED]Sound

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
The channels are still unmuted. The only one that shows when I run alsamixer is master. When I hit F6 I have everything else unmuted too.

Offline

#8 2012-06-05 22:33:34

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: [SOLVED]Sound

Does your sound setup actually require ~/.asoundrc?  I've never seen a case myself where it was necessary on more recent hardware, but I don't have any kind of specialized setup either.

EDIT: Just saw your post as I posted; try renaming "~/.asoundrc" to "~/.asroundrc.bak" and then restarting alsa.

Last edited by ANOKNUSA (2012-06-05 22:34:52)

Offline

#9 2012-06-05 22:40:26

xworld
Member
Registered: 2012-05-27
Posts: 153

Re: [SOLVED]Sound

Well I can't imagine what I did to screw everything up so bad but obviously I did something. Nothing seems to work

Thanks for the help anyway everyone

Last edited by xworld (2012-06-05 23:05:36)

Offline

#10 2012-06-05 23:07:27

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED]Sound

ANOKNUSA wrote:

try renaming "~/.asoundrc" to "~/.asroundrc.bak" and then restarting alsa.

xworld wrote:

Well I can't imagine what I did to screw everything up so bad but obviously I did something. Nothing seems to work


Are those two statements related? "Nothing seems to work" is not a helpful error message...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2012-06-05 23:13:01

xworld
Member
Registered: 2012-05-27
Posts: 153

Re: [SOLVED]Sound

Ok. I did what he said then restarted alsa and still nothing. So like I said thanks for the help everyone and sorry jasonwryan for my annoying posts. I won't post anything until I have something smarter to ask/say. Feel free to close this thread

Last edited by xworld (2012-06-11 21:14:06)

Offline

#12 2012-06-11 21:14:23

xworld
Member
Registered: 2012-05-27
Posts: 153

Re: [SOLVED]Sound

I created /etc/asound.conf instead of ~/.asoundrc(not sure if it matters) and here's what I put in:

defaults.pcm.card 0
defaults.pcm.device 3
defaults.ctl.card 0

I then adjusted my alsamixer settings some more and after editing one of the levels I can here white noise coming from my speakers. I can adjust the sound of the white noise so it seemed as though I got sound working. However, I went to play a youtube video and I still can't hear anything. At this point I'm a bit confused because after referring to the Arch wiki(which I have many times) it seems like setting up the sound is ridiculously easy. All you have to do is edit the alsamixer levels and make sure they are unmuted and then save the settings and put alsa in daemons. I've done all of this and like I said, i can hear a faint noise coming from the speakers and I can adjust it. I just can't hear anything else.

Sorry for the double post

Offline

#13 2012-06-11 21:29:28

rudiger
Member
Registered: 2012-01-19
Posts: 3

Re: [SOLVED]Sound

Have you kmix installed? wiki: "Warning: If you use kmix, make sure to configure it to not restore sound levels at startup. This will conflict with the configuration detailed below".

Last edited by rudiger (2012-06-11 21:32:41)

Offline

#14 2012-06-11 21:34:41

xworld
Member
Registered: 2012-05-27
Posts: 153

Re: [SOLVED]Sound

No I do not. The only things related to sound I have installed are alsa-utils -alsa-oss alsa-plugins and pulseaudio

Offline

#15 2012-06-11 22:37:54

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED]Sound

If you're changing the ALSA configuration, make sure that nothing has ALSA open (and is thus still using the old configuration):

To show apps with sound open:

fuser -fv /dev/snd/* /dev/dsp* 2>/dev/null

Offline

#16 2012-06-11 22:45:09

xworld
Member
Registered: 2012-05-27
Posts: 153

Re: [SOLVED]Sound

Thanks for the suggestion. I did so and there was no apps with sound. Then I adjusted the alsamixer settings again and saved the settings with alsactl store. Still, no dice. This is supposed to be a simple step in getting Arch running right? I sure am having a tough time with it.

Offline

#17 2012-06-11 23:04:40

anjanaya
Member
From: INDIA
Registered: 2009-05-13
Posts: 7

Re: [SOLVED]Sound

Hi xworld,
I too am facing similar problem,
Pulse audio is installed and working fine, all videos and firefox -> You Tube work fine, but no sound through Speakers. If I plug in Headphones and external mic sound works fine though sad
I am using snd-hda-intel on a HP Laptop and also have added

options snd-hda-intel model=hp-dv5
options snd-hda-intel enable_msi=1

to a file in /etc/modprobe.d

with all this since could not find the source of the problem and after like you, going through the wiki and doing all the stuff it said,
I just tried out one thing (Olny after reverting all stuff tongue ),

I downgraded kernel :: 3.3.8-1 => 3.3.6-1
and voila! with all my old settings, sound works.
hence I have added IgnorePkg   = linux in pacman.conf for the time being.

Please let me know if this helps OR if you find a way to upgrade and still get sound smile


Proud Arch x86_64 user

Offline

#18 2012-06-11 23:08:20

xworld
Member
Registered: 2012-05-27
Posts: 153

Re: [SOLVED]Sound

Hmm. I never would of thought to do that. Wouldn't you want to keep with the most recently kernel though? Or does it not really matter that much.

Offline

#19 2012-06-11 23:30:59

anjanaya
Member
From: INDIA
Registered: 2009-05-13
Posts: 7

Re: [SOLVED]Sound

I'm sure it matters, but since this work for me know, I am holding onto this kernel.
Partial_upgrades_are_unsupported says so clearly sad
But since there are packages like linux-lts there are people having old kernels, though not this way;
and it's resolving my issue till I find a correct solution I'm gonna keep it this way.

Also if you need the package I can share the same smile

Will post if i find a soultion.
Just put this down as it might help others, and also someone could have a aaha moment and just get what the issue is, which my thick head might not get anytime soon smile

EDIT:: Said Skull instead of head tongue

Last edited by anjanaya (2012-06-11 23:35:23)


Proud Arch x86_64 user

Offline

#20 2012-06-12 00:25:47

xworld
Member
Registered: 2012-05-27
Posts: 153

Re: [SOLVED]Sound

I think I am going to opt for a different method. Thanks for the suggestion nonetheless. It seems as though mine is an unsolvable issue...and it's something as silly as setting up sound.

Offline

#21 2012-06-12 00:33:22

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED]Sound

xworld wrote:

No I do not. The only things related to sound I have installed are alsa-utils -alsa-oss alsa-plugins and pulseaudio

Is this correct? If so, (a) it would have been helpful to mention it sooner, and (b) if you read the wiki page you will see that it requires additional packages and a slightly different setup. I'd remove pulse from the equation and just troubleshoot alsa: once you get that working, you can re-add pulse.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#22 2012-06-12 01:28:15

xworld
Member
Registered: 2012-05-27
Posts: 153

Re: [SOLVED]Sound

Wow I can't believe it. It finally worked. TBH I'm not even sure what I did. I uninstalled pulseaudio and then I went through some of the steps that I had already done. I even re-added my user to the audio group. I messed around in alsamixer some more, then resaved my sound settings. Now it works even after reboot. Amazing. Thanks everyone for your patience and sorry for the annoyance.

Offline

Board footer

Powered by FluxBB