[mythtv-users] HDPVR tuner error in Mythtv 0.23

Shawn Flynn sflynn1 at rogers.com
Mon May 3 18:52:36 UTC 2010


I am trying to setup a new slave backend with an HDPVR encoder attached, but
am having a bit of trouble getting MythTV to use it. Hopefully someone here
can point me in the proper direction for troubleshooting this. 

The system in question is a CentOS 5.4 i386 machine with the current
mythtv-0.23-fixes packages from atrpms. The HDPVR appears to be working
outside of mythtv as I can 'cat /dev/hdpvr-0 > test.ts' and play back the
resultant file in mplayer with both audio and video.

Mythtv-setup allows me to select the HDPVR device and appears to take the
settings without error. My current settings are as follows...

  Capture Cards
    [HDPVR : /dev/hdpvr-0 ]
      Card Type: H.264 Encoder Card (HD-PVR)
      Video device: /dev/hdpvr-0
      Probed info: Hauppauge HD PVR [hdpvr]
      Default input: Component
      Audio input: SPDIF
  Video Sources
    Rogers (Digital)
      Video source name: Rogers (Digital)
      Listings grabber: North America (SchedulesDirect.org)(Internal)
      User ID: XXXXXXXX
      Password XXXXXXXX
      Data Direct Lineup: 0005370:-
      Perform EIT Scan: <deselected>
      Channel frequency table: default
  Input Connections
    [HDPVR : /dev/hdpvr-0](Component) -> Rogers (Digital)
      Capture device: [HDPVR : /dev/hdpvr-0]
      Input: Component
      Display Name (optional): BE1-HD1
      Video source: Rogers (Digital)
      External channel change command: /home/mythtv/sa4250ch_guid.sh
      Preset tuner to channel: <left blank>
      Starting channel: 2
      Input priority: 0
      Input Group 1: Generic
      Input Group 2: Generic
    [HDPVR : /dev/hdpvr-0](S-Video) -> (None)
    [HDPVR : /dev/hdpvr-0](Composite) -> (None)

Mythtv-setup exits and saves the configuration without complaint.

Starting mythbackend on the slave gives me the following log output...

2010-05-03 14:25:56.893 mythbackend version:
branches/release-0-23-fixes/mythtv/ [24265] www.mythtv.org
2010-05-03 14:25:56.896 Using runtime prefix = /usr
2010-05-03 14:25:56.897 Using configuration directory = /var/lib/mythtv
2010-05-03 14:25:56.897 Unable to read configuration file mysql.txt
2010-05-03 14:25:56.898 Empty LocalHostName.
2010-05-03 14:25:56.898 Using localhost value of
2010-05-03 14:25:56.904 New DB connection, total: 1
2010-05-03 14:25:56.922 Unable to connect to database!
2010-05-03 14:25:56.922 Driver error was [1/2002]:
QMYSQL: Unable to connect
Database error was:
Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2)

2010-05-03 14:25:57.478 UPnPautoconf() - Found one UPnP backend
2010-05-03 14:25:57.596 MythXMLClient::GetConnectionInfo Failed - (606)
Action Not Authorized
2010-05-03 14:25:57.596 Testing network connectivity to ''
2010-05-03 14:25:57.602 Closing DB connection named 'DBManager0'
2010-05-03 14:25:57.667 Connected to database 'mythconverg' at host:
2010-05-03 14:25:57.668 Closing DB connection named 'DBManager0'
2010-05-03 14:25:57.669 Deleting UPnP client...
2010-05-03 14:25:58.319 Connected to database 'mythconverg' at host:
2010-05-03 14:25:58.325 Using protocol version 56
2010-05-03 14:25:58.365 Backend is running in America/Toronto time zone.
2010-05-03 14:25:58.377 Current MythTV Schema Version (DBSchemaVer): 1254
2010-05-03 14:25:58.380 MythBackend: Running as a slave backend.
2010-05-03 14:25:58.387 New DB connection, total: 2
2010-05-03 14:25:58.389 Connected to database 'mythconverg' at host:
2010-05-03 14:25:58.391 mythbackend: MythBackend started as a slave backend
2010-05-03 14:25:58.396 New DB connection, total: 3
2010-05-03 14:25:58.415 Connected to database 'mythconverg' at host:
Changing channel 2
2010-05-03 14:25:59.492 ret_pid(0) child(21834) status(0x0)
2010-05-03 14:26:00.495 ret_pid(0) child(21834) status(0x0)
2010-05-03 14:26:01.498 ret_pid(0) child(21834) status(0x0)
2010-05-03 14:26:01.590 ret_pid(21834) child(21834) status(0x0)
2010-05-03 14:26:01.591 External Tuning program exited with no error
2010-05-03 14:26:02.017 Main::Registering HttpStatus Extension
2010-05-03 14:26:02.018 Enabled verbose msgs:  important general
2010-05-03 14:26:03.023 Connecting to master server:
2010-05-03 14:26:03.023 Connected successfully
2010-05-03 14:26:11.684 mythbackend: Running housekeeping thread
2010-05-03 14:26:48.121 ProgramInfo(): Updated pathname '':'' ->
2010-05-03 14:26:48.143 ProgramInfo(): Updated pathname '':'' ->

All looks good so far, but here's the hitch. When I fire up the frontend I
can't access the tuner on that slave backend. Looking at the frontend
'Information Center' > 'System Status' > 'Tuner Status' I see a status of
'Tuner 2[HDPVR:/dev/hdpvr-0] has an error' and the tuner does not get
selected for recording or live TV.

Can somebody give me a clue as to what debugging option I should turn on in
the backend to provide me with more detail as to what the aforementioned
'error' might be?

All thoughts and suggestions welcomed,
Shawn Flynn

More information about the mythtv-users mailing list