LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-11-2004, 03:12 PM   #16
dhbiker
Member
 
Registered: Dec 2003
Location: Bristol
Distribution: Slackware 10.2
Posts: 196

Rep: Reputation: 30

no luck alsa is the biggest piece of **** ever how hard can it be to set up a ******* soundcard!?!

oneandoneis2 Its unlikely that its anything wrong as such with the kernel, most likely you've left out some vital options from the configuration. if you want to give me a list of all your hardware I'll make a .conf for you if you want?
 
Old 04-11-2004, 03:46 PM   #17
dhbiker
Member
 
Registered: Dec 2003
Location: Bristol
Distribution: Slackware 10.2
Posts: 196

Rep: Reputation: 30
GET IN!!! Alsa is working now, turns out that it couldn't handle having my soundcard driver as part of the kernel , changed it to a module and it works fine
 
Old 04-11-2004, 05:04 PM   #18
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Original Poster
Rep: Reputation: 48
Well, I'm glad SOMEBODY's gotten sound working as a result of this thread

Any ideas on what option I've removed that needs to go in would be great - I'm using:
MoBo: Asus A7N8X Deluxe WITH BUILT IN SOUND CARD
CPU: Athlon XP2500+ Barton
RAM: Crucial 512MB PC3200
Graphics: MSI MX440 8X AGP
2X IDE CD-ROMS
2x IDE HDs
Built-in ethernet port connected to ADSL router
Oh, and I plug my Palm PDA in from time to time

Everything is working fine other than the sound..

Cheers!
 
Old 04-11-2004, 07:48 PM   #19
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
I just went through this today... Nearly the same.
First off when you installed Slack with a generic kernel from the cd it's config file is located in the /boot area. Copy it to a new name i.e. config.orig. DO NOT copy it to the source dir (/usr/src/linux) until AFTER you have 'make mrproper'. Once you have done 'mrproper' # cp /boot/config /usr/src/linux/.config . After 'make oldconfig - make dep - make clean' Then do which ever configure option you wish. Why??? well mrproper wipes the slate clean that includes any 'old' configure files. Now if you have read the HOWTOs, mans and what-nots all this is explained. You should have on hand a dmesg printed output, a lsmod printed output as well as a book or slacks site up... DO NOTE the Slackware website book install a kernel is NOT complete, There are other steps NOT listed at the slack site that ARE REQUIRED..

When you configure the kernel AND if you plan to use alsa drivers you must NOT install your card via the kernel ONLY (y) for sound support AND you should have read the alsa HOWTO so that you know what your cards chip types are so that you can (y) support for them...
What happens when you finish and install the kernel mods 'make module_install' ?? It will wipe the /lib/modules/ <kernel #>/' out completely. Including any third party drivers. Once you have a working kertnel mount the slackware9.1 cd disk 1. cd to the cdrom/slackware/l then installpkg alsa* once done cd /, alsaconf and tada you are noisy again.

Now as far as getting back to a working kernel. IF you followed the above steps all that you need to do is copy the /boot/config file to the source as .config as explained above and 'make dep - make clean - make bzImage - make modules - make modules_install - cp System.map /boot - cp /usr/src/linux/arch/1386/boot/bzImage /boot/vmlinuz - edit lilo.conf for correctness - /sbin/lilo - reboot - load correct kernal as you named in the lilo.conf - check out dmesg | less - mount the slack9.1 cd - installpkg /slackware/l/alsa* - alsaconf - alsamixer and away you should go....

Now if all that fails ya there are kernels located on the slack9.1 cd in the kernel directory with instructions on makin yourself a bare.i boot disk that you can use loadlin on a dos disk to boot your system to get it back to a working state. The kernel directories found on the slack disk also contain a config file for each one... But you still have to know your hardware!!!! also you should read the help as you are configuring the kernel """ when in doubt click (YES)"""....

I hope this helps. It is a fast summary of many sites, books and HOWTOs...

NOTE I like the BSD way better... It is a whole lot easier to hack two files and make world - reboot. no gui junk and a whole lot less hassle. I can CUSTOM.kern a bsdbox in about an hour topps. I spent half a day on my slack box and then some....
 
Old 04-12-2004, 04:51 AM   #20
dhbiker
Member
 
Registered: Dec 2003
Location: Bristol
Distribution: Slackware 10.2
Posts: 196

Rep: Reputation: 30
f*** I powered up this morning and no sound re-ran alsaconf and I have sound again, I don't want to have to re-run alsaconf everytime I reboot - what do I need to do!?
 
Old 04-12-2004, 06:38 AM   #21
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
Ok....
First; there is http://alsa-project.org/ for the full docs....

Second; Did you compile your kernel with your sound card built in?? The quick and dirty way to check this is to go to your kernel source directory and check the .config file 'sound' section at about line #858. Hre you see what you did when you configed your kernel. The very first line is the ONLY line that should be (y) ie- CONFIG_SOUND=y. Also in the alsa HOWTOs it gives card types and chip set IDs. This should be identified in your kernel as (m) ie- (in my box) CONFIG_SOUND_UART6850=m. That about covers that. why? Because if you have ---- CONFIG_SOUND_* your sound card *=y, CONFIG_SOUND_OSS=y or any other yes answered in the sound section THEN at each boot these load and take over from alsa. NOTE= Rebuild your kernel.

Third; Did you after running alsamixer issue the cmd "alsactl store"? This command writes the /etc/asound.state that loads when you boot to set the alsa drivers default state. How about the /etc/rc.d/rc.alsa??? Is it set to 755 permissions?? Is it there. As you can see it loads the alsa modules to the kernel AND IF your kernel has built in sound cards AND the associated what-nots THEN alsa fails to load AS it will be written in the system log files...

Final; When all else fails "put Slackware 9.1 cd disk one in the cd drive, reboot, follow the instructions to reinstall slack and start your learning process all over again". That should really solve it.... IMO

Linux and the GNU OS is NOT a windows box (think goodness). It will be only as 'smart' as you make it and without all the bloat...
 
Old 04-12-2004, 07:14 AM   #22
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Original Poster
Rep: Reputation: 48
Nichole, I think I love you!

I have finally compiled a working kernel, and alsa has been sucessfully re-established.

I have sound again!! Woohoo!!!!!!!



Thank you very much!
 
Old 04-12-2004, 07:47 AM   #23
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
Glad to have help.... I went through this whole thingy myself and learned a great deal..... My next great adventure in the linux kernel is a full netfilter configure... slash/hack/build....
 
Old 04-12-2004, 07:57 AM   #24
dhbiker
Member
 
Registered: Dec 2003
Location: Bristol
Distribution: Slackware 10.2
Posts: 196

Rep: Reputation: 30
Thanks Nichole! It turns out that in my excitement of getting alsa working last time I forgot to alsactl store how stupid do I feel
 
Old 05-01-2004, 04:15 AM   #25
nixel
Member
 
Registered: Apr 2004
Location: USA
Distribution: Slackware 9.1
Posts: 71

Rep: Reputation: 15
Quote:
Originally posted by nnsg
Hi there

5. Run "modprobe <you_snd_card_module>" to see if it works or not.

6. (if 5. success) Run "alsamixer" and "alsactl store" to store your mixer setting.

That's how I (a newbie) fix my sound problem... (google is your best friend) hope this can help.
finally got the sound working for via82xx sound! thanks to everyone in this forum. i feel so proud.
i have a question on alsactl store.
when i run it..does it automatically tell the linux to boot it up at start up after going multiuser?
 
Old 05-01-2004, 05:15 AM   #26
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
Quote:
i have a question on alsactl store.
when i run it..does it automatically tell the linux to boot it up at start up after going multiuser?
No - it means that when you run alsactl restore, it returns to the same state. If you add alsactl restore to the end of your boot-up script, this should fix it.
 
Old 05-01-2004, 12:01 PM   #27
nixel
Member
 
Registered: Apr 2004
Location: USA
Distribution: Slackware 9.1
Posts: 71

Rep: Reputation: 15
ok sound works fine but i see errors on boot up and i just cant leave it be..everything needs to be perfect. it happens when i go multi-user...heres the error:
Code:
Loading ALSA mixer settings:  /usr/sbin/alsactl restore
Loading OSS compatibility modules for ALSA
FATAL: Module snd_mixer_oss already in kernel
heres what i did. i put "/sbin/modprobe snd-via82xx" in my rc.modules file. then i put "/sbin/alsactl restore" in my rc.local file.
i recompiled twice looking for this option in both menuconfig and xconfig to look for snd_mixer_oss. how can i keep this error from happening? thanks in advance.

edit: heres my lsmod output.
Code:
Module                  Size  Used by
snd_pcm_oss            50052  1 
snd_mixer_oss          18112  1 snd_pcm_oss
snd_via82xx            22112  1 
snd_pcm                87680  2 snd_pcm_oss,snd_via82xx
snd_timer              22784  1 snd_pcm
snd_ac97_codec         62020  1 snd_via82xx
snd_page_alloc          9092  2 snd_via82xx,snd_pcm
snd_mpu401_uart         6208  1 snd_via82xx
snd_rawmidi            21376  1 snd_mpu401_uart
snd_seq_device          6852  1 snd_rawmidi
snd                    48836  9 snd_pcm_oss,snd_mixer_oss,snd_via82xx,snd_pcm,snd_timer,snd_ac97_codec,snd_mpu401_uart,snd_rawmidi,snd_seq_device
ide_scsi               14084  0 
agpgart                28744  0
i see snd_mixer_oss in there twice for some reason

Last edited by nixel; 05-01-2004 at 12:03 PM.
 
Old 05-01-2004, 03:42 PM   #28
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
This error means is that modprobe snd_mixer_oss is being called twice during the startup scripts. It seems that the second time is probably because alsactl is calling it. The first time is presumably when your soundcard module is loaded? I don't know for sure the details, but I am pretty sure that this error is safe to ignore. If someone can help you remove the error it would be great, but if not, I wouln't worry too much.

--edit--

Your snd_mixer_oss only appears once in lsmod - the first column is the important one, the last column is just telling you which modules are using each module.

Last edited by Muzzy; 05-01-2004 at 03:45 PM.
 
Old 05-01-2004, 08:17 PM   #29
nixel
Member
 
Registered: Apr 2004
Location: USA
Distribution: Slackware 9.1
Posts: 71

Rep: Reputation: 15
so i mustve compiled it into the kernel then? i could never find which option this is. does anyone know the CONFIG line for this?

thanks for all your help muzzy
 
Old 05-02-2004, 06:13 AM   #30
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
Sound kernels....

There is a difference in the 2.4.## to the 2.6.# kernel sound sections.

In the former alsa was not available to configure into the kernel with 2.6 you can, maybe, with limited success.
In the configure file under /usr/src/linux/.config alsa occupies the area between lines 987 and 1003. You can 'less' it and view what you complied in. below this section is oss and sound cards. As with the older kernels you should use either alsa drivers OR oss drivers NOT both as it would cause conflict.
From reading the many post here at the forum it is easy to gather that there is a problem with kernel 2.6.#, alsa and compiling it into the kernel. There is a large number of post where people have problems with this kernel and alsa. There are few successes written.
It would be suggested that using the 2.6.# kernel you continuse to compile alsa and related sound as modules since this seems to pose the least amount of issues...

There are other kernel "tips" related to using modules. The best one is use the (y) option to compile in only what is ab-so-lut-ly needed to make you machine run without the bells and whistles. Then for the bells and whistles make them (m) modules. This way you have a "bare" kernel to make a boot/rescue disk with just to get the box up in case you have issues...

Are configure yourself up a pusedo 'mirrioring raid' with several hard drives and if a box crashes take a drive and build another box.. I have 3 root drives...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lost all sound after compiling kernel 2.6.11 TimmyP Linux - Software 2 04-04-2005 02:55 PM
lost scroll wheel after kernel compile BeatRyder Linux - Software 3 11-12-2004 08:59 PM
ALSA lost after 2 kernel compile Krenn Slackware 2 07-20-2004 08:35 PM
lost sound after kernel reconfig rgarman Linux - Laptop and Netbook 3 05-18-2004 12:13 PM
Lost sound after updating to kernel 2.6.0.1 Eric_Z Mandriva 25 05-16-2004 03:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration