LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 11-04-2003, 12:11 PM   #1
Punkduplo
Member
 
Registered: Oct 2003
Location: Linköping Sweden
Posts: 30

Rep: Reputation: 15
Unhappy alsamixer problem, snd_ctl_open?!?


I have problems getting my alsamixer to funktion.. i have installed alsa-lib, alsa-utils and alsa driver as the instructions on alsa:s homepage told me to. Butt when i run alsamixer i get this error:

alsamixer: function snd_ctl_open failed for default: No such file or directory

What do i do to fix this error??
 
Old 11-04-2003, 07:36 PM   #2
xexix
Member
 
Registered: Oct 2003
Location: Long Island, N.Y., U.S.A
Distribution: Gentoo, Slackware
Posts: 79

Rep: Reputation: 15
your sound modules are not loaded. do modprobe <your sound module>. then the proper device files will be created and alsamixer will work. what sound card are you using? and what is your distro?
 
Old 11-05-2003, 03:32 AM   #3
Punkduplo
Member
 
Registered: Oct 2003
Location: Linköping Sweden
Posts: 30

Original Poster
Rep: Reputation: 15
I have run modprobe on these things:

modprobe snd-ali5451;modprobe snd-pcm-oss;modprobe snd-mixer-oss;modprobe snd-seq-oss

I have RH9 dist and Ali Trident 5451 soundcard. Do you mean that i run modprobe on anything else?.. I copied the modprobe commmand directly from my history so its exactly what i typed(in case i have misspelled something).
 
Old 11-05-2003, 03:01 PM   #4
xexix
Member
 
Registered: Oct 2003
Location: Long Island, N.Y., U.S.A
Distribution: Gentoo, Slackware
Posts: 79

Rep: Reputation: 15
you only need to do "modprobe snd-ali5451" - all the dependencies will be resolved and the other sub-modules will load properly. After that you should be able to run alsamixer. If this still fails you can run "strace -eopen alsamixer" - strace is a debugging tool, with the -eopen switch will show you what alsamixer is trying to open. Tell me which opens failed (-1 ENOENT).
 
Old 11-05-2003, 03:10 PM   #5
xexix
Member
 
Registered: Oct 2003
Location: Long Island, N.Y., U.S.A
Distribution: Gentoo, Slackware
Posts: 79

Rep: Reputation: 15
did you place the following in your /etc/modules.conf?

# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-ali5451
# 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
 
Old 11-06-2003, 04:38 AM   #6
Punkduplo
Member
 
Registered: Oct 2003
Location: Linköping Sweden
Posts: 30

Original Poster
Rep: Reputation: 15
Yes, i have inserted that into etc/modules.conf. And i ran strace -eopen alsamixer and the following opens failed:
open("/dev/snd/controlC0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/dev/aloadC0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/dev/snd/controlC0", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/snd/controlC0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/dev/aloadC0", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/dev/snd/controlC0", O_RDWR) = -1 ENOENT (No such file or directory)
 
Old 11-06-2003, 12:25 PM   #7
wuck
Member
 
Registered: Sep 2003
Location: barneveld.nl
Distribution: Slackware
Posts: 170

Rep: Reputation: 30


What does privoxy have to do with strace?
 
Old 11-06-2003, 01:37 PM   #8
Punkduplo
Member
 
Registered: Oct 2003
Location: Linköping Sweden
Posts: 30

Original Poster
Rep: Reputation: 15
Where do you get privoxy from??...
 
Old 11-08-2003, 01:19 PM   #9
Punkduplo
Member
 
Registered: Oct 2003
Location: Linköping Sweden
Posts: 30

Original Poster
Rep: Reputation: 15
So... i gave you the information that you needed xexix.. can you give me some advice now, im kind of stuck and your my only hope!!!
 
Old 11-09-2003, 02:52 AM   #10
xexix
Member
 
Registered: Oct 2003
Location: Long Island, N.Y., U.S.A
Distribution: Gentoo, Slackware
Posts: 79

Rep: Reputation: 15
I don't know why having the above entries in /etc/modules.conf and running modprobe snd-ali5451 doesn't create the proper devices for you. I don't know how RH9.0 has other things setup.

Here is a stupid hack (non-elegant solution)
"mknod /dev/snd/controlC0 c 116 0"
 
Old 11-09-2003, 07:47 AM   #11
Punkduplo
Member
 
Registered: Oct 2003
Location: Linköping Sweden
Posts: 30

Original Poster
Rep: Reputation: 15
There isn't any snd catalog in dev, have i done anything wrong in the installation?!?!?!..
 
Old 11-09-2003, 08:58 AM   #12
BlackCell
Member
 
Registered: Nov 2003
Location: Netherlands
Distribution: Debian Unstable
Posts: 61

Rep: Reputation: 15
Hi guys, I have the same problem... I hope you find a resolution for it. In the meantime I use aumix it's a small commandline mixer. The buggy thing is that every time you want to play sounds you need to adjust your volume as alsa drivers mute by default. I am running a debian, testing/unstable with 2.4.22 kernel and have a via82cxx card. Should you need any additional info let me know.
 
Old 11-09-2003, 11:47 AM   #13
Punkduplo
Member
 
Registered: Oct 2003
Location: Linköping Sweden
Posts: 30

Original Poster
Rep: Reputation: 15
I tested aumix and got sound.. but i would rather get alsamixer to work properly..
 
Old 11-09-2003, 01:30 PM   #14
BlackCell
Member
 
Registered: Nov 2003
Location: Netherlands
Distribution: Debian Unstable
Posts: 61

Rep: Reputation: 15
It works!!!

Hello Hello,

Check this link and it will tell ya, It's a lot of trying with Linux and sh*tloads of webbrowsing and reading, I mean good reading... LOL It is so simple!

Just run the snddevices script in the untarred alsa-driver directory

http://www.linuxquestions.org/questi...003/09/2/85626

It is so silly; alsa says not to run it, but by doing it I got my issue solved!!!
We all ought to break advices and rules more often!

Ciao
 
Old 12-09-2003, 09:19 AM   #15
kleptophobiac
Member
 
Registered: Jun 2003
Distribution: Arch
Posts: 315

Rep: Reputation: 30
EDIT

nm, I 'm a moron.

Last edited by kleptophobiac; 12-09-2003 at 09:24 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
alsamixer: function snd_ctl_open failed for default: No such file or directory agts Linux - Newbie 16 04-01-2011 09:12 AM
alsamixer --> snd_ctl_open failed for default: No such device dot hog Linux - Software 3 08-23-2009 01:14 PM
alsamixer: function snd_ctl_open failed in Fedora mattman1081 Fedora 6 08-30-2004 04:47 AM
Sound problem: alsamixer: function snd_ctl_open failed for default: No such device bootlizard Linux - Software 0 08-22-2004 04:45 PM
Help!!!!! : alsamixer Problem .. har5ha Linux - Software 4 07-26-2004 09:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 03:18 PM.

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