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.
Installed Slackware 10 with the bare.i kernel, and ALSA worked wonderfully with my SBlive (rev 10, if that matters). But i decided to recompile the kernel, folllowed the steps listed here, and now my sound is broken. Heres some info that will hopefully help you help me:
- did NOT build OSS EMU10k1 into the kernel (was compiled as a modules though)
Result from grep auido /proc/pci:
Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 10).
Result from strace -eopen alsamixer:
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libncurses.so.5", O_RDONLY) = 3
open("/usr/lib/libasound.so.2", O_RDONLY) = 3
open("/lib/tls/libm.so.6", O_RDONLY) = 3
open("/lib/tls/libdl.so.2", O_RDONLY) = 3
open("/lib/tls/libpthread.so.0", O_RDONLY) = 3
open("/lib/tls/libc.so.6", O_RDONLY) = 3
open("/usr/share/alsa/alsa.conf", O_RDONLY) = 3
open("/dev/snd/controlC0", O_RDONLY) = -1 ENODEV (No such device)
open("/dev/aloadC0", O_RDONLY) = -1 ENODEV (No such device)
open("/dev/snd/controlC0", O_RDWR) = -1 ENODEV (No such device)
open("/dev/snd/controlC0", O_RDONLY) = -1 ENODEV (No such device)
open("/dev/aloadC0", O_RDONLY) = -1 ENODEV (No such device)
open("/dev/snd/controlC0", O_RDWR) = -1 ENODEV (No such device)
alsamixer: function snd_ctl_open failed for default: No such device
Result from lsmod:
Module Size Used by Not tainted
soundcore 3428 0 (autoclean)
uhci 24252 0 (unused)
usbcore 58028 1 [uhci]
emu10k1-gp 1352 0 (unused)
gameport 1388 0 [emu10k1-gp]
ide-scsi 9136 0
3c509 10164 1
isa-pnp 29616 0 [3c509]
Sorry for the large post, i just wanted to give as much info as possible, if ive missed anything, please let me know, based on my limited understanding, slack10 comes with ALSA, so there is no need for me to compile it or anythign like that, and as i said it worked with the initial install.
It could be a few things I suppose. I'll tell what I do if your at all remotely interested... It will eliminate all these types of problems. I recompile my kernel all the time for some reason. I don't even bother with compiling anything into my kernel or modules even when it comes to sound. I just build the very top-most sound option into the kernel and leave the rest unchecked. Then I leave the source of 'alsa-driver-1.0.5a' unpacked in /usr/src..... After you build a new kernel, just:
Code:
cd ../alsa-driver-1.0.5a
./configure --with-cards=emu10k1 --with-sequencer=yes;make;make install
Your sound will just work then, period... After you've done that once and your rebuilding the same kernel version again, just cd into alsa-driver and type 'make install'. If you move to a new kernel version, do a 'make clean' and then repeat the above boxed in code..... Thats such a small package that it only takes 10 seconds or so to configure.... Doing it this way, your pkgtool directory listing stays intact.
Or you could just pull the slak-pak off of the 1st CD and put it somewhere on your hard drive and:
Code:
upgradepkg alsa-driver-1.0.5a-i486-2.tgz
That should do the same thing basically. If it won't upgrade because it says it's the same version, just rename the '2' to a '3'.... I don't know... What ever you want. It just sounds like some modules aren't getting loaded or you left something out during the kernel compile. I just save myself the hassel and let the alsa-driver package build all the necessary modules.... Takes all the guess work out of it...
As for:
Quote:
based on my limited understanding, slack10 comes with ALSA, so there is no need for me to compile it or anythign like that,
All the alsa-driver package is are the modules and startup script. When you recompiled your kernel, /lib/modules/2.4.26 got completely erased. So, yes, you have to make sure evrything is there again in order for it to work. And, like I say, the alsa-driver package will do all that for you... Good luck.
Originally posted by jong357 right... Have no idea what that is. Thats why I suggested letting alsa do it. Mine looks about the same as yours.
OK, since jong seconded my motion
It is obvious OSS and ALSA are fighting for control. There are MANY ways of solving this... I give you what I think is the easiest for you.
Since it looks you "successfully" compiled one kernel (i.e. Your computer at least boots! Welcome to Linux admin club ) please:
- Compile your kernel again, but DO NOT select anything in (DevDrivers>Sound) Open Sound System section of the kernel config. (not modules, not "build it" , plain NO)
- and, either Select drivers in ALSA section, or (if you dare), download ALSA fresh and compile separately. (I suggest just the ALSA in the current kernel (worked for me), and go for download if you really have to.
My search for "ALSA and Slackware 10.0" led me to this thread.
I, too, had sound with Slack 10 for an Audigy ES after the basic
install by issuing "alsamixer" to unmute and turn up my volume
and "alsactl store" as su to keep the settings. But when I did
the recompile, there were no modules and nothing worked.
So I followed his advice, mounted my Slack 10.0 CD1 and issued
# cp /mnt/cdrw/slackware/l/alsa-driver-1.0.5a-i486-2.tgz /var/log/packages
and then from /var/log/packages issued
# installpkg alsa-driver-1.0.5a-i486-2.tgz
which installed the alsa-driver package again then issued
# modprobe snd-emu10k1;modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss
which installed all my modules again.
Then issued
$ alsamixer
and then issued
# alsactl store
and I'm once again playing tunes.
I've always compiled from source with no problems, but since Slack 10.0
has support for ALSA and the drivers are the same ones as on the ALSA
site today, I just wanted to make it work from Pat's packages.
Yea, theres alot of sound threads on the forums the past year or so... Thats good to know that installpkg will overwrite an existing entry... Wasn't sure about that or how upgradepkg would work with the same version number. I've just gotten in the habit of building from source since I've been using LFS for the past half a year or so... What I was doing for awhile with Slackware was:
Then checkinstall would make a super small soundcard specific slak-pak for me. I'd leave it in '/' and then do a
Code:
tar -xzf /sound-modules.tgz
I'm one of those wierd people who actually recompile thier kernel so much, I got tired of issuing the tar command and wrote a script that would cd into / and then extract the tgz. Dumped it into /usr/bin and named it 'soundmod'... I get really lazy sometimes...
It just seems to me that when people (including myself) try to use the kernel alsa modules from within 'menuconfig' I start seeing alot of "my sound doesn't work anymore after a kernel recompile"... Thats why I like to leave that ENTIRE sound section totally blank except for "CONFIG_SOUND" at the very top. Build it into the kernel and you'll never have to worry about it not loading....
If you do like I just mentioned with the script then you can
make dep bzImage modules modules_install;soundmod
Hell, you could even write a script that would cd into /usr/src/linux,build the kernel, build the modules, install the modules, install the alsa sound modules, move the System.map and bzImage to /boot, rename bzImage to whatever you want, brush your teeth... Oh wait.... I'm still working on that one....
thanks for all the advice, i had to leave my computer last night.., only to come back to a plethora of posts. but i tried the first recomendation first, that is to dl the alsa source and compile it from there... all went well, or atleast seems to atm, so im happy. thanks jong357 & co
Oh... Cool... You'll have to do that again if you ever recompile your kernel, just remember... That or try and get the right settings in your kernel under "sound ----->" so you can start using those modules instead of the alsa-driver ones.... I find it easier to just do this...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.