LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-28-2003, 09:58 AM   #1
brokenflea
Member
 
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Rep: Reputation: 30
Sound Problem in 2.6.0


whew... i finally managed to compile the 2.6.0 kernel. i'm having problems with my sound though, during startup this is the message i'm getting : "ALSA Device List : No soundcards detected"

i tried running alsamixer from the CLI and this is the error i'm getting

"alsamixer: function snd_ctl_open failed for default : No such device"

what should i do ? how do i configure sound on 2.6.0 ?
 
Old 12-28-2003, 10:27 AM   #2
quietguy47
Member
 
Registered: Mar 2003
Location: Everett
Distribution: Slackware
Posts: 805

Rep: Reputation: 35
Did you try alsaconf? More info about alsa can be found at http://www.alsa-project.org/
 
Old 12-28-2003, 10:34 AM   #3
brokenflea
Member
 
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Original Poster
Rep: Reputation: 30
yup, tried alsaconf the first time..... its not detecting anything either
 
Old 12-29-2003, 12:31 PM   #4
Kroenecker
Member
 
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Rep: Reputation: 30
Ok I cant remember the details, but I recall there being two different lists of drivers for the oss sound and for alsa sound. Did you make sure to check you alsa sound driver?

Sorry not much help.

Oh and if you are using modules did you make sure to have them modprobed?
 
Old 12-29-2003, 03:47 PM   #5
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Slackware 14.2-stable, Ubuntu 16.04 LTS
Posts: 401

Rep: Reputation: 30
I had the exact same problem when I tried to compile ALSA into the 2.6.0 kernel. Absolutely no sound and I got the same error message you received about "No soundcards detected". I know this may seem more like a pain than you would like, but here's what I did to solve the problem.

1) Remove any installed ALSA packages that are currently on your computer. With a default Slack 9.1 install, ALSA 0.9.6 was present. Doing a "ls -l /var/log/packages/alsa*" will tell you if you have any installed.

2) Reconfigure your kernel .config file to support sound, but do not build in support (and not as modules either) for ALSA or OSS.

3) Recompile your kernel.

4) Get the latest code and instructions for ALSA from www.alsa-project.org.

5) Follow the instructions to build and install the various components of ALSA from source.

6) Make sure you level set the master volume and PCM volume using alsamixer or kmix or whatever as the sounds levels will all initially be muted.

This should give you a working sound system with the latest ALSA drivers. However, you may need to edit your /etc/rc.modules file to include the correct modprobes that are included in the ALSA compilation instructions so that you have sound once you reboot.

I know this sounds like it is a lot of work, but this was the only way I could manage to get sound in 2.6.0, and it probably only took me about 30 minutes once I got the appropriate sources and instructions downloaded.

Hope that helps.
 
Old 12-30-2003, 03:43 AM   #6
Waldi
Member
 
Registered: Apr 2003
Location: Warsaw, Poland
Distribution: Slackware current
Posts: 133

Rep: Reputation: 15
Tino27

That's a good idea, but what if I want to use both kernels (naturally not in the same time)? I have Alsa with 2.4.22 (9.1 "built in") and it works perfectly, autodetects soundcard (I don't have to "modprobe" anything), so I really don't want to get rid of this.
Unluckily Alsa, which comes with 2.6.0 kernel, doesn't behave so friendly. No autodetection, I have to "modprobe" proper module, and even then arts from KDE doesn't want to start, complaining about missing /dev/dsp (but of course it is and with 2.4.22 works OK).
But if I totally remove both Alsa version and decide to compile original one, do I have to do it twice, with both kernels (probably so)? And what with Alsa libraries, also twice?
I think it has not many chances to work, maybe someone could give a little advice?
 
Old 12-30-2003, 08:35 AM   #7
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Slackware 14.2-stable, Ubuntu 16.04 LTS
Posts: 401

Rep: Reputation: 30
Waldi, to put your concerns to ease.

When I upgraded to the 2.6.0 kernel, I also kept my 2.4.22 kernel around as well (just in case I needed it). I did what I posted above and got sound working in 2.6.0. Sure enough, I needed to return to 2.4.22 to get VMWare to behave correctly and sound was also working in 2.4.22. I didn't need to recompile specifically for the 2.4.22 kernel.

The other thing to remember, too, is that if you do decide to return to the 2.4.22 kernel and the 1.0.0rc2 ALSA isn't working, uninstall it and simply reinstall the ALSA packages from the original Slack disks.

But, like I said, it works in both 2.6.0 and 2.4.22 for me.
 
Old 12-30-2003, 08:42 AM   #8
anadyr
Member
 
Registered: Mar 2003
Distribution: archlinux
Posts: 40

Rep: Reputation: 15
I had exactly the same problem. maybe you already recompiled everything, but my solution was a lot simpler. the thing was (at least with me) that the /dev/snd/xxx devices were not there... you have to run the snddevices script in the alsa drivers source to create them. no compilation at all
after that you can run alsamixer (and make sure to unmute the master channel if it.s muted... (shift-M to toggle mute/unmute))
 
Old 12-30-2003, 09:07 AM   #9
ckamheng
Member
 
Registered: Apr 2003
Location: Malaysia
Distribution: Slackware 10.2
Posts: 75

Rep: Reputation: 15
how to run alsa sound script?

anadyr,
can u explain clearly how to run alsa sound script?
i have the similar problem.
my sound are totally not working.

vi /proc/asound/cards gived me "No sound cards"
but ISA PNP detected my sound card as opl3sa2 during boot time.
i ran alsaconf b4, it detected my sound card as opl3sa2 but end of
with doing nothing.
i can't run alsamixer or alsactl at all.

When i tried to click the speaker icon, i got this message:
Couldn't open mixer device /dev/sound/mixer

Note: i droped OSS totally since it was depreciated.

Please help.Thanks
 
Old 12-30-2003, 10:04 AM   #10
anadyr
Member
 
Registered: Mar 2003
Distribution: archlinux
Posts: 40

Rep: Reputation: 15
-download this file:
http://www.alsa-project.org/alsa/ftp...0.0rc2.tar.bz2

-unpack it
tar jxvf alsa-driver-1.0.0rc2.tar.bz2

-run as root the snddevices script in the file
./snddevices

then you should be able to run alsamixer...
(and if there.s no sound toggle mute/unmute with shift-M)
 
Old 12-31-2003, 09:58 PM   #11
ckamheng
Member
 
Registered: Apr 2003
Location: Malaysia
Distribution: Slackware 10.2
Posts: 75

Rep: Reputation: 15
My sound is OK now

Thanks everyone. My sound is ok now.
 
Old 12-31-2003, 10:43 PM   #12
brokenflea
Member
 
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Original Poster
Rep: Reputation: 30
thanks guys, i just read this post and am gonna try the above suggestions
 
  


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
Sound Problem: ESS (ES1869F-Chipset) No Sound computer_kid Slackware 9 08-02-2006 08:41 PM
Other problem with the sound in Mandrake - onboard sound card Swetko Linux - Hardware 24 06-19-2006 03:27 PM
5.1 sound problem (sound blaster live and suse) shadout Linux - Hardware 11 06-24-2005 12:46 AM
No sound, problem with sound card install? ak4me Linux - Hardware 2 03-06-2004 04:01 PM
Sound problem after installing/uninstalling JACK sound server bastupungen Linux - Software 1 02-28-2004 12:50 PM

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

All times are GMT -5. The time now is 01:05 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