[mythtv-users] Joy and pain (Daryl McDonald)

Daryl McDonald darylangela at gmail.com
Sun Feb 16 00:10:42 UTC 2014


On Sat, Feb 15, 2014 at 7:05 PM, Hika van den Hoven <hikavdh at gmail.com> wrote:
> Hoi Daryl,
>
> Sunday, February 16, 2014, 12:54:17 AM, you wrote:
>
>> On Sat, Feb 15, 2014 at 6:50 PM, Daryl McDonald <darylangela at gmail.com> wrote:
>>> On Sat, Feb 15, 2014 at 6:42 PM, Hika van den Hoven <hikavdh at gmail.com> wrote:
>>>> Hoi Daryl,
>>>>
>>>> Sunday, February 16, 2014, 12:40:03 AM, you wrote:
>>>>
>>>>> On Sat, Feb 15, 2014 at 6:26 PM, Hika van den Hoven <hikavdh at gmail.com> wrote:
>>>>>> Hoi Daryl,
>>>>>>
>>>>>> Sunday, February 16, 2014, 12:11:55 AM, you wrote:
>>>>>>
>>>>>>> On Sat, Feb 15, 2014 at 6:09 PM, Hika van den Hoven <hikavdh at gmail.com> wrote:
>>>>>>>> Hoi Daryl,
>>>>>>>>
>>>>>>>> Saturday, February 15, 2014, 8:31:28 PM, you wrote:
>>>>>>>>
>>>>>>>>> On Sat, Feb 15, 2014 at 2:19 PM, Daryl McDonald <darylangela at gmail.com> wrote:
>>>>>>>>>> On Sat, Feb 15, 2014 at 2:01 PM, Daryl McDonald <darylangela at gmail.com> wrote:
>>>>>>>>>>> On Sat, Feb 15, 2014 at 1:56 PM, Daryl McDonald <darylangela at gmail.com> wrote:
>>>>>>>>>>>> On Sat, Feb 15, 2014 at 1:30 PM, Mike Perkins
>>>>>>>>>>>> <mikep at randomtraveller.org.uk> wrote:
>>>>>>>>>>>>> On 15/02/14 18:25, Mike Perkins wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 15/02/14 15:22, Daryl McDonald wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> daryl at daryl-A780L3C:~$ ls /dev/lirc*
>>>>>>>>>>>>>>> /dev/lirc0  /dev/lirc1  /dev/lircd  /dev/lircSerial
>>>>>>>>>>>>>>> daryl at daryl-A780L3C:~$
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>> (Removed a lot of dead wood)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> It would probably help the conversation if you used one of the long
>>>>>>>>>>>>>> options
>>>>>>>>>>>>>> here, like:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ls -al
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> This would tell the rest of us just *where* /dev/lircSerial (and any other
>>>>>>>>>>>>>> symbolic links) actually points.
>>>>>>>>>>>>>>
>>>>>>>>>>>>> That would of course be: ls -al /dev/lirc*
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>>
>>>>>>>>>>>>> Mike Perkins
>>>>>>>>>>>>>
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> 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
>>>>>>>>>>>>
>>>>>>>>>>>> Here it is:
>>>>>>>>>>>>
>>>>>>>>>>>> daryl at daryl-A780L3C:~$ ls -al /dev/lirc*
>>>>>>>>>>>> crw------- 1 root root 250, 0 Feb 15 10:49 /dev/lirc0
>>>>>>>>>>>> crw------- 1 root root 250, 1 Feb 15 10:49 /dev/lirc1
>>>>>>>>>>>> lrwxrwxrwx 1 root root     25 Feb 15 10:49 /dev/lircd ->
>>>>>>>>>>>> /var/run/lirc/lircdSerial
>>>>>>>>>>>> lrwxrwxrwx 1 root root      5 Feb 15 10:49 /dev/lircSerial -> lirc1
>>>>>>>>>>>> daryl at daryl-A780L3C:~$
>>>>>>>>>>>
>>>>>>>>>>> Mythbuntu Control Center set up the serial port blaster initially,
>>>>>>>>>>> would it help at all to disable this with MCC allow the Symlinks to
>>>>>>>>>>> connect then let MCC set the serial port blaster? Or should MCC get
>>>>>>>>>>> out and stasy out of the set-up?   just grasping at straws here.
>>>>>>>>>>> Daryl
>>>>>>>>>>
>>>>>>>>>> When I disable the IR transmitter via MCC the line: lrwxrwxrwx 1 root
>>>>>>>>>> root     25 Feb 15 14:11 /dev/lircd -> /var/run/lirc/lircdSerial
>>>>>>>>>> disappears from the above query, /dev/lircd seems to be the symlink
>>>>>>>>>> created by MCC for the blaster, so should /dev/lircd be used in the
>>>>>>>>>> udev rule instead of "/dev/lircSerial"?   Daryl
>>>>>>>>
>>>>>>>>> Isn't the lack of a node name a significant part of the problem?:
>>>>>>>>
>>>>>>>>> udev_rules_apply_to_event: LINK 'lircSerial'
>>>>>>>>> /etc/udev/rules.d/capture-card.rules:7
>>>>>>>>> udev_event_execute_rules: no node name set, will use kernel supplied
>>>>>>>>> name 'lirc1'
>>>>>>>>> udev_node_add: creating device node '/dev/lirc1', devnum=250:1,
>>>>>>>>> mode=0600, uid=0, gid=0
>>>>>>>>> udev_node_mknod: preserve file '/dev/lirc1', because it has correct dev_t
>>>>>>>>> udev_node_mknod: preserve permissions /dev/lirc1, 020600, uid=0, gid=0
>>>>>>>>> node_symlink: preserve already existing symlink '/dev/char/250:1' to '../lirc1'
>>>>>>>>> link_find_prioritized: found 'c250:1' claiming '/run/udev/links/lircSerial'
>>>>>>>>> link_update: creating link '/dev/lircSerial' to '/dev/lirc1'
>>>>>>>>> node_symlink: preserve already existing symlink '/dev/lircSerial' to 'lirc1'
>>>>>>>>> udev_device_update_db: unable to create temporary db file
>>>>>>>>> '/run/udev/data/c250:1.tmp': Permission denied
>>>>>>>>> ACTION=-p
>>>>>>>>> DEVLINKS=/dev/lircSerial
>>>>>>>>> DEVNAME=/dev/lirc1
>>>>>>>>> DEVPATH=/devices/platform/lirc_serial.0/lirc/lirc1
>>>>>>>>> MAJOR=250
>>>>>>>>> MINOR=1
>>>>>>>>> SUBSYSTEM=lirc
>>>>>>>>> UDEV_LOG=6
>>>>>>>>> USEC_INITIALIZED=26744727
>>>>>>>>> daryl at daryl-A780L3C:~$
>>>>>>>>> _______________________________________________
>>>>>>>>> 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
>>>>>>>>
>>>>>>>>
>>>>>>>> Sorry I was experimenting with opengl etc and my virtualbox (with
>>>>>>>> windows and my mail program) would freeze my machine took me some
>>>>>>>> time.
>>>>>>>> On fast scanning I would say that since /dev/lircd points to
>>>>>>>> /var/run/lirc/lircSerial It now should work. Give me a few minutes
>>>>>>>> look deeper.
>>>>>>>>
>>>>>>>> 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
>>>>>>
>>>>>>> No problem
>>>>>>> _______________________________________________
>>>>>>> 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
>>>>>>
>>>>>>
>>>>>> Lets first explain what is what and created by what:
>>>>>> 1: When the kernel loads the support for lirc it creates through udev
>>>>>>    the devices /dev/lirc0 and /dev/lirc1 and through your own rule
>>>>>>    udev adds the simlink /dev/lircSerial. Without the card the last
>>>>>>    will point to /dev/lirc0 and with the card to /dev/lirc1.
>>>>>> 2: Then comes in lircd (remember the extra d) lirc will create a
>>>>>>    socket (which is a kind of doorway) to the desired device.
>>>>>>    /var/run/lircd and a link to this socket in /dev/ /dev/lircd.
>>>>>>    You originally configured it through mcc and this program probably
>>>>>>    creates the file /etc/lirc/hardware.conf.
>>>>>>    By default this socket is called lircd. To prevent the new card
>>>>>>    from interfering we tried to give the socketfile it own uniek name.
>>>>>>
>>>>>> This all seemed to work but have you tried if it worked with irsend -d
>>>>>> /var/run/lirc/lircdSerial?
>>>>>>
>>>>>> 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
>>>>
>>>>> daryl at daryl-A780L3C:~$ irsend -d /var/run/lirc/lircdSerial
>>>>> irsend: not enough arguments
>>>>> daryl at daryl-A780L3C:~$
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>>
>>>> Of cause you have to tell what to send. Like when you tested before.
>>>> See man irsend.
>>>>
>>>> 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
>>>
>>> sorry to be so dense:
>>>
>>> daryl at daryl-A780L3C:~$ irsend SEND_START -d /var/run/lirc/lircdSerial
>>> irsend: not enough arguments
>>> daryl at daryl-A780L3C:~$ irsend send_power_on -d /var/run/lirc/lircdSerial
>>> irsend: not enough arguments
>>> daryl at daryl-A780L3C:~$ irsend -d /var/run/lirc/lircdSerial send_power_on
>>> irsend: not enough arguments
>>> daryl at daryl-A780L3C:~$
>
>> daryl at daryl-A780L3C:~$ irsend -d /var/run/lirc/lircdSerial irsend
>> SEND_ONCE $REMOTE_NAME $cmd
>> irsend: could not connect to socket
>> irsend: No such file or directory
>> daryl at daryl-A780L3C:~$
>> _______________________________________________
>> 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
>
> The manpage says 'irsend [options] DIRECTIVE REMOTE CODE' so:
> irsend -d /var/run/lirc/lircdSerial SEND_ONCE <The name of your remote> <your command>
> You use the variables $REMOTE_NAME and $cmd, but you then first have
> to define them. Or type the value directly.
>
> 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

daryl at daryl-A780L3C:~$ irsend -d /var/run/lirc/lircdSerial irsend
SEND_ONCE DCT700 21
irsend: could not connect to socket
irsend: No such file or directory
daryl at daryl-A780L3C:~$


More information about the mythtv-users mailing list