[mythtv-users] Setting a jump point with lircrc (was: Simulate turning on and off within MythTV)

Robin Gilks g8ecj at gilks.org
Mon Apr 30 10:07:45 UTC 2007


> MythTV Users,
>
> In order to create maximum WAF, I'm trying to set up the main "Power"
> button on my Hauppauge remote to do the following actions:
>
> If the monitor is off, Turn on the monitor.
>
> If the system is already on, jump to the top menu of mythfrontend, then
> turn off the monitor.
>
> The turning on and off of the monitor part has been solved, thanks to
> help from this list.
>
> However, I'm struggling with the part where the button jumps to the main
> menu before switching off the monitor.
>
> The only reference I can find to setting jump points in the MythTV Wiki
> is here in a section on controlling via telnet:
> http://www.mythtv.org/docs/mythtv-HOWTO-11.html#ss11.6
>
> But I've tried the following command in my lircrc file to no effect:
>
> begin
> prog = mythtv
> button = Power
> repeat = 2
> config = jump mainmenu
> end
>
> I'm sure the syntax is wrong, but I'm not sure what to do in its place.
>
> Can someone help me get this straightened out?
>
> Any advice would be much appreciated.

I used two entries in my lircrc file - one for iresec to fire off the
script that handles the monitor power on/off and another to an obscure
keypress combination that is then mapped using the keyboard mapping stuff
to the main menu jump point. I'm using a recent SVN version so I'm not
sure where the menu item appears in older versions - on mine its under
'Setup/Edit Keys' and in my case I've selected 2 keysets. "Main Menu" is
the jump point you want!

Here are extracts from the lircrc file and a mysql dump of the jumppoint
table:

begin
    prog = mythtv
    button = Power
    config = Ctrl+F8
end

begin
    prog   = irexec
    button = Power
    config = /usr/local/bin/power_toggle.sh
end


--
-- Dumping data for table `jumppoints`
--
'Main Menu',NULL,'Ctrl+F8,Ctrl+Alt+Return','media'),


Hope that points you in the right direction.


-- 
Robin Gilks




More information about the mythtv-users mailing list