No subject
Tue Nov 17 13:52:17 UTC 2009
begin
button = Power
prog = irexec
repeat = 0
#config = sudo /usr/sbin/pm-suspend
config = /home/mythtv/bin/killfrontend.sh
end
then killfrontend.sh:
#!/bin/bash
if [ "`pgrep xbmc`" ];then
pkill -9 xbmc
else
pkill -9 mythfrontend
fi
HTH,
Ian
--0016e6d7854668200e047e9ea7c2
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<br><br><div class=3D"gmail_quote">On 2 February 2010 11:19, Alessandro <sp=
an dir=3D"ltr"><<a href=3D"mailto:alessandro.campobassi at gmail.com">aless=
andro.campobassi at gmail.com</a>></span> wrote:<br><blockquote class=3D"gm=
ail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(2=
04, 204, 204); padding-left: 1ex;">
Hi folks,<br>
I'm having some sporadic issues with XBMC not quitting (locking up)<br>
when 'Quitting' from the UI.<br>
<br>
I am running Mythbuntu 9.10 with 0.22 of MythTV.<br>
I have modified my mainmenu.xml to launch XBMC.<br>
<br>
Launching and running XBMC works just fine - however, every now and<br>
then when I choose the Shutdown option in XBMC and then choose the<br>
Shutdown icon (which is set to 'Quit' in the XBMC system settings)<=
br>
often it just freezes the screen and I can't return to MythtTV<br>
mainmenu (actually whole UI is frozen =A0- and need to kill the xbmc<br>
process)<br>
I tried the other options (Suspend etc) - but they always freeze the UI.<br=
>
<br></blockquote><div>[snip]<br><br>Looks like much the same way I'm do=
ing it, and I don't have any issues, although I do tend to just kill XB=
MC.<br><br>Don't suppose it's relevant, but I launch it from a sepa=
rate shellscript (which I EXEC from the menu.), this is because I compiled =
XBMC from source and needed a newer version of the samba libs than comes wi=
th debian 5. (so I have to frob the LD_LIB_PATH for xbmc.)<br>
<br>I'm also running /usr/share/xbmc/xbmc.bin, rather than /usr/local/b=
in/xbmc (which does exist), I'm not sure why I'm doing this but the=
re may have been a good reason, might be worth seeing if you have this file=
, and running that instead?<br>
<br>One other thing, do you have a power button spare on your remote? I hav=
e a media center remote with a 'PC' power button on, I have this ma=
pped to a small script that kills mythfrontend. When I added xbmc I updated=
this to pkill xbmc if it was running also, which saves me having to use th=
e 'poweroff' option in XBMC.<br>
<br>From .lircrc<br><br>begin<br>=A0button =3D Power<br>=A0prog =3D irexec<=
br>=A0repeat =3D 0<br>=A0#config =3D sudo /usr/sbin/pm-suspend<br>=A0config=
=3D /home/mythtv/bin/killfrontend.sh<br>end<br><br><br>then killfrontend.s=
h:<br><br>#!/bin/bash<br>
if [ "`pgrep xbmc`" ];then<br>=A0=A0=A0=A0=A0=A0=A0 pkill -9 xbmc=
<br>else<br>=A0=A0=A0=A0=A0=A0=A0 pkill -9 mythfrontend<br>fi<br><br><br>HT=
H,<br><br>Ian<br><br></div></div>
--0016e6d7854668200e047e9ea7c2--
More information about the mythtv-users
mailing list