[mythtv-users] Is there a key to simply Exit?
Patrick Oglesby
octoberblu3 at gmail.com
Fri Mar 5 03:14:26 UTC 2010
On Thu, Mar 4, 2010 at 7:23 PM, Dale Pontius <DEPontius at edgehp.net> wrote:
> I've been through the key editor, at least the key editor in
> mythfrontend, a few times, and I find no "Exit" key or action.
>
> I'm trying to make an "appliance" frontend. It suspends to RAM quite
> nicely (and quickly) and wakes on the power button of an RC6 remote
> control. I'd like to be able to use that same button to turn the
> machine "off" - really back into suspend-to-ram. Right now it's "get
> back to the main menu, the one more escape, down one, the select".
>
> Maybe simply stacking keypresses in LIRC would do the job, though I
> don't know how to do that, either. Still, "Get out NOW" would be
> better. I'm figuring I can script mythfrontend in some sort of loop so
> when it exists it suspends-to-ram.
>
> Other suggestions welcome - the goal here is "appliance" - as close to
> acting like a DVD player or Tivo as possible.
>
> Thanks,
> Dale
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
I just use an external script that will call killall mythfrontend or
start mythfrontend lauched by irexec.
DISPLAY=:0
ps -C mythfrontend >& /dev/null; \
if [ $? -eq 0 ]; then
killall mythfrontend
else
cd /tmp
xset dpms force on &
/usr/bin/mythfrontend -l /var/log/mythtv/mythfrontend.log &
fi
More information about the mythtv-users
mailing list