LinHES Forums
http://forums.linhes.org/

editing ~/.mythtv/lircrc
http://forums.linhes.org/viewtopic.php?f=5&t=9412
Page 1 of 1

Author:  chillguy84 [ Fri Mar 31, 2006 5:25 pm ]
Post subject:  editing ~/.mythtv/lircrc

I am trying to add some functionality to my remote by making the power button execute a restart script, but when i go to edit the lircrc file, none of the buttons on the remote work, but if i delete what i added, it works again. Is there some kind of formatting problem that is tripping me up? This is what i added to the file at the end of the file:
begin
prog = irxevent
button = Power
config = /home/mythtv/mythrestart.sh &
end

Im using the MCEUSB remote for this.

Author:  Greg Frost [ Fri Mar 31, 2006 7:43 pm ]
Post subject: 

replace prog = irxevent with prog = irexec, and you should be good to go (after restarting gdm so irexec and irxevent are restarted).

Your problem would be that irxevent does not like the format of the config that you have given and is exiting. You can confirm this by running irxevent from an xterm as the user mythtv.

Author:  chillguy84 [ Mon Apr 03, 2006 11:28 am ]
Post subject:  Worked

Thank you so much, It worked like a charm. The problem was that i didnt know that there were more than one program to execute to excute commands from the IR. Much appreciated.

Author:  daffydk [ Sun Apr 16, 2006 5:51 am ]
Post subject:  hmm

i used to get that too work too but not anymore .. after new install then i cant get it too work

i didt exatcly what i used to and now i am stuck

when exit the mythfrontend and hit the power button on mce remote nothing happens

when going into a shell and type the command mythrestart.sh i just get a command not found but typing ./mythrestart.sh it executes the command fine .. sååå any ideas ?

Daffydk

Author:  marc.aronson [ Sun Apr 16, 2006 8:40 am ]
Post subject: 

Sounds like the file is in a directory that is not on your path or you have a permission problem. Try the following:

1. Get to the state where typing "./mythrestart.sh" works.

2. Type "pwd" -- this will give you the path to the current directory.

3. Edit your lircrc file where you call the "mythrestart.sh" script and fully qualify the path to the script. ie: If the "pwd" command returned "/myth/foobar", call the script as "/myth/foobar/mythrestart.sh".

If that doesn't solve it, then also do the following from the command prompt where "./mythrestart.sh" works: "chmod a+x mythrestart.sh". My guess is that this step will not be necessary.


Marc

Author:  daffydk [ Sun Apr 16, 2006 11:29 am ]
Post subject: 

Quote:
If that doesn't solve it, then also do the following from the command prompt where "./mythrestart.sh" works: "chmod a+x mythrestart.sh". My guess is that this step will not be necessary.


That didt the trick *lol* its always the one that shouldnt work that works
Thanx for the help

Daffydk

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/