[mythtv-users] Tune to channel 'X' only works after channel 'Y' (not 'Z')

Robin Rainton robin at rainton.com
Tue Nov 11 23:48:53 UTC 2008


Hi all - hope the subject isn't too confusing, but the problem is this:

I'm in Sydney, Australia, let's say I'm watching SBS and try and tune
to Channel 9: the tuner doesn't work and status display on the front
end (IIRC) is ' Partial Lock (PMs)'.

Let's say I'm watching Channel 7 though, and then switch to Channel 9:
things work just fine.

This is rather annoying as you can imagine, as depending on the order
of recording sometimes (when something on SBS is recorded, then
Channel 9 is scheduled) the tuning fails and the showing is not
recorded.

FWIW, I think this has started to happen since upgrade to 0.21 (from 0.20).

Turning on debug there are some clues, but I'm not sure what these
mean or how to progress - logs below for those who know! ;)

Any help or ideas would be greatly appreciated.

Thanks,

Robin

System specifics:

MythTV 0.21 on Linux 2.6.26 kernel. Avermedia DVB-T 777. dmesg says
this on boot:

--- snip ---
saa7133[0]: found at 0000:02:08.0, rev: 209, irq: 4, latency: 32,
mmio: 0xfb004000
saa7133[0]: subsystem: 1461:2c05, board: AverTV DVB-T 777 [card=85,autodetected]
saa7133[0]: board init: gpio is 2b200
input: saa7134 IR (AverTV DVB-T 777) as /class/input/input0
--- snip ---

Log from when things don't work:

--- snip ---
2008-11-11 20:37:46.935 TVRec(4): HW Tuner: 4->4
2008-11-11 20:37:46.943 DVBChan(4:0): Opening DVB channel
2008-11-11 20:37:46.948 DVBChan(4:0): SetChannelByString(529):
2008-11-11 20:37:46.951 DVBChan(4:0): 564500000 qam_64 a 3/4 3/4 7 8 1/16 n v
2008-11-11 20:37:46.952 DVBChan(4:0): Old Params: 571500000 qam_64 a
2/3 2/3 7 8 1/8 n v
                                     DVBChan(4:0): New Params:
564500000 qam_64 a 3/4 3/4 7 8 1/16 n v
2008-11-11 20:37:46.954 DVBChan(4:0): Tune(): Tuning to 564500000Hz
2008-11-11 20:37:46.955 dvbchannel.cpp:wait_for_backend: Status:
2008-11-11 20:37:46.990 DVBChan(4:0): Tune(): Frequency tuning successful.
2008-11-11 20:37:46.998 DVBChan(4:0): SetChannelByString(529): Tuned
to frequency.
2008-11-11 20:37:48.032 Finished recording Indonesian News: channel 1503
2008-11-11 20:37:48.256 DVBChan(4:0): Opening DVB channel
2008-11-11 20:37:48.342 DVBSM(0): Can measure Signal Strength
2008-11-11 20:37:48.397 Using runtime prefix = /usr/local, libdir =
/usr/local/lib
2008-11-11 20:37:48.398 DVBSM(0): Can measure S/N
2008-11-11 20:37:48.409 Empty LocalHostName.
2008-11-11 20:37:48.419 Using localhost value of lled.r2b2.net
2008-11-11 20:37:48.435 New DB connection, total: 1
2008-11-11 20:37:48.438 DVBSM(0): Can measure Bit Error Rate
2008-11-11 20:37:48.466 Connected to database 'mythtv' at host: 10.1.0.1
2008-11-11 20:37:48.472 Closing DB connection named 'DBManager0'
2008-11-11 20:37:48.474 Connected to database 'mythtv' at host: 10.1.0.1
2008-11-11 20:37:48.476 New DB connection, total: 2
2008-11-11 20:37:48.478 DVBSM(0): Can count Uncorrected Blocks
2008-11-11 20:37:48.494 SM(0)::RemoveFlags: Seen() Match() Wait()
2008-11-11 20:37:48.503 DVBSM(0): DVBSignalMonitor::ctor initial flags
Seen() Match() Wait(Sig,SNR,BER,UB,)
2008-11-11 20:37:48.517 DTVSM(0)::SetDVBService(transport_id: 0,
network_id: 0, service_id: 1):
2008-11-11 20:37:48.526 SM(0)::RemoveFlags: Seen(PMT,SDT,Crypt,)
Match(PMT,SDT,Crypt,) Wait()
2008-11-11 20:37:48.535 SM(0)::AddFlags: Seen() Match() Wait(PMT,SDT,)
2008-11-11 20:37:48.536 SM(0)::AddFlags: Seen() Match() Wait(PMT,SDT,Pos,)
2008-11-11 20:37:48.536 SM(0)::Start: begin
2008-11-11 20:37:48.537 SM(0)::AddFlags: Seen() Match() Wait(Sig,)
2008-11-11 20:37:48.538 SM(0)::RemoveFlags: Seen() Match() Wait(Pos,)
2008-11-11 20:37:48.537 SM(0)::Start: end
2008-11-11 20:37:48.484 Connected to database 'mythtv' at host: 10.1.0.1
2008-11-11 20:37:48.552 Current Schema Version: 1214
2008-11-11 20:37:48.554 AutoExpire: CalcParams(): Max required Free
Space: 4.0 GB w/freq: 15 min
2008-11-11 20:37:48.554 TVRec(4): SetChannel(529) -- end
2008-11-11 20:37:48.626 DVBSM(0): UpdateValues -- Signal Locked
2008-11-11 20:37:48.667 DTVSM(0)::GetStatusList: WaitForPMT seen(0) matching(0)
2008-11-11 20:37:48.684 SM(0)::AddFlags: Seen(PAT,) Match() Wait()
2008-11-11 20:37:48.704 SM(0)::AddFlags: Seen() Match(PAT,) Wait()
2008-11-11 20:37:48.717 SM(0)::AddFlags: Seen(PMT,) Match() Wait()
2008-11-11 20:37:48.723 DTVSM(0) Error: Wrong PMT; pmt->pn(6) desired(1)
2008-11-11 20:37:48.734 SM(0)::AddFlags: Seen(PMT,) Match() Wait()
2008-11-11 20:37:48.735 SM(0)::AddFlags: Seen() Match(PMT,) Wait()
2008-11-11 20:37:48.742 DTVSM(0)::GetStatusList: WaitForPMT seen(1) matching(1)
2008-11-11 20:37:48.742 SM(0)::AddFlags: Seen(PMT,) Match() Wait()
2008-11-11 20:37:48.751 DTVSM(0) Error: Wrong PMT; pmt->pn(5) desired(1)
2008-11-11 20:37:49.744 SM(0)::AddFlags: Seen(SDT,) Match() Wait()
2008-11-11 20:37:50.154 SM(0)::AddFlags: Seen(SDT,) Match() Wait()
2008-11-11 20:37:51.072 DTVSM(0): Time Offset: -9.07271
2008-11-11 20:37:51.224 AFD: Opened codec 0x834a5e0, id(MPEG2VIDEO) type(Video)
2008-11-11 20:37:51.235 AFD: codec MP3 has 2 channels
2008-11-11 20:37:51.243 AFD: Opened codec 0x834abd0, id(MP3) type(Audio)
2008-11-11 20:37:51.312 Preview: Grabbed preview
'/home/mythtv/store/1503_20081111203711.mpg' 720x576 at 64s
2008-11-11 20:37:51.365 DTVSM(0)::SetNIT(): net_id = 12819
2008-11-11 20:37:51.367 SM(0)::AddFlags: Seen(NIT,) Match() Wait()
2008-11-11 20:37:51.390 SM(0)::AddFlags: Seen(SDT,) Match() Wait()
2008-11-11 20:37:51.799 SM(0)::AddFlags: Seen(SDT,) Match() Wait()
2008-11-11 20:37:53.026 SM(0)::AddFlags: Seen(SDT,) Match() Wait()
2008-11-11 20:37:53.419 SM(0)::AddFlags: Seen(SDT,) Match() Wait()
2008-11-11 20:37:54.655 SM(0)::AddFlags: Seen(SDT,) Match() Wait()
2008-11-11 20:37:55.039 SM(0)::AddFlags: Seen(SDT,) Match() Wait()
--- snip ---

Log from when things do work:

--- snip ---
2008-11-11 20:39:20.715 TVRec(4): HW Tuner: 4->4
2008-11-11 20:39:20.723 DVBChan(4:0): Opening DVB channel
2008-11-11 20:39:20.735 DVBChan(4:0): SetChannelByString(529):
2008-11-11 20:39:20.749 DVBChan(4:0): 564500000 qam_64 a 3/4 3/4 7 8 1/16 n v
2008-11-11 20:39:20.751 DVBChan(4:0): Old Params: 648500000 qam_64 a
3/4 auto 7 8 1/16 n v
                                     DVBChan(4:0): New Params:
564500000 qam_64 a 3/4 3/4 7 8 1/16 n v
2008-11-11 20:39:20.752 DVBChan(4:0): Tune(): Tuning to 564500000Hz
2008-11-11 20:39:20.753 dvbchannel.cpp:wait_for_backend: Status:
2008-11-11 20:39:20.754 DVBChan(4:0): Tune(): Frequency tuning successful.
2008-11-11 20:39:20.755 DVBChan(4:0): SetChannelByString(529): Tuned
to frequency.
2008-11-11 20:39:21.796 Finished recording NCIS "Family": channel 1522
2008-11-11 20:39:22.043 DVBChan(4:0): Opening DVB channel
2008-11-11 20:39:22.090 DVBSM(0): Can measure Signal Strength
2008-11-11 20:39:22.105 Using runtime prefix = /usr/local, libdir =
/usr/local/lib
2008-11-11 20:39:22.106 DVBSM(0): Can measure S/N
2008-11-11 20:39:22.121 Empty LocalHostName.
2008-11-11 20:39:22.144 Using localhost value of lled.r2b2.net
2008-11-11 20:39:22.159 DVBSM(0): Can measure Bit Error Rate
2008-11-11 20:39:22.161 New DB connection, total: 1
2008-11-11 20:39:22.193 Connected to database 'mythtv' at host: 10.1.0.1
2008-11-11 20:39:22.195 Closing DB connection named 'DBManager0'
2008-11-11 20:39:22.198 DVBSM(0): Can count Uncorrected Blocks
2008-11-11 20:39:22.211 SM(0)::RemoveFlags: Seen() Match() Wait()
2008-11-11 20:39:22.220 DVBSM(0): DVBSignalMonitor::ctor initial flags
Seen() Match() Wait(Sig,SNR,BER,UB,)
2008-11-11 20:39:22.231 DTVSM(0)::SetProgramNumber(1):
2008-11-11 20:39:22.239 SM(0)::RemoveFlags: Seen(PMT,Crypt,)
Match(PMT,Crypt,) Wait()
2008-11-11 20:39:22.247 SM(0)::AddFlags: Seen() Match() Wait(PMT,)
2008-11-11 20:39:22.256 SM(0)::AddFlags: Seen() Match() Wait(PAT,PMT,Pos,)
2008-11-11 20:39:22.259 SM(0)::Start: begin
2008-11-11 20:39:22.260 SM(0)::AddFlags: Seen() Match() Wait(Sig,)
2008-11-11 20:39:22.263 SM(0)::RemoveFlags: Seen() Match() Wait(Pos,)
2008-11-11 20:39:22.261 SM(0)::Start: end
2008-11-11 20:39:22.210 Connected to database 'mythtv' at host: 10.1.0.1
2008-11-11 20:39:22.268 New DB connection, total: 2
2008-11-11 20:39:22.270 AutoExpire: CalcParams(): Max required Free
Space: 4.0 GB w/freq: 15 min
2008-11-11 20:39:22.270 TVRec(4): SetChannel(529) -- end
2008-11-11 20:39:22.284 Connected to database 'mythtv' at host: 10.1.0.1
2008-11-11 20:39:22.325 Current Schema Version: 1214
2008-11-11 20:39:22.350 DVBSM(0): UpdateValues -- Signal Locked
2008-11-11 20:39:22.389 DTVSM(0)::GetStatusList: WaitForPMT seen(0) matching(0)
2008-11-11 20:39:22.406 SM(0)::AddFlags: Seen(PAT,) Match() Wait()
2008-11-11 20:39:22.415 SM(0)::AddFlags: Seen() Match(PAT,) Wait()
2008-11-11 20:39:22.431 SM(0)::AddFlags: Seen(PMT,) Match() Wait()
2008-11-11 20:39:22.441 DTVSM(0) Error: Wrong PMT; pmt->pn(5) desired(1)
2008-11-11 20:39:22.451 SM(0)::AddFlags: Seen(PMT,) Match() Wait()
2008-11-11 20:39:22.447 DTVSM(0)::GetStatusList: WaitForPMT seen(1) matching(0)
2008-11-11 20:39:22.459 DTVSM(0) Error: Wrong PMT; pmt->pn(6) desired(1)
2008-11-11 20:39:22.464 SM(0)::AddFlags: Seen(PMT,) Match() Wait()
2008-11-11 20:39:22.465 SM(0)::AddFlags: Seen() Match(PMT,) Wait()
2008-11-11 20:39:22.511 DTVSM(0)::GetStatusList: WaitForPMT seen(1) matching(1)
2008-11-11 20:39:22.525 DVBSM(0): Stop() -- begin
2008-11-11 20:39:22.535 SM(0)::Stop: begin
2008-11-11 20:39:22.579 SM(0)::Stop: end
2008-11-11 20:39:22.607 DVBSM(0): Stop() -- end
2008-11-11 20:39:22.615 DVBSM(0): Stop() -- begin
2008-11-11 20:39:22.617 SM(0)::Stop: begin
2008-11-11 20:39:22.618 SM(0)::Stop: end
2008-11-11 20:39:22.619 DVBSM(0): Stop() -- end
2008-11-11 20:39:22.620 DVBSM(0): Stop() -- begin
2008-11-11 20:39:22.629 SM(0)::Stop: begin
2008-11-11 20:39:22.636 SM(0)::Stop: end
2008-11-11 20:39:22.644 DVBSM(0): Stop() -- end
2008-11-11 20:39:22.651 SM(0)::Stop: begin
2008-11-11 20:39:22.663 SM(0)::Stop: end
--- snip ---


More information about the mythtv-users mailing list