View previous topic :: View next topic |
Author |
Message |
Thaidog Veteran
Joined: 19 May 2004 Posts: 1053
|
Posted: Thu Jan 04, 2007 4:54 pm Post subject: Trouble installing and initializing alsa. |
|
|
I having trouble installing and initializing alsa. I compiled my kernel with alsa support built in. I edited the alsa modules file correctly and the alsa mixer says the volume is at 90%.
The only sound I can get however is the bell beeper on my motherboard.
My question is do I need to load the sound module (snd_emu1k01) with: /etc/modules.autoload.d/kernel-2.6 ?
If not what have I missed to get my sound working? |
|
Back to top |
|
|
nikaya Veteran
Joined: 13 May 2006 Posts: 1471 Location: Germany
|
Posted: Thu Jan 04, 2007 5:05 pm Post subject: |
|
|
Did you ran "alsaconf"? _________________ Notes on Dhamma
How to waste your time: look for an explanation of consciousness, ask to know what feeling is. (Nanavira Thera) |
|
Back to top |
|
|
Thaidog Veteran
Joined: 19 May 2004 Posts: 1053
|
Posted: Thu Jan 04, 2007 5:52 pm Post subject: |
|
|
Doe John wrote: | Did you ran "alsaconf"? |
Yes I did. |
|
Back to top |
|
|
net-0 Tux's lil' helper
Joined: 04 Dec 2006 Posts: 103 Location: Lodi, California
|
Posted: Thu Jan 04, 2007 9:08 pm Post subject: |
|
|
Hmm I was getting trouble with mine, but it was because I was trying to do both.
Your building alsa into the kernel so you can't use the module... try using the module.
http://www.gentoo.org/doc/en/alsa-guide.xml
Good luck, not sure it's helpful or not... helped me _________________ We built this city on swedish melodic death metal. |
|
Back to top |
|
|
valkyrite Apprentice
Joined: 19 Sep 2002 Posts: 241
|
Posted: Fri Jan 05, 2007 12:59 am Post subject: |
|
|
Using alsa provided with the kernel is more stable IMHO.
Enable alsa option in the kernel (choose yes).
Enable all other options under sound as modules.
Disable OSS.
You may enable ALSA OSS emulation.
enable support in the kernel for auto-loading modules.
reboot.
issue the command: lsmod
are snd modules listed.
issue the command:
/etc/init.d/alsasound start
post the error you get.
also post the last few lines that are output from dmesg. |
|
Back to top |
|
|
mpicklesimer n00b
Joined: 22 Mar 2006 Posts: 59 Location: Boston, MA
|
Posted: Fri Jan 05, 2007 2:41 pm Post subject: |
|
|
This is stupid, I know, but I have to ask cuz I forgot to do it a few weeks ago myself. Did you make sure to add your user to the audio group? I'm not trying to insult your intelligence, but even after more than a year of installing Gentoo on various systems, I wasted 3+ hours troubleshooting my audio because I forgot to do that. _________________ My rigs:
Intel 2.4GHz, 1GB (Firewall/NAT Router, OpenBSD)
AthlonMP 2400+, 2GB, GF2 MX (File Server, Gentoo)
Athlon64 4400+, 2GB, GF7800 (Gaming Rig, XP Pro, Vista & Kubuntu)
Intel 1.8GHz C2D, 2GB, GF7600 (Portable Gaming Rig, Kubuntu) |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Fri Jan 05, 2007 6:03 pm Post subject: |
|
|
Moved from Installing Gentoo to Multimedia.
Sound problem, so moved here. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
Thaidog Veteran
Joined: 19 May 2004 Posts: 1053
|
Posted: Fri Jan 05, 2007 7:59 pm Post subject: |
|
|
mpicklesimer wrote: | This is stupid, I know, but I have to ask cuz I forgot to do it a few weeks ago myself. Did you make sure to add your user to the audio group? I'm not trying to insult your intelligence, but even after more than a year of installing Gentoo on various systems, I wasted 3+ hours troubleshooting my audio because I forgot to do that. |
Yeap. I did add the user account. |
|
Back to top |
|
|
Thaidog Veteran
Joined: 19 May 2004 Posts: 1053
|
Posted: Fri Jan 05, 2007 8:00 pm Post subject: |
|
|
valkyrite wrote: |
enable support in the kernel for auto-loading modules.
. |
If it's built in to the kernel like mine is why would you need to load the module? |
|
Back to top |
|
|
Thaidog Veteran
Joined: 19 May 2004 Posts: 1053
|
Posted: Fri Jan 05, 2007 8:02 pm Post subject: |
|
|
valkyrite wrote: |
issue the command: lsmod
. |
dule Size Used by
snd_seq_midi 5344 0
snd_emu10k1_synth 4800 0
snd_emux_synth 23232 1 snd_emu10k1_synth
snd_seq_virmidi 4320 1 snd_emux_synth
snd_seq_midi_emul 3680 1 snd_emux_synth
snd_pcm_oss 29312 0
snd_mixer_oss 11776 2 snd_pcm_oss
snd_seq_oss 21792 0
snd_seq_midi_event 3648 3 snd_seq_midi,snd_seq_virmidi,snd_seq_oss
snd_seq 31696 8 snd_seq_midi,snd_emux_synth,snd_seq_virmidi,snd_seq_midi_emul,snd_seq_oss,snd_seq_midi_event
floppy 44100 0
rtc 8628 0
nvidia 6428884 32
snd_emu10k1 81824 2 snd_emu10k1_synth
snd_rawmidi 14240 3 snd_seq_midi,snd_seq_virmidi,snd_emu10k1
snd_ac97_codec 63424 1 snd_emu10k1
snd_ac97_bus 1280 1 snd_ac97_codec
snd_pcm 41924 3 snd_pcm_oss,snd_emu10k1,snd_ac97_codec
snd_seq_device 4396 7 snd_seq_midi,snd_emu10k1_synth,snd_emux_synth,snd_seq_oss,snd_seq,snd_emu10k1,snd_rawmidi
snd_timer 14180 3 snd_seq,snd_emu10k1,snd_pcm
snd_page_alloc 6120 2 snd_emu10k1,snd_pcm
snd_util_mem 1888 2 snd_emux_synth,snd_emu10k1
mptfc 10500 0
mptscsih 13888 1 mptfc
mptbase 36192 2 mptfc,mptscsih
snd_hwdep 5892 2 snd_emux_synth,snd_emu10k1
snd 29188 13 snd_emux_synth,snd_seq_virmidi,snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_emu10k1,snd_rawmidi,snd_ac97_codec,snd_pcm,snd_seq_device,snd_timer,snd_hwdep
scsi_transport_fc 18720 1 mptfc
soundcore 4704 2 snd |
|
Back to top |
|
|
mirojira l33t
Joined: 18 Feb 2006 Posts: 685
|
Posted: Fri Jan 05, 2007 9:01 pm Post subject: |
|
|
You could test your alsa using command Code: | cat /dev/urandom > /dev/dsp |
|
|
Back to top |
|
|
valkyrite Apprentice
Joined: 19 Sep 2002 Posts: 241
|
Posted: Fri Jan 05, 2007 10:14 pm Post subject: |
|
|
what is the error you get, when you issue the following command
/etc/init.d/alsasound restart |
|
Back to top |
|
|
Thaidog Veteran
Joined: 19 May 2004 Posts: 1053
|
Posted: Fri Jan 05, 2007 10:48 pm Post subject: |
|
|
valkyrite wrote: | what is the error you get, when you issue the following command
/etc/init.d/alsasound restart |
I'm not getting an error. In fact I just found out that my headset which plugs in via usb is playing sound but my regualr speakers connected via my Audigy ZS2 card is not playing sound.
I guess I should mention that the card plays fine under SuSE and Fedora.... so I'm guessing with all this going on that it's some kind of configuration error.
Here is the output:
Station-LV426 tylerm # /etc/init.d/alsasound restart
* WARNING: you are stopping a boot service.
* Storing ALSA Mixer Levels ... [ ok ]
* Unloading ALSA ... [ ok ]
* Unloading ALSA modules ... [ ok ]
* Loading ALSA modules ...
* Loading: snd-card-0 ... [ ok ]
* Loading: snd-seq-oss ... [ ok ]
* Loading: snd-pcm-oss ... [ ok ]
* Loading: snd-emu10k1-synth ... [ ok ]
* Loading: snd-seq-midi ... [ ok ]
* Restoring Mixer Levels ... [ ok ]
Station-LV426 tylerm # |
|
Back to top |
|
|
mirojira l33t
Joined: 18 Feb 2006 Posts: 685
|
Posted: Sat Jan 06, 2007 8:40 am Post subject: |
|
|
And what about Code: | cat /dev/urandom > /dev/dsp | ?
Did you hear some noise? If yes, your problem is probably desktop or sound application related. You can use command aswell. |
|
Back to top |
|
|
Thaidog Veteran
Joined: 19 May 2004 Posts: 1053
|
Posted: Sat Jan 06, 2007 6:45 pm Post subject: |
|
|
mirojira wrote: | And what about Code: | cat /dev/urandom > /dev/dsp | ?
Did you hear some noise? If yes, your problem is probably desktop or sound application related. You can use command aswell. |
I did not hear any noise.
\the output from speafer-test looks ok but no sound:
Station-LV426 tylerm # speaker-test
speaker-test 1.0.13
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 128 to 32768
Period size range from 32 to 32768
Using max buffer size 32768
Periods = 4
was set period_size = 8192
was set buffer_size = 32768
0 - Front Left
Time per period = 2.220608
0 - Front Left
Time per period = 2.901989
0 - Front Left
Time per period = 2.902000
0 - Front Left
Time per period = 2.902000
0 - Front Left
Time per period = 2.902000
0 - Front Left
Time per period = 2.901999
0 - Front Left
Time per period = 2.901999
...etc |
|
Back to top |
|
|
mirojira l33t
Joined: 18 Feb 2006 Posts: 685
|
Posted: Sat Jan 06, 2007 9:15 pm Post subject: |
|
|
My last suggestion. Could you reboot and not start X-session? After that make sure that alsamixer is unmuted ( Master and PCM ) and run speaker-test ?
I am realy curious. |
|
Back to top |
|
|
Thaidog Veteran
Joined: 19 May 2004 Posts: 1053
|
Posted: Sat Jan 06, 2007 10:07 pm Post subject: |
|
|
mirojira wrote: | My last suggestion. Could you reboot and not start X-session? After that make sure that alsamixer is unmuted ( Master and PCM ) and run speaker-test ?
I am realy curious. |
Same thing. Alsa does find the usb headset. All sound is playing fine out of it. (DVD's, mp3's...etc)
Is there an eslect operation that can choose the alsa output? |
|
Back to top |
|
|
|