View previous topic :: View next topic |
Author |
Message |
nanobyte n00b
Joined: 31 May 2002 Posts: 7 Location: Rome, Georgia
|
Posted: Fri May 31, 2002 2:17 am Post subject: Alsa sound problems... |
|
|
I am on a sony vaio and using the via82cxxx_audio driver for my sound card. I have followed the instructions in the Desktop guide exactly.
My problem is that when I type amixer, I get the following error:
root@mymachnine chris # amixer
amixer: Mixer attach default error: No such file or directory
Any suggestions?
Thanks,
Chris |
|
Back to top |
|
|
nanobyte n00b
Joined: 31 May 2002 Posts: 7 Location: Rome, Georgia
|
Posted: Fri May 31, 2002 3:53 am Post subject: |
|
|
Ok, I got the sound working now by changing the owner and permissions of /dev/dsp. But I still get the same error when I try to run amixer and kmix just comes up blank with nothing to adjust... |
|
Back to top |
|
|
TwoSlick Tux's lil' helper
Joined: 22 Apr 2002 Posts: 114 Location: Rolla, MO
|
Posted: Fri May 31, 2002 4:34 am Post subject: |
|
|
Alsa has all been changed around again. The desktop guide is not accurate for that section. Does somebody here have some good (and simple) instructions for getting ALSA running from scratch
- Tim |
|
Back to top |
|
|
lx Veteran
Joined: 28 May 2002 Posts: 1012 Location: Netherlands
|
Posted: Fri May 31, 2002 7:37 am Post subject: |
|
|
have you done:
Code: | ALSA_CARDS=<your card> emerge alsa-driver
emerge alsa-oss
emerge alsa-utils |
well I gues you did that.
add alsasound to the init startup scripts.
Code: | rc-update add alsasound boot |
mmmm, you also did this I gues.
I added the lines to /etc/modules.autoload:
Quote: | snd-pcm-oss
snd-mixer-oss |
these take care of /dev/dsp and /dev/mixer
A normal user should be added to the "Audio" group. I just hack the /etc/group file but you can use usermod with the -G option but then you have to give all groups at once. (whell/video/audio/users etc)
Well it's short but I hope it helps, Cya Alex[/code] _________________ "Remember there's a big difference between kneeling down and bending over.", Frank Zappa |
|
Back to top |
|
|
Zu` l33t
Joined: 26 May 2002 Posts: 716 Location: BE
|
Posted: Fri May 31, 2002 7:47 am Post subject: |
|
|
Kernel configuration: You don't need any sound modules, but keep SOUND SUPPORT as a module [M] (soundcore.o), ALSA uses it.
Remember, after each kernel recompile, you have to reinstall alsa-driver, because "make modules_install" removes your old modules.
This is how I did it:
Code: |
# rmmod (remove all other non-alsa sound modules that might be loaded)
# emerge alsa-driver
# depmod -a
# nano -w /etc/modules.d/alsa (adjust these correctly -- see desktop howto)
# update-modules
# nano -w /etc/devfsd.conf (adjust these aswell IF needed)
# emerge alsa-utils
# /etc/init.d/alsasound start
# insmod snd-pcm-oss
# insmod snd-mixer-oss
# amixer
# amixer set Master 100 unmute
# amixer set PCM 100 unmute
# alsamixer (you can easily adjust sound with this, it's ncurse-based)
# rc-update add alsasound boot
# reboot (to see if ALSA gets loaded properly)
|
That's it. Good luck!
Credit goes to Sunflare, I had exactly the same problems as you configuring ALSA and he helped me out.
EDIT: made it kinda up-to-date
Last edited by Zu` on Thu Aug 29, 2002 3:40 pm; edited 3 times in total |
|
Back to top |
|
|
lx Veteran
Joined: 28 May 2002 Posts: 1012 Location: Netherlands
|
Posted: Fri May 31, 2002 8:00 am Post subject: |
|
|
yep forgot about depmod -a <-> update-modules, but this is all in the normal guide. btw. I don't have /etc/init.d/alsa, had it once, but don't have it now, ain't it from an old install.????
Well if they still don't get it, _________________ "Remember there's a big difference between kneeling down and bending over.", Frank Zappa |
|
Back to top |
|
|
a_trotskyite n00b
Joined: 22 May 2002 Posts: 2 Location: Toronto
|
Posted: Wed Jun 05, 2002 4:00 pm Post subject: Thank Zu! |
|
|
After screwing around for 2 hrs (including lots of searches here) your primer had everything fixed in 10 minutes. Thanks.
This should go into the FAQ, or even the install guide.
Thanks to you, and to Sunflare! _________________ The race may not be to the swift, nor the contest to the strong, but that's the way the smart money bets. -Damon Runyon |
|
Back to top |
|
|
Peteroxxx n00b
Joined: 10 Jun 2002 Posts: 52 Location: Florida
|
Posted: Sat Jun 15, 2002 8:43 am Post subject: Same amixer problem |
|
|
I am having the same problem. Followed all the instructions. No errors until I do the amixer part No Such Device.
the mod im using is snd-ac97-codec.
Sound is enabled in the kernal but no modules selected.
Could I have the wrong mod? My PC is a compac p400 deskpro and im not 100% sure thats the card.
BTW I have /dev/dsp but no /dev/mixer or /dev/dsp/mixer
-r0xxx
Sitting in silence |
|
Back to top |
|
|
|