Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] device /dev/dsp can't be opened when KDE starts
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
ant1688
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2007
Posts: 138

PostPosted: Mon May 07, 2007 8:02 am    Post subject: [SOLVED] device /dev/dsp can't be opened when KDE starts Reply with quote

I have problem when starting KDE, anyone can tell me how to solve it?
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.


Last edited by ant1688 on Tue May 15, 2007 8:30 am; edited 1 time in total
Back to top
View user's profile Send private message
KRF
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jun 2006
Posts: 124
Location: Germany

PostPosted: Mon May 07, 2007 4:55 pm    Post subject: Reply with quote

Check what sound system you're using. I'd recommend using the ALSA system, but it seems like you're using the old deprecated OSS system. If you want to use /dev/dsp as audio output you have to enable "OSS support" in your kernel config. It'll provide the /dev/dsp node.
_________________

Gentoo Linux, running kde-3.5
CPU: i686 Intel P4 2.80GHz | RAM: 2048MB DDR
Profile: gentoo-sources-2.6.23*, gcc-4.1*, portage-2.1.3* (2007.0)

Please add [SOLVED] to your message title if your problem is solved.
Back to top
View user's profile Send private message
ant1688
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2007
Posts: 138

PostPosted: Tue May 08, 2007 8:22 am    Post subject: Reply with quote

Thanks!
I have already alsa installed,
my sound card is SoundMax Intergrated Digital Audio which runs well in MS-Windows.
Back to top
View user's profile Send private message
mirojira
l33t
l33t


Joined: 18 Feb 2006
Posts: 685

PostPosted: Tue May 08, 2007 5:49 pm    Post subject: Reply with quote

ant1688 wrote:

I have already alsa installed,
How is it installed in-kernel(as modules or statically) or alsa-driver?
Back to top
View user's profile Send private message
ant1688
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2007
Posts: 138

PostPosted: Wed May 09, 2007 7:38 am    Post subject: Reply with quote

the kernel was made by "genkernel all" and the alsa was installed by "emerge alsa".
Quote:
# emerge alsa -p

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] sys-kernel/gentoo-sources-2.6.20-r8
Back to top
View user's profile Send private message
mirojira
l33t
l33t


Joined: 18 Feb 2006
Posts: 685

PostPosted: Wed May 09, 2007 8:30 am    Post subject: Reply with quote

ant1688 wrote:
the kernel was made by "genkernel all" and the alsa was installed by "emerge alsa".

Do you mean alsa-driver? If yes make
Code:
USE="oss" emerge alsa-driver
In /etc/conf.d/alsasound must be ENABLE_OSS_EMUL="yes"
After that you should have created /dev/dsp node.
Back to top
View user's profile Send private message
ant1688
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2007
Posts: 138

PostPosted: Wed May 09, 2007 8:41 am    Post subject: Reply with quote

no, I only install alsa, but alsa-driver.
but when I try to install alsa-driver, I have the output:
Quote:
# USE="oss" emerge alsa-driver
Calculating dependencies... done!

>>> Emerging (1 of 1) media-sound/alsa-driver-1.0.14_rc2-r1 to /
* alsa-driver-1.0.14rc2.tar.bz2 RMD160 ;-) ... [ ok ]
* alsa-driver-1.0.14rc2.tar.bz2 SHA1 ;-) ... [ ok ]
* alsa-driver-1.0.14rc2.tar.bz2 SHA256 ;-) ... [ ok ]
* alsa-driver-1.0.14rc2.tar.bz2 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking alsa-driver-1.0.14rc2.tar.bz2 ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/2.6.20-gentoo-r7/build
* Found sources for kernel version:
* 2.6.20-gentoo-r7
* Checking for suitable kernel configuration options...
* ALSA is already compiled into the kernel.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.
* Once you have satisfied these options, please try merging
* this package again.

!!! ERROR: media-sound/alsa-driver-1.0.14_rc2-r1 failed.
Call stack:
ebuild.sh, line 1630: Called dyn_setup
ebuild.sh, line 702: Called qa_call 'pkg_setup'
ebuild.sh, line 38: Called pkg_setup
alsa-driver-1.0.14_rc2-r1.ebuild, line 91: Called linux-mod_pkg_setup
linux-mod.eclass, line 464: Called linux-info_pkg_setup
linux-info.eclass, line 572: Called check_extra_config
linux-info.eclass, line 471: Called die

!!! Incorrect kernel configuration options
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/media-sound/alsa-driver-1.0.14_rc2-r1/temp/build.log'.

should I rebuild my kernel?
Back to top
View user's profile Send private message
mirojira
l33t
l33t


Joined: 18 Feb 2006
Posts: 685

PostPosted: Wed May 09, 2007 11:11 am    Post subject: Reply with quote

Quote:
* ALSA is already compiled into the kernel.
means that you do not use alsa-driver but alsa in kernel. So if you want create /dev/dsp node,
you have to enable /dev/dsp support in kernel, see http://www.gentoo.org/doc/en/alsa-guide.xml Code Listing 2.3: Kernel Options for ALSA
Back to top
View user's profile Send private message
KRF
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jun 2006
Posts: 124
Location: Germany

PostPosted: Wed May 09, 2007 2:09 pm    Post subject: Reply with quote

Didn't I say this? :twisted:
_________________

Gentoo Linux, running kde-3.5
CPU: i686 Intel P4 2.80GHz | RAM: 2048MB DDR
Profile: gentoo-sources-2.6.23*, gcc-4.1*, portage-2.1.3* (2007.0)

Please add [SOLVED] to your message title if your problem is solved.
Back to top
View user's profile Send private message
ant1688
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2007
Posts: 138

PostPosted: Tue May 15, 2007 8:29 am    Post subject: Reply with quote

all problems solved, see https://forums.gentoo.org/viewtopic-t-556987-start-50.html.
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