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

OSS specific Solaris discussion (x86/SPARC)

Moderators: hannu, dev, cesium, kodachi

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

Postby Abayomi » Sun Apr 06, 2008 7:51 pm

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
Abayomi
New Member
 
Posts: 8
Joined: Fri Jan 06, 2006 6:31 pm

Postby dev » Sun Apr 06, 2008 7:58 pm

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.
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby Abayomi » Sun Apr 06, 2008 11:43 pm

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
Abayomi
New Member
 
Posts: 8
Joined: Fri Jan 06, 2006 6:31 pm

Postby dev » Mon Apr 07, 2008 3:14 am

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
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

mixer still does not get saved

Postby Abayomi » Tue Apr 08, 2008 6:46 am

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.
Abayomi
New Member
 
Posts: 8
Joined: Fri Jan 06, 2006 6:31 pm


Return to Solaris

Who is online

Users browsing this forum: No registered users and 1 guest