<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 09/07/16 16:47, Matthew Zimmerman
wrote:<br>
</div>
<blockquote
cite="mid:CAD53Lr69SMRg=hYkScvf6jJtD_ngBuiT3CsU_pc=sNXqf+UDXA@mail.gmail.com"
type="cite">
<div dir="ltr">Well I feel a like a goat. Turns out that my TV
(maybe this is standard?) only supports 3 CEC playback devices,
so when mythtv would try to register itself, there were no more
addresses available for playback devices which is I guess why
cec-client registered itself as a recording device. Turning off
one of the device's CEC support has given room for mythtv and
the CEC support is working great now.
<div><br>
</div>
<div>My natural "enter" key on the remote does not map to
anything, but that's for another day. Thanks so much for your
help!</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Sat, Jul 9, 2016 at 10:47 AM Matthew Zimmerman
<<a moz-do-not-send="true"
href="mailto:mzimmerman@gmail.com">mzimmerman@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Peter, thank you, great job on this already
again, it was fantastically easy to get this far.
<div><br>
</div>
<div>Mike, good catch. I had somehow never stumbled upon
Peter's apt source but instead loaded the package using
dpkg manually as instructed at <a moz-do-not-send="true"
href="https://github.com/bennettpeter/mythtv/releases"
target="_blank">https://github.com/bennettpeter/mythtv/releases</a></div>
<div><br>
</div>
<div>Peter, you're right, it's something with the "playback
device" -- cec-utils now reproduces the problem. I will
play around with this some more and figure out what the
difference is. Thank you!</div>
<div><br>
</div>
<div><span style="font-family:monospace"><span
style="font-weight:bold;color:rgb(84,255,84)">pi@raspliving</span>:<span
style="font-weight:bold;color:rgb(84,84,255)">~ $</span>
cec-client -t p
<br>
== using device type 'playback device'
<br>
CEC Parser created - libCEC version 3.0.1
<br>
no serial port given. trying autodetect: </span></div>
</div>
<div dir="ltr">
<div><span style="font-family:monospace"><br>
path: Raspberry Pi
<br>
com port: RPI
<br>
<br>
</span></div>
</div>
<div dir="ltr">
<div><span style="font-family:monospace">opening a
connection to the CEC adapter...
<br>
DEBUG: [ 57] Broadcast (F): osd name
set to 'Broadcast'
<br>
DEBUG: [ 58] InitHostCEC -
vchiq_initialise succeeded
<br>
DEBUG: [ 58] InitHostCEC -
vchi_initialise succeeded
<br>
DEBUG: [ 58] InitHostCEC -
vchi_connect succeeded
<br>
DEBUG: [ 59] Open - vc_cec
initialised
<br>
DEBUG: [ 59] logical address changed
to Free use (e)
<br>
NOTICE: [ 60] connection opened
<br>
DEBUG: [ 60] processor thread started
<br>
DEBUG: [ 60] << Broadcast (F)
-> TV (0): POLL
<br>
DEBUG: [ 60] initiator 'Broadcast' is
not supported by the CEC adapter. using 'Free use'
instead
<br>
TRAFFIC: [ 60] << e0
<br>
DEBUG: [ 120] >> POLL sent
<br>
DEBUG: [ 120] TV (0): device status
changed into 'present'
<br>
DEBUG: [ 120] << requesting
vendor ID of 'TV' (0)
<br>
TRAFFIC: [ 120] << e0:8c
<br>
TRAFFIC: [ 313] >> 0f:87:00:00:39
<br>
DEBUG: [ 313] TV (0): vendor = Toshiba
(000039)
<br>
DEBUG: [ 313] expected response
received (87: device vendor id)
<br>
DEBUG: [ 313] replacing the command
handler for device 'TV' (0)
<br>
NOTICE: [ 313] registering new CEC
client - v3.0.1
<br>
DEBUG: [ 313] detecting logical
address for type 'playback device'
<br>
DEBUG: [ 313] >> TV (0) ->
Broadcast (F): device vendor id (87)
<br>
DEBUG: [ 313] trying logical address
'Playback 1'
<br>
DEBUG: [ 313] << Playback 1 (4)
-> Playback 1 (4): POLL
<br>
TRAFFIC: [ 313] << 44
<br>
DEBUG: [ 553] >> POLL sent
<br>
DEBUG: [ 553] logical address
'Playback 1' already taken
<br>
DEBUG: [ 553] Playback 1 (4): device
status changed into 'present'
<br>
DEBUG: [ 553] trying logical address
'Playback 2'
<br>
DEBUG: [ 553] << Playback 2 (8)
-> Playback 2 (8): POLL
<br>
TRAFFIC: [ 553] << 88
<br>
DEBUG: [ 733] >> POLL sent
<br>
DEBUG: [ 733] logical address
'Playback 2' already taken
<br>
DEBUG: [ 733] Playback 2 (8): device
status changed into 'present'
<br>
DEBUG: [ 733] trying logical address
'Playback 3'
<br>
DEBUG: [ 733] << Playback 3 (B)
-> Playback 3 (B): POLL
<br>
TRAFFIC: [ 733] << bb
<br>
DEBUG: [ 914] >> POLL sent
<br>
unable to open the device on port RPI
<br>
DEBUG: [ 914] logical address
'Playback 3' already taken
<br>
DEBUG: [ 914] Playback 3 (B): device
status changed into 'present'
<br>
ERROR: [ 914] AllocateLogicalAddresses
- failed to allocate device '0', type 'playback device'
<br>
ERROR: [ 914] failed to find a free
logical address for the client
<br>
ERROR: [ 914] failed to register the
new CEC client - cannot allocate the requested device
types
<br>
ERROR: [ 914] failed to register a CEC
client
<br>
DEBUG: [ 914] unregistering all CEC
clients<br>
<br>
</span></div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Sat, Jul 9, 2016 at 9:48 AM Mike Bibbings
<<a moz-do-not-send="true"
href="mailto:mike.bibbings@gmail.com" target="_blank">mike.bibbings@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>On 09/07/16 13:57, Matthew Zimmerman wrote:<br>
</div>
</div>
<div bgcolor="#FFFFFF" text="#000000">
<blockquote type="cite">
<div dir="ltr">So I have a Raspberry Pi 3 running
mythfrontend 0.28 on raspbian jessie<span> with </span>which
overall works beautifully, but the icing on the cake
would be to get CEC functionality working so I can
control mythfrontend with the TV remote (definitely
a wife-acceptance-factor!)
<div><br>
</div>
<div><span style="font-family:monospace">2016-07-09
08:38:06.693291 C mythfrontend version:
fixes/0.28 [v0.28-32-g6eff083] <a
moz-do-not-send="true"
href="http://www.mythtv.org" target="_blank"><a class="moz-txt-link-abbreviated" href="http://www.mythtv.org">www.mythtv.org</a></a><br>
</span></div>
<div><span style="font-family:monospace">---- SNIP
------</span></div>
<div><span style="font-family:monospace">2016-07-09
08:38:08.833406 I CECAdapter: Found 1 CEC
devices(s). <br>
2016-07-09 08:38:08.833503 I CECAdapter: Device
1: path 'Raspberry Pi' com port 'RPI' SELECTED <br>
2016-07-09 08:38:08.833522 I CECAdapter: Trying
to open device Raspberry Pi (RPI). <br>
2016-07-09 08:38:08.834810 I CECAdapter:
connection opened <br>
2016-07-09 08:38:09.158714 I CECAdapter:
registering new CEC client - v3.0.1 <br>
2016-07-09 08:38:09.910458 E CECAdapter:
AllocateLogicalAddresses - failed to allocate
device '0', type 'playback device' <br>
2016-07-09 08:38:09.910497 E CECAdapter: failed
to find a free logical address for the client <br>
2016-07-09 08:38:09.910608 E CECAdapter: failed
to register the new CEC client - cannot allocate
the requested device types <br>
2016-07-09 08:38:09.910679 E CECAdapter: Failed
to open device. <br>
2016-07-09 08:38:09.910695 E CECAdapter: failed
to register a CEC client <br>
2016-07-09 08:38:11.336293 I CECAdapter:
Closing down CEC.</span></div>
<div><span style="font-family:monospace"><br>
</span></div>
<div><font face="monospace"><span
style="line-height:18px"><a
moz-do-not-send="true"
href="https://www.mythtv.org/wiki/Raspberry_Pi"
target="_blank"><a class="moz-txt-link-freetext" href="https://www.mythtv.org/wiki/Raspberry_Pi">https://www.mythtv.org/wiki/Raspberry_Pi</a></a> states
that CEC support should work in this case.
This isn't a hardware thing because cec-util
works beautifully.</span></font><br>
<br>
</div>
<div><span style="font-family:monospace">How can I
debug this further? I'm not shy of writing some
code to fix it, although my C is not great.</span></div>
<div><span style="font-family:monospace"><br>
</span></div>
<div><span style="font-family:monospace">Thanks for
this working as well as it does!</span></div>
</div>
<br>
<fieldset></fieldset>
<br>
</blockquote>
</div>
<div bgcolor="#FFFFFF" text="#000000">
<blockquote type="cite">
<pre>_______________________________________________
mythtv-users mailing list
<a moz-do-not-send="true" href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a>
<a moz-do-not-send="true" href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a>
<a moz-do-not-send="true" href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a>
MythTV Forums: <a moz-do-not-send="true" href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a>
</pre>
</blockquote>
</div>
<div bgcolor="#FFFFFF" text="#000000"> A few things to
try:<br>
<br>
Upgrade your version of mythtv-light, as of writing I
have v0.28-40-g7a4e9ab, which is later than the version
you have <br>
see <a moz-do-not-send="true"
href="https://www.mythtv.org/wiki/MythTV_Light"
target="_blank">https://www.mythtv.org/wiki/MythTV_Light</a><br>
<br>
I had to install libcec3 (sudo apt-get install libcec3)
<br>
</div>
<div bgcolor="#FFFFFF" text="#000000"> <br>
Mike<br>
<br>
</div>
_______________________________________________<br>
mythtv-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a moz-do-not-send="true"
href="http://lists.mythtv.org/mailman/listinfo/mythtv-users"
rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a moz-do-not-send="true"
href="http://wiki.mythtv.org/Mailing_List_etiquette"
rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a moz-do-not-send="true"
href="https://forum.mythtv.org" rel="noreferrer"
target="_blank">https://forum.mythtv.org</a><br>
</blockquote>
</div>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://lists.mythtv.org/mailman/listinfo/mythtv-users">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a>
<a class="moz-txt-link-freetext" href="http://wiki.mythtv.org/Mailing_List_etiquette">http://wiki.mythtv.org/Mailing_List_etiquette</a>
MythTV Forums: <a class="moz-txt-link-freetext" href="https://forum.mythtv.org">https://forum.mythtv.org</a>
</pre>
</blockquote>
For your natural "enter", assuming it does not have a dedicated
function on the TV and is thus not passed to mythfrontend.<br>
<br>
You will probably need a keyboard attached to the Pi.<br>
<br>
You can map any available remote button to a mythtv action e.g.
"SELECT"<br>
Setup>Edit Keys>Global>SELECT . Up to 4 keys/buttons can be
mapped, pick a blank box, (or one of the used ones).<br>
<br>
<br>
Mike<br>
<br>
</body>
</html>