LinHES Forums
http://forums.linhes.org/

Restarting Frontend, and MythGame help
http://forums.linhes.org/viewtopic.php?f=14&t=16319
Page 1 of 1

Author:  mattshaw [ Tue Sep 04, 2007 1:00 pm ]
Post subject:  Restarting Frontend, and MythGame help

Hi Guys

I have just found and got working the excellent "Frets On Fire", a Guitar Hero clone, it's awesome.

Whenever I exit out of the game it seems to "shrink" the X display so it is a tad less wide than was before, about 20%. Exiting out of menu to x (knoppmyth background) and going back in doesn't help. A Simple one for someone out there.

Also, I have no idea how to add Frets on fire to the game list. I have adde d it as a player in the setup, with its full command line (which is /myth/tools/games/FretsOnFire/FretsOnFire), but it doesn't work. A little help please ???????

Author:  jmckeown2 [ Tue Sep 04, 2007 3:05 pm ]
Post subject: 

ctrl-alt-backspace should restart X (and the front end) for you without messing anything up.

and that's not a typo; it's ctrl-alt-backspace not ctrl-alt-delete.

Author:  mattshaw [ Tue Sep 04, 2007 3:36 pm ]
Post subject: 

Brilliant, thanks for the quick response.

That does the trick, but I would like to know a command line method of doing it, so that I can build a wrapper script to do it automagically. (Also so I can create a script to be ran from irexec if the frontend ever locks up to restart the frontend).

Also still waiting for some help as to how to add the game to the gamelist

Thanx !!!

Author:  cecil [ Tue Sep 04, 2007 4:08 pm ]
Post subject: 

FoF is a "PC game". Add it in the setup for MythGames. I'd suggest you read the MythTV docs and wiki. I'd aslo ask that you keep it to one topic per thread.

Author:  brfransen [ Tue Sep 04, 2007 5:17 pm ]
Post subject: 

Here is a script someone here posted a while ago that I have been using.
Code:
#!/bin/bash
# Script for powerbutton press on Mythtv.  Double click (within
# timeout) will reboot, single press will restart frontend
# /home/mythtv/scripts/mypower.sh
#
# Adopted from someone a long time ago.  Sorry for not
# remembering who.

DOUBLE_PRESS_TIMEOUT=2

SCRIPTNAME=`basename $0`
OLDEST_SCRIPT_PID=`pgrep -o $SCRIPTNAME`

OUR_PID=$$

# check if we are the oldest instance of this script
if [[ "$OLDEST_SCRIPT_PID" == "$OUR_PID" ]]
then
    killall mythfrontend
    sleep $DOUBLE_PRESS_TIMEOUT
    mythfrontend &
else
    # this is a doublepress
     kill $OLDEST_SCRIPT_PID
     pkill xinit
#    sudo reboot
fi


I changed the double press from rebooting to just restarting X.

Britney

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/