[mythtv-users] tuner numbering

Daryl McDonald darylangela at gmail.com
Mon Mar 3 14:11:31 UTC 2014


On Mar 3, 2014 7:57 AM, "Hika van den Hoven" <hikavdh at gmail.com> wrote:
>
> Hoi Daryl,
>
> Monday, March 3, 2014, 1:47:57 PM, you wrote:
>
> > On Sun, Mar 2, 2014 at 4:50 PM, Hika van den Hoven <hikavdh at gmail.com>
wrote:
> >> Hoi Daryl,
> >>
> >> Sunday, March 2, 2014, 10:32:07 PM, you wrote:
> >>
> >>> On Sun, Mar 2, 2014 at 2:30 PM, Daryl McDonald <darylangela at gmail.com>
wrote:
> >>>> On Sat, Mar 1, 2014 at 8:35 PM, Roger Siddons <
dizygotheca at ntlworld.com> wrote:
> >>>>> On Sat, 01 Mar 2014 23:55:26 -0000, Bill Meek <keemllib at gmail.com>
wrote:
> >>>>>
> >>>>>> On 03/01/2014 03:15 PM, Hika van den Hoven wrote:
> >>>>>> ...
> >>>>>> > Seems OK. I then have one thought left. rename the directories to
> >>>>>>> adapterHP1250 and adapterPC800i. It is theoretically possible that
> >>>>>>> mythtv looks for names starting with adapter.
> >>>>>>> If that doesn't work, I'm out of thoughts for now.
> >>>>>>
> >>>>>> I believe it's better than theoretical if you also add
.../frontend*,
> >>>>>> see:
> >>>>>>
> >>>>>>
> >>>>>>
https://code.mythtv.org/cgit/mythtv/tree/mythtv/libs/libmythtv/cardutil.cpp#n292
> >>>>>>
> >>>>>> Looks any /dev/dvb/adapter*/frontend* would be included in the list
> >>>>>> of returned DVB devices. So, /dev/dvb/adapterHP1250/frontend0 would
> >>>>>> work, although I didn't test it.
> >>>>>>
> >>>>>
> >>>>> I can confirm it. Well done Hika and Bill ! This was really bugging
me...
> >>>>>
> >>>>> When I set my system up, I happened to use "adapter_nova1" etc. for
purely
> >>>>> stylistic reasons and have never had any issues. But when I
reproduced
> >>>>> Daryl's problem I used a dummy adapter called "test". After
renaming it to
> >>>>> "adapter_test" it now shows up in the list and 'sticks'.
> >>>>>
> >>>>> I believe it's an issue with the Capture Cards dialog. If you type
the name
> >>>>> in, it gets written to the database and Myth functions correctly but
> >>>>> thereafter the dialog won't report the card adapter correctly,
simply
> >>>>> defaulting to displaying adapter0 (the symlink is actually using
adapter2).
> >>>>> Any edits (changing multirec, for example), results in a new card
being
> >>>>> created on adapter0, which is already linked to an input. So setup
now
> >>>>> reports 2 cards (test and adapter0) but the frontend only sees 1
(test),
> >>>>> which works fine. Presumably the database has been
cross-linked/corrupted.
> >>>>>
> >>>>> IMHO this naming requirement should be added to the wiki at
> >>>>> http://www.mythtv.org/wiki/Device_Filenames_and_udev. Any takers ?
> >>>>> Of course, all the examples do use "adapter*" but it doesn't state
anywhere
> >>>>> that this is essential.
> >>>>>
> >>>>> Incidentally I also found that LiveTV only works if there are links
defined
> >>>>> for frontend0, dvr0 and demux0. Not sure what net0 is used for.
> >>>>>
> >>>>> So Daryl, for the avoidance of doubt, these are the latest
recommendations:
> >>>>>
> >>>>> SUBSYSTEM=="dvb", ATTRS{device}=="0x8852", PROGRAM="/bin/sh -c
'K=%k;
> >>>>> K=$${K#dvb}; printf dvb/adapterHP1250/%%s $${K#*.}; exit 0'",
SYMLINK+="%c"
> >>>>>
> >>>>> SUBSYSTEM=="dvb", ATTRS{device}=="0x8802", PROGRAM="/bin/sh -c
'K=%k;
> >>>>> K=$${K#dvb}; printf dvb/adapterPC800i/%%s $${K#*.}; exit 0'",
SYMLINK+="%c"
> >>>>>
> >>>>>
> >>>>> _______________________________________________
> >>>>> mythtv-users mailing list
> >>>>> mythtv-users at mythtv.org
> >>>>> http://www.mythtv.org/mailman/listinfo/mythtv-users
> >>>>> http://wiki.mythtv.org/Mailing_List_etiquette
> >>>>> MythTV Forums: https://forum.mythtv.org
> >>>>
> >>>> Lots of recordings today, but I changed the digital-card.rules as
> >>>> suggested. There is a break in recordings between 4 and 5 pm, when
> >>>> I'll go in and prove the theory on my box, and report back.
> >>>> Afterwards, I think it's only fair that I be the one to amend  the
> >>>> wiki. Which one is it? And is there a wiki for amending a wiki?
> >>>> Seriously, I feel indebted but I'm not sure how to proceed.   Thanks
> >>>> to all,  Daryl
> >>
> >>> I love Mythtv, everything worked as promised, DEVLINK names presented
> >>> and are now set in my BE. Furthermore, I managed to figure out how to
> >>> edit the wiki in question, so it now reads:
> >>
> >>> Example DVB device rule file (for the digital side of the Hauppauge
> >>> HVR-1950 device)
> >>
> >>> Use udevadm to find the HVR-1950 serial number as documented above.
> >>> This script creates a symlink of /dev/dvb/adapter200/<x> to the base
> >>> /dev/dvb/adapter{n}/<x> devices using udev environmental variables (no
> >>> shell programming required as above). Alter (ONLY) the serial number
> >>> and symlink name to your requirements.
> >>
> >>> I added the "ONLY" in brackets, sufficient? appropriate? I am into
> >>> paying it forward any way I can.   Again, many thanks Daryl
> >>> _______________________________________________
> >>> mythtv-users mailing list
> >>> mythtv-users at mythtv.org
> >>> http://www.mythtv.org/mailman/listinfo/mythtv-users
> >>> http://wiki.mythtv.org/Mailing_List_etiquette
> >>> MythTV Forums: https://forum.mythtv.org
> >>
> >> Sounds OK. As only possible add-on you could explicitly state that the
> >> directory name in the simlink always should start with adapter
> >> followed by a descriptive part, followed by your example.
> >>
> >> Tot mails,
> >>   Hika                            mailto:hikavdh at gmail.com
> >>
> >> "Zonder hoop kun je niet leven
> >> Zonder leven is er geen hoop
> >> Het eeuwige dilemma
> >> Zeker als je hoop moet vernietigen om te kunnen overleven!"
> >>
> >> De lerende Mens
> >> --
> >>
> >> _______________________________________________
> >> mythtv-users mailing list
> >> mythtv-users at mythtv.org
> >> http://www.mythtv.org/mailman/listinfo/mythtv-users
> >> http://wiki.mythtv.org/Mailing_List_etiquette
> >> MythTV Forums: https://forum.mythtv.org
>
> > Further review revealed that I edited the wrong section, correction
> > has been made, and a new edit has been accomplished:
>
> > Example DVB udev Rules file
>
> > The following is an example of a MythTV box with 2 x USB (DVB-T) and 2
> > x PCI (DVB-S) cards. The Udev rule specifically identifies the devices
> > and allocates the same /dev symlink each boot time. This stops adapter
> > nos switching on reboot and hotplugging.
> > For those using pre-compiled packages it is common for the DVB
> > receivers to be in /dev/dvb (MythTV Compile option) to save building
> > your own custom version the example below drops the adapters in the
> > common dvb directory, but calls them adapter101, adapter102 etc and so
> > on. In otherwords clearly separate from the standard adapter
> > references. MythTV Setup can then be easily configured. For multiple
> > dvb cards with differences be sure to include /adapter in your rule,
> > ie "printf dvb/adapterPC800i" works but, "printf dvb/PC800i" fails in
> > BE set up
>
> > The last sentence has been added to the wiki.   Daryl
> > _______________________________________________
> > mythtv-users mailing list
> > mythtv-users at mythtv.org
> > http://www.mythtv.org/mailman/listinfo/mythtv-users
> > http://wiki.mythtv.org/Mailing_List_etiquette
> > MythTV Forums: https://forum.mythtv.org
>
>
> Great, now you are the hero!
>
> Tot mails,
>   Hika                            mailto:hikavdh at gmail.com
>
> "Zonder hoop kun je niet leven
> Zonder leven is er geen hoop
> Het eeuwige dilemma
> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>
> De lerende Mens
> --
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org

Not me, I only reciprocated. The true hero's are the ones that respond to
newbies like me. Thanks once more to all!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140303/a4095b73/attachment.html>


More information about the mythtv-users mailing list