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.
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800
Rep:
How to get Sound
Now I'm trying to get my sound card configured. It's a Shuttle AK31A mobo with built in VIA AC'97 card and I'm using kernel version 2.4.18 with the sound drivers built into the kernel.
When I type "dmesg" command, I do see the drivers listed:
VIA 686a, audio driver 1.9.1
AC97_codec, id: 0x4943: 0x451c (ICE1232)
I have Slackware 8.0 and can't seem to find/use command, Sndconfig, I get message, Not Found, even when I'm root!
I've tried using xmms to play a mp3 file and with the terminal window open, I see the error message, /dev/dsp Permission Denied.
as far as i know, slackware doesnt use sndconfig or whatever it is the previous user said to do, as far as i know that is a redhat program?
ok, it seems that your sound module is loaded ok so that is all good now you just need to give your user account permission to use the sound devices.
all the following should be done as root
create a new group called sound which will own the snd devs
groupadd sound
(if this doesnt work try addgroup sound)
then in your favourite text editor, edit /etc/group file to add the desired user to group sound. look in this file for the bit to do with the group sound, and next to the colon ( add your username. if you need to add more than one user separate these with commas but no spaces at all :user1,user2,user3
then save the file.
next run these commands again as root.
chown root:sound /dev/dsp
chown root:sound /dev/mixer
chown root:sound /dev/audio
and also do this for dev/sequencer if you like
then...
chmod 660 /dev/dsp
chmod 660 /dev/mixer
chmod 660 /dev/audio
and also for /dev/sequencer of you did it above as well
then you need to log out of the current user (if thats the one you added to the group file) and then log back in and you sohould be able to use the sound devices.
People might tell you to just do a
chmod 666 /dev/dsp
but if you have any security concerns at all, my way is a lot better.
Don't have experience with the kernel build-in sounddrivers. They are reputed
simple. You can go two ways: OSS (commercial) and ALSA (free).
I choosed for ALSA. the installation of the ALSA stuff is not very simple, but can be done. www.alsa-project.org. Your sound-card seems supported!
Perhaps you have to rebuild your kernel, providing only CONFIG-SOUND=y and all other sound-option not.
You should go for the 0.9.0... version of ALSA
download driver, lib, utils, perhaps tools & OSS compat lib (last two not necessary for just playing sounds) & install them.
In the driver section there is a directory 'util' with a script 'alsasound' which you can place in e.g. /etc/init.d/alsasound (where i have it) and call at boot time in /etc/rc.d/rc.local, Don't forget to adapt your /etc/modules.conf and indeed, add there the support for OSS. Especially this adaption requires some study...
This having done and being able to play a .wav sound with alsa's aplay, you want to be able to play mp3's from an Xwindow.
I am very satisfied with XMMS under KDE. All sort of plugins available for all sorts of sounds. www.xmms.org
By the way: KDE supports ALSA for its sound-stuff.
enjoy
Douwe.
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800
Original Poster
Rep:
Thnx again for the replies. I tried Sickboy's suggestions and still not getting anything to work. I will give your suggestions a try, Jdixon. Do you think it may work even though the sound drivers are built into the kernel?
Do you think it may work if I recompiled them as modules?
If you already have the via drivers compiled into your kernel, then no, using the modprobe commands I suggested won't do any good. I didn't realize you had already compiled them into your kernel. The dmesg messages are your kernel recognizing the hardware, but that doesn't necesarily mean that the drivers are compiled in.
The /dev/dsp permission denied problem is, as you would expect, a permissions problem. You should be able to fix it by giving world read and write permissions to /dev/dsp (chmod 666 /dev/dsp). Sickboy's suggestion is a more secure (and therefore more complicated) method of accomplishing the same thing. You may find that you also have to modify permissions on the other files he mentioned.
The most simple way to find out what the problem is this.
Can u get sound as root? if you can get sound as root but not as user then my above suggestions should in theory fix the problem.
If you dont get sound as root either then it is something else that is causing this problem. I have has issues before when I have compiled sound support and soundcard support into the kernel so now i always make a habit of compiling in as modules. besides this, some soundcards wont offer a full feature set when compiled into the kernel as modules can be passed with modprobe when loading the modules.
To determine if you have sound as root get yourself a .wav file or find one on the computer with a command like
updatedb
locate *.wav
then for any given .wav file run the following command as root from the command like
cat /path/to/file/file.av > /dev/dsp
if you hear sound thru the speakers then you do have sound as root and it is probably a permission thing. basically the above command is the most basic sound operation you can perform and if your system has sound, this *will* work.
try compiling modules rather than into the kernelk and then as root you will need to modprobe the modules
/sbin/modprobe emu10k1 ->or whatever sound module you need to use, i use this one as i have a soundblaster live.
then try as root the above cat command. if it now works, then try what i said in my first post and it should all be good.
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800
Original Poster
Rep:
You noticed that Sickboy...lots of suggestions on module sound! Well maybe I will try that, recompile the sound as modules, that may work, since everybody suggest do modprobe stuff...lol...and yes the sound works fine in any version of windoze 9x/NT flavors. (
Also I may try to see if the Alsa drivers may work with!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.