Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HELP! - Newbie Needs Sound
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
mikelarry
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2005
Posts: 95
Location: Milwaukee, WI

PostPosted: Wed Feb 09, 2005 1:01 am    Post subject: HELP! - Newbie Needs Sound Reply with quote

I built my Dell Laptop kernel using genkernel --menuconfig all. Emerged KDE. Emerged alsa-lib alsa-oss alsa-utils. I have everything working properly but I can't seem to get my sound working. It seems the modules are loaded.

Can anyone help me --thanx in advance.


lsmod output:

snd_pcm_oss 46756 0
snd_mixer_oss 16256 1 snd_pcm_oss
parport_pc 28612 0
parport 30408 1 parport_pc
3c59x 34216 0
nvidia 3461340 14
snd_intel8x0 26656 0
snd_ac97_codec 65888 1 snd_intel8x0
snd_pcm 77960 3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
snd_timer 19460 1 snd_pcm
snd 44004 6 snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
snd_page_alloc 7428 2 snd_intel8x0,snd_pcm
intel_agp 18460 1
agpgart 26920 2 intel_agp
dm_mod 50812 0
sbp2 20232 0
ohci1394 28676 0
ieee1394 87732 2 sbp2,ohci1394
ohci_hcd 18696 0
uhci_hcd 28688 0
usb_storage 27136 0
usbhid 28864 0
ehci_hcd 26372 0
usbcore 97016 6 ohci_hcd,uhci_hcd,usb_storage,usbhid,ehci_hcd
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Wed Feb 09, 2005 1:17 am    Post subject: Reply with quote

Which kernel are you using?

Please post
Code:
uname -a
Back to top
View user's profile Send private message
transient
l33t
l33t


Joined: 13 Jan 2005
Posts: 759

PostPosted: Wed Feb 09, 2005 2:26 am    Post subject: Reply with quote

Ok, stupid question follows to get the simple stuff out of the way first :P
Have you unmuted your Master, PCM and other channels in
Code:
alsamixer


Make sure that you unmute all channels in alsamixer.
If you have, take a look in /proc/asound.
There should be a file called either cards or devices in there. Post the output of it here.
Back to top
View user's profile Send private message
mikelarry
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2005
Posts: 95
Location: Milwaukee, WI

PostPosted: Wed Feb 09, 2005 2:48 am    Post subject: Reply with quote

bash-2.05b# uname -a

Linux bslaptop01 2.6.10-gentoo-r6 #1 Thu Feb 3 17:36:14 CST 2005 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
mikelarry
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2005
Posts: 95
Location: Milwaukee, WI

PostPosted: Wed Feb 09, 2005 2:57 am    Post subject: Reply with quote

tombst0ne wrote:
Ok, stupid question follows to get the simple stuff out of the way first :P
Have you unmuted your Master, PCM and other channels in
Code:
alsamixer


Make sure that you unmute all channels in alsamixer.
If you have, take a look in /proc/asound.
There should be a file called either cards or devices in there. Post the output of it here.



bash-2.05b# pwd
/proc/asound
bash-2.05b# ls
I82801CAICH3 card0 cards devices modules oss pcm seq timers version
bash-2.05b# more cards
0 [I82801CAICH3 ]: ICH - Intel 82801CA-ICH3
Intel 82801CA-ICH3 with CS4205 at 0xd800, irq 5
bash-2.05b# more devices
0: [0- 0]: ctl
25: [0- 1]: digital audio capture
16: [0- 0]: digital audio playback
24: [0- 0]: digital audio capture
33: : timer
bash-2.05b#
Back to top
View user's profile Send private message
transient
l33t
l33t


Joined: 13 Jan 2005
Posts: 759

PostPosted: Wed Feb 09, 2005 3:16 am    Post subject: Reply with quote

Excellent, that means that ALSA has correctly detected your sound cards.
This means that the problem must lie with either the mixer settings, or the application settings of whatever apps you used.
It could also ofcourse be the oh-so-frequent "speaker not plugged in error", but mabye not :P
Back to top
View user's profile Send private message
mikelarry
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2005
Posts: 95
Location: Milwaukee, WI

PostPosted: Wed Feb 09, 2005 4:41 am    Post subject: Reply with quote

tombst0ne wrote:
Excellent, that means that ALSA has correctly detected your sound cards.
This means that the problem must lie with either the mixer settings, or the application settings of whatever apps you used.
It could also ofcourse be the oh-so-frequent "speaker not plugged in error", but mabye not :P


Great...I just had a few settings wrong. Ok last question I used alsamixer to modify everything and after I close it it looses its settings. How can I set a static configuration?

Thanks again
Back to top
View user's profile Send private message
transient
l33t
l33t


Joined: 13 Jan 2005
Posts: 759

PostPosted: Wed Feb 09, 2005 4:46 am    Post subject: Reply with quote

Well seeing as youve emerged alsa-utils, you can keep the mixer state by adding the alsasound service to either your boot or default runlevels. Once you do that, the state of the mixer will be saved on exit, and restored on startup.
To start it without a reboot, do the following:
Code:
rc-update add alsasound default && /etc/init.d/alsasound start
Back to top
View user's profile Send private message
mikelarry
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2005
Posts: 95
Location: Milwaukee, WI

PostPosted: Wed Feb 09, 2005 5:21 am    Post subject: Reply with quote

Perfect!

Ok this is really the last question. Sound is working good (CDs, DVDs, Apps) however KDE doesn't seem to be playing any sounds.

I tried >>Control Center>Sound&Multimedia>Sound System and ran Test Sound. That works fine. Ran Test MIDI and that didn't do anything. I know from past distros that I've played with that KDE plays a login sound and event sounds. Is there something I'm missing? When I ran emerge KDEblahblah should I have had my USE set to alsa?

I appreciate your patients and all the help... I just switch from fedora an I'm really liking gentoo --just need though this growing pains!
Back to top
View user's profile Send private message
transient
l33t
l33t


Joined: 13 Jan 2005
Posts: 759

PostPosted: Wed Feb 09, 2005 5:30 am    Post subject: Reply with quote

MIDI wont work unless you have a MIDI synth on your system.
Theres a couple of choices here, your card may have one itself, though I doubt it, or you can emerge the software MIDI synth, timidity++. If you use timidity, make sure to also emerge the patches for it that will actually give you some decent sounds.
Back to top
View user's profile Send private message
mikelarry
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2005
Posts: 95
Location: Milwaukee, WI

PostPosted: Thu Feb 10, 2005 12:59 am    Post subject: Reply with quote

transient wrote:
MIDI wont work unless you have a MIDI synth on your system.
Theres a couple of choices here, your card may have one itself, though I doubt it, or you can emerge the software MIDI synth, timidity++. If you use timidity, make sure to also emerge the patches for it that will actually give you some decent sounds.



Which patch set do you recommend?

timidity-eawpatches
-or-
timidity-shompatches

or both?

thanks
Back to top
View user's profile Send private message
erickfour
n00b
n00b


Joined: 16 Dec 2004
Posts: 32
Location: christchurch, NZ

PostPosted: Thu Feb 10, 2005 10:21 pm    Post subject: Reply with quote

Quote:
Excellent, that means that ALSA has correctly detected your sound cards.


is this really sufficient for everything to be working correctly? this is what mine looks like...

Code:

[/proc/asound]# cat cards
0 [ICH5           ]: ICH4 - Intel ICH5
                     Intel ICH5 with AD1985 at 0xfebff800, irq 17
1 [AudioPCI       ]: ENS1371 - Ensoniq AudioPCI
                     Ensoniq AudioPCI ENS1371 at 0xbc00, irq 19
[/proc/asound]# cat devices
  1:       : sequencer
  0: [0- 0]: ctl
 20: [0- 4]: digital audio playback
 27: [0- 3]: digital audio capture
 26: [0- 2]: digital audio capture
 25: [0- 1]: digital audio capture
 16: [0- 0]: digital audio playback
 24: [0- 0]: digital audio capture
 33:       : timer
 32: [1- 0]: ctl
 40: [1- 0]: raw midi
 49: [1- 1]: digital audio playback
 48: [1- 0]: digital audio playback
 56: [1- 0]: digital audio capture


also

Code:
[~]# lsmod
Module                  Size  Used by
snd_seq_midi            7584  0
snd_ens1371            20388  0
snd_rawmidi            21280  2 snd_seq_midi,snd_ens1371
nvidia               3466268  12
e100                   33536  0


but still no sound, and yes, the headphones are plugged in.

i must confess i'm using the kernel modules and not the ones in alsa-drivers... but it doesn't seem that this should matter.

thanks,

e
Back to top
View user's profile Send private message
transient
l33t
l33t


Joined: 13 Jan 2005
Posts: 759

PostPosted: Thu Feb 10, 2005 10:52 pm    Post subject: Reply with quote

erickfour wrote:
Quote:
Excellent, that means that ALSA has correctly detected your sound cards.


is this really sufficient for everything to be working correctly? this is what mine looks like...

Code:

[/proc/asound]# cat cards
0 [ICH5           ]: ICH4 - Intel ICH5
                     Intel ICH5 with AD1985 at 0xfebff800, irq 17
1 [AudioPCI       ]: ENS1371 - Ensoniq AudioPCI
                     Ensoniq AudioPCI ENS1371 at 0xbc00, irq 19
[/proc/asound]# cat devices
  1:       : sequencer
  0: [0- 0]: ctl
 20: [0- 4]: digital audio playback
 27: [0- 3]: digital audio capture
 26: [0- 2]: digital audio capture
 25: [0- 1]: digital audio capture
 16: [0- 0]: digital audio playback
 24: [0- 0]: digital audio capture
 33:       : timer
 32: [1- 0]: ctl
 40: [1- 0]: raw midi
 49: [1- 1]: digital audio playback
 48: [1- 0]: digital audio playback
 56: [1- 0]: digital audio capture


also

Code:
[~]# lsmod
Module                  Size  Used by
snd_seq_midi            7584  0
snd_ens1371            20388  0
snd_rawmidi            21280  2 snd_seq_midi,snd_ens1371
nvidia               3466268  12
e100                   33536  0


but still no sound, and yes, the headphones are plugged in.

i must confess i'm using the kernel modules and not the ones in alsa-drivers... but it doesn't seem that this should matter.

thanks,

e

I see that ALSA thinks you have 2 sound cards. This means that you will have 2 playback devices, hw:0,0 and hw:1,0.
Try telling your apps to use the hw:1,0 device to play sound through and see if that helps at all.
Back to top
View user's profile Send private message
erickfour
n00b
n00b


Joined: 16 Dec 2004
Posts: 32
Location: christchurch, NZ

PostPosted: Wed Feb 16, 2005 12:02 am    Post subject: whoop Reply with quote

* ahem. *

so i'm officially an idiot. i just replaced the motherboard and didn't realize that it had an onboard soundcard. and of course the default was to play through that one.

it works great, tho i've never had great luck with dcd.


thanks, transient.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum