View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sat Jul 07, 2007 8:02 am 
Offline
Joined: Sun Apr 30, 2006 9:06 pm
Posts: 59
Location: Das Hoosier State
Title pretty much says it. I know the hardware is working because I can execute /etc/irblaster/channel_change.sh 123 and the STB will change channels. I entered this script location into the "external channel change command" field. I went to Input connections then /dev/video0 (S-Video 1). I created the channel with the channel editor rather than importing them from listings from the Video Sources menu (zap2it seems to be down right now).

I first tried executing the /etc/irblaster/channel_change.sh script with the mythtv user and it worked, so it is not a permission problem.

I also made my own script /etc/irblaster/bogus.sh which just outputs the date and time into /etc/irblaster/bogusoutput.log I can execute this script at the command line and the bogusoutput.log is populated with the date/time of every time that I execute it. However, if I use that script as my external channel change command, it does not execute when I change channels in MythTV.

I'm using a serial IR blaster, but have a PVR150 with the receiver/blaster. I ran /usr/local/bin/lirc-reconfig.sh and selected the PVR150 Gray remote (the one without the IR blaster) just to see if it was trying to use the other blaster by default.

I don't know what else to look for at this point.

I may try using the PVR150's blaster instead.

_________________
Proud member of the Loyal Brotherhood of Snipe Hunters - Local 414


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 07, 2007 9:35 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Any time you have a script which works when run interactively but "doesn't work" in some other circumstance, the first thing to ask yourself is "what's different"? The #1 culprit is usually your environment variables. (Secondary things include "Am I running it as the same user?", "Am I specifying the full pathname to the script?", "Is it being run in a different directory?")

To debug differences in the environment variables:

1) Capture the stdout/stderr output of the script somehow. One way is to add a line like this near the beginning of the script:
Code:
exec >/tmp/mydebugging.log 2>&1

This is for a shell scripts. For Perl, Python, ... you need to do something equivalent.

2) Record the current environment in that log. This means adding a line like this after the exec line shown above:
Code:
env

Or possibly like this to make comparisons easier:
Code:
env | sort


3) For the "where am I really" issue alluded to above add a line like this after the exec:
Code:
pwd


Once you determine what the differences are you can fix them, in the script, as "bad assumptions about ..."


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 07, 2007 4:07 pm 
Offline
Joined: Tue Aug 08, 2006 7:08 pm
Posts: 561
Location: UK
Perhaps I'm asking the stupidly obvious question :) , did you put the channel number to be sent to the STB in the Frequency field on the second screen of the channel editor screen where the Brightness etc. sliders are?

Bruce S.

_________________
Updated 2019/10/26: AthlonII X2 265 Gigabyte GA-970A-DS3P
16Gb PC 1866 DDR3, 500GB+2TB+4TB SATA HDD,
SATA DVD-RW Asus DRW-24D5MT , NVIDIA GeForce GT1080
Hauppauage Nova-T 500, Nova-T LinHes R8.6.1


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 07, 2007 8:53 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Knew I'd forgotten something... ;-) "Is it being called with the same arguments?"

4) To see that add a line like this after the exec:
Code:
echo "Args: $*"


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 07, 2007 9:33 pm 
Offline
Joined: Sun Apr 30, 2006 9:06 pm
Posts: 59
Location: Das Hoosier State
bruce_s01 wrote:
Perhaps I'm asking the stupidly obvious question :) , did you put the channel number to be sent to the STB in the Frequency field on the second screen of the channel editor screen where the Brightness etc. sliders are?

Bruce S.


I'm glad you asked that, sir, because I did not. I thought the "Channel Number" on the first screen took care of that. Thank you! I just tried your suggestion and it worked.

tjc, I thank you for your help as well; not only on this topic, but my other ir blaster issue. You have helped me learn a lot more than I planned on, but it was worth it.

_________________
Proud member of the Loyal Brotherhood of Snipe Hunters - Local 414


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

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