[mythtv-users] Changing Power button to restart mythfrontend

James Pifer jep at obrien-pifer.com
Sat Nov 18 02:00:00 UTC 2006


I'm trying to change the Power button to restart my mythfrontend. Once
in a while the frontend seems to hang so I need an easy way for my wife
to restart it. 

I have a simple script that does a killall mythfrontend and then try to
restart it. The following configuration in my .lircrc file definitely
works:

# Power Off/Exit
begin
prog = mythtv
button = Power
config = Esc
end

If I try to change it to this, nothing happens. 
# Power Off/Exit
begin
prog = mythtv
button = Power
config = /home/mythtv/restartfrontend
end

What should the prog be set to? I've done some searching and I've looked
at the wiki. I've tried setting prog to irexec and irxevent, but nothing
happens (even if they are running). My /etc/lircd.conf make no reference
to these irexec or irxevent, so is that a problem?

What else do I need to do to be able to run the command? Sorry, just
tired of searching. I really thought this one would be a quick and easy
one. 

Thanks,
James



More information about the mythtv-users mailing list