[mythtvnz] New install setup - recording problem

Paulgir paulgir at gmail.com
Fri Jul 29 06:34:46 BST 2016


On Fri, 29 Jul 2016 16:15:34 +1200, Stephen Worthington  
<stephen_agent at jsw.gen.nz> wrote:

> On Fri, 29 Jul 2016 13:53:05 +1200, you wrote:
>
>>
>> Hi all,
>>
>> I'm working on a new install of mythbuntu 16.04.I have my previous 
>> install
>> of 12.04 on another drive.Both systems use the same 1TB storage.I 
>> restored
>> the db backup from 12.04 onto 16.04 and everything looks correct,I
>> carefully confirmed this against the 12.04 settings.On 16.04 I can watch
>> recordings and videos.I can also do channel scans with no apparent 
>> errors.
>>
>> If I try live tv I get a message saying all tuners are busy.If I try to
>> record a program in the guide I get a "recorder off_line" message.In the
>> Information menu section all tuners show "error".
>>
>> The tuners are a Haupauge 2200 and a HDHR and using HDHR config GUI and
>> Me-TV I have confirm the tuners are working.
>>
>> Mythbackend.log has a lot of these errors:
>>
>> Jul 29 11:58:03 myth mythbackend: mythbackend[2547]: E ProcessRequest
>> mainserver.cpp:4718 (HandleRemoteEncoder) MainServer:
>> HandleRemoteEncoder(cmd GET_STATE) Unknown encoder: 46
>>
>> Also,this may be totally unrelated, the directories and files on the
>> storage drive (/var/lib/mythtv) all had the owner and group listed as 
>> ntp.
>> I changed this to owner: mythtv ;group:mythtv in accordance with whatthe
>> 12.04 install has. I was getting "unable to create file
>> "var/lib/mythtv/recordings/.test" directory is not writable" messages on
>> startup.Changing the owner to mythtv eliminated these.
>>
>> Any suggestions will be much appreciated.
>>
>> -Paul
>
> When you install a Linux system, the group ids and user ids are
> assigned to the various groups and users. But they can vary from one
> Linux install to another, even if you use the same version of Linux.
> So if you move a drive from one system to another, you often find that
> the ids do not match and you get the wrong group or user. So you may
> need to chown all the directories and files to what they should be.
> The chown command has a -R option to recurse directories, which helps.

The only changes in the hardware are the two system drives: an old HDD  
with 12.04 and a new SSD for 16.04 It isn't a duel boot I am swapping the  
sata cable while I'm getting 16.04 sorted.Once that is done I'll delete  
12.04 off the old drive.
/var/lib/mythtv is on the 3rd drive and after changing the owner (chown  
-R) for 16.04 I have just found I need to change it back when I booted  
12.04.It works - no problem.
>
> As for your tuners, did you just restore the database without checking
> the order the tuners are in? Tuners can move in order between boots,
> and they certainly move when installed in different slots or USB
> ports, let alone when moved to a different motherboard. So you need
> to see which tuner should be on which /dev/dvb address and make sure
> they are on the same ones that your old system had them. This command
> will show you what the database says the tuner addresses are:

I'll have to check this.As I stated above cards and mobo have not changed.

>
> select
> cardid,parentid,videodevice,cardtype,defaultinput,tunechan,startchan,displayname,channel_timeout
> from capturecard order by videodevice;

Are these mysql commands?
>
> The videodevice field gives the address of the tuner. So then you
> need to use the adapter_nr option in your tuner driver setup to assign
> the tuners to the correct address. Not all tuners have the adapter_nr
> option, and if any of yours do not, you will need to use udev rules to
> assign them to the correct address. But check first for adapter_nr as
> that is much easier to use.
>
> The modinfo command followed by the device driver name gives the
> options for drivers. Here is what my DVB-T drivers say:
>
> root at mypvr:/etc/modprobe.d# modinfo dvb_usb_dib0700 | grep parm
> parm: force_lna_activation:force the activation of
> Low-Noise-Amplifyer(s) (LNA), if applicable for the device (default:
> 0=automatic/off). (int)
> parm: debug:set debugging level (1=info,2=fw,4=fwdata,8=data
> (or-able)). (int)
> parm: nb_packet_buffer_size:Set the dib0700 driver data
> buffer size. This parameter corresponds to the number of TS packets.
> The actual size of the data buffer corresponds to this parameter
> multiplied by 188 (default: 21) (int)
> parm: adapter_nr:DVB adapter numbers (array of short)
>
> To use the adapter_nr option, you need to create a .conf file in
> /etc/modprobe.d. I have mine in options-dvb.conf. This is what I
> have for my tuners:
>
> #Set adapter numbers for Nova-TD 500 DVB-T card (dual tuners), and
> AverMedia AverTV DVB-T Volar USB tuner (they use the same driver).
> options dvb_usb_dib0700 adapter_nr=0,1,2
>
> #Set adapter number for TurboSight TBS5922 QBOX S2 DVB-S2 USB tuner.
> options dvb-usb-tbsqbox22 adapter_nr=3
>
> #Set adapter number for TeVii S470 DVB-S2 PCIe x1 card.
> options cx23885 adapter_nr=4
>
> Finding the name of your tuner driver can be a bit difficult. If you
> do not know what it is, looking through the kern.log file for what
> happens at boot time will normally tell you, but there are some
> (fortunately rare) drivers that do not actually post any messages that
> have the driver name in them.
>
> If you can not use adapter_nr, let us know and we can try to help with
> udev rules.
>
> It is also possible that your tuner order is stable with each boot, in
> which case you could just delete all your tuners in mythtv-setup and
> re-create them.
I did this - it did not change the problem

Does this apply to the HDHR as well?
Thanks for the help.I've set it back to 12.04 for the evening and will  
look at it again tomorrow.
I also ran into this  
bug:https://bugs.launchpad.net/ubuntu/+source/mythbuntu-common/+bug/1576767  
after changing a database setting in mythbuntu control center.It looks  
like that is sorted,though.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ourshack.com/pipermail/mythtvnz/attachments/20160729/20e2dad4/attachment.html>


More information about the mythtvnz mailing list