[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ESD click problem



christophe barbé wrote:

> Le jeu, 27 sep 2001 11:11:28, Peter Hugosson-Miller a écrit :
> > Michael Heldebrant wrote:
> >
> > > On Mon, 2001-09-24 at 03:41, Peter Hugosson-Miller wrote:
> > > > I never thought I'd be complaining when I finally got sound
> > > > to work, but I guess I'm not so easy to please... there's a
> > > > tiny problem with esd that I hope someone can help me with.
> > > >
> > > > I'm using Gnome as my desktop, and I have enabled sound for
> > > > window events. It all works nicely except for this annoying
> > > > "click" that accompanies each sound. I've investigated this
> > > > and found that there is an esd option that makes the daemon
> > > > shut down after 2 seconds of inactivity. The "click" is the
> > > > sound of the daemon starting up again.
> > > >
> > > > I've increased the delay by various amounts, but found that
> > > > in the end, having a short timeout is not desireable, since
> > > > the esd startup click is just too annoying. I set the delay
> > > > to 30 minutes, which kind of fixes the problem, but now the
> > > > problem is replaced by a new one. If I log out, and my wife
> > > > logs in inside of half an hour, her desktop can not connect
> > > > to the sound daemon. The problem is that my esd instance is
> > > > still running, she doesn't have authorization to use it, so
> > > > she can't connect to it.
> > > >
> > > > I can use a virtual terminal to log in and kill the daemon,
> > > > again solving the problem, but this is a bit messy. I can't
> > > > kill it before I log out, because I have panel applets like
> > > > the sound monitor which complain and then remove themselves
> > > > from the panel if the daemon isn't running.
> > > >
> > > > The whole thing smacks of "there must be an easy way to fix
> > > > this", as it seems whatever I do, just introduces a further
> > > > complication.
> > > >
> > > > Six months ago I would have been glad to have problems like
> > > > this! Now, it's starting to get old... Please help!
> > > >
> > >
> > > Put killall esd in your .bash_logout (or appropriate
> > > replacement) file.
> > >
> > > --mike
> >
> > That is almost what I'm looking for, but In my case it doesn't
> > do the trick, as I am using gdm for logging in. When I log out
> > of Gnome, I get back to the gdm login prompter, and the script
> > you mentioned doesn't get run. Is there a corresponding script
> > for gdm that I could put the magic line into?
> >
> > --
> > Best regards,
> >
> > Peter Hugosson-Miller
> > "Linux - the choice of a GNU generation!"
>
> You can perhaps add 'killall esd' in a PreSession script.
> In fact, Gdm uses an initV kind of startup scripts.
>
> /etc/gdm/PreSession
> /etc/gdm/PreSession/Default
> /etc/gdm/PostSession
> /etc/gdm/PostSession/Default
>
> Christophe

Thanks, Christophe, that's the one! I added just one line:
killall esd
to the end of the file /etc/gdm/PostSession/Default, which
solved all my problems.

--
Best regards,

Peter Hugosson-Miller
"Linux - the choice of a GNU generation!"



Reply to: