Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Audio problem [solved]
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
MdaG
l33t
l33t


Joined: 09 Nov 2004
Posts: 945
Location: Stockholm, Sverige

PostPosted: Thu Jun 22, 2006 8:14 pm    Post subject: Audio problem [solved] Reply with quote

Something is blocking my audio device. Is there an easy way to find out what? I got this problem after a recent "emerge -DuvaN world". I've been looking around the forum for anyone with with a similar problem, but none fits mine. Neither XMMS or Mplayer can use the audio device. I've checked output plugins etc. but they seem fine (set to ALSA).

Last edited by MdaG on Fri Jun 23, 2006 10:06 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54308
Location: 56N 3W

PostPosted: Thu Jun 22, 2006 8:28 pm    Post subject: Reply with quote

MdaG,

A few basic checks are in order. Have you done etc-update after your emerge world ?

Are you in the audio group run the
Code:
groups
command.
What is in /dev/snd and /dev/sound ?
list them with ls -l so I can see all the permissions too.

Did your /etc/modules.d/alsa get overwritten by a careless etc-update ?

Are your channels unmuted and sliders pushed up in alsamixer?
Only Master and PCM are needed for playing sounds from your hard drive.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
MdaG
l33t
l33t


Joined: 09 Nov 2004
Posts: 945
Location: Stockholm, Sverige

PostPosted: Thu Jun 22, 2006 9:23 pm    Post subject: Reply with quote

Quote:
$ ls /dev/snd/
controlC0 controlC1 pcmC0D0c pcmC0D0p pcmC0D1c pcmC0D2c pcmC0D3c pcmC0D4p pcmC1D0c pcmC1D0p seq timer

Quote:
$ ls /dev/sound
adsp audio dsp mixer sequencer sequencer2

I'm in the audio group (the sound has been working for the last five months).
Quote:
$ groups
wheel audio cdrom video games usb users portage

I ran dispatch-conf (not etc-update) after updating my system.
I cannot recall overwriting my /etc/modules.d/alsa
Quote:
$ ls -l /etc/modules.d/alsa
-rw-r--r-- 1 root root 1100 May 16 08:39 /etc/modules.d/alsa

My channels are unmuted and I'm only using Master and PCM.

[offtopic]
By the way, today when I updated my system there were some files that needed updating. When I ran dispatch-conf I got the following error message:
Quote:
# dispatch-conf
diff3: subsidiary program `/usr/bin/diff' failed (exit status 2)
diff3: subsidiary program `/usr/bin/diff' failed (exit status 2)
diff3: subsidiary program `/usr/bin/diff' failed (exit status 2)

I then tried it a second time and it went through. I tried searching on the forum for similar string, but none came up. Oh, well tomorrow I'll know if I can boot my machine or not :wink:
[/offtopic]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54308
Location: 56N 3W

PostPosted: Thu Jun 22, 2006 9:55 pm    Post subject: Reply with quote

MdaG,

The sound things all look good.
You can try running
Code:
lsof
Thats list Open Files and see what (if anything) has the sound special device files open.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
MdaG
l33t
l33t


Joined: 09 Nov 2004
Posts: 945
Location: Stockholm, Sverige

PostPosted: Fri Jun 23, 2006 7:27 am    Post subject: Reply with quote

Quote:
# lsof | grep snd
esd 10375 MdaG mem CHR 116,7 12653 /dev/snd/pcmC0D0p
esd 10375 MdaG 6u CHR 116,7 12653 /dev/snd/pcmC0D0p
esd 10375 MdaG 7r CHR 116,2 12463 /dev/snd/timer
esd 10377 MdaG mem CHR 116,7 12653 /dev/snd/pcmC0D0p
esd 10377 MdaG 6u CHR 116,7 12653 /dev/snd/pcmC0D0p
mixer_app 10420 MdaG 41u CHR 116,9 12683 /dev/snd/controlC0

I'm running Gnome (latest stable) and my default sink is ALSA. I've never understood why esd (isn't that enlightenment?) keeps getting mentioned... ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54308
Location: 56N 3W

PostPosted: Fri Jun 23, 2006 9:53 am    Post subject: Reply with quote

MdaG,

esd is the GNOME sound daemon. Its captured all your sound devices, so nothing else can use them directly.
Instead, all sound must be routed through esd.

Turn off the sound server is GNOME Desktop -> Preferences -> Sound. Uncheck Enable software sound mixing.
You may have to restart GNOME
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
MdaG
l33t
l33t


Joined: 09 Nov 2004
Posts: 945
Location: Stockholm, Sverige

PostPosted: Fri Jun 23, 2006 10:05 am    Post subject: Reply with quote

Ah, sweet! Thank you! It worked! :D
How come it worked before with the sound server startup enabled at startup ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54308
Location: 56N 3W

PostPosted: Fri Jun 23, 2006 1:20 pm    Post subject: Reply with quote

MdaG,

Your applications probably made sounds through esd, which provides software mixing.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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