Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
10-12-2003, 07:27 PM
|
#1
|
|
Member
Registered: Oct 2003
Location: Canada
Distribution: depends on the mood -- these days.. Slack!
Posts: 44
Rep:
|
Slack 9.1, ALSA 0.9.6 and ALSA 0.9.7
I recently (as of Friday) upgrade my laptop from Slack 9 to Slack 9.1. Everything pretty much went smoothly... except for sound. So after poking around, I went to ( www*alsa-project*org ) the ALSA Project and downloaded the latest version (oddly enough, released on Friday.. talk about timing!). I found my card (ESS 1998), downloaded all the files necessary, followed the instructions, compiled and modprobe'd when done.
Lo' and behold, I have sound!! But...
When I boot, it still looks for the old sound files (I assume that's ALSA 0.9.6). I want the kernel to stop looking for those and look for the ones I've specified. I've tried depmod -a hoping that would help (nope).
Ideas??  (please, something other than recompile -- recompiling kernel burps ugly on my laptop and the kernel panics live there)
For those curious:
Panasonic CF-48
PIII/600
10GB
ESS 1998, v12 Sound Card
|
|
|
|
10-12-2003, 10:12 PM
|
#2
|
|
Member
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: Dual Boot WinXP+ FreeBSD7.0, Slackware 12.0
Posts: 448
Rep:
|
The Fact that modprobe got your sound to work means the modules are good.
To get the modules to load on demand cut and paste this into your /etc/modules.conf file as root.
# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-maestro3
# module options should go here
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
# 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
|
|
|
|
10-13-2003, 07:59 AM
|
#3
|
|
Member
Registered: Oct 2003
Location: Canada
Distribution: depends on the mood -- these days.. Slack!
Posts: 44
Original Poster
Rep:
|
Well, that loads it but I still have to use alsamixer to actually hear the sound (aka unmute it). Any suggestions on having sound active on boot up?
Also, I have the following errors in syslog (LOTS of them):
Quote:
Oct 13 08:52:41 MsMittens modprobe: modprobe: Can't locate module sound-slot-1
Oct 13 08:52:41 MsMittens modprobe: modprobe: Can't locate module sound-service-1-0
Oct 13 08:52:41 MsMittens modprobe: modprobe: Can't locate module sound-slot-1
Oct 13 08:52:41 MsMittens modprobe: modprobe: Can't locate module sound-service-1-0
Oct 13 08:52:44 MsMittens modprobe: modprobe: Can't locate module sound-slot-1
Oct 13 08:52:44 MsMittens modprobe: modprobe: Can't locate module sound-service-1-0
Oct 13 08:52:44 MsMittens modprobe: modprobe: Can't locate module sound-slot-1
Oct 13 08:52:44 MsMittens modprobe: modprobe: Can't locate module sound-service-1-0
|
And it still pulls errors when attempted to load other versions.. Perhaps using pkgtool to remove ALSA 0.9.6?
|
|
|
|
10-13-2003, 08:56 AM
|
#4
|
|
Member
Registered: Sep 2002
Distribution: arch
Posts: 232
Rep:
|
after you use "alsamixer" to unmute it do you do "alsactl store" as root to save the settings for next boot. If not then that is why it boots muted.
|
|
|
|
10-13-2003, 09:55 AM
|
#5
|
|
Member
Registered: Oct 2003
Location: Canada
Distribution: depends on the mood -- these days.. Slack!
Posts: 44
Original Poster
Rep:
|
D'oh! Thanks...  ...
MsMittens sticks a RTFM stickie on her forehead
|
|
|
|
10-13-2003, 12:28 PM
|
#6
|
|
Member
Registered: Oct 2003
Location: Canada
Distribution: depends on the mood -- these days.. Slack!
Posts: 44
Original Poster
Rep:
|
Ok. An update.
The command should be alsactl store 0 (the 0 represents which card it applies to -- in this case, because I have only one card, it applies to card #0). Hopefully, that holds the settings (as alsactl store by itself didn't).
I also removed ALSA 0.9.6 using pkgtool (and it remove 0.9.7 it seemed so I recompiled it, etc.). But I still get that maestro3 not found error during boot it. It still seems like the kernel is looking for non-existent module. Is there a file I can modify to stop it from looking for this particular module?
|
|
|
|
10-13-2003, 02:28 PM
|
#7
|
|
Member
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: Dual Boot WinXP+ FreeBSD7.0, Slackware 12.0
Posts: 448
Rep:
|
Slackware can poke in modules several ways. If you are using a stock kernel the modules can be inserted by the startup script in /etc/rc.d/rc.modules or they can come from /etc/modules.conf
I compiled my own alsa modules (0.9.7-> 0.97a ->0.97b ->0.97c) for just one sound card to keep things light and simple I always used the directions at the alsa-site which used modules.conf to call up the modules. Slackware uses both the old unix style startup scripts and the SysVinit scripts. See if anything is calling up the modules in rc.modules and if so then either comment out rc.modules or modules.conf.
|
|
|
|
10-13-2003, 04:49 PM
|
#8
|
|
Member
Registered: Oct 2003
Location: Canada
Distribution: depends on the mood -- these days.. Slack!
Posts: 44
Original Poster
Rep:
|
Hrmmm.. I looked in rc.modules and I don't see it in there. Out of curiosity, how does one remark out in rc.modules as they all begin with #??
Oh.. and thanks for all the help and patience.. 
|
|
|
|
10-13-2003, 08:50 PM
|
#9
|
|
Member
Registered: Sep 2003
Location: Va USA
Distribution: Slackware
Posts: 81
Rep:
|
MsMittens: Because you did an upgrade (as I did).... there is a new /etc/hotplug/blacklist.new file sitting there. I bet you didn't review that and mv /etc/hotplug/blacklist.new /etc/hotplug/blacklist did you??? I think the OSS sound modules are getting modprobed by hotplug. Hence the errors since ALSA is already took control of your card. Take a look at it...
|
|
|
|
10-13-2003, 09:40 PM
|
#10
|
|
Member
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: Dual Boot WinXP+ FreeBSD7.0, Slackware 12.0
Posts: 448
Rep:
|
Placing a "#" sign in front of a command will "comment it out" or prevent it from be executed.
Also used to document what a portion of a particular script does. An example is
"# ALSA portion"
|
|
|
|
10-14-2003, 04:15 PM
|
#11
|
|
Member
Registered: Oct 2003
Location: Canada
Distribution: depends on the mood -- these days.. Slack!
Posts: 44
Original Poster
Rep:
|
Sigh. This hates me. I'm convinced. alsamixer store 0 isn't working.
I'm not finding the troublesome modules in rc.modules (shepper, am I reading right in that I put a # in front of the existing #s?) or modules.dep.
Tried hotplug/blacklist. That didn't work.
*grumble*
|
|
|
|
10-15-2003, 11:05 AM
|
#12
|
|
Member
Registered: Mar 2003
Location: Dry, Dusty and Conservative
Distribution: Dual Boot WinXP+ FreeBSD7.0, Slackware 12.0
Posts: 448
Rep:
|
One "#" character is enough. Anything that follows # is not executed on that line..
"# ALSA portion" is a comment that tells you that the following 2 lines:
" alias char-major-116 snd
alias snd-card-0 snd-maestro3"
Load the ALSA drivers.
"#" is also usefull in debugging scripts
# alias char-major-116 snd
# alias snd-card-0 snd-maestro3
prevents the "alias char-major-116 snd" and "alias snd-card-0 snd-maestro3" modules from
being run. If it does not fix your problem it makes it easy to restore the file buy deleting the
"#" sign.
The /etc/rc.d/rc.modules uses this method to load modules. After a new install all the entries are
"commented out" To get a particular module in the /etc/rc.d/rc.modules file to load remove the "#" sign with a text editor.
For example: "# /sbin/modprobe apm" APM is the modules that controls power management
(battery saving) in a laptop. If this module is not running (lsmod command as a user shows you the modules that are running) removing the "#" will cause the command
/sbin/modprobe apm to be executed at boot. The the lsmod command should show that apm is an active module.
Last edited by shepper; 10-15-2003 at 11:19 AM.
|
|
|
|
10-15-2003, 01:29 PM
|
#13
|
|
Member
Registered: Oct 2003
Location: Canada
Distribution: depends on the mood -- these days.. Slack!
Posts: 44
Original Poster
Rep:
|
Ok. I found the rc.modules file and uncommented the section needed. But I still had to run the alsactl restore to get sound. I've since put that into rc.local so that can be run during bootup.
However, it's still trying to load the "bad" modules and for the life of me, I can't find these things.
Oh.. one more thing, I noticed that there was a rc.modules and rc.modules.new. Since rc.modules seemed to have a newer date, I modified that.
Last edited by MsMittens; 10-15-2003 at 01:30 PM.
|
|
|
|
10-15-2003, 03:05 PM
|
#14
|
|
Member
Registered: Sep 2003
Location: Va USA
Distribution: Slackware
Posts: 81
Rep:
|
Print here exactly what your dmesg shows after a boot and what lsmod prints out, it would help a lot.
And the fiile you modify to keep it from auto probing for a particular module IS the /etc/hotplug/blacklist.
Last edited by JollyRogers; 10-15-2003 at 03:08 PM.
|
|
|
|
10-15-2003, 07:29 PM
|
#15
|
|
Member
Registered: Oct 2003
Location: Canada
Distribution: depends on the mood -- these days.. Slack!
Posts: 44
Original Poster
Rep:
|
I had modified (I thought) blacklist before but it might have been blacklist.new. Anyways, thanks for pointing out it was to be just blacklist. It surpressed some of the errors but now I get the following:
Quote:
Oct 15 17:07:32 MsMittens modprobe: modprobe: Can't locate module snd-card-1
Oct 15 17:07:32 MsMittens modprobe: modprobe: Can't locate module snd-card-1
Oct 15 17:07:32 MsMittens modprobe: modprobe: Can't locate module snd-card-2
Oct 15 17:07:32 MsMittens modprobe: modprobe: Can't locate module snd-card-2
Oct 15 17:07:32 MsMittens modprobe: modprobe: Can't locate module snd-card-3
Oct 15 17:07:32 MsMittens modprobe: modprobe: Can't locate module snd-card-3
|
And the lsmod produces:
Quote:
Module Size Used by Not tainted
usb-storage 65536 0 (unused)
keybdev 1952 0 (unused)
mousedev 4244 1
hid 21156 0 (unused)
usbmouse 2008 0 (unused)
input 3200 0 [keybdev mousedev hid usbmouse]
uhci 24496 0 (unused)
usbcore 58400 1 [usb-storage hid usbmouse uhci]
ds 6568 2
yenta_socket 10368 2
pcmcia_core 40032 0 [ds yenta_socket]
ide-scsi 9424 0
eepro100 19380 1
mii 2304 0 [eepro100]
snd-seq-oss 26112 0 (unused)
snd-seq-midi-event 3264 0 [snd-seq-oss]
snd-seq 33648 2 [snd-seq-oss snd-seq-midi-event]
snd-seq-device 3904 0 [snd-seq-oss snd-seq]
snd-pcm-oss 37092 1
snd-mixer-oss 11992 1 [snd-pcm-oss]
snd-maestro3 12972 2
snd-pcm 55936 0 [snd-pcm-oss snd-maestro3]
snd-timer 13252 0 [snd-seq snd-pcm]
snd-page-alloc 6004 0 [snd-pcm]
snd-ac97-codec 37944 0 [snd-maestro3]
snd 27588 0 [snd-seq-oss snd-seq-midi-event snd-seq snd-seq-device snd-pcm-oss snd-mixer-oss snd-maestro3 snd-pcm snd-timer snd-ac97-codec]
soundcore 3332 5 [snd]
apm 9640 2
|
shepper, many thanks. I finally got alsamixer and alsactl store to play nice. Now that it's part of the boot sequence, I'm coming up with sound!
Now to just get rid of those useless errors.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:13 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|