Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
I've just installed MDK 9.1 on a DELL Optiplex GX1, and all is great except there is no sound. Initially there was no /dev/dsp, so I installed the alsa rpm I found on rpm.pbone.net. The file is now there:
_devfs_search_dir(snd): not a directory
_devfs_search_dir(snd): not a directory
_devfs_search_dir(snd): not a directory
devfs_mk_dir(snd): could not append to dir: c12c85c0 "", err: -17
_devfs_append_entry(controlC0): dir: "snd" is not a directory
devfs_register(snd/controlC0): could not append to parent, err: -20
_devfs_append_entry(controlC1): dir: "snd" is not a directory
devfs_register(snd/controlC1): could not append to parent, err: -20
That's not very helpful because I didn't do anything to get it there that I know of and wouldn't know how to if it wasn't there, but maybe that's some of what you're missing.
Hello,
I got the same error as
/dev/dsp cannot be opened at start up.
I tried
ll /dev/dsp
then it displayed
crw------- 1 root root 14, 3 Jan 30 15:54 /dev/dsp
Now I am root user
and for
ps aux | grep 'fuser/dev/dsp'
the result was
root 5531 0.0 0.2 3572 628 pts/1 S 19:10 0:00 grep fuser/dev/dsp
Even I changed /dev/dsp with permissions as 777
Still the error is there
what should I do now?Any one help me.
Thanks in advance
Regards,
Murugesan
Last edited by murugesan_n; 08-01-2003 at 09:08 AM.
CONFIG_DEVFS_FS
This is support for devfs, a virtual file system (like /proc) which
provides the file system interface to device drivers, normally found
in /dev.
rather than the old fashioned /dev directory full of device files?
Looks to me like you are using devfs and it cannot find the device file /dev/snd/whatever with which the sound driver needs to register.
Argh, chmod 666 /dev/dsp is WRONG and EVIL. If you don't believe that it's bad, give me a shell account and I'll make sure you figure out why it's bad
Do you want every single potential user and/or program on your machine to be able to pump noise through your speakers? Probably not. The correct solution is to use an "audio" group (or whatever name you want, that's just the default of many distributions) and grant users specific access to playing sounds.
So, chown root.audio /dev/dsp once you've got your audio group. And then chmod 660 /dev/dsp so that the owner and group members have full read and write permission to it. Then, add yourself to the audio group.
An alternative is to adopt the policy of whoever is logged in on DISPLAY :0 is the only user allowed to access /dev/dsp and associated files during the time they are logged in on DISPLAY :0.
So one has do a chown in the XServer XSetup_0 file to the user and a chown back to root in the XServer XReset_0 file, which the permission being 600 of course.
This policy was used in Sun Solaris and came about in the following manner.
The Sun IPX workstations came with a microphone. Many people connected them up and left them connected. Other people with accounts on the machine could login to a machine in somebody else's office and then read the microphone device because it was world or group readable, and thus hear for example what they were talking about in confidence to their boss, or to what they were saying on the telephone.
So as Strike says, never, never chmod 666 device files.
You may have a OSS emulated driver. Switch the device to /dev/audio with OSS selected. The other thing to check for is to see if it may be under /dev/sound/dsp. You may need to modprobe your driver in. MDK 9.1 doesn't seem to be doing a good job of loading.
If you've chmoded /dev/dsp and you still can't hear anything, try to chmod your /dev/sound directory and everything in it. (as root, of course)
chmod -R 666 /dev/sound
This solved the problem for me tonight.
By the way, in my case I had an existing Mandrake 9.0 install which suddenly stopped using sound a few days ago. It wasn't until today that I found an actual error to match my sound problem, which is how I found my way here. I suspect that something I upgraded through ximian's red-carpet may have wreaked havoc with my /dev settings somehow. Has anyone else had this problem?
Originally posted by esterling If you've chmoded /dev/dsp and you still can't hear anything, try to chmod your /dev/sound directory and everything in it. (as root, of course)
chmod -R 666 /dev/sound
This solved the problem for me tonight.
Bad! Look up at my post for why (and the right solution). Or if you are too lazy, here is a link.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.