<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 07/09/2016 09:46 AM, Mike Bibbings
wrote:<br>
</div>
<blockquote cite="mid:57810038.50906@gmail.com" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<div class="moz-cite-prefix">On 09/07/16 13:57, Matthew Zimmerman
wrote:<br>
</div>
<blockquote
cite="mid:CAD53Lr4mEMkk2Cz+c-93ocV9ctXWkSpAeJeYeVPRGk49-oJh7w@mail.gmail.com"
type="cite">
<div dir="ltr">So I have a Raspberry Pi 3 running mythfrontend
0.28 on raspbian jessie<span
class="inbox-inbox-Apple-converted-space"> 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">www.mythtv.org</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" class="moz-txt-link-freetext"
href="https://www.mythtv.org/wiki/Raspberry_Pi"><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 class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
mythtv-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.mythtv.org/mailman/listinfo/mythtv-users">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://wiki.mythtv.org/Mailing_List_etiquette">http://wiki.mythtv.org/Mailing_List_etiquette</a>
MythTV Forums: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://forum.mythtv.org">https://forum.mythtv.org</a>
</pre>
</blockquote>
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" class="moz-txt-link-freetext"
href="https://www.mythtv.org/wiki/MythTV_Light">https://www.mythtv.org/wiki/MythTV_Light</a><br>
<br>
I had to install libcec3 (sudo apt-get install libcec3) <br>
<br>
Mike<br>
<br>
<br>
</blockquote>
<br>
I will be adding libcec3 to the package dependencies. That seemed to
be included by default in earlier releases of jessie, but is no
longer there by default.<br>
<br>
I tested with the latest of everything and it is working for me.
This is from the log:<br>
<br>
2016-07-09 10:03:35.846100 I [995/995] CoreContext
cecadapter.cpp:146 (Open) - CECAdapter: Found 1 CEC devices(s).<br>
2016-07-09 10:03:35.846209 I [995/995] CoreContext
cecadapter.cpp:155 (Open) - CECAdapter: Device 1: path 'Raspberry
Pi' com port 'RPI' SELECTED<br>
2016-07-09 10:03:35.846246 I [995/995] CoreContext
cecadapter.cpp:162 (Open) - CECAdapter: Trying to open device
Raspberry Pi (RPI).<br>
2016-07-09 10:03:35.848044 I [995/1013] thread_unknown
cecadapter.cpp:215 (LogMessage) - CECAdapter: connection opened<br>
2016-07-09 10:03:36.122666 I [995/1013] thread_unknown
cecadapter.cpp:215 (LogMessage) - CECAdapter: registering new CEC
client - v3.0.1<br>
2016-07-09 10:03:36.816461 I [995/1013] thread_unknown
cecadapter.cpp:215 (LogMessage) - CECAdapter: >> source
activated: Playback 1 (4)<br>
2016-07-09 10:03:36.816725 I [995/1013] thread_unknown
cecadapter.cpp:215 (LogMessage) - CECAdapter: CEC client registered:
libCEC version = 3.0.1, client version = 3.0.1, firmwar<br>
e version = 1, logical address(es) = Playback 1 (4) , physical
address: 2.0.0.0, compiled on Fri Jul 3 19:20:43 UTC 2015 by
<a class="moz-txt-link-abbreviated" href="mailto:pbuilder@mgorven-pc.thefacebook.com">pbuilder@mgorven-pc.thefacebook.com</a> on Linux 3.16.0-4<br>
1-generic (armv7l), features: P8_USB, P8_detect, 'RPi'<br>
2016-07-09 10:03:37.764237 I [995/995] CoreContext
cecadapter.cpp:170 (Open) - CECAdapter: Opened CEC device.<br>
2016-07-09 10:03:37.764377 I [995/1013] thread_unknown
cecadapter.cpp:215 (LogMessage) - CECAdapter: << powering on
'TV' (0)<br>
2016-07-09 10:03:37.764586 I [995/1013] thread_unknown
cecadapter.cpp:215 (LogMessage) - CECAdapter: << powering on
'TV' (0)<br>
2016-07-09 10:03:37.855367 I [995/1013] thread_unknown
cecadapter.cpp:215 (LogMessage) - CECAdapter: << Playback 1
(4) -> broadcast (F): active source (2000)<br>
2016-07-09 10:03:37.915928 I [995/995] CoreContext
cecadapter.cpp:685 (HandleActions) - CECAdapter: Asked TV to turn
on.<br>
2016-07-09 10:03:38.187590 I [995/1013] thread_unknown
cecadapter.cpp:215 (LogMessage) - CECAdapter: >> source
activated: Playback 1 (4)<br>
2016-07-09 10:03:38.187674 I [995/1013] thread_unknown
cecadapter.cpp:661 (HandleSourceActivated) - CECAdapter: Source
Playback 1 Activated<br>
2016-07-09 10:03:38.699630 I [995/995] CoreContext
cecadapter.cpp:694 (HandleActions) - CECAdapter: Asked TV to switch
to this input.<br>
<snip><br>
2016-07-09 10:03:39.760243 I [995/1013] thread_unknown
cecadapter.cpp:215 (LogMessage) - CECAdapter: << powering on
'TV' (0)<br>
2016-07-09 10:03:39.760284 I [995/995] CoreContext
mythmainwindow.cpp:1041 (Init) - Using Frameless Window<br>
2016-07-09 10:03:39.760329 I [995/995] CoreContext
mythmainwindow.cpp:1052 (Init) - Using Full Screen Window<br>
2016-07-09 10:03:39.761371 I [995/1013] thread_unknown
cecadapter.cpp:215 (LogMessage) - CECAdapter: << Playback 1
(4) -> broadcast (F): active source (2000)<br>
<br>
From your log it looks like it does not like "playback device". CEC
supports different device types<br>
CEC_DEVICE_TYPE_TV = 0,<br>
CEC_DEVICE_TYPE_RECORDING_DEVICE = 1,<br>
CEC_DEVICE_TYPE_RESERVED = 2,<br>
CEC_DEVICE_TYPE_TUNER = 3,<br>
CEC_DEVICE_TYPE_PLAYBACK_DEVICE = 4,<br>
CEC_DEVICE_TYPE_AUDIO_SYSTEM = 5<br>
<br>
See if any setting on your TV can be used to tell it what devices to
support.<br>
<br>
Also you can try with cec-util to test the different device types.<br>
<br>
Does your remote have play, stop, pause, etc., buttons? If so it
should support playback (one would think!).<br>
<br>
Perhaps we need to update MythTV to use other device types, based on
some parameter or configuration setting.<br>
<br>
Peter<br>
</body>
</html>