View previous topic :: View next topic |
Author |
Message |
alexsb Tux's lil' helper
Joined: 09 Mar 2004 Posts: 91 Location: Austria
|
Posted: Tue Mar 09, 2004 10:53 pm Post subject: KDE 3.2 Sound Problem |
|
|
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 |
|
|
cheezyboy n00b
Joined: 04 Feb 2004 Posts: 34
|
Posted: Wed Mar 10, 2004 1:43 am Post subject: |
|
|
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 |
|
|
alexsb Tux's lil' helper
Joined: 09 Mar 2004 Posts: 91 Location: Austria
|
Posted: Wed Mar 10, 2004 5:48 am Post subject: |
|
|
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 |
|
|
joejag Tux's lil' helper
Joined: 26 Jun 2003 Posts: 90 Location: /uk/aberdeen
|
Posted: Wed Mar 10, 2004 6:06 am Post subject: |
|
|
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 |
|
|
alexsb Tux's lil' helper
Joined: 09 Mar 2004 Posts: 91 Location: Austria
|
Posted: Wed Mar 10, 2004 6:17 am Post subject: |
|
|
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 |
|
|
tekmav n00b
Joined: 07 Mar 2004 Posts: 3
|
Posted: Wed Mar 10, 2004 6:25 am Post subject: KDE 3.2 sound issues with Alsa |
|
|
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.
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 |
|
|
alexsb Tux's lil' helper
Joined: 09 Mar 2004 Posts: 91 Location: Austria
|
Posted: Wed Mar 10, 2004 11:27 am Post subject: Re: KDE 3.2 sound issues with Alsa |
|
|
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.
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 |
|
|
jbc28 Apprentice
Joined: 07 Jan 2003 Posts: 205 Location: Edinburgh
|
Posted: Wed Mar 10, 2004 11:37 am Post subject: |
|
|
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 |
|
|
|