LinHES Forums http://forums.linhes.org/ |
|
irexec & lirc http://forums.linhes.org/viewtopic.php?f=6&t=18231 |
Page 1 of 1 |
Author: | bradpvr [ Tue Apr 29, 2008 5:20 pm ] |
Post subject: | irexec & lirc |
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 |
Author: | mjl [ Tue Apr 29, 2008 6:25 pm ] |
Post subject: | |
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 |
Author: | bradpvr [ Tue Apr 29, 2008 6:34 pm ] |
Post subject: | |
I have it set to 755, and yeah, the mute button worked before the change and worked after I reversed the change. Wierd eh? |
Author: | mjl [ Tue Apr 29, 2008 6:44 pm ] |
Post subject: | |
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 |
Author: | bradpvr [ Tue Apr 29, 2008 6:47 pm ] |
Post subject: | |
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 |
Author: | tjc [ Tue Apr 29, 2008 7:36 pm ] |
Post subject: | |
Did you make sure that irexec is running and nothing else is using that button? |
Author: | bigB [ Tue Apr 29, 2008 8:33 pm ] |
Post subject: | |
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. |
Author: | bradpvr [ Tue Apr 29, 2008 8:46 pm ] |
Post subject: | |
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! |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |