Page 1 of 1

how do i use ossmix/ossxmix to set the vol of my speaker

Posted: Sun Apr 06, 2008 7:51 pm
by Abayomi
hello,
i just install oss on my solaris 10 and i tried to set the vol to the highest volume using ossxmix but i dont know how to save it so that it stays that way.

Also is there a wy i can mute my internal laptop speaker when i'm using earphone or connected to a speaker. Thank in advance

Posted: Sun Apr 06, 2008 7:58 pm
by dev
run savemixer - it will save the settings. You must run savemixer -l to load the saved settings - usually rc scripts or your .profile can be modified to run this automatically.

Posted: Sun Apr 06, 2008 11:43 pm
by Abayomi
thanks dev,i will appreciate if you tell exactly how to i can have my rc script or .profile to load the saved mixer automatically.
any idea about muting the internel speaker of my laptop while using an earphone or externel speaker.
thanks

Posted: Mon Apr 07, 2008 3:14 am
by dev
Abayomi wrote:thanks dev,i will appreciate if you tell exactly how to i can have my rc script or .profile to load the saved mixer automatically.
any idea about muting the internel speaker of my laptop while using an earphone or externel speaker.
thanks




Code: Select all

#!/bin/sh
if test -f /etc/oss.conf
then
  . /etc/oss.conf
else
  OSSLIBDIR=/usr/lib/oss
fi

##########
#
# The first argument tells what to do.
##########

state=$1

if test -f /etc/oss.conf
then
. /etc/oss.conf
else
   OSSLIBDIR=$OSSLIBDIR
fi

case $state in

'start')
   /usr/sbin/savemixer -L > /dev/null 2>&1
   /usr/sbin/ossdevlinks > /dev/null 2>&1
        exit 0
        ;;
'stop')
   /usr/sbin/savemixer > /dev/null 2>&1
   exit 0
        ;;
esac

exit 1


copy the above contents to /etc/init.d/oss and remember to chmod a+x /etc/init.d/oss and now when your machine starts it will run savemixer -L

mixer still does not get saved

Posted: Tue Apr 08, 2008 6:46 am
by Abayomi
dev,
i have done exactly as you said but still the mixer is not saved;except that when i run ossxmix afterwards the gui is fully than usual displaying more control up to pcm8.