Posted: Wed 24 Oct 2012, 12:07
When I went to replace gtkdialog here's what I found. What do I do now, replace gtkdialog4?
Flash, I see that you're using Racy, which I never have.Flash wrote:When I went to replace gtkdialog here's what I found. What do I do now, replace gtkdialog4?
Hmmm... pMusic detects playback channels by the command01micko wrote:One bug. My sound card needs PCM set in the preferences but only Master is shown so the volume control does nothing for me. If you need more info let me know.
Code: Select all
amixer controls | grep 'Playback Volume'
Code: Select all
amixer controls
Code: Select all
# amixer controls
numid=1,iface=MIXER,name='IEC958 Playback Con Mask'
numid=2,iface=MIXER,name='IEC958 Playback Pro Mask'
numid=3,iface=MIXER,name='IEC958 Playback Default'
numid=4,iface=MIXER,name='IEC958 Playback Switch'
numid=5,iface=PCM,name='ELD',device=3
# amixer controls | grep 'Playback Volume'
#
Code: Select all
defaults.pcm.card 1
defaults.pcm.device 0
Code: Select all
ASOUNDOPTION=""
if [ -f /etc/asound.conf ];then #see if MultipleSoundCardWizard was used
CARD=$(head -1 /etc/asound.conf)
DEFAULTCARD=${CARD##* }
ASOUNDOPTION="-c $DEFAULTCARD"
fi
VOLUMECONTROL=$(amixer $ASOUNDOPTION controls | grep 'Playback Volume')
Code: Select all
# ASOUNDOPTION=""
# if [ -f /etc/asound.conf ];then #see if MultipleSoundCardWizard was used
> CARD=$(head -1 /etc/asound.conf)
> DEFAULTCARD=${CARD##* }
> ASOUNDOPTION="-c $DEFAULTCARD"
> fi
# VOLUMECONTROL=$(amixer $ASOUNDOPTION controls | grep 'Playback Volume')
# echo $VOLUMECONTROL
numid=2,iface=MIXER,name='PCM Playback Volume'
Code: Select all
# gtkdialog --version
gtkdialog version 0.8.0 (C) 2003-2007 Laszlo Pere, 2011 Thunor
# amixer controls
numid=39,iface=MIXER,name='Master Playback Switch'
numid=38,iface=MIXER,name='Master Playback Volume'
numid=12,iface=MIXER,name='Headphone Playback Switch'
numid=11,iface=MIXER,name='Headphone Playback Volume'
numid=40,iface=MIXER,name='PCM Playback Volume'
numid=21,iface=MIXER,name='Front Mic Boost Volume'
numid=16,iface=MIXER,name='Front Mic Playback Switch'
numid=15,iface=MIXER,name='Front Mic Playback Volume'
numid=2,iface=MIXER,name='Front Playback Switch'
numid=1,iface=MIXER,name='Front Playback Volume'
numid=4,iface=MIXER,name='Surround Playback Switch'
numid=3,iface=MIXER,name='Surround Playback Volume'
numid=7,iface=MIXER,name='Center Playback Switch'
numid=5,iface=MIXER,name='Center Playback Volume'
numid=8,iface=MIXER,name='LFE Playback Switch'
numid=6,iface=MIXER,name='LFE Playback Volume'
numid=18,iface=MIXER,name='Line Playback Switch'
numid=17,iface=MIXER,name='Line Playback Volume'
numid=22,iface=MIXER,name='Capture Switch'
numid=23,iface=MIXER,name='Capture Switch',index=1
numid=24,iface=MIXER,name='Capture Switch',index=2
numid=25,iface=MIXER,name='Capture Volume'
numid=26,iface=MIXER,name='Capture Volume',index=1
numid=27,iface=MIXER,name='Capture Volume',index=2
numid=35,iface=MIXER,name='IEC958 Default PCM Playback Switch'
numid=31,iface=MIXER,name='IEC958 Playback Con Mask'
numid=32,iface=MIXER,name='IEC958 Playback Pro Mask'
numid=33,iface=MIXER,name='IEC958 Playback Default'
numid=34,iface=MIXER,name='IEC958 Playback Switch'
numid=37,iface=MIXER,name='IEC958 Capture Default'
numid=36,iface=MIXER,name='IEC958 Capture Switch'
numid=19,iface=MIXER,name='Auto-Mute Mode'
numid=28,iface=MIXER,name='Input Source'
numid=29,iface=MIXER,name='Input Source',index=1
numid=30,iface=MIXER,name='Input Source',index=2
numid=20,iface=MIXER,name='Rear Mic Boost Volume'
numid=14,iface=MIXER,name='Rear Mic Playback Switch'
numid=13,iface=MIXER,name='Rear Mic Playback Volume'
numid=10,iface=MIXER,name='Side Playback Switch'
numid=9,iface=MIXER,name='Side Playback Volume'
#
It won't unless it's installed through PPM, it is a limitation of petget. also, being a script based program, it won't show the libs are missing, that's why the splash screen with the error.Flash wrote:I did install Pequalizer. It didn't complain about missing libs.
Code: Select all
# dep test
if [ ! -f /usr/lib/alsa-lib/libasound_module_ctl_equal.so ]
then echo "missing dependencies" && exit
fi
done01micko wrote:Maybe a simple dependency check and exit should exist in pequalizer.
@line 25 addCode: Select all
# dep test if [ ! -f /usr/lib/alsa-lib/libasound_module_ctl_equal.so ] then echo "missing dependencies" && exit fi
Good catch. All calls for amixer in func_mixer is using the -c switch, but in func_config it does not.01micko wrote:Sigmund, I have some useful info for you. I must run MultipleSoundCardWizard to get sound. It then changes my default card in a newly created file /etc/asound.conf. In this case, amixer must be run with the "-c 1" option to the "controls" command.
This is what is found in /etc/asound.confSo some routine like this might be needed:Code: Select all
defaults.pcm.card 1 defaults.pcm.device 0
Code: Select all
ASOUNDOPTION="" if [ -f /etc/asound.conf ];then #see if MultipleSoundCardWizard was used CARD=$(head -1 /etc/asound.conf) DEFAULTCARD=${CARD##* } ASOUNDOPTION="-c $DEFAULTCARD" fi VOLUMECONTROL=$(amixer $ASOUNDOPTION controls | grep 'Playback Volume')
Code: Select all
#To find available speakers, we must first detect soundcard number
if [ "$SOUND_DEVICE" = "auto" ]; then
if [ -f /etc/asound.conf ]; then #see if MultipleSoundCardWizard was used
TMP=$(head -1 /etc/asound.conf)
CARD_NR=${TMP##* }
else
TMP="`aplay -l | grep -m 1 -F card`" #grab the first card
CARD_NR="`echo $TMP | cut -d':' -f1 | cut -d' ' -f2`"
fi
else
CARD_NR="`echo $SOUND_DEVICE | cut -d':' -f1 | cut -d' ' -f2`"
fi
export SPEAKERS=`amixer -c $CARD_NR controls | grep 'Playback Volume' | cut -d "'" -f 2 | sed -e "s/ Playback Volume//g" | tr -s ' ' '_' | awk '{print "<item>"$1"</item>"}' | tr -s '_' ' '`
I will add dependencies info in the next pet.Flash wrote:I did install Pequalizer. It didn't complain about missing libs.