View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: editing ~/.mythtv/lircrc
PostPosted: Fri Mar 31, 2006 5:25 pm 
Offline
Joined: Wed Feb 15, 2006 2:29 pm
Posts: 5
Location: Washington, DC
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 31, 2006 7:43 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
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.


Last edited by Greg Frost on Mon Apr 03, 2006 8:51 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject: Worked
PostPosted: Mon Apr 03, 2006 11:28 am 
Offline
Joined: Wed Feb 15, 2006 2:29 pm
Posts: 5
Location: Washington, DC
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.


Top
 Profile  
 
 Post subject: hmm
PostPosted: Sun Apr 16, 2006 5:51 am 
Offline
Joined: Sun Apr 10, 2005 5:10 am
Posts: 37
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 8:40 am 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 11:29 am 
Offline
Joined: Sun Apr 10, 2005 5:10 am
Posts: 37
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


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 2 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