Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81396 - /dev/dsp no such device: could not toggle
Summary: /dev/dsp no such device: could not toggle
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-09 11:47 UTC by Ioannis Aslanidis (RETIRED)
Modified: 2005-03-21 06:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
My dmesg might be useful (dem,13.15 KB, text/plain)
2005-02-10 12:29 UTC, Ioannis Aslanidis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ioannis Aslanidis (RETIRED) gentoo-dev 2005-02-09 11:47:28 UTC
I just upgraded the system to Portage 2.0.51-r15 (default-linux/x86/2004.2/gcc34, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)

Now, games like Enemy Territory or Neverwinter Nights do not have sound and report something like:

------- sound initialization -------
/dev/dsp: No such device
Could not toggle.
------------------------------------

The funny thing is that /dev/dsp does exist and points to /dev/sound/dsp which exists too.

I've also noticed that artds does not work either and returns:

ALSA lib pcm_hw.c:563:(snd_pcm_hw_start) SNDRV_PCM_IOCTL_START failed: Broken pipe
ALSA lib pcm_hw.c:563:(snd_pcm_hw_start) SNDRV_PCM_IOCTL_START failed: Broken pipe



Even though that, applications like xmms, mplayer or aplay among many other, do work perfectly. Does anyone know what changed since kernel 2.6.9-gentoo-r9?

Any help will be more than appreciated.

BTW, there have been quite a lot of threads since the last days of January 2005 requesting help about this issue and one gets tired of closing duplicate threads, but with no answer to give.

Once again, thanks for your time!

Reproducible: Always
Steps to Reproduce:
1. Upgrade system to Portage 2.0.51-r15 (default-linux/x86/2004.2/gcc34, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
2. run "et" or "nwn" or "artsd"

Actual Results:  
Sound does not work in applications like the stated above, but does work with
apps like xmms, mplayer or aplay.

Expected Results:  
Sound should work on any app.

Portage 2.0.51-r15 (default-linux/x86/2004.2/gcc34, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 11:38:23)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -ftracer -fomit-frame-pointer -ffast-math -pipe
-fforce-addr -fforce-mem -falign-functions=4"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -ftracer -fomit-frame-pointer -ffast-math -pipe
-fforce-addr -fforce-mem -falign-functions=4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks fixpackages sandbox
sfperms usersandbox"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk http://mir.zyrianes.net/gentoo/
http://pandemonium.tiscali.de/pub/gentoo/
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://mir.zyrianes.net/gentoo/
http://ftp.heanet.ie/pub/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/
ftp://ftp.easynet.nl/mirror/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/
http://ftp.easynet.nl/mirror/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/"
LANG="es_ES.UTF-8"
LC_ALL="C"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X aalib acpi acpi4linux alsa apache2 apm arts audiofile
avi berkdb bitmap-fonts blender-game bluetooth bootsplash bzlib c++ caps cddb
cdinstall cdparanoia cdr cdrom chroot clamav clanVoice codecs crypt cups curl
dga dio directfb divx4linux dvd dvdr dvdread encode erandom esd ethereal f77 fam
fastcgi fbcon flac flash font-server foomaticdb fortran freetype gd gdbm ggi gif
gimp gimpprint gmp gnome gpm gstreamer gtk gtk2 icq imagemagick imlib ipv6 java
jikes jpeg junit kde lcms ldap libg++ libwww live mad memlimit mikmod mmx mmx2
motif mozilla mpeg msn mysql ncurses network nls nocd nptl nptlonly oggvorbis
opengl oss pam pdflib perl pic png ppds python qt quicktime radeon readline rtc
samba sdl session slang spell sse ssl svg svga szip tcltk tcpd tetex tiff
truetype truetype-fonts ttf type1-fonts unicode usb userlocales v4l v4l2 videos
wmf xml xml2 xmms xv xvid zlib linguas_es linguas_el"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-02-09 21:12:03 UTC
looks like a configuration bug wrt to artsd
Comment 2 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-10 09:11:49 UTC
> /dev/dsp: No such device

This should be interpreted as "No drivers are loaded for the device"

What's your sound setup: alsa and oss enbled in kernel?
oss emulation provided by alsa? Do you use alsa-driver instead of the
kernel drivers? What modules are loaded, as shown by lsmod?

> does work with apps like xmms, mplayer or aplay.

Maybe they use alsa devices directly (/dev/snd/*), while those that don't work
use the oss system (/dev/dsp)?
Comment 3 Ioannis Aslanidis (RETIRED) gentoo-dev 2005-02-10 11:27:27 UTC
>What's your sound setup: alsa and oss enbled in kernel?
>oss emulation provided by alsa? Do you use alsa-driver instead of the
>kernel drivers? What modules are loaded, as shown by lsmod?

1st) I use no modules, all built-in.
2nd) OSS is disabled in my kernel.
3rd) I have tried disabling OSS emulation with no effect. I did quite a lot of recompilations of the kernel changing ALSA settings before filling the bug and didn't see any change (except from removing alsa, of course :) )

Comment 4 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-10 12:04:13 UTC
Well, it seems to me that oss emulation does not work for some reason...
Have you tried going back to 2.6.9-gentoo-r9 to see if it makes a difference?
Comment 5 Ioannis Aslanidis (RETIRED) gentoo-dev 2005-02-10 12:27:11 UTC
I've just tried going back to 2.6.9-gentoo-r3 which did work but... now it does not work either so it looks like it's not a kernel problem. I assume it's a configuration problem in the profile...

Is there a way to tell the apps to use ALSA instead of OSS?
Comment 6 Ioannis Aslanidis (RETIRED) gentoo-dev 2005-02-10 12:29:25 UTC
Created attachment 50947 [details]
My dmesg might be useful

This is the output of my dmesg after booting 2.6.9-gentoo-r3
Comment 7 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-10 13:53:31 UTC
> Is there a way to tell the apps to use ALSA instead of OSS?

I think not, if they don't support ALSA.

Anyway, this is not likely to be a kde issue. And it is not likely to
be a Gentoo issue, too: see here for instance
http://www.fedoraforum.org/forum/showthread.php?p=99484

reassigning to sound@g.o to let them decide what to do.
Comment 8 Ioannis Aslanidis (RETIRED) gentoo-dev 2005-02-10 15:31:46 UTC
I agree on that and I had already seen that thread...
It's just that the workaround they propose... well it's just a workaround. :)
Comment 9 Ioannis Aslanidis (RETIRED) gentoo-dev 2005-03-07 02:01:37 UTC
It looks like kernel has to be reconfigured in order to properly have sound on these things... now, after a reconfiguration of the kernel it works.
Comment 10 Ioannis Aslanidis (RETIRED) gentoo-dev 2005-03-20 18:02:53 UTC
Taking back comment #9. It does not work either in my amd64... the soundcard is a Live! (emu10k1)

Quote:
Originally Posted by Linuxer12345
1. Start ET with no sound
2. Run the following:
cd /usr/local/games/enemy-territory
echo "et.x86 0 0 direct" >/proc/asound/card0/pcm0p/oss
3. Start ET again with sound this time (hopefully)

And make sure that the volume is not zero as it is default. 


This shouldn't be necesary with a Live! card, since its duplex device has 32 playback subdevices (though only 21 are useable by ALSA). Anyway I tend NOT to use stock ALSA drivers and always build my own from ALSA's page and never had a problem with Q3, RTCW or ET (known to have problems when you don't havea HW mixing capable sound card, which the Live! is).


I'll try to build the drivers... hope to be lucky.
Comment 11 Ioannis Aslanidis (RETIRED) gentoo-dev 2005-03-20 18:14:13 UTC
That didn't work, still getting:

/dev/dsp: No such device
Could not toggle.

I start thinking there is a problem with the driver of the sound card... please, somebody bring in an idea.
Comment 12 Ioannis Aslanidis (RETIRED) gentoo-dev 2005-03-21 06:21:08 UTC
Solved:

First step:

# emerge udev hotplug coldplug
# rc-update add coldplug boot
# rc-update add hotplug boot

Second step:

Disable ALSA from kernel, instead:

# emerge alsa-driver alsa-oss alsa-utils
and configure correctly /etc/modules.d/alsa

Notice in /etc/modules.d/alsa:
The fact of having an additional usb sound device means the card limits variable must be incremented, that is 1 sound card + 1 usb device => card limit = 2