View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 8 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: irexec & lirc
PostPosted: Tue Apr 29, 2008 5:20 pm 
Offline
Joined: Tue Mar 27, 2007 11:55 am
Posts: 40
Hey

I'm trying to make it so when I push a button on my remote, it runs a script (mythpowerbutton.sh).

when I run:

./usr/local/bin/mythpowerbutton.sh

as root or as mythtv user, I get the desired affect (mythfrontend is restarted)

when I run irexec /usr/local/bin/mythpowerbutton.sh I get the desired affect.

However, when I push the button on my remote, nothing happens.

To be sure it's not a mapping issue, I change the MUTE button, which I know works, from:

begin
prog = mythtv
button = Mute
config = |
end

To:

begin
prog = irexec
button = Mute
config = /usr/local/bin/mythpowerbutton.sh
end

I save, restart mythfrontend and push the button, nothing happens. I change it back to mute, and restart mythfrontend and the Mute works.

Anyone have any ideas as to why this is?

Thanks!
Brad


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 29, 2008 6:25 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

Maybe the permissions are not set. I would suggest doing a chmod 755 to the file and then try it.

I am also assuming the Mute button did work before the change?

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 29, 2008 6:34 pm 
Offline
Joined: Tue Mar 27, 2007 11:55 am
Posts: 40
I have it set to 755, and yeah, the mute button worked before the change and worked after I reversed the change.

Wierd eh?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 29, 2008 6:44 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

Rather than just doing a frontend restart, maybe try a reboot after the change? You could probably just do a restart of the lirc but the reboot won't hurt either. It may not be re-reading the lircrc script.

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 29, 2008 6:47 pm 
Offline
Joined: Tue Mar 27, 2007 11:55 am
Posts: 40
I change the bash script to be something simple like:

#!/bin/bash
touch testfile.txt

Ran it by hand, it created the file. I deleted the file, tried running it by the remote and no testfile.txt hmmm


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 29, 2008 7:36 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Did you make sure that irexec is running and nothing else is using that button?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 29, 2008 8:33 pm 
Offline
Joined: Mon Feb 06, 2006 5:11 pm
Posts: 353
Location: Brisbane, Australia
Is Irexec running as user mythtv, and are you editing the correct version of lircrc?

For irexec, i think i need to edit /home/mythtv/.lircrc. I actually sym link it to /home/mythtv/.mythtv/lircrc

Hope this helps.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 29, 2008 8:46 pm 
Offline
Joined: Tue Mar 27, 2007 11:55 am
Posts: 40
irexec is running as mythtv

nothing else is using that button

I have the symlink in place already.

I thought about the reboot and tried that too, but that didn't change anything.

It looks like it should work!


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 1 guest


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