LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 04-26-2004, 04:17 PM   #1
sylvain_gnu
Member
 
Registered: Mar 2004
Location: Internet
Distribution: Debian GNU/Linux
Posts: 89

Rep: Reputation: 15
Thumbs up [Ok]esd problem with Gnome / several users


Hello,

I'm running Debian sid, with latest gnome-session, gnome-desktop-environment.
When I launch Gnome with one user, the sound is here, it's fine,
but when I loggout and the other user logs in, no sound!

Here is .xsession-errors: "

% cat .xsession-errors
/etc/gdm/PreSession/Default: Registering your session with wtmp and utmp
/etc/gdm/PreSession/Default: running: /usr/bin/X11/sessreg -a -w /var/log/wtmp -
u /var/run/utmp -x "/var/lib/gdm/:0.Xservers" -h "" -l ":0" "sylvain"
/etc/gdm/Xsession: Beginning session setup...
SESSION_MANAGER=local/totoro:/tmp/.ICE-unix/10909
esd: Esound sound daemon already running or stale UNIX socket
/tmp/.esd/socket
This socket already exists indicating esd is already running.
"

Has anyone got this problem? and solved it maybe?
Any ideas?

Cheers,
Sylvain.

Last edited by sylvain_gnu; 04-30-2004 at 03:58 PM.
 
Old 04-26-2004, 05:30 PM   #2
souljah
Member
 
Registered: Feb 2004
Location: New York City
Distribution: Debian
Posts: 97

Rep: Reputation: 15
are those users members of the audio group? What are the permissions of your /dev/dsp*?

I could be running you in the wrong direction, because I don't use gnome, but this is good information to have when dealing with sound problems.
 
Old 04-27-2004, 05:25 PM   #3
sylvain_gnu
Member
 
Registered: Mar 2004
Location: Internet
Distribution: Debian GNU/Linux
Posts: 89

Original Poster
Rep: Reputation: 15
Question More info provided...

Hello souljah and others,

Here is complementary info?

% ls -lisa /dev/dsp
12663 1 lrwxrwxrwx 1 root root 9 2004-02-16 21:24 /dev/dsp -> /dev/dsp0
% ls -lisa /dev/dsp0
2274 0 crw-rw---- 1 root audio 14, 3 2004-02-16 21:24 /dev/dsp0

% cat /etc/group | grep audio
audio:x:29:user1,user2
=> the 2 users, 'user1' and 'user2' belong to the 'audio' group.

Any solution for the problem I have (see description at the source of this post)?

=== Hypothesis:
In fact, I think what is happening is that when GNOME stops, in my current configuration, it doesn't stop the sound daemon (esd I think it is called) and hence the sound is not released for another user to use it in his turn...

Anyone knows which script should be modified? and how? Or maybe this is not the right explanation, any ideas/solution?

Cheers,
Sylvain.
 
Old 04-28-2004, 04:13 PM   #4
jrshannon
LQ Newbie
 
Registered: Aug 2003
Posts: 1

Rep: Reputation: 0
I ran into a similar problem.

Ensuring that /etc/esound/esd.conf contained the following lines resolved the issue for me.

auto_spawn=1
spawn_options=-terminate -nobeeps -as 5
spawn_wait_ms=100

Hope this helps
jshannon
 
Old 04-29-2004, 03:51 PM   #5
sylvain_gnu
Member
 
Registered: Mar 2004
Location: Internet
Distribution: Debian GNU/Linux
Posts: 89

Original Poster
Rep: Reputation: 15
Hi jrshannon,

It works fine, thanks!

Sylvain.
 
Old 05-14-2004, 05:41 PM   #6
ddurning
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
gnome sounds

There is a function in esdlib.c [is_host_local()], which is part of the esound suite, that will fail if the result of gethostname() is not equal to "localhost" or the HOST environment variable.

This is dangerous for folks that set their hostname in a startup (login) script or change it from a numeric IP to something else like I do in my environment.

Check to make sure that gethostbyname() returns the same string as echo $HOST otherwise gnome sounds will not work, but esdcat and esdplay will.

Go figure. Someone needs to do something more clever then this.

-Doug Durning
 
Old 05-15-2004, 01:10 PM   #7
sylvain_gnu
Member
 
Registered: Mar 2004
Location: Internet
Distribution: Debian GNU/Linux
Posts: 89

Original Poster
Rep: Reputation: 15
Question what do you mean?

Hello Doug,


Are you saying that a user should not use the above config file?

Maybe you can post a short test program in C with instructions for compilation, so that anyone reading this post can check what you're talking about? And how to fix the problem? and what is the actual impact for a user?

Thanks in advance if you can make things clearer. So far I don't get the point.
Sylvain.
 
Old 05-17-2004, 09:43 AM   #8
ddurning
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
The configuration file indicated here is fine and as it should be. The problem is how the machine reolves a host name through DNS. For instance, if a machines IP is say 192.168.0.25 and a user's login script sets a HOST variable to "mypc25" instead of "localhost", then the function in esdlib.c will not view that as a local computer and will not generate sounds via the local hardware.

-Doug Durning
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnopernicus and esd problem KR-data Linux - Software 0 03-04-2005 03:13 PM
problem with shared libraries (SDL-1.2.7 and ESD) funkateer Slackware 2 03-01-2005 03:50 AM
How to set a Gnome theme as default for all users and future users ? MDesigner Linux - Newbie 1 06-28-2004 11:12 AM
xine and ESD install problem parsecbyproxy Linux - Software 4 06-20-2003 11:35 AM
ESD Not Dying At Gnome Logout Golem Linux - Software 0 01-30-2002 07:55 AM


All times are GMT -5. The time now is 10:38 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration