<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 10/03/2015 12:48 PM, Tom Harris
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAAme0ObX14JfhxbE82bqz5ds21Xg-=4POjqiANRVNnc09bdxLg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Thanks for the responses.  
        <div><br>
        </div>
        <div>Hika's response was correct, I was able to add Play/Pause
          events via the MythTV settings.    But, there were some
          keypresses that I can see in ir-keytable, which didn't
          generate a key event within MythTV.<br>
          <div><br>
          </div>
          <div>After a bit more digging, I found that the basic key code
            mappings are in /lib/udev/rc_keymaps/imon_pad</div>
          <div>For some of the keys that MythTV was not picking up, I
            re-mapped them to simple keyboard inputs.    Since this
            system only runs mythfrontend, that's not a problem.  But,
            it does seem kludgey to do it this way..  and I'm sure I'll
            forget about it by the time I do my next frontend upgrade in
            a couple years.</div>
          <div><br>
          </div>
          <div>It seems like this was close to "just working" out of the
            box.  The USB device was auto-detected and the drivers
            mapped the remote keys to reasonable settings.   The gap was
            that MythTV did not recognize the multimedia keys by
            default.    This seems odd.  Isn't MythTV an extremely good
            use case for those multimedia key inputs like "KEY_PAUSE"? 
            It also doesn't seem like there would be drawbacks to
            mapping these by default.  </div>
          <div><br>
          </div>
          <div><br>
          </div>
        </div>
      </div>
      <br>
    </blockquote>
    <br>
    You can prevent the Media keys from launching default applications
    using dconf or gsettings. <br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=windows-1252">
    gsettings set org.gnome.settings-daemon.plugins.media-keys next ''<br>
    gsettings set org.gnome.settings-daemon.plugins.media-keys pause ''<br>
    gsettings set org.gnome.settings-daemon.plugins.media-keys play ''<br>
    gsettings set org.gnome.settings-daemon.plugins.media-keys previous
    ''<br>
    gsettings set org.gnome.settings-daemon.plugins.media-keys stop ''<br>
    <br>
    Or use dconf editor to change the same mappings. Once that is done
    you still need to map the key codes to suitable character codes
    using ir-keytable or xmodmap.<br>
    <br>
    Peter<br>
  </body>
</html>