SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If you compiled your own kernel then you will need to recompile the alsa drivers for your kernel. Get the alsa-driver source from a Slackware mirror and simply run the alsa-driver.SlackBuild script in the directory. It will create a Slackware package in your /tmp directory that you can install.
In your first message you say that you compiled the 2.4.26 kernel. Did you actually compile it yourself or did you download a Slackware package of kernel 2.4.26? If you actually compiled it yourself then you have to compile the alsa drivers to match your exact kernel.
To build your own alsa drivers go to your favorite Slackware mirror. I'm assuming you are running 9.1. Go into the slackware-9.1 directory and into the patches/source subdirectory. Download the alsa-driver directory to your box. Now on your box go into the alsa-driver directory you downloaded and edit the alsa-driver.SlackBuild package. Look for the line that starts with KVERSION= at the top of the file. Change it to KVERSION=$(uname -r). Then, as root, type 'sh alasa-driver.SlackBuild', no quotes. That will create a package, alsa-driver-0.9.8-i486-2.tgz in /tmp. Use upgradepkg to upgrade your alsa then rerun /etc/rc.d/rc.alsa by simply typing it in at a command line as root and all should be well again.
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:
OK... Answer to common problem 101
When you build your kernel AND you are using alsa you MUST NOT compile the sound drivers into the kernel....
When you are in the kernel make *config you must answer (y) Enable Sound Support
ALL others must be (m) or (n) as required.....
Once you have made the kernel, installed it and the mods... THEN you must build alsa for that kernel. Download as explained above and cd to the untar-ed directory
./configure
make
make install
make clean
Once you have done this THEN
alsaconf (configure your sound card)
alsamixer (set your volumes)
alsaconf store (write /etc/asound)
Then once in X run your favorite mixer there.. i.e. aumixer
set your desired levels and save....
If all went well AND you have read the HOWTOs to help yourself - Things should be just PEACHIEE
I did that and everthing went fine.BUT there isn't the command alsaconf ? Why ? I started alsamixer and the sound card was selected and I unmuted the sounds,but there's no sound.Thanks
EDIT: I installed the packaga alsa-driver.tgz after compiling and make install of the source of ALSA.So now sound is running,but the sound icon in GNOME is showing that there isn't sound.When I click on it,it says Cannot Open mixer device /dev/sound/mixer . Isn't there a way to install alsaconf without installing two times the alsa package(one time from source,one time from package.Could this make some problems ?) ?
EDIT 2: I fixed everything!!! Thank you guys Cheers
Originally posted by Nichole_knc Looks like you compiled your sound card into the kernel.. Which is a nono for using alsa... go back a couple of post and read that one...
In my kernel compiling I copied the .config file from the original Slackware kernel source directory, /usr/src/linux-2.4.24, and copied it into my new 2.4.26 source directory. I then made the few tweaks I needed for my platform like support for 4 GB of memory and proper CPU selection. That's why I've never hit the problems others have with recompiling sound support. Hope this little nugget helps someone. Also, for kernel compiles I just followed the sticky at the top of this forum.
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:
Ok...
Did you do..
make oldconfig
prior to doing the make *config for your kernel????
As it is indicating above the pcm and mixer is complied into the kernel..
I would suggest cd -ing to the /usr/scr/<kernel> and having a look at the .config file with less..
at about line 1092 you reach the sound section... The only one that should have a (y) is the first one CONFIG_SOUND=y
any others listed here should be (m) i.e.
CONFIG_SOUND_<yoursoundcard>=m
CONFIG_SOUND_OSS=m
CONFIG_SOUND_ACI_MIXER=m
CONFIG_SOUND_VMIDI=m
CONFIG_SOUND_MSS=m
CONFIG_SOUND_<yoursoundcardchiptype> # from alsa HOWTOs
Depending on your card other settings may be required BUT only as (m)
Sorry, I meant my reply as a general post to help others see why mine worked and they were having issues. I realized after reading your posts that my methods were working because I was using the default Slackware kernel which configures sound correctly.
Originally posted by flyfishin In my kernel compiling I copied the .config file from the original Slackware kernel source directory, /usr/src/linux-2.4.24, and copied it into my new 2.4.26 source directory. I then made the few tweaks I needed for my platform like support for 4 GB of memory and proper CPU selection. That's why I've never hit the problems others have with recompiling sound support. Hope this little nugget helps someone. Also, for kernel compiles I just followed the sticky at the top of this forum.
i think ill just try to recompile 2.4.26 with the old .config file from 2.4.22.
does proper cpu selection make a BIG difference? and as far as swapping the .config files this will work for 2.4.22 -> 2.4.26 right?
Originally posted by nixel i think ill just try to recompile 2.4.26 with the old .config file from 2.4.22.
does proper cpu selection make a BIG difference? and as far as swapping the .config files this will work for 2.4.22 -> 2.4.26 right?
I used the config file from 2.4.24 since that is the most recent kernel in the patches for 9.1.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.