<div dir="ltr">Hi,<div><br></div><div style>I have a HID device type remote. It seems pretty much an ideal remote control. Unfortunately many of the keys are mapped to keys that are not the typical/default mapping for Myth. Worse infact where as I know the Myth keys, and in the main they are fairly logical, the mapping of this remote is pretty illogical.</div>
<div style><br></div><div style>It seems some apps (because the network protocol effectively pushes keys in places rather than completes tasks) requires certain key mapping, or have I got this wrong.</div><div style><br></div>
<div style>To get this remote working I thought I would use LIRC to capture the device. I have sstumbled across xkb and this wiki page.</div><div style><br></div><div style><a href="http://www.mythtv.org/wiki/Generic_HID_%22MCE%22_Remotes#XKB_Remapping">http://www.mythtv.org/wiki/Generic_HID_%22MCE%22_Remotes#XKB_Remapping</a><br>
</div><div style><br></div><div style>is this a better approach and why?</div><div style><br></div><div style><br></div><div style><br></div><div style><br></div><div style>I am running Ubuntu 12.04 on my myth systems but I am using my laptop which is on 12.10 to try this out.</div>
<div style><br></div><div style>The remote is a motorola nyxboard, a dual sided remote.</div><div style><a href="http://www.pulse-eight.com/store/images/thumbs/0000229.png">http://www.pulse-eight.com/store/images/thumbs/0000229.png</a><br>
</div><div style><br></div><div style><br></div><div style>Which appears as three devices to X. A mouse and two keyboards (I guess one for each side of the remote).</div><div style><br></div><div style><div>$ xinput list</div>
<div>⎡ Virtual core pointer                    <span class="" style="white-space:pre">        </span>id=2<span class="" style="white-space:pre">        </span>[master pointer  (3)]</div><div>⎜   ↳ Virtual core XTEST pointer              <span class="" style="white-space:pre">        </span>id=4<span class="" style="white-space:pre">        </span>[slave  pointer  (2)]</div>
<div>⎜   ↳ TPPS/2 IBM TrackPoint                   <span class="" style="white-space:pre">        </span>id=15<span class="" style="white-space:pre">        </span>[slave  pointer  (2)]</div><div>⎜   ↳ Motorola Motorola NYXboard, 2.4GHz device<span class="" style="white-space:pre">        </span>id=11<span class="" style="white-space:pre">        </span>[slave  pointer  (2)]</div>
<div>⎜   ↳ SynPS/2 Synaptics TouchPad              <span class="" style="white-space:pre">        </span>id=13<span class="" style="white-space:pre">        </span>[slave  pointer  (2)]</div><div>⎣ Virtual core keyboard                   <span class="" style="white-space:pre">        </span>id=3<span class="" style="white-space:pre">        </span>[master keyboard (2)]</div>
<div>    ↳ Virtual core XTEST keyboard             <span class="" style="white-space:pre">        </span>id=5<span class="" style="white-space:pre">        </span>[slave  keyboard (3)]</div><div>    ↳ Power Button                            <span class="" style="white-space:pre">        </span>id=6<span class="" style="white-space:pre">        </span>[slave  keyboard (3)]</div>
<div>    ↳ Video Bus                               <span class="" style="white-space:pre">        </span>id=7<span class="" style="white-space:pre">        </span>[slave  keyboard (3)]</div><div>    ↳ Sleep Button                            <span class="" style="white-space:pre">        </span>id=8<span class="" style="white-space:pre">        </span>[slave  keyboard (3)]</div>
<div>    ↳ AT Translated Set 2 keyboard            <span class="" style="white-space:pre">        </span>id=12<span class="" style="white-space:pre">        </span>[slave  keyboard (3)]</div><div>    ↳ ThinkPad Extra Buttons                  <span class="" style="white-space:pre">        </span>id=14<span class="" style="white-space:pre">        </span>[slave  keyboard (3)]</div>
<div>    ↳ Motorola Motorola NYXboard, 2.4GHz device<span class="" style="white-space:pre">        </span>id=9<span class="" style="white-space:pre">        </span>[slave  keyboard (3)]</div><div>    ↳ Motorola Motorola NYXboard, 2.4GHz device<span class="" style="white-space:pre">        </span>id=10<span class="" style="white-space:pre">        </span>[slave  keyboard (3)]</div>
<div><br></div></div><div style><br></div><div style>I cant make head-nor-tail of the wiki page or many other documents I have read on xkb. Any help would be appreciated.</div><div style><br></div><div style><br></div><div style>
as an example of what I need to map. turning the remote over sends characters:</div><div style>turning from remote to keyboard generates a ~ (tilde) in a terminal</div><div style>turning keyboard to remote generates ;5~</div>
<div style>vol+ generates a vol+ that ubuntu operates the hardware volume with</div><div style>back generates a backspace</div><div style>info adds a bookmark (when in google chrome)</div><div style><br></div><div style>Any help appreciated.</div>
<div style><br></div><div style>thanks</div><div style><br></div><div style>R</div><div style><br></div><div style><br></div><div style><br></div><div style><br></div><div><br clear="all"><div>Thanks and regards,<br><br>Richard Morton<br>
07899 750400<br><br></div>
</div></div>