View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Aug 02, 2010 11:46 am 
Offline
Joined: Tue Oct 11, 2005 11:55 am
Posts: 38
Just wondering if anyone has mapped a remote button to start the frontend
Every once and a while I exit out of the frontend. And would like to be able to start it backup with using the remote

I have R6.03 with a pvr350 and silver remote
I know alt+m starts the frontend

Would this work
begin
prog = mythtv
button = Power
config = Alt,m

Not sure how to have it act as two key pressed together.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 02, 2010 12:00 pm 
Offline
Joined: Fri Jun 23, 2006 10:57 am
Posts: 106
Not specifically a solution to send the Alt-m but my reading of the lirc configure page makes me believe this would work:

http://www.lirc.org/html/configure.html

Code:
    begin
        button = Power
        prog   = irexec
        repeat = 0
        config = mythfrontend&
    end



This should launch the frontend every time you hit the power button. Which of course might be dangerous. Perhaps write a script that is called instead of mythfrontend directly - in the script make sure mythfrontend is not running before starting another.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 02, 2010 2:22 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
This works like a champ:

Code:
[mihanson@zotac ~]$ cat /usr/local/bin/restartmyth.sh
#!/bin/bash

if [ "$(pidof mythfrontend)" ] ;
 then
  sudo killall mythfrontend
  sleep 0.5
  /usr/bin/mythfrontend -d -l /var/log/mythtv/mythfrontend.log &
 else
  /usr/bin/mythfrontend -d -l /var/log/mythtv/mythfrontend.log &
fi


If mythfrontend is running, kill it and then restart it. If mythfrontend is not running, start it.

lircrc:
Code:
# Restart a hung frontend
begin
   prog = irexec
   button = POWER
   config = /usr/local/bin/restartmyth.sh &
end

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 04, 2010 6:53 pm 
Offline
Joined: Tue Oct 11, 2005 11:55 am
Posts: 38
Thanks for the help


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu