[mythtv-users] Re: Starting mythtv using LIRC?

2005-06-05 Thread Pete Cable
On 6/4/05, Nick [EMAIL PROTECTED] wrote:
 On 6/4/05, Michael T. Dean [EMAIL PROTECTED] wrote:
  Sim wrote:
  
  I use KDE and want to set the TV button my remote to start mythtv.  Any
 ideas
  how to do this - i've tried using irxevent to pass a ctrl-t (which is
 the
  hotkey i setup in kde for mythtv) but that did not work.
  
  

I use irexec to do this. Here's the relevant section from my .lircrc

# Power Off/Exit
begin
prog = irexec
button = POWER
repeat = 4
config = /home/pete/.fluxbox/startmyth.pl
end

and here is my script to start myth...

#!/usr/bin/perl

$pid=`pgrep mythfrontend`;

if ($pid) {
print mythfrontend running, $pid\n;
}
else {
print starting mythfrontend\n;
system(mythfrontend );
}

The script just keeps you from accidentally firing off a 2nd
mythfrontend when one is already running. All you need after that is
to make sure irexec is running. I have a script that runs on login to
fluxbox to fire off irexec, once again just making sure I don't end up
with two copies running:

#!/bin/bash
killall irexec
irexec 

Hope this helps...
-- 
Pete
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Re: Starting mythtv using LIRC?

2005-06-05 Thread Sim
On Sunday 05 June 2005 08:23, Pete Cable wrote:
 On 6/4/05, Nick [EMAIL PROTECTED] wrote:
  On 6/4/05, Michael T. Dean [EMAIL PROTECTED] wrote:
   Sim wrote:
   I use KDE and want to set the TV button my remote to start mythtv. 
Any
 
  ideas
 
   how to do this - i've tried using irxevent to pass a ctrl-t (which is
 
  the
 
   hotkey i setup in kde for mythtv) but that did not work.

 I use irexec to do this. Here's the relevant section from my .lircrc

Thanks everyone - I've got it working rst ever perl script later :-)
Simon
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Re: Starting mythtv using LIRC?

2005-06-05 Thread Mario Limonciello
Sim wrote:

On Sunday 05 June 2005 08:23, Pete Cable wrote:
  

On 6/4/05, Nick [EMAIL PROTECTED] wrote:


On 6/4/05, Michael T. Dean [EMAIL PROTECTED] wrote:
  

Sim wrote:


I use KDE and want to set the TV button my remote to start mythtv. 
Any
  

ideas

  

how to do this - i've tried using irxevent to pass a ctrl-t (which is
  

the

  

hotkey i setup in kde for mythtv) but that did not work.
  

I use irexec to do this. Here's the relevant section from my .lircrc



Thanks everyone - I've got it working rst ever perl script later :-)
Simon
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

  

Well - I did mine a bit different since I feel that a power button
should both quit and start things:

[EMAIL PROTECTED] ~ $ cat .checkmythrunning.sh
#!/bin/sh

pkill irexec;
mythfrontend  irexec -d;



In my .lircrc:
.
.
.
begin
prog = irexec
button = power
config = /home/supermario/.checkmythrunning.sh
end

begin
   prog = mythtv
   button = power
   config = Escape
end

.
.
.


___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users