LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-07-2003, 11:15 PM   #1
kalif
Member
 
Registered: Apr 2003
Posts: 35

Rep: Reputation: 15
Unhappy device /dev/dsp can't be opened


every time i run the kde window system i recieve this message when it first starts up. i would like to have sound but have thusfar been running without it. i have looked everywhere on the net for solutions to this problem but none have been much assistance except for teaching me many things i did not know but did not need to know. i have slackware 8.1 installed and can provide any other information anyone needs to help me with this problem.

thanks in advance,
ryan
 
Old 08-07-2003, 11:30 PM   #2
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
Take a look at this search result on '/dev/dsp' here at LQ:

http://www.linuxquestions.org/questi...der=descending

There's probably a chmod or ln solution in there.

What are the permissions for /dev/dsp on your system?

regards...
 
Old 08-08-2003, 08:11 AM   #3
gNY
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
On my system Debian Woody, I used the following to get sound to work.

Give proper permission to the file
chmod 666 /dev/dsp

Add users to the group for audio
gpasswd -a <your login name> audio
 
Old 08-08-2003, 09:07 AM   #4
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
Quote:
Originally posted by gNY
On my system Debian Woody, I used the following to get sound to work.

Give proper permission to the file
chmod 666 /dev/dsp

Add users to the group for audio
gpasswd -a <your login name> audio
This is half right and half evil. Never chmod 666 /dev/dsp. Its permissions should be 660, and it should be owned by root.audio. Then, anyone in the audio group has read/write access to it.
 
Old 08-08-2003, 09:59 AM   #5
gNY
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
Good advice. I will implement this ASAP.

Thanks
George
 
Old 08-09-2003, 01:34 AM   #6
kalif
Member
 
Registered: Apr 2003
Posts: 35

Original Poster
Rep: Reputation: 15
Question

alright i have now chmoded the /dev/dsp... and as with all the other tries to chmod /dev/dsp it has gained me nothing... anything else i could try
 
Old 08-09-2003, 01:41 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Is that right? Odd..

Can you post up the following:
ls -l /dev/dsp
lsmod
And:
lspci -v

Cool
 
Old 08-09-2003, 01:43 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by Strike
This is half right and half evil. Never chmod 666 /dev/dsp. Its permissions should be 660, and it should be owned by root.audio. Then, anyone in the audio group has read/write access to it.
I'm no uber security nut, but would certainly like to know of any holes I too follow this scheme, but only because "I was told to" previously. But could you expand on the need to secure your dsp device from world reading/writing? Thanks for any info

Cool
 
Old 08-09-2003, 04:01 AM   #9
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
Quote:
Originally posted by MasterC
I'm no uber security nut, but would certainly like to know of any holes I too follow this scheme, but only because "I was told to" previously. But could you expand on the need to secure your dsp device from world reading/writing? Thanks for any info

Cool
Well it's not as severe a security risk as many permissions problems can be, it's more of a "prevent a source of potential annoyances" than anything else. If you chmod 666 /dev/dsp and then go for years forgetting about that and then you start handing out shell accounts to people, you may find yourself listetning to someone cat'ing /dev/urandom into /dev/dsp in the middle of the night That and it's just the perfect thing to use the unix permissions model for that it makes no sense to pass up the perfect opportunity to acquaint yourself with it.
 
Old 08-09-2003, 04:06 AM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Sounds good to me Thanks for the follow up!

Cool
 
Old 08-09-2003, 06:16 PM   #11
kalif
Member
 
Registered: Apr 2003
Posts: 35

Original Poster
Rep: Reputation: 15
Post

alright...

ls -l /dev/dsp spits out the following:
crw-rw---- 1 root sys 14, 3 Jul 18 1994 /dev/dsp

lsmod spits out the following:
Module Size Used by Not tainted
soundcore 3236 0 (autoclean)
tulip_cb 31872 2
cb_enabler 2528 2 [tulip_cb]
ds 6624 4 [cb_enabler]
i82365 22416 2
pcmcia_core 40896 0 [cb_enabler ds i82365]
ide-scsi 7456 0

lspci -v spits out the following:
pcilib: Cannot open /proc/bus/pci/06/00.0
lspci: Unable to read 64 bytes of configuration space.
 
Old 08-10-2003, 08:16 PM   #12
kalif
Member
 
Registered: Apr 2003
Posts: 35

Original Poster
Rep: Reputation: 15
Question

well, i posted the outputs of the 3 commands you wanted me to run... any ideas what could be wrong?
 
Old 08-10-2003, 09:26 PM   #13
benchcomptons
LQ Newbie
 
Registered: Jul 2003
Posts: 29

Rep: Reputation: 15
I'm having the same problem right now. No sound in KDE or Gnome.

http://www.linuxquestions.org/questi...651#post416651
 
Old 08-11-2003, 01:29 AM   #14
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Is your user a member of group sys? If not, add them to that group and see if that fixes it (although, i don't see a sound module loaded for a soundcard, and the lspci bit is kind of confusing..).

Cool
 
Old 08-11-2003, 08:06 AM   #15
kalif
Member
 
Registered: Apr 2003
Posts: 35

Original Poster
Rep: Reputation: 15
my user that i am trying to do this with is root... would that have a difference?
 
  


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
KDE -device/dev/dsp - can't be opened High-gain Linux - Newbie 13 12-14-2004 11:47 AM
device /dev/dsp can't be opened (Permission denied) jon_k Linux - Software 1 10-27-2004 09:51 PM
device /dev/dsp can't be opened Benedictus Linux - Hardware 13 08-08-2004 05:40 PM
No sound > device /dev/dsp can't be opened DarkGhost Linux - Hardware 1 12-25-2002 07:36 PM
Device /dev/dsp can't be opened... MatMan5959 Linux - Hardware 4 06-20-2002 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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