Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

how to stop lircmd interacting with myth menus?

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


theparkers.mailbox at gmail

Nov 27, 2009, 11:20 AM

Post #1 of 4 (403 views)
Permalink
how to stop lircmd interacting with myth menus?

I have configured lircmd so that I can control the mouse using the
remote control.
In mainmenu.xml I have a button to shell out to firefox:
<button>
<type>TV_WATCH_TV</type>
<text>iPlayer</text>
<action>EXEC firefox http://bbc.co.uk/iplayer/bigscreen </action>
</button>

After exiting from firefox, mythtv does not return me to the menu
position from where I launched the EXEC, instead I am in some random
place in the menu hierarchy, probably guided by the remote control
button presses that I used to direct the cursor (?).
The http://www.mythtv.org/wiki/Menu_theme_development_guide says that
the EXEC will "tell MythTV to ignore LIRC button presses until the
program exits".

Could it be that mythtv is not ignoring lirc input (at least in the
case when lircmd is also running). Is this a bug?

Anyone got any ideas for a work-around?


thanks
Robert
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


anaerin at gmail

Nov 27, 2009, 11:27 AM

Post #2 of 4 (382 views)
Permalink
Re: how to stop lircmd interacting with myth menus? [In reply to]

On Fri, Nov 27, 2009 at 13:20, Robert Parker
<theparkers.mailbox [at] gmail> wrote:
> I have configured lircmd so that I can control the mouse using the
> remote control.
> In mainmenu.xml I have a button to shell out to firefox:
>   <button>
>      <type>TV_WATCH_TV</type>
>       <text>iPlayer</text>
>       <action>EXEC firefox http://bbc.co.uk/iplayer/bigscreen </action>
>   </button>
>
> After exiting from firefox, mythtv does not return me to the menu
> position from where I launched the EXEC, instead I am in some random
> place in the menu hierarchy, probably guided by the remote control
> button presses that I used to direct the cursor (?).
> The http://www.mythtv.org/wiki/Menu_theme_development_guide says that
> the EXEC will "tell MythTV to ignore LIRC button presses until the
> program exits".
>
> Could it be that mythtv is not ignoring lirc input (at least in the
> case when lircmd is also running). Is this a bug?
>
> Anyone got any ideas for a work-around?

As I recall, Firefox on Linux forks itself into a separate process,
returning immediately. Thus Myth doesn't know that Firefox is still
running. It may be possible to write a script that launches Firefox,
then loops (with a wait, to avoid spinlocking) until ps no longer
reports firefox is running, and only then returns.
--
Robert "Anaerin" Johnston
Sent from Regina, SK, Canada
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


theparkers.mailbox at gmail

Nov 27, 2009, 11:50 AM

Post #3 of 4 (378 views)
Permalink
Re: how to stop lircmd interacting with myth menus? [In reply to]

With firefox running, when I alt-tab back to mythtv the menu items are
not shown - it's just the blue mythtv background. Doesnt this indicate
that mythtv thinks the exec'd program is still running ?
Anyway, I'll give your suggestion a go.

2009/11/27 Robert Johnston <anaerin [at] gmail>:
> On Fri, Nov 27, 2009 at 13:20, Robert Parker
> <theparkers.mailbox [at] gmail> wrote:
>> I have configured lircmd so that I can control the mouse using the
>> remote control.
>> In mainmenu.xml I have a button to shell out to firefox:
>>   <button>
>>      <type>TV_WATCH_TV</type>
>>       <text>iPlayer</text>
>>       <action>EXEC firefox http://bbc.co.uk/iplayer/bigscreen </action>
>>   </button>
>>
>> After exiting from firefox, mythtv does not return me to the menu
>> position from where I launched the EXEC, instead I am in some random
>> place in the menu hierarchy, probably guided by the remote control
>> button presses that I used to direct the cursor (?).
>> The http://www.mythtv.org/wiki/Menu_theme_development_guide says that
>> the EXEC will "tell MythTV to ignore LIRC button presses until the
>> program exits".
>>
>> Could it be that mythtv is not ignoring lirc input (at least in the
>> case when lircmd is also running). Is this a bug?
>>
>> Anyone got any ideas for a work-around?
>
> As I recall, Firefox on Linux forks itself into a separate process,
> returning immediately. Thus Myth doesn't know that Firefox is still
> running. It may be possible to write a script that launches Firefox,
> then loops (with a wait, to avoid spinlocking) until ps no longer
> reports firefox is running, and only then returns.
> --
> Robert "Anaerin" Johnston
> Sent from Regina, SK, Canada
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


theparkers.mailbox at gmail

Nov 27, 2009, 12:22 PM

Post #4 of 4 (385 views)
Permalink
Re: how to stop lircmd interacting with myth menus? [In reply to]

Aha! thanks for the clue. "firefox" is just a wrapper script, at the
end of the script it does an exec of the binary firefox program.
I made a copy of the firefox script, removed the "exec " part, so that
running my private firefox script causes the invoker to wait. This
seems to have persuaded mythtv to not handle lirc input.

btw I think the non-displayed menu text items were because firefox was
running in fullscreen and so mythtv didnt get a chance to redraw
(although I dont know why that would be if firefox really was running
in the background)

thanks
Robert
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.