2009-03-17, 09:29
l.capriotti Wrote:the reason being that if you want to enter a standard X session you can't if you have the .xsession permanently created.
There are chances you may want to do that at least one, for example if you want to optimize GL performances with some vendor GUI (read ATI?)
Pretty simple, but rational reason. Thanks, Luigi.
May I ask your support on one more thing?
I try to make your setAlsaVolumes script running from /etc/init.d/xbmc, as in XBMC Live.
Currently /etc/init.d/xbmc looks like this:
Code:
#!/bin/bash
#/etc/init.d/xbmc
. /lib/lsb/init-functions
get_opt() {
echo "$@" | cut -d "=" -f 2
}
CMDLINE=$(cat /proc/cmdline)
#Process command line options
XBMC_PARAMS=""
for i in ${CMDLINE}; do
case "${i}" in
xbmc\=*)
XBMC_PARAMS=$(get_opt $i)
;;
esac
done
case "$1" in
start)
log_action_begin_msg "Starting XBMC"
XBMC_SETVOLUME="$( echo $XBMC_PARAMS | grep "setvolume" )"
if [ "$XBMC_SETVOLUME" != "" ]; then
/usr/bin/setAlsaVolumes.py
fi
# if usplash is running, make sure to stop it now, yes "start" kills it.
if pidof usplash > /dev/null; then
DO_NOT_SWITCH_VT=yes /etc/init.d/usplash start
fi
/usr/bin/runXBMC.sh &
log_action_end_msg 0
;;
stop)
killall Xorg xbmc
;;
esac
exit 0
Something must be wrong, as setAlsaVolumes.py are not run by the above script (Forgive me for this, but actually I cannot decrypt what's happening in the first part of the script (init-functions; get_opt; XBMC_PARAMS)).
If I run setAlsaVolumes.py manually, it's working.
When I ran setAlsaVolumes.py manually, it set all volumes to 100%, but didn't unmute muted IEC devices. Would it be possible to unmute them from the script as well?