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

tuner connected to digital box not changing to channel 3
http://forum.linhes.org/viewtopic.php?f=2&t=10035
Page 1 of 1

Author:  Irishcream [ Sun May 14, 2006 10:37 am ]
Post subject:  tuner connected to digital box not changing to channel 3

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?

Author:  tjc [ Sun May 14, 2006 2:51 pm ]
Post subject: 

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?

Author:  Irishcream [ Sun May 14, 2006 2:55 pm ]
Post subject: 

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

Author:  tjc [ Sun May 14, 2006 4:43 pm ]
Post subject: 

"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.

Author:  Irishcream [ Sun May 14, 2006 4:46 pm ]
Post subject: 

deleted

Author:  Irishcream [ Sun May 14, 2006 4:46 pm ]
Post subject: 

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.

Author:  tjc [ Sun May 14, 2006 8:21 pm ]
Post subject: 

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?

Author:  Irishcream [ Sun May 14, 2006 8:26 pm ]
Post subject: 

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?

Author:  tjc [ Sun May 14, 2006 8:48 pm ]
Post subject: 

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.

Author:  Irishcream [ Sun May 14, 2006 8:59 pm ]
Post subject: 

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.

Author:  Irishcream [ Sun May 14, 2006 9:04 pm ]
Post subject: 

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

Author:  mjl [ Sun May 14, 2006 9:12 pm ]
Post subject: 

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

Author:  Irishcream [ Sun May 14, 2006 10:33 pm ]
Post subject: 

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...

Author:  nickread [ Sun May 14, 2006 10:40 pm ]
Post subject: 

ivtvctl

Author:  Irishcream [ Sun May 14, 2006 10:59 pm ]
Post subject: 

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]

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