Lee Revell schrieb am 20.03.2009 04:23: > Try adding "amixer" to your script to see ALSA's view of the mixer > when the script runs. Also try echoing the amixer sset commands to > the logfile. I modified the script as follows: #!/bin/sh exec >> /home/jens/log.file echo "=================== /usr/bin/amixer -c1 ======================" /usr/bin/amixer -c1 echo "Return value: "$? echo "==============================================================" echo echo "============== /usr/bin/amixer -c1 sset Mic 75% ==============" /usr/bin/amixer -c1 sset Mic 75% echo "Return value: "$? echo "==============================================================" echo echo "============== /usr/bin/amixer -c1 sset Mic 75% ==============" /usr/bin/amixer -c1 sset Speaker 25% echo "Return value: "$? echo "==============================================================" echo The output of *each* "amixer" call is always: Usage: amixer <options> [command] Available options: -h,--help this help -c,--card N select the card -D,--device N select the device, default 'default' -d,--debug debug mode -n,--nocheck do not perform range checking -v,--version print version of this program -q,--quiet be quiet -i,--inactive show also inactive controls -a,--abstract L select abstraction level (none or basic) -s,--stdin Read and execute commands from stdin sequentially Available commands: scontrols show all mixer simple controls scontents show contents of all mixer simple controls (default command) sset sID P set contents for one mixer simple control sget sID get contents for one mixer simple control controls show all controls for given card contents show contents of all controls for given card cset cID P set control contents for one control cget cID get control contents for one control And the return value is always 1. It is as if amixer ignores all parameters and then prints out the same as if it has been called with "--help" Best regards, Jens ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user