Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

/dev/dsp and udev?

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
25 posts • Page 1 of 1
Author
Message
afabco
Guru
Guru
Posts: 380
Joined: Tue Feb 24, 2004 7:11 pm

/dev/dsp and udev?

  • Quote

Post by afabco » Fri Mar 11, 2005 10:14 pm

Shouldn't udev be setting up /dev/dsp ?

If I type:

$ mpg123 <stream>
<snip>
Can't open /dev/dsp!

$ ls -la /dev/dsp

ls: /dev/dsp: no such file or directory.

Well, duh.

What gives?

thx
Anyone who puts a small gloss on a fundamental technology, calls it proprietary, and then tries to keep others from building on it, is a thief.
-Tim O'Reilly
Top
mascanho
Veteran
Veteran
User avatar
Posts: 1241
Joined: Tue Dec 21, 2004 2:55 am
Location: On my Bmx Bike on a Concrete Park Flatlanding ...
Contact:
Contact mascanho
Website

  • Quote

Post by mascanho » Fri Mar 11, 2005 11:50 pm

try etc-update udev
Flatland Life is a Choice !
emerge avatar
Top
Morimando
Guru
Guru
User avatar
Posts: 339
Joined: Mon Feb 14, 2005 10:11 pm
Location: Germany
Contact:
Contact Morimando
Website

  • Quote

Post by Morimando » Sat Mar 12, 2005 12:03 am

Yes udev should. Do you run pure udev or mixed with devfs?
That young girl is one of the least benightedly unintelligent organic life forms it has been my profound lack of pleasure not to be able to avoid meeting.
-- Marvin
Top
afabco
Guru
Guru
Posts: 380
Joined: Tue Feb 24, 2004 7:11 pm

  • Quote

Post by afabco » Sat Mar 12, 2005 2:44 am

I believe so. I actually even emerge -C'ed devfs.

What do I need to post?
Anyone who puts a small gloss on a fundamental technology, calls it proprietary, and then tries to keep others from building on it, is a thief.
-Tim O'Reilly
Top
frenkel
Veteran
Veteran
User avatar
Posts: 1034
Joined: Tue May 13, 2003 5:08 pm
Location: .nl
Contact:
Contact frenkel
Website

  • Quote

Post by frenkel » Sat Mar 12, 2005 11:15 am

This is a bug in udev. The unstable version of udev has a fix, you can emerge it this way:

# echo "sys-fs/udev ~x86" >> /etc/portage/packages.keywords
# emerge udev

Good luck,
Frank
http://techfield.org
Top
mascanho
Veteran
Veteran
User avatar
Posts: 1241
Joined: Tue Dec 21, 2004 2:55 am
Location: On my Bmx Bike on a Concrete Park Flatlanding ...
Contact:
Contact mascanho
Website

  • Quote

Post by mascanho » Sat Mar 12, 2005 11:49 am

i'm now thinking changing to defvs it seems so much more stable, and easy to use .
If it still fails with ~x86 udev try devfs instead
Flatland Life is a Choice !
emerge avatar
Top
frenkel
Veteran
Veteran
User avatar
Posts: 1034
Joined: Tue May 13, 2003 5:08 pm
Location: .nl
Contact:
Contact frenkel
Website

  • Quote

Post by frenkel » Sat Mar 12, 2005 11:56 am

mascanho wrote:i'm now thinking changing to defvs it seems so much more stable, and easy to use .
If it still fails with ~x86 udev try devfs instead
You should not use devfs anymore, its obsolete. The ~x86 version of udev really fixes it, and it's not unstable!

Frank
http://techfield.org
Top
Morimando
Guru
Guru
User avatar
Posts: 339
Joined: Mon Feb 14, 2005 10:11 pm
Location: Germany
Contact:
Contact Morimando
Website

  • Quote

Post by Morimando » Sat Mar 12, 2005 1:26 pm

devfs is more rigid concerning naming schemes and such, stick to udev
That young girl is one of the least benightedly unintelligent organic life forms it has been my profound lack of pleasure not to be able to avoid meeting.
-- Marvin
Top
codemaker
Guru
Guru
User avatar
Posts: 398
Joined: Thu Jun 03, 2004 6:48 pm
Location: Lisboa, Portugal
Contact:
Contact codemaker
Website

  • Quote

Post by codemaker » Sat Mar 12, 2005 4:41 pm

I was trying to switch do udev, followed the gentoo documentation and ended up with no sound and no X.

I was using alsa-driver for sound and ati-drivers. The alsa modules are not loaded:

Code: Select all

Mar 12 15:01:21 delphis snd_intel8x0: Unknown symbol snd_ac97_pcm_assign
Mar 12 15:01:21 delphis snd_intel8x0: Unknown symbol snd_pcm_hw_constraint_integer
Mar 12 15:01:21 delphis snd_intel8x0: Unknown symbol snd_pcm_hw_constraint_msbits
Mar 12 15:01:21 delphis snd_intel8x0: Unknown symbol snd_pcm_period_elapsed
Mar 12 15:01:21 delphis snd_intel8x0: Unknown symbol snd_ac97_tune_hardware
Mar 12 15:01:21 delphis snd: Unknown parameter `device_mode'
Mar 12 15:01:21 delphis snd_timer: Unknown symbol snd_info_register
Mar 12 15:01:21 delphis snd_timer: Unknown symbol snd_info_create_module_entry
Mar 12 15:01:21 delphis snd_timer: Unknown symbol snd_info_free_entry
Mar 12 15:01:21 delphis snd_timer: Unknown symbol snd_verbose_printk
Mar 12 15:01:21 delphis snd_timer: Unknown symbol snd_iprintf
Mar 12 15:01:21 delphis snd_timer: Unknown symbol snd_ecards_limit
Mar 12 15:01:21 delphis snd_timer: Unknown symbol snd_oss_info_register
Mar 12 15:01:21 delphis snd_timer: Unknown symbol snd_unregister_device
Mar 12 15:01:21 delphis snd_timer: Unknown symbol snd_device_new
Mar 12 15:01:21 delphis snd_timer: Unknown symbol snd_kmalloc_strdup
Mar 12 15:01:21 delphis snd_timer: Unknown symbol snd_info_unregister
Mar 12 15:01:21 delphis snd_timer: Unknown symbol snd_register_device
Mar 12 15:01:21 delphis snd_pcm: Unknown symbol snd_info_register
...

KDM dies with this log:

Code: Select all

XFree86 Version 4.3.0.1
Release Date: 15 August 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.6.5 i686 [ELF] 
Build Date: 01 May 2004
	Before reporting problems, check http://www.XFree86.Org/
	to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
         (++) from command line, (!!) notice, (II) informational,
         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Mon May  3 23:26:04 2004
(==) Using config file: "/etc/X11/XF86Config"
(WW) RADEON: No matching Device section for instance (BusID PCI:2:0:1) found
Symbol drmGetClient from module /usr/X11R6/lib/modules/drivers/radeon_drv.o is unresolved!
(EE) Mouse1: Unknown protocol "imps2"
(EE) PreInit failed for input device "Mouse1"
No core pointer

Fatal server error:
failed to initialize core devices

I started writting this post with no ideas about what this could be. I'm now wondering if the problem is with different names for the devices between devfs and udev?
Top
frenkel
Veteran
Veteran
User avatar
Posts: 1034
Joined: Tue May 13, 2003 5:08 pm
Location: .nl
Contact:
Contact frenkel
Website

  • Quote

Post by frenkel » Sat Mar 12, 2005 6:40 pm

Frenkel wrote:This is a bug in udev. The unstable version of udev has a fix, you can emerge it this way:

# echo "sys-fs/udev ~x86" >> /etc/portage/packages.keywords
# emerge udev

Good luck,
Frank
http://techfield.org
Top
mascanho
Veteran
Veteran
User avatar
Posts: 1241
Joined: Tue Dec 21, 2004 2:55 am
Location: On my Bmx Bike on a Concrete Park Flatlanding ...
Contact:
Contact mascanho
Website

  • Quote

Post by mascanho » Sat Mar 12, 2005 8:07 pm

Code: Select all

etc-update udev
its a known bug
Flatland Life is a Choice !
emerge avatar
Top
afabco
Guru
Guru
Posts: 380
Joined: Tue Feb 24, 2004 7:11 pm

  • Quote

Post by afabco » Thu Mar 17, 2005 6:25 pm

sorry for the delay, having other, far more serious problems after last emerge -uD world

http://forums.gentoo.org/viewtopic-t-30 ... ight-.html
http://forums.gentoo.org/viewtopic-t-30 ... ight-.html

anyway, I have udev-054 emerge'ed, and many many reboots since (see above problems).

Still no /dev/dsp.

What next?

thanks
Anyone who puts a small gloss on a fundamental technology, calls it proprietary, and then tries to keep others from building on it, is a thief.
-Tim O'Reilly
Top
mascanho
Veteran
Veteran
User avatar
Posts: 1241
Joined: Tue Dec 21, 2004 2:55 am
Location: On my Bmx Bike on a Concrete Park Flatlanding ...
Contact:
Contact mascanho
Website

  • Quote

Post by mascanho » Thu Mar 17, 2005 7:21 pm

man thats werid if you already tried all udev versions and cheked your kernel configuration i would sugest you to try

Code: Select all

mknod
dont remember anything else ... sorry
Flatland Life is a Choice !
emerge avatar
Top
afabco
Guru
Guru
Posts: 380
Joined: Tue Feb 24, 2004 7:11 pm

  • Quote

Post by afabco » Thu Mar 17, 2005 7:29 pm

s'alright. I'm thinking this machine is totally voodoo'ed anyway. Was fine for months and months until two days ago. Oh well.
Anyone who puts a small gloss on a fundamental technology, calls it proprietary, and then tries to keep others from building on it, is a thief.
-Tim O'Reilly
Top
mascanho
Veteran
Veteran
User avatar
Posts: 1241
Joined: Tue Dec 21, 2004 2:55 am
Location: On my Bmx Bike on a Concrete Park Flatlanding ...
Contact:
Contact mascanho
Website

  • Quote

Post by mascanho » Thu Mar 17, 2005 7:39 pm

last case backup up everything and reinstall gentoo. But im sure its just a simple problem that we are making a big thing out of it :P
Flatland Life is a Choice !
emerge avatar
Top
quadbox
Tux's lil' helper
Tux's lil' helper
Posts: 94
Joined: Tue Jun 11, 2002 9:48 am
Location: Brisbane, Australia

  • Quote

Post by quadbox » Thu Mar 17, 2005 9:46 pm

Is the /dev/sound/dsp device there?

/dev/dsp is just a symlink to it. If the actual device is there, just manually create a symlink
Top
afabco
Guru
Guru
Posts: 380
Joined: Tue Feb 24, 2004 7:11 pm

  • Quote

Post by afabco » Thu Mar 17, 2005 10:43 pm

Here's the relevant stuff:


bash-2.05b$ mpg123 mp3/*
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59s-mh4 (2000/Oct/27). Written and copyrights by Michael Hipp.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Can't open /dev/dsp!
bash-2.05b$ su
Password:
No Sockets found in /var/run/screen/S-root.

leeamlp thomson # ls -la /dev/dsp
ls: /dev/dsp: No such file or directory
leeamlp thomson # ls -la /dev/snd
snd sndstat
leeamlp thomson # ls -la /dev/snd/
total 0
drwxr-xr-x 2 root root 0 Mar 17 13:29 .
drwxr-xr-x 17 root root 0 Mar 17 13:29 ..
crw------- 1 thomson audio 116, 0 Mar 17 13:29 controlC0
crw------- 1 thomson audio 116, 24 Mar 17 13:29 pcmC0D0c
crw------- 1 thomson audio 116, 16 Mar 17 13:29 pcmC0D0p
crw------- 1 thomson audio 116, 25 Mar 17 13:29 pcmC0D1c
crw------- 1 thomson audio 116, 26 Mar 17 13:29 pcmC0D2c
crw------- 1 thomson audio 116, 27 Mar 17 13:29 pcmC0D3c
crw------- 1 thomson audio 116, 20 Mar 17 13:29 pcmC0D4p
crw------- 1 thomson audio 116, 1 Mar 17 13:29 seq
crw------- 1 thomson audio 116, 33 Mar 17 13:29 timer
leeamlp thomson # emerge -pv udev
________________________________________________________________________________

cfg-update 1.6 : Building checksum index... (takes a few seconds) done!
________________________________________________________________________________


These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild R ] sys-fs/udev-054 (-selinux) -static 0 kB

Total size of downloads: 0 kB
leeamlp thomson # cat /etc/udev/udev.rules

<snip>
# sound devices
KERNEL="adsp", NAME="sound/%k", SYMLINK="%k"
KERNEL="adsp[0-9]*", NAME="sound/%k", SYMLINK="%k"
KERNEL="audio", NAME="sound/%k", SYMLINK="%k"
KERNEL="audio[0-9]*", NAME="sound/%k", SYMLINK="%k"
KERNEL="dsp", NAME="sound/%k", SYMLINK="%k"
KERNEL="dsp[0-9]*", NAME="sound/%k", SYMLINK="%k"
KERNEL="mixer", NAME="sound/%k", SYMLINK="%k"
KERNEL="mixer[0-9]*", NAME="sound/%k", SYMLINK="%k"
KERNEL="sequencer", NAME="sound/%k", SYMLINK="%k"
KERNEL="sequencer[0-9]*", NAME="sound/%k", SYMLINK="%k"
<snip>

leeamlp thomson # cat /etc/udev/udev.permissions

<snip>
# audio devices
dsp*:root:audio:0660
audio*:root:audio:0660
midi*:root:audio:0660
mixer*:root:audio:0660
sequencer*:root:audio:0660
sound/*:root:audio:0660
snd/*:root:audio:0660
beep:root:audio:0660
admm*:root:audio:0660
adsp*:root:audio:0660
aload*:root:audio:0660
amidi*:root:audio:0660
dmfm*:root:audio:0660
dmmidi*:root:audio:0660
sndstat:root:audio:0660

<snip>

Hm. Just noticed that the permissions don't match, which usually implies udev isn't doing the dev setups. Let me check /etc/rc.conf

RC_DEVICES="udev"

# Set to "yes" if you want to save /dev to a tarball on shutdown
# and restore it on startup. This is useful if you have a lot of
# custom device nodes that udev do not handle/know about.
# (ONLY used by UDEV enabled systems!)

RC_DEVICE_TARBALL="no"

Those look ok.

Will delete /dev/snd, and get back with you.
Anyone who puts a small gloss on a fundamental technology, calls it proprietary, and then tries to keep others from building on it, is a thief.
-Tim O'Reilly
Top
bludger
Guru
Guru
Posts: 389
Joined: Wed Apr 09, 2003 7:14 am

  • Quote

Post by bludger » Fri Mar 25, 2005 6:49 am

Could you please specify which versions of udev have the bug and which have the fix. Just saying that the "current" version has a bug, does not say much a few weeks later when the portage tree has been updated. Posting the bug number might also help.
Top
AssociateX
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 134
Joined: Thu Feb 19, 2004 5:13 pm
Location: North Dakota

  • Quote

Post by AssociateX » Sun May 15, 2005 5:53 am

This may help:

http://forums.gentoo.org/viewtopic-p-24 ... ml#2410125
AssociateX
Gentoo rocks!
Top
sentinals_arm
n00b
n00b
Posts: 9
Joined: Sat Jan 15, 2005 12:26 pm

  • Quote

Post by sentinals_arm » Tue May 17, 2005 4:03 pm

I had this problem and just discovered that /dev/sound was a character device and NOT a directory (if you look at the udev rules file, the dsp node in put into /dev/sound and a symlink of /dev/dsp is created)

try (if your using alsa):

Code: Select all

rm /dev/sound
/etc/init.d/alsasound restart
Top
SmegTheLight
Tux's lil' helper
Tux's lil' helper
Posts: 97
Joined: Fri Jul 05, 2002 3:54 am
Location: 3rd Planet

  • Quote

Post by SmegTheLight » Sun May 22, 2005 6:52 pm

sentinals_arm wrote:I had this problem and just discovered that /dev/sound was a character device and NOT a directory (if you look at the udev rules file, the dsp node in put into /dev/sound and a symlink of /dev/dsp is created)

try (if your using alsa):

Code: Select all

rm /dev/sound
/etc/init.d/alsasound restart
That did it for me !
Top
neonknight
Guru
Guru
User avatar
Posts: 357
Joined: Sat Jul 19, 2003 3:13 pm
Location: Zurich, Switzerland
Contact:
Contact neonknight
Website

  • Quote

Post by neonknight » Mon May 23, 2005 6:39 pm

Try
modprobe snd-seq-oss
modprobe snd-pcm-oss
modprobe snd-mixer-oss

If it works, you can add these tree modules to /etc/modules.autoload.d/kernel-2.6 or compile oss-emulation into the kernel.
Top
krueger
n00b
n00b
User avatar
Posts: 5
Joined: Wed Dec 11, 2002 7:38 am
Location: Sweden

  • Quote

Post by krueger » Fri May 27, 2005 8:48 am

SmegTheLight wrote:
sentinals_arm wrote:I had this problem and just discovered that /dev/sound was a character device and NOT a directory (if you look at the udev rules file, the dsp node in put into /dev/sound and a symlink of /dev/dsp is created)

try (if your using alsa):

Code: Select all

rm /dev/sound
/etc/init.d/alsasound restart
That did it for me !
Bingo!! Worked great :lol:
/Krueger
Top
alterself.com
Apprentice
Apprentice
User avatar
Posts: 175
Joined: Thu Nov 13, 2003 5:57 am
Location: Iowa
Contact:
Contact alterself.com
Website

  • Quote

Post by alterself.com » Tue May 31, 2005 6:56 am

this did not work for me...

one big reason is that the /dev/sound dir dosent exist in the first place...

my sounds DOES WORK from cli just not from X....any ideas?

i am running ~x86 and am 'current' as of post date
Top
Krojack
n00b
n00b
User avatar
Posts: 34
Joined: Fri Jan 23, 2004 7:35 pm
Location: Michigan

  • Quote

Post by Krojack » Wed Jun 29, 2005 9:34 pm

krueger wrote:
SmegTheLight wrote:
sentinals_arm wrote:I had this problem and just discovered that /dev/sound was a character device and NOT a directory (if you look at the udev rules file, the dsp node in put into /dev/sound and a symlink of /dev/dsp is created)

try (if your using alsa):

Code: Select all

rm /dev/sound
/etc/init.d/alsasound restart
That did it for me !
Bingo!! Worked great :lol:
Fixed mine also... thanks :)
"Chance is irrelevant, we will succeed."
- Seven of Nine (ST:Voyager)
Top
Post Reply

25 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy