[mythtv] [mythtv-commits] Ticket #6315: LIRC Keypresses sent to both mythwelcome and mythfrontend

Matthew Wire devel at mrwire.co.uk
Thu Mar 26 18:57:10 UTC 2009



Michael T. Dean wrote:
> That can't happen.  The way LIRC works, it sends a message to /all/
> listeners on the socket (generally /dev/lircd) that contains some info:
>
> <code> <repeat count> <button name> <remote control name>
>
> and it's up to the application to "do the right thing" based on the
> configuration specified in the LIRC config (~/.lircrc or, for Myth,
>   
I know it "can't" happen but that does seem to be exactly what was 
happening.

I have a script that launches irexec followed by mythwelcome.  
Mythwelcome then launches mythfrontend via another script.  If I allow 
mythfrontend to block mythwelcome irexec queues all it's keypresses and 
doesn't execute them until mythfrontend is terminated.
What does seem to have fixed it though, is launching irexec 
asynchronously with "&" so the script is along the following lines:
while true
{
  irexec -d &
  mythwelcome
}

Anyway, it's fixed now though no idea why it should behave like this :(  
Thanks for your help.

Matthew


More information about the mythtv-dev mailing list