View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 15 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun May 14, 2006 10:37 am 
Offline
Joined: Thu Dec 29, 2005 12:56 am
Posts: 87
So i have a tuner askey tview99 (autodetected as card 38) and manually set to tuner 8 (though ive tried several tuners). In xawtv, i can change the channel to channel 3 and get the reception from my digital box. However, in mythtv, it seems to just leave the channel at 1. Is there some sort of fix for this?


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 2:51 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Have you got the "Preset Tuner To Channel:" field filled in under the appropriate "Input Connection" and a valid tuner script that exits with a success indicator?


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 2:55 pm 
Offline
Joined: Thu Dec 29, 2005 12:56 am
Posts: 87
I have set the preset tuner to channel to channel 3 under the appropriate connection. I dont know if i have a valid tuner script. where/what's that?
i know i can change the channel in xawtv, and once i set it to channel 3 in xawtv, it works fine in mythtv


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 4:43 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
"External Channel Change Command:" is the field just above the preset channel one. You need something in there for the preset to get used, even if it's just a dummy. For testing you can use /bin/true. Normally that would be the name of the script that drives the IR blaster or serial connection, or firewire connection , or ... whatever you use to change the channel on the cable box.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 4:46 pm 
Offline
Joined: Thu Dec 29, 2005 12:56 am
Posts: 87
deleted


Last edited by Irishcream on Sun May 14, 2006 4:47 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 4:46 pm 
Offline
Joined: Thu Dec 29, 2005 12:56 am
Posts: 87
Quote:
"External Channel Change Command:" is the field just above the preset channel one. You need something in there for the preset to get used, even if it's just a dummy. For testing you can use /bin/true. Normally that would be the name of the script that drives the IR blaster or serial connection, or firewire connection , or ... whatever you use to change the channel on the cable box.

So maybe i havent explained this correctly. The external channel changer works flawlessly (thanks dct-channel!) but the tuner needs to go to channel 3 first. So, once i put it to channel 3 using xawtv, all is well.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 8:21 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Does you channel change script have an "exit 0" at the bottom or a command that completes successfully to provide a "good" exit code?

Do you have the "Input Connection" set up for the "tuner" input and only that?


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 8:26 pm 
Offline
Joined: Thu Dec 29, 2005 12:56 am
Posts: 87
well you could be on to something here. mythtv was locking up during channel changing until i told the dct-channel to just change the channel and not wait for feedback from the digital box. i checked the output while this was happening, and basically dct-channel attempted to change the channel 5 times, waiting several seconds in between, but never got the information that it had changed. However, the first try dct-channel made was successful, it just never realized. So does the new version of mythtv require a code to be set after a successful change?


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 8:48 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
As far as I'm aware it has always cared about the exit code. That is the normal way a parent process in Unix knows if the child process thought it was successful. If the tuning script returns a non-zero exit code, mythtv thinks it failed.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 8:59 pm 
Offline
Joined: Thu Dec 29, 2005 12:56 am
Posts: 87
well then that is a fantastic point. ill broswe through the script and find out what's wrong, or hardwire the return value in. i'll let you know
thanks

edit... so i just quickly browsed through the code. It seems that using the blind mode should return 0 regardless of what happens. So, this should be ok.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 9:04 pm 
Offline
Joined: Thu Dec 29, 2005 12:56 am
Posts: 87
this is included in main()

if (blind) {
blind_channel(chan);
if (!quiet) printf("%d\n",chan);
return 0;
}

blind_channel(int) returns a void
so regardless, this should terminate successfully


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 9:12 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,
Just as a thought, do you have a channel 3 in your channel setup? mythtv-setup Edit Channels. It won't change to a channel that doesn't exist, even if you have it as preset.

Mike


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 10:33 pm 
Offline
Joined: Thu Dec 29, 2005 12:56 am
Posts: 87
so i guess that brings up another interesting point. if i run mythtv-setup and go to the input screen, i can scan for channels (and it finds that only channel 3 has a signal). so I guess mythtv has the ability to change the channel of this card, it just doesnt do so.... is there a command line that i could use to manually set this card to channel 3 at startup? that's the easiest workaround i can think of...


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 10:40 pm 
Offline
Joined: Tue Nov 22, 2005 7:57 pm
Posts: 295
Location: Auckland, New Zealand
ivtvctl

_________________
HP VL400 (PIII 866), Skystar2 2.6D, PVR350, Nvidia FX5200, 384MB, 200GB, KnoppMyth R5.5


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 10:59 pm 
Offline
Joined: Thu Dec 29, 2005 12:56 am
Posts: 87
well i'd just like to say BOOYAH! and thanks for everyone's help

this seems to work wonders right here....
Code:
v4lctl -c /dev/video1 setchannel 3


i'll stick it into /home/mythtv/.fluxbox/apps

Code:
[startup] {/usr/sbin/alsactl restore}
[startup] {/usr/bin/v4lctl -c /dev/video1 setchannel 3}
[startup] {xset -dpms s off}
[startup] {KnoppMyth-run}
[startup] {launch_irx.sh}
[app] (SDL_App)
  [Layer]       {2}
  [Deco]        {NONE}
[end]


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

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