Kodi Community Forum

Full Version: XBMC and mythtv switching problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all

I'm running XBMC for music and DVD iso's but still using Mythtv for live and recorded tv. All using PulseAudio.

I've gotten it to work basically with just the one problem remaining.

The script does a number of things that allow me to go to and from MythTV while handling the PulseAudio issues.

All works, but when returning to MythTV, from XBMC, the sound does not function, until I (in LiveTV) change channel first, or exit and re-enter recordings. If anyone could give me a hand with the glitch in this script, I'd be grateful - thanks...Big Grin


Code:
#!/bin/bash

#kill mythfrontend
killall mythfrontend.real
#lock mythwelcome
mythshutdown -l
# Test to see if XBMC is running first
if ps -ef|grep -v grep|grep -i xbmc.bin
then
# Do nothing
echo "XBMC already Running!"
else
# Startup XBMC
ps aux|grep -v grep|grep -i pulseaudio|awk '{print $2}'| xargs kill -9
xbmc
fi
while
ps -ef|grep -v grep|grep -i xbmc.bin
do
sleep 10
done
mythshutdown -u
ps aux|grep -v grep|grep -i pulseaudio|awk '{print $2}'| xargs kill -9
bump