[mythtv-users] ir-keytable repeating keys

Hika van den Hoven hikavdh at gmail.com
Mon Sep 25 18:53:36 UTC 2017


Hoi Tim,

Monday, September 25, 2017, 8:25:01 PM, you wrote:



> On Mon, Sep 25, 2017 at 8:38 AM Vincent McIntyre
> <vincent.mcintyre at gmail.com> wrote:

> On Mon, Sep 25, 2017 at 02:09:20PM +1300, Stephen Worthington wrote:
 >>
 >> If you have not added an ir-keytable command to the startup somewhere,
 >> there probably is not one anywhere.  ir-keytable is not something that
 >> runs in the background as a daemon - it only needs to be run once at
 >> startup to change the configuration, with the rest happening in the
 >> kernel code.  So try putting it in rc.local.  Or you could write your
 >> own systemd unit to run it.
 >>
>  
>  If it helps this is my rc.local (I'm on ubuntu 16.04)
>  
>  #!/bin/sh -e
>  #
>  ## rc.local
>  #
>  ## This script is executed at the end of each multiuser runlevel.
>  # Make sure that the script will "exit 0" on success or any other
>  # value on error.
>  #
>  # In order to enable or disable this script just change the execution
>  # bits.
>  #
>  # By default this script does nothing.
>  #
>  /usr/bin/ir-keytable -s rc1 -c
>  /usr/bin/ir-keytable -s rc1 -w /etc/rc_keymaps/dvico_mce-nec.keymap
>  
>  
>  /etc/rc_keymaps will be created by the ir-keytable package.
>  But the file within will probably have to come from you.
>  There are some provided by the package in /lib/udev/rc_keymaps
>  that you could start from.
>  
>  Note also that ir-keytable attempts to set this up automagically
>  via the file /etc/rc_maps.cfg.
>  
>  My understanding is what I have in rc.local overrides the automagic,
>  but my remote is one of the commented ones in rc_maps.cfg so I may
>  be hallucinating.
>  
>  See also /usr/share/doc/ir-keytable/README.Debian
>  
>  Regards
>  Vince
>  
>  _______________________________________________
>  mythtv-users mailing list
>  mythtv-users at mythtv.org
>  http://lists.mythtv.org/mailman/listinfo/mythtv-users
>  http://wiki.mythtv.org/Mailing_List_etiquette
>  MythTV Forums: https://forum.mythtv.org



> Just to add to what Vince already shared, there is a udev rule in
> /lib/udev/rules.d that loads the parameters for ir-keytable remote handling.



> I have customized the -D and -P parameters via this file on my
> Ubuntu 16.10 frontend system. This may not be the best place to
> apply this customization but it works for me.  I am also not sure
> but I suspect the changes may get wiped when performing a dist version upgrade.


> /lib/udev/rules.d$ cat 60-ir-keytable.rules 
> # Automatically load the proper keymaps after the Remote Controller device
> # creation.
> # The keycode tables rules should be at /etc/rc_maps.cfg

> ACTION=="add", SUBSYSTEM=="rc", RUN+="/usr/bin/ir-keytable -D 400
> -P 750 -a /etc/rc_maps.cfg -s $name"

> Hope this helps!

> Tim

Custom udev rules should be in /etc. On Gentoo /etc/udev/rules.d
If you make sure that the leading number of the file name is one
higher, it will get processed after the default rule. Possibly you can
also give it the same name as the default if the /etc location has
preference, but that I do not know. Any file name should have an
extension of .rules             

Any changes in /lib/udev/rules.d WILL be overwritten on an update!

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



More information about the mythtv-users mailing list