View previous topic :: View next topic |
Author |
Message |
knapp n00b
Joined: 06 Jan 2005 Posts: 21
|
Posted: Mon Jan 10, 2005 4:29 pm Post subject: No sound. |
|
|
I can't get sound working on my laptop, I really don't care what sound (oss or alsa). I have no idea what im doing, im complete noob. Where can I begin. I followed gentoo documentation for alsa and did it exactly and I can't get anything working. When the computer boots and alsa tries to load it says 'cannot load necessary drivers'. Thanks. |
|
Back to top |
|
|
DarkMatter Tux's lil' helper
Joined: 10 Dec 2004 Posts: 86 Location: Phoenix, AZ
|
Posted: Mon Jan 10, 2005 5:05 pm Post subject: |
|
|
What model of laptop do you have and what kernel version are you using? |
|
Back to top |
|
|
knapp n00b
Joined: 06 Jan 2005 Posts: 21
|
Posted: Mon Jan 10, 2005 6:07 pm Post subject: |
|
|
Laptop = Dell 8200. Kernel = 3.6.9-r13 I believe. The latest. |
|
Back to top |
|
|
DarkMatter Tux's lil' helper
Joined: 10 Dec 2004 Posts: 86 Location: Phoenix, AZ
|
Posted: Mon Jan 10, 2005 6:22 pm Post subject: |
|
|
Your /etc/modules.d/alsa file should look like this:
Code: | # ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
## ALSA portion
alias snd-card-0 snd-intel8x0
## alias snd-card-1 snd-ens1371
## OSS/Free portion
alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##
# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
## OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
# Set this to the correct number of cards.
options snd cards_limit=1 |
Obviously the commented lines are unnecessary.
After changing that run:
This should work if you've already installed alsa correctly. |
|
Back to top |
|
|
knapp n00b
Joined: 06 Jan 2005 Posts: 21
|
Posted: Mon Jan 10, 2005 10:44 pm Post subject: |
|
|
I did what you said, it did have something different in there under alsa and oss. I changed it and I get this:
Code: | bash-2.05b# /etc/init.d/alsasound start
* Loading ALSA modules...
* Could not detect custom ALSA settings. Loading all detected alsa drivers.
* Unable to find any ALSA drivers. Have you compiled alsa-drivers correctly?
* ERROR: Failed to load necessary drivers [ ok ]
* Restoring Mixer Levels...
* No mixer config in /etc/asound.state, you have to unmute your card! |
|
|
Back to top |
|
|
penguinbrat n00b
Joined: 06 Jan 2005 Posts: 19
|
Posted: Mon Jan 10, 2005 11:11 pm Post subject: |
|
|
Try re-emerging the sound drivers... Make sure that "ALSA_CARDS=intel8x0" is in your /etc/make.conf and then `emerge alsa-drivers` and then `/etc/init.d/alsasound restart` |
|
Back to top |
|
|
DarkMatter Tux's lil' helper
Joined: 10 Dec 2004 Posts: 86 Location: Phoenix, AZ
|
Posted: Mon Jan 10, 2005 11:16 pm Post subject: |
|
|
Have you turned off OSS support in the kernel? |
|
Back to top |
|
|
knapp n00b
Joined: 06 Jan 2005 Posts: 21
|
Posted: Mon Jan 10, 2005 11:18 pm Post subject: |
|
|
I removed oss from make.conf if thats what you mean. |
|
Back to top |
|
|
knapp n00b
Joined: 06 Jan 2005 Posts: 21
|
Posted: Mon Jan 10, 2005 11:25 pm Post subject: |
|
|
I get this when I do `emerge alsa-driver` (after su):
Code: | * ALSA is already compiled into the kernel.
* Please check to make sure these options are set correctly.
* Once you have satisfied these options, please try merging
* this package again.
!!! ERROR: media-sound/alsa-driver-1.0.7-r4 failed.
!!! Function check_extra_config, Line 432, Exitcode 0
!!! Incorrect kernel configuration options
!!! If you need support, post the topmost build error, NOT this status message. |
|
|
Back to top |
|
|
penguinbrat n00b
Joined: 06 Jan 2005 Posts: 19
|
Posted: Mon Jan 10, 2005 11:44 pm Post subject: |
|
|
That is probably what your problem is - alsa likes to be modularized (at least in my experience). You will have to re-configure your kernel and make sure that EVERYTHING invollved with sound is setup to be compiled as a module and not static like it is now, this includes the initial sound-core option.... |
|
Back to top |
|
|
DarkMatter Tux's lil' helper
Joined: 10 Dec 2004 Posts: 86 Location: Phoenix, AZ
|
Posted: Mon Jan 10, 2005 11:45 pm Post subject: |
|
|
You might want to try explicitly disabling OSS with the -oss use flag and make sure that you have the alsa use flag set. Try re-building the kernel using Code: | genkernel --menuconfig all | Use the menu to make sure that ALSA is being compiled into the kernel and OSS is not. |
|
Back to top |
|
|
knapp n00b
Joined: 06 Jan 2005 Posts: 21
|
Posted: Mon Jan 10, 2005 11:52 pm Post subject: |
|
|
I followed this guide from linux-laptops: http://linux.siprell.com/hardware.htm#sound
When I get to the
Code: | emerge -i media-sound/alsa-driver-1.0.3 |
part it says its already installed. Apperently I've installed it. I think i've messed up bad. |
|
Back to top |
|
|
penguinbrat n00b
Joined: 06 Jan 2005 Posts: 19
|
Posted: Mon Jan 10, 2005 11:55 pm Post subject: |
|
|
You haven't messed anything up...
1) make sure that everything for the sound is compiled as a module....
2) emerge alsa-drivers
\_ what you were "trying" to emerge is 1) and old version, we are up to 1.07, and 2) just "emerge alsa-drivers" will "re-emerge" them... |
|
Back to top |
|
|
knapp n00b
Joined: 06 Jan 2005 Posts: 21
|
Posted: Tue Jan 11, 2005 12:00 am Post subject: |
|
|
This is what I am getting:
Code: | bash-2.05b# emerge alsa-drivers
Calculating dependencies
emerge: there are no ebuilds to satisfy "alsa-drivers".
bash-2.05b# emerge alsa-driver
Calculating dependencies ...done!
>>> emerge (1 of 1) media-sound/alsa-driver-1.0.7-r4 to /
>>> md5 src_uri ;-) alsa-driver-1.0.7.tar.bz2
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found sources for kernel version:
* 2.6.9-gentoo-r13
* Checking for suitable kernel configuration options
* ALSA is already compiled into the kernel.
* Please check to make sure these options are set correctly.
* Once you have satisfied these options, please try merging
* this package again.
!!! ERROR: media-sound/alsa-driver-1.0.7-r4 failed.
!!! Function check_extra_config, Line 432, Exitcode 0
!!! Incorrect kernel configuration options
!!! If you need support, post the topmost build error, NOT this status message. |
|
|
Back to top |
|
|
DarkMatter Tux's lil' helper
Joined: 10 Dec 2004 Posts: 86 Location: Phoenix, AZ
|
Posted: Tue Jan 11, 2005 12:04 am Post subject: |
|
|
The emerge -i option just makes portage think that the package is installed without it actually being installed. Having alsa-drivers installed won't hurt anything, in fact the handbook even recommends it since they are usually newer than the ones that come with the kernel.
If I were you, the steps I would take to debug this problem would be to unmerge the alsa-drivers and recompile the kernel with the genkernel command I gave you before to make sure that alsa is being compiled and oss is not. If this works then try to emerge alsa-drivers. |
|
Back to top |
|
|
penguinbrat n00b
Joined: 06 Jan 2005 Posts: 19
|
Posted: Tue Jan 11, 2005 12:09 am Post subject: |
|
|
I just did a sanity check, to make sure I'm telling you right... The sound card drivers are compiled directly into your kernel, they are not compiled as modules which is what is required to emerge the alsa-driver. All that needs to be done is making sure that "Sound Card Support" is marked with an 'M' and not a '*'. You will need to recompile the kernel after everything is said and done, but as soon as you reconfigure the kernel you will be able to re-install the alsa-driver. You just obvisouly wouldn't be able to use the modules untill you compile,install and boot off the new kernel... |
|
Back to top |
|
|
DarkMatter Tux's lil' helper
Joined: 10 Dec 2004 Posts: 86 Location: Phoenix, AZ
|
Posted: Tue Jan 11, 2005 12:19 am Post subject: |
|
|
I concur |
|
Back to top |
|
|
knapp n00b
Joined: 06 Jan 2005 Posts: 21
|
Posted: Wed Jan 12, 2005 12:51 am Post subject: |
|
|
Thanks guys, this worked exactly.
I did genkernel --menuconfig all
made 'Open Sound System' 'm' instead of '*'
once it was done I did emerge alsa-driver and rebooted and walla. Thank you again. |
|
Back to top |
|
|
|