<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 09/12/2017 03:17 PM, Jeff wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:e884d022-582a-e515-bccb-2c39fd161c76@posteo.net">
      <pre wrap="">On 11/09/17 22:59, Peter Bennett wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">You don't need any tomfoolery, it just works. See here

<a class="moz-txt-link-freetext" href="https://www.mythtv.org/wiki/Raspberry_Pi#Remote_Control_with_CEC">https://www.mythtv.org/wiki/Raspberry_Pi#Remote_Control_with_CEC</a>
</pre>
      </blockquote>
      <pre wrap="">
We'll that is interesting. Thanks for the pointer.

Trying it out, I see that the built-in CEC support is:
a. easier to set up
b. context-specific

However, using cec-client:
a. produces a different device name
b. allows more of the remote buttons to be used (e.g. channel up/down,
guide, prev ch, etc.)

Without knowing how CEC works, it looks to me as though the different
device names reflect different device types. It would be nice to be able
to use the extra buttons. Can this be specified somehow?

Your wiki entry also explains nicely why my TV was powering off when
exiting MythTV, which was annoying me.

Is there any way of specifying which input the TV uses? It is defaulting
to the HDMI mode without CEC.

Regards

Jeff

</pre>
      <br>
    </blockquote>
    CEC supports device types that determine what commands are available
    <div style="color: #000000;background-color: #ffffff;font-family: monospace, 'Droid Sans Fallback';font-weight: normal;font-size: 12px;line-height: 16px;white-space: pre;">
<div><span style="color: #000000;">  CEC_DEVICE_TYPE_TV               </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #09885a;">0</span><span style="color: #000000;">,</span></div><div><span style="color: #000000;">  CEC_DEVICE_TYPE_RECORDING_DEVICE </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #09885a;">1</span><span style="color: #000000;">,</span></div><div><span style="color: #000000;">  CEC_DEVICE_TYPE_RESERVED         </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #09885a;">2</span><span style="color: #000000;">,</span></div><div><span style="color: #000000;">  CEC_DEVICE_TYPE_TUNER            </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #09885a;">3</span><span style="color: #000000;">,</span></div><div><span style="color: #000000;">  CEC_DEVICE_TYPE_PLAYBACK_DEVICE  </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #09885a;">4</span><span style="color: #000000;">,</span></div><div><span style="color: #000000;">  CEC_DEVICE_TYPE_AUDIO_SYSTEM     </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #09885a;">5</span></div>
</div>
    <br>
    We are using PLAYBACK, so that the play, pause, fast forward, rewind
    buttons are available.<br>
    If a different profile was selected, different buttons may work, but
    those may not. Unfortunately it is hard coded into MythTV. Would it
    be useful to be able to change it? Which profile would you use if
    you could change it? <br>
    <br>
    I do not understand the question about which input the TV uses.<br>
    <br>
  </body>
</html>