Setting sound level on startup

Steve Bergman steve at rueb.com
Mon Mar 22 05:27:08 UTC 2004


Gene Smith wrote:

> 
> I think you are saying that sound level setting should be set for each
> user, not just globally in /etc/aumixrc but in ~/.aumixrc. Do you know
> exactly how this could/should be done?
> 
>

I'd put it in the /etc/X11/xdm/Xsession script.  Xsession is run as the 
user so a 'aumix-minimal -L' would set the mixer for the particular user 
as aumix looks for ~/.aumixrc first.  However it should only be done if 
the session is local.  i.e. on the system console and not on an X 
terminal accross the building.




MACHINE=`echo $DISPLAY | cut -d":" -f1`
if [ x$MACHINE = "x" -o x$MACHINE = "xlocalhost" ]
then
   # Apply user mixer settings

   aumix-minimal -L

else

   # Tell esd aware apps (xmms, gnome, etc) to send sound to a remote
   # sound server on the user's xterminal using the default esd port.

   export ESPEAKER=$MACHINE:16001

fi


Is ESPEAKER set somewhere else already in FC1/2?  I know that it is not 
in RH9.  Not sure how KDE/artsd would figure into this.

-Steve





More information about the fedora-test-list mailing list