public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] udev / sound
@ 2006-02-11 19:29 Uwe Thiem
  2006-02-11 20:19 ` Christoph Eckert
  2006-02-11 21:04 ` Abhay Kedia
  0 siblings, 2 replies; 14+ messages in thread
From: Uwe Thiem @ 2006-02-11 19:29 UTC (permalink / raw
  To: gentoo-user

Hi folks,

I did an update world last night with a --sync that was a couple of days old 
because it took me several nights to get all the stuff (deltup didn't have 
most of the diffs, so I had to download the whole tarballs).

After emerging, compiling, installing all of it, I did an etc-update. Among 
other things, I merged the new udev rules and rebooted to get them into 
effect.

Sound is gone. Artsd complains that there is no /dev/dsp - and rightly so. All 
sound-related devices under /dev are gone. There are a couple of devices 
under /dev/snd:

uwe@uwix /dev/snd $ ls -l
total 0
crw-rw---- 1 root audio 116,  0 Feb 11 21:14 controlC0
crw-rw---- 1 root audio 116, 24 Feb 11 21:14 pcmC0D0c
crw-rw---- 1 root audio 116, 16 Feb 11 21:14 pcmC0D0p
crw-rw---- 1 root audio 116, 25 Feb 11 21:14 pcmC0D1c
crw-rw---- 1 root audio 116, 33 Feb 11 21:14 timer

lsmod reveals that the relevant modules are loaded:

mii                     5888  1 sis900
snd_intel8x0           32224  0
snd_ac97_codec         84092  1 snd_intel8x0
snd_ac97_bus            3200  1 snd_ac97_codec
snd_pcm                83588  2 snd_intel8x0,snd_ac97_codec
snd_timer              24836  1 snd_pcm
snd                    52196  4 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
snd_page_alloc         11144  2 snd_intel8x0,snd_pcm

If I recollect correctly that's about what I had before.

Now, what did I wrong? ... and equally important: What do I do to get my noise 
back? ;-)

Uwe

-- 
Why do consumers keep buying products they will live to curse?
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] udev / sound
  2006-02-11 19:29 [gentoo-user] udev / sound Uwe Thiem
@ 2006-02-11 20:19 ` Christoph Eckert
  2006-02-12 19:01   ` Uwe Thiem
  2006-02-11 21:04 ` Abhay Kedia
  1 sibling, 1 reply; 14+ messages in thread
From: Christoph Eckert @ 2006-02-11 20:19 UTC (permalink / raw
  To: gentoo-user


> Sound is gone. Artsd complains that there is no /dev/dsp - and
> rightly so. All sound-related devices under /dev are gone. There are
> a couple of devices under /dev/snd:
>
> uwe@uwix /dev/snd $ ls -l
> total 0
> crw-rw---- 1 root audio 116,  0 Feb 11 21:14 controlC0
> crw-rw---- 1 root audio 116, 24 Feb 11 21:14 pcmC0D0c
> crw-rw---- 1 root audio 116, 16 Feb 11 21:14 pcmC0D0p
> crw-rw---- 1 root audio 116, 25 Feb 11 21:14 pcmC0D1c
> crw-rw---- 1 root audio 116, 33 Feb 11 21:14 timer

there are ALSA capture and playback devices; did you accidentally 
disable the ALSA-OSS-emulation in the kernel config? Did you raise the 
master and PCM sliders in alsamixer -c 1?


Best regards


ce

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] udev / sound
  2006-02-11 19:29 [gentoo-user] udev / sound Uwe Thiem
  2006-02-11 20:19 ` Christoph Eckert
@ 2006-02-11 21:04 ` Abhay Kedia
  2006-02-11 21:21   ` Christoph Eckert
  2006-02-12 18:59   ` Uwe Thiem
  1 sibling, 2 replies; 14+ messages in thread
From: Abhay Kedia @ 2006-02-11 21:04 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 754 bytes --]

On Sunday 12 February 2006 00:59, Uwe Thiem wrote:
>
> Sound is gone. Artsd complains that there is no /dev/dsp - and rightly so.
> All sound-related devices under /dev are gone. There are a couple of
> devices under /dev/snd:
>
The devices of interest are under /dev/sound and not under /dev/snd

# ls -l /dev/sound
total 0
crw-rw----  1 root audio 14, 4 Feb 11 15:19 audio
crw-rw----  1 root audio 14, 3 Feb 11 15:19 dsp
crw-rw----  1 root audio 14, 0 Feb 11 15:19 mixer
crw-rw----  1 root audio 14, 1 Feb 11 15:19 sequencer
crw-rw----  1 root audio 14, 8 Feb 11 15:19 sequencer2
#

Now try "/etc/init.d/alsasound restart" and then immediately see under dmesg 
for any errors or any other things of interest.

-- 
Regards,
Abhay

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] udev / sound
  2006-02-11 21:04 ` Abhay Kedia
@ 2006-02-11 21:21   ` Christoph Eckert
  2006-02-12 18:58     ` Uwe Thiem
  2006-02-12 18:59   ` Uwe Thiem
  1 sibling, 1 reply; 14+ messages in thread
From: Christoph Eckert @ 2006-02-11 21:21 UTC (permalink / raw
  To: gentoo-user


> The devices of interest are under /dev/sound and not under /dev/snd
>
> # ls -l /dev/sound
> total 0
> crw-rw----  1 root audio 14, 4 Feb 11 15:19 audio
> crw-rw----  1 root audio 14, 3 Feb 11 15:19 dsp
> crw-rw----  1 root audio 14, 0 Feb 11 15:19 mixer
> crw-rw----  1 root audio 14, 1 Feb 11 15:19 sequencer
> crw-rw----  1 root audio 14, 8 Feb 11 15:19 sequencer2
> #

these are the OSS devices, these days emulated by ALSA.

As OSS is deprecated, go to the control center, soundsystem, hardware 
and choose ALSA.

Unfortunately this will not help applications which are still written to 
use OSS (like firefox, Skype and so on). If you need them, you need to 
figure out what goes wrong with the OSS emulation of ALSA. Maybe a prob 
of improper device rights (try an app which needs OSS as root)?


Best regards


ce

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] udev / sound
  2006-02-11 21:21   ` Christoph Eckert
@ 2006-02-12 18:58     ` Uwe Thiem
  2006-02-12 19:28       ` Christoph Eckert
  0 siblings, 1 reply; 14+ messages in thread
From: Uwe Thiem @ 2006-02-12 18:58 UTC (permalink / raw
  To: gentoo-user

On 11 February 2006 23:21, Christoph Eckert wrote:
> > The devices of interest are under /dev/sound and not under /dev/snd
> >
> > # ls -l /dev/sound
> > total 0
> > crw-rw----  1 root audio 14, 4 Feb 11 15:19 audio
> > crw-rw----  1 root audio 14, 3 Feb 11 15:19 dsp
> > crw-rw----  1 root audio 14, 0 Feb 11 15:19 mixer
> > crw-rw----  1 root audio 14, 1 Feb 11 15:19 sequencer
> > crw-rw----  1 root audio 14, 8 Feb 11 15:19 sequencer2
> > #
>
> these are the OSS devices, these days emulated by ALSA.
>
> As OSS is deprecated, go to the control center, soundsystem, hardware
> and choose ALSA.

How would that help udev to create the relevant special device files?

Uwe

-- 
Why do consumers keep buying products they will live to curse?

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] udev / sound
  2006-02-11 21:04 ` Abhay Kedia
  2006-02-11 21:21   ` Christoph Eckert
@ 2006-02-12 18:59   ` Uwe Thiem
  2006-02-12 22:25     ` Abhay Kedia
  1 sibling, 1 reply; 14+ messages in thread
From: Uwe Thiem @ 2006-02-12 18:59 UTC (permalink / raw
  To: gentoo-user

On 11 February 2006 23:04, Abhay Kedia wrote:
> On Sunday 12 February 2006 00:59, Uwe Thiem wrote:
> > Sound is gone. Artsd complains that there is no /dev/dsp - and rightly
> > so. All sound-related devices under /dev are gone. There are a couple of
> > devices under /dev/snd:
>
> The devices of interest are under /dev/sound and not under /dev/snd
>
> # ls -l /dev/sound
> total 0
> crw-rw----  1 root audio 14, 4 Feb 11 15:19 audio
> crw-rw----  1 root audio 14, 3 Feb 11 15:19 dsp
> crw-rw----  1 root audio 14, 0 Feb 11 15:19 mixer
> crw-rw----  1 root audio 14, 1 Feb 11 15:19 sequencer
> crw-rw----  1 root audio 14, 8 Feb 11 15:19 sequencer2
> #

No, they are not. That's OSS stuff and not present on my box since I don't use 
OSS.

Uwe

-- 
Why do consumers keep buying products they will live to curse?
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] udev / sound
  2006-02-11 20:19 ` Christoph Eckert
@ 2006-02-12 19:01   ` Uwe Thiem
  2006-02-12 19:21     ` Christoph Eckert
  0 siblings, 1 reply; 14+ messages in thread
From: Uwe Thiem @ 2006-02-12 19:01 UTC (permalink / raw
  To: gentoo-user

On 11 February 2006 22:19, Christoph Eckert wrote:
> > Sound is gone. Artsd complains that there is no /dev/dsp - and
> > rightly so. All sound-related devices under /dev are gone. There are
> > a couple of devices under /dev/snd:
> >
> > uwe@uwix /dev/snd $ ls -l
> > total 0
> > crw-rw---- 1 root audio 116,  0 Feb 11 21:14 controlC0
> > crw-rw---- 1 root audio 116, 24 Feb 11 21:14 pcmC0D0c
> > crw-rw---- 1 root audio 116, 16 Feb 11 21:14 pcmC0D0p
> > crw-rw---- 1 root audio 116, 25 Feb 11 21:14 pcmC0D1c
> > crw-rw---- 1 root audio 116, 33 Feb 11 21:14 timer
>
> there are ALSA capture and playback devices; did you accidentally
> disable the ALSA-OSS-emulation in the kernel config? 

Nope. Didn't even recompile the kernel.

> Did you raise the 
> master and PCM sliders in alsamixer -c 1?

What does that have to do with udev not creating the special device files?

Uwe

-- 
Why do consumers keep buying products they will live to curse?

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] udev / sound
  2006-02-12 19:01   ` Uwe Thiem
@ 2006-02-12 19:21     ` Christoph Eckert
  2006-02-12 20:45       ` Uwe Thiem
  0 siblings, 1 reply; 14+ messages in thread
From: Christoph Eckert @ 2006-02-12 19:21 UTC (permalink / raw
  To: gentoo-user


> > Did you raise the
> > master and PCM sliders in alsamixer -c 1?
>
> What does that have to do with udev not creating the special device
> files?

Nothing, just the default answer if there's no audio output.


Best regards


ce
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] udev / sound
  2006-02-12 18:58     ` Uwe Thiem
@ 2006-02-12 19:28       ` Christoph Eckert
  0 siblings, 0 replies; 14+ messages in thread
From: Christoph Eckert @ 2006-02-12 19:28 UTC (permalink / raw
  To: gentoo-user


> How would that help udev to create the relevant special device files?

as seen before, your ALSA devices are present, so it doesn't seem to be 
an udev problem.

ALSA apps don't output sound using device files.

cat /proc/asound/cards

should list your cards,

ls -l /dev/snd/

should show the devices,

alsamixer -c 1

should show the controls of your first card,

If all is present, I'd try xmms, set it to play via ALSA in the prefs 
and load a file.


Best regards


ce
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] udev / sound
  2006-02-12 19:21     ` Christoph Eckert
@ 2006-02-12 20:45       ` Uwe Thiem
  0 siblings, 0 replies; 14+ messages in thread
From: Uwe Thiem @ 2006-02-12 20:45 UTC (permalink / raw
  To: gentoo-user

On 12 February 2006 21:21, Christoph Eckert wrote:
> > > Did you raise the
> > > master and PCM sliders in alsamixer -c 1?
> >
> > What does that have to do with udev not creating the special device
> > files?
>
> Nothing, just the default answer if there's no audio output.

Well, default answers aren't all that helpful with specific questions. Like 
keyword-triggered (knee-jerk triggered) responses in real life. ;-)

Uwe

-- 
Why do consumers keep buying products they will live to curse?
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] udev / sound
  2006-02-12 18:59   ` Uwe Thiem
@ 2006-02-12 22:25     ` Abhay Kedia
  2006-02-13  6:18       ` Uwe Thiem
  0 siblings, 1 reply; 14+ messages in thread
From: Abhay Kedia @ 2006-02-12 22:25 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 630 bytes --]

On Monday 13 February 2006 00:29, Uwe Thiem wrote:
>
> No, they are not. That's OSS stuff and not present on my box since I don't
> use OSS.
>
I have this in my /etc/udev/rules.d/50-udev.rules which is related to ALSA

# alsa devices
SUBSYSTEM=="sound", GROUP="audio"
KERNEL=="controlC[0-9]*",       NAME="snd/%k"
KERNEL=="hw[CD0-9]*",           NAME="snd/%k"
KERNEL=="pcm[CD0-9cp]*",        NAME="snd/%k"
KERNEL=="midiC[D0-9]*",         NAME="snd/%k"
KERNEL=="timer",                NAME="snd/%k"
KERNEL=="seq",                  NAME="snd/%k"

Confirm that you have some similar entries.

-- 
Regards,
Abhay

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] udev / sound
  2006-02-12 22:25     ` Abhay Kedia
@ 2006-02-13  6:18       ` Uwe Thiem
  2006-02-13  6:52         ` Richard Fish
  0 siblings, 1 reply; 14+ messages in thread
From: Uwe Thiem @ 2006-02-13  6:18 UTC (permalink / raw
  To: gentoo-user

On 13 February 2006 00:25, Abhay Kedia wrote:
> On Monday 13 February 2006 00:29, Uwe Thiem wrote:
> > No, they are not. That's OSS stuff and not present on my box since I
> > don't use OSS.
>
> I have this in my /etc/udev/rules.d/50-udev.rules which is related to ALSA
>
> # alsa devices
> SUBSYSTEM=="sound", GROUP="audio"
> KERNEL=="controlC[0-9]*",       NAME="snd/%k"
> KERNEL=="hw[CD0-9]*",           NAME="snd/%k"
> KERNEL=="pcm[CD0-9cp]*",        NAME="snd/%k"
> KERNEL=="midiC[D0-9]*",         NAME="snd/%k"
> KERNEL=="timer",                NAME="snd/%k"
> KERNEL=="seq",                  NAME="snd/%k"
>
> Confirm that you have some similar entries.

Yup, have exactly the same rules, and I think they lead to these devices:

uwe@uwix ~ $ ls -l /dev/snd
total 0
crw-rw---- 1 root audio 116,  0 Feb 12 22:33 controlC0
crw-rw---- 1 root audio 116, 24 Feb 12 22:33 pcmC0D0c
crw-rw---- 1 root audio 116, 16 Feb 12 22:33 pcmC0D0p
crw-rw---- 1 root audio 116, 25 Feb 12 22:33 pcmC0D1c
crw-rw---- 1 root audio 116, 33 Feb 12 22:33 timer

Though hw, midi and seq are missing.

How about dsp and such? Shouldn't there be rules to create them as well?

Uwe

-- 
Why do consumers keep buying products they will live to curse?
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] udev / sound
  2006-02-13  6:18       ` Uwe Thiem
@ 2006-02-13  6:52         ` Richard Fish
  2006-02-15 17:52           ` Uwe Thiem
  0 siblings, 1 reply; 14+ messages in thread
From: Richard Fish @ 2006-02-13  6:52 UTC (permalink / raw
  To: gentoo-user

On 2/12/06, Uwe Thiem <uwix@iway.na> wrote:
> How about dsp and such? Shouldn't there be rules to create them as well?

Yes, your 50-udev.rules file should contain:

/etc/udev/rules.d/50-udev.rules:KERNEL=="adsp",                
NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
/etc/udev/rules.d/50-udev.rules:KERNEL=="adsp[0-9]*",          
NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
/etc/udev/rules.d/50-udev.rules:KERNEL=="dsp",                 
NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
/etc/udev/rules.d/50-udev.rules:KERNEL=="dsp[0-9]*",           
NAME="sound/%k", SYMLINK+="%k", GROUP="audio"

But these will only be created if you load the snd_pcm_oss module,
which emulates the OSS API for alsa.

But according to your own posts, you are not using OSS.  So why do you
want the legacy OSS device nodes?

-Richard

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] udev / sound
  2006-02-13  6:52         ` Richard Fish
@ 2006-02-15 17:52           ` Uwe Thiem
  0 siblings, 0 replies; 14+ messages in thread
From: Uwe Thiem @ 2006-02-15 17:52 UTC (permalink / raw
  To: gentoo-user

On 13 February 2006 08:52, Richard Fish wrote:
> On 2/12/06, Uwe Thiem <uwix@iway.na> wrote:
> > How about dsp and such? Shouldn't there be rules to create them as well?
>
> Yes, your 50-udev.rules file should contain:
>
> /etc/udev/rules.d/50-udev.rules:KERNEL=="adsp",
> NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
> /etc/udev/rules.d/50-udev.rules:KERNEL=="adsp[0-9]*",
> NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
> /etc/udev/rules.d/50-udev.rules:KERNEL=="dsp",
> NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
> /etc/udev/rules.d/50-udev.rules:KERNEL=="dsp[0-9]*",
> NAME="sound/%k", SYMLINK+="%k", GROUP="audio"
>
> But these will only be created if you load the snd_pcm_oss module,
> which emulates the OSS API for alsa.
>
> But according to your own posts, you are not using OSS.  So why do you
> want the legacy OSS device nodes?

Probably because I am missing something here, though I don't know yet 
what. ;-)

Uwe

-- 
Why do consumers keep buying products they will live to curse?
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-02-15 18:05 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-11 19:29 [gentoo-user] udev / sound Uwe Thiem
2006-02-11 20:19 ` Christoph Eckert
2006-02-12 19:01   ` Uwe Thiem
2006-02-12 19:21     ` Christoph Eckert
2006-02-12 20:45       ` Uwe Thiem
2006-02-11 21:04 ` Abhay Kedia
2006-02-11 21:21   ` Christoph Eckert
2006-02-12 18:58     ` Uwe Thiem
2006-02-12 19:28       ` Christoph Eckert
2006-02-12 18:59   ` Uwe Thiem
2006-02-12 22:25     ` Abhay Kedia
2006-02-13  6:18       ` Uwe Thiem
2006-02-13  6:52         ` Richard Fish
2006-02-15 17:52           ` Uwe Thiem

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox