Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE 3.2 Sound Problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
alexsb
Tux's lil' helper
Tux's lil' helper


Joined: 09 Mar 2004
Posts: 91
Location: Austria

PostPosted: Tue Mar 09, 2004 10:53 pm    Post subject: KDE 3.2 Sound Problem Reply with quote

Hi, I have a problem with the sound on my new gentoo system.

When starting KDE 3.2 I get the following error message:

Quote:

Sound server informational message:
Error while initializing the sound driver:
device /dev/dsp can't be opened (No such file or directory)
The sound server will continue, using the null output device.


I can't play any sounds started from kde, but I can play sounds using the following in a bash:
Quote:

aplay $KDEDIR/share/sounds/pop.wav


I am using kernel 2.6.3, the System is up to date.

As far as sound is concerned I have only three options enabled in the Kernel:

Quote:

<M> Sound card support
<M> Advanced Linux Sound Architecture
<M> Intel i8x0/MX440, SiS 7012; Ali 5455; NForce Audio; AMD768/8111


What can I do about that? Are any other Kernel options necessary? I yust want ordinary sound on my notebook.

tia

Alex

edit: excuse my german words mixed up into this text previosely, I was very tired ;)


Last edited by alexsb on Wed Mar 10, 2004 6:45 am; edited 1 time in total
Back to top
View user's profile Send private message
cheezyboy
n00b
n00b


Joined: 04 Feb 2004
Posts: 34

PostPosted: Wed Mar 10, 2004 1:43 am    Post subject: Reply with quote

I get the same error with alsa working for me also. It seems to be the privileges on the sound devices in the /dev directory if I do a
Code:

chmod 755 /dev/dsp
chmod 755 /dev/sound/*

it should fix this until you reboot (I can't remember if it needs write privleges I don't think so). Not sure about a permanent solution. You might have to check the group the dev is assigned to and make sure your user or arts belongs to it or something.

Hope that works
Back to top
View user's profile Send private message
alexsb
Tux's lil' helper
Tux's lil' helper


Joined: 09 Mar 2004
Posts: 91
Location: Austria

PostPosted: Wed Mar 10, 2004 5:48 am    Post subject: Reply with quote

Well, i have the sound problem logged in to kde as root as well.

Furthermore I can't chmod:

Code:

bash-2.05b# chmod 755 /dev/dsp
chmod: failed to get attributes of `/dev/dsp': No such file or directory
bash-2.05b# chmod 755 /dev/sound/*
chmod: failed to get attributes of `/dev/sound/*': No such file or directory


I really don't know what to do, but thank you anyway.


Last edited by alexsb on Wed Mar 10, 2004 6:44 am; edited 1 time in total
Back to top
View user's profile Send private message
joejag
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jun 2003
Posts: 90
Location: /uk/aberdeen

PostPosted: Wed Mar 10, 2004 6:06 am    Post subject: Reply with quote

Hi,

You seem to have compiled the support for your soundcard as a module and I'm guessing you haven't loaded that module on boot! :)

To make it load the module on boot edit:

/etc/modules.autoload.d/kernel-2.6

and add the name of the module which I think is "i810".

Although, I would recommend that you just compile sound support into the kernel anyway rather then have it as a module as the soundcard is always going to be there anyway so there's little need for it to be a module. (so go back to your kernel and put a '*' instead of an 'M').
Back to top
View user's profile Send private message
alexsb
Tux's lil' helper
Tux's lil' helper


Joined: 09 Mar 2004
Posts: 91
Location: Austria

PostPosted: Wed Mar 10, 2004 6:17 am    Post subject: Reply with quote

Ok, thank you, I will try that, but, in the Gentoo ALSA Guide it is strictly recommende not to install it permanently.

edit: a little question at this point: how do I find out the name of the module, it ist not i810 :)


Last edited by alexsb on Wed Mar 10, 2004 6:43 am; edited 1 time in total
Back to top
View user's profile Send private message
tekmav
n00b
n00b


Joined: 07 Mar 2004
Posts: 3

PostPosted: Wed Mar 10, 2004 6:25 am    Post subject: KDE 3.2 sound issues with Alsa Reply with quote

Whilst bored at work I came across gentoo-portage.com and noticed an
update to aRts.

I had been having trouble with KDE 3.2 screwing up with Alsa under my 2.6.3 kernel and with my Ensoniq card.


:idea: Solution---

>emerge sync
>ACCEPT_KEYWORDS="~x86" emerge =arts-1.2.1
>env-update && source /etc/profile

Under the KDE Control Center, I enabled the Sound System and changed
from Auto-Detect to Alsa. Closed KDE, started it back up. Bingo! Clear as a bell.

Thought I would share this.
Back to top
View user's profile Send private message
alexsb
Tux's lil' helper
Tux's lil' helper


Joined: 09 Mar 2004
Posts: 91
Location: Austria

PostPosted: Wed Mar 10, 2004 11:27 am    Post subject: Re: KDE 3.2 sound issues with Alsa Reply with quote

tekmav wrote:
Whilst bored at work I came across gentoo-portage.com and noticed an
update to aRts.

I had been having trouble with KDE 3.2 screwing up with Alsa under my 2.6.3 kernel and with my Ensoniq card.


:idea: Solution---

>emerge sync
>ACCEPT_KEYWORDS="~x86" emerge =arts-1.2.1
>env-update && source /etc/profile

Under the KDE Control Center, I enabled the Sound System and changed
from Auto-Detect to Alsa. Closed KDE, started it back up. Bingo! Clear as a bell.

Thought I would share this.


Thank you, works perfectly :)
Back to top
View user's profile Send private message
jbc28
Apprentice
Apprentice


Joined: 07 Jan 2003
Posts: 205
Location: Edinburgh

PostPosted: Wed Mar 10, 2004 11:37 am    Post subject: Reply with quote

pam meddles with device permissions. If you look at /etc/security/console.perms you can see how and when (This file is fairly readable and there's some documentation about it on the gentoo page, under the devfs bit I think). I commented out the soundcard bit and have ensured all my sound playing users belong to the group audio (which has write permission to /dev/sound/dsp). Unless you alter the settings for pam it will change back any permissions you alter.

I don't know of any important reason why it should change the soundcard permissions as it does.

This seems to fix the "device /dev/dsp can't be opened (No such file or directory)" problem for good.
Hope this helps,
J
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum