LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2004, 01:47 PM   #1
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Rep: Reputation: 15
Error while initializing the sound driver


Got this error when starting KDE (when initializing peripherals):

Code:
Sound server informational message:

Error while initializing the sound driver:

device /dev/dsp can't be opened (Permission denied)

The sound server will continue, using the null output device.
i get this message both when using root and when using normal account.

What's wrong?


Regards,

Edwin
 
Old 10-22-2004, 02:21 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Could be a number of things, what have you done to configure your sound card? Please post the output from lspci -v, and lsmod? Are you using alsa? Have you run a mixer and unmuted your sound?
good luck.
 
Old 10-22-2004, 02:39 PM   #3
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
Hi,

output from lspci -v (just the useful part, as the whole thing is quite lengthy):
Code:
0000:00:04.0 Multimedia audio controller: ESS Technology ES1978 Maestro 2E (rev 10)
Subsystem: NEC Corporation ES1978 Maestro-2E Audiodrive
Flags: bus master, medium devsel, latency 64, IRQ 10
I/O ports at e800 [size=256]
Capabilities: <available only to root>
output from lsmod:
Code:
Module                  Size  Used by
ipv6                  264612  6
apm                    21100  2
rtc                    12760  0
dm_mod                 59772  0
capability              4520  0
commoncap               7232  1 capability
psmouse                20360  0
mousedev               10476  2
xircom_cb              11616  0
yenta_socket           21728  1
ds                     18756  4
pcmcia_core            70900  2 yenta_socket,ds
af_packet              22600  2
ext2                   71848  3
ext3                  127240  0
jbd                    62616  1 ext3
mbcache                 9348  2 ext2,ext3
ide_generic             1408  0
piix                   13440  1
ide_disk               19296  5
ide_core              139940  3 ide_generic,piix,ide_disk
sd_mod                 21696  0
ata_piix                8164  0
libata                 41604  1 ata_piix
scsi_mod              125196  2 sd_mod,libata
unix                   28692  224
font                    8320  0
vesafb                  6656  0
cfbcopyarea             3840  1 vesafb
cfbimgblt               3040  1 vesafb
cfbfillrect             3776  1 vesafb
erm... what's alsa?


Regards,

Edwin
 
Old 10-22-2004, 04:00 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
You can read about alsa here.

http://www.alsa-project.org/

Since the device is reconized, and I don't see the module loaded, let's try modprobing it.

modprobe maestro

If it works, you should be dropped back to the propmt. If that happens, try running a mixer and unmuting your sound, and raising your volumes. If not, post back with the errors, we'll drop back and punt, and try something else.
good luck.
 
Old 10-22-2004, 04:54 PM   #5
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
ok basically...

$ modprobe maestro
no problem... i get the $ prompt again almost immediately.

Then i tried Sound Mixer (KMix), under "Current Mixer", there's nothing for me to choose from, and when it minimizes to the system tray, there's a "X" in front of the speaker icon.


Regards,

Edwin
 
Old 10-22-2004, 05:12 PM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Did you run modprobe as root or su -? Are there any other mixers installed? Try one of them. Please post the output of lsmod again, so we can see if the module indeed loaded.
good luck.
 
Old 10-22-2004, 05:26 PM   #7
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
i had ran modprobe as root just now (can't run as normal user).

now the lsmod has a maestro and a soundcore:
Code:
ide_cd                 42656  0
cdrom                  40732  1 ide_cd
isofs                  37240  0
maestro                39240  0
soundcore              10336  1 maestro
ipv6                  264612  6
apm                    21100  2
rtc                    12760  0
dm_mod                 59772  0
capability              4520  0
commoncap               7232  1 capability
psmouse                20360  0
mousedev               10476  2
xircom_cb              11616  0
yenta_socket           21728  1
ds                     18756  4
pcmcia_core            70900  2 yenta_socket,ds
af_packet              22600  2
ext2                   71848  3
ext3                  127240  0
jbd                    62616  1 ext3
mbcache                 9348  2 ext2,ext3
ide_generic             1408  0
piix                   13440  1
ide_disk               19296  5
ide_core              139940  4 ide_cd,ide_generic,piix,ide_disk
sd_mod                 21696  0
ata_piix                8164  0
libata                 41604  1 ata_piix
scsi_mod              125196  2 sd_mod,libata
unix                   28692  236
font                    8320  0
vesafb                  6656  0
cfbcopyarea             3840  1 vesafb
cfbimgblt               3040  1 vesafb
cfbfillrect             3776  1 vesafb

Regards,

Edwin
 
Old 10-22-2004, 05:32 PM   #8
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Have you tried any other mixers? Now that the modules are loaded it should be a matter of unmuting your sound and raising your volume.
good luck.
 
Old 10-22-2004, 05:44 PM   #9
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
ok, half the problem is solved... when i startx as root, its working, no error messages, and i can play CDs.

but when i startx as a normal user, i still get the same error message:
Code:
Sound server informational message:

Error while initializing the sound driver:

device /dev/dsp can't be opened (Permission denied)

The sound server will continue, using the null output device.

Regards,

Edwin
 
Old 10-22-2004, 05:56 PM   #10
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
You could try adding yourself to the audio group, and the cdrom group.
Alternitively these commands should give all users permissions to the devices.

chmod a+x /dev/dsp
chmod a+x /dev/mixer


good luck.

Last edited by Peacedog; 10-22-2004 at 05:59 PM.
 
Old 10-22-2004, 06:03 PM   #11
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
Yup it works!! Thanks!!!

Then i gave permission for /dev/cdrom and i can play CDs as well now!

Thanks again!

Btw, what other device would I have to give permission to all users for the system to run smoothly?


Thanks and Regards,

Edwin
 
Old 10-22-2004, 06:07 PM   #12
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
That's not the most secure thing to do or secure way to go about things. You might want to read up on permissions here.

http://www.linuxquestions.org/questi...ticle&artid=20

I don't see a real problem with all users having access to the sound devices, that's why I made that suggestion. Glad you got it sorted.
good luck.
 
Old 10-22-2004, 06:13 PM   #13
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
hey, if u don't mind, could you help me take a look at another problem i encountered?

http://www.linuxquestions.org/questi...hreadid=246033

its also KDE related, but its kinda peculiar...

Thanks!!


Regards,

Edwin
 
Old 10-22-2004, 06:18 PM   #14
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
I'll be glad to take a look at it, but, I'll make no promises, I've got some other threads going at the moment. In any event good luck with it.
 
  


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
Sound server informational message: Error while initializing the sound driver... LA004 Linux - Hardware 4 08-21-2005 09:25 PM
Error while initializing the sound driver mohapi Linux - General 3 04-22-2005 02:06 PM
<<Error while initializing the sound driver>> eloyj88 Slackware 4 07-29-2004 11:44 PM
Error while initializing sound driver Mutley101 Linux - Hardware 13 09-28-2003 08:34 AM
Error while initializing the sound driver brewhaha Linux - Hardware 2 06-28-2002 11:58 PM


All times are GMT -5. The time now is 10:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration