[mythtv-commits] Ticket #11338: libCEC version 2 support
MythTV
noreply at mythtv.org
Sun May 4 09:13:57 UTC 2014
#11338: libCEC version 2 support
-----------------------------+-----------------------------
Reporter: macarno@… | Owner: wagnerrp
Type: Patch - Feature | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - libCEC | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
-----------------------------+-----------------------------
Comment (by Bradley Baetz <bbaetz@…>):
I've attached a slightly different patch. This works against libcec2.1 (in
ubuntu 14.04) as well as libcec1.6 (in ubuntu12.04)
I wrote an initial version before seeing this, but then added in some of
your changes.
The main differences are:
- applies cleanly, following my patch in #11986
- removed the runtime version check - if the wrong libcec.so is present,
we don't get that far (libcec has a very odd scheme, where at compile time
all mythtv does is #include a bunch of wrappers around dlopen, avoiding
the need to link to libcec at build time. Not sure why it does that...)
- builds against libcec1.6 (the other patch uses some callbacks that are
only available from v1.7)
- I didn't include the change to explicitly setting a logical address -
that method is documented as deprecated and only for debugging purposes.
Instead, I left it for libcec to handle.
- I kept the support for setting the parent device type from the patch,
but not setting the physical address directly - the attached patch hard
codes that to 2.2.0.0, so presumably only works for you? At least on my
libcec version the search order is:
- specified physical address
- auto-detection in libcec of the port info from EDID (which only works
on the ATI drivers and older kernels with older nvidia drivers that use
/proc/acpi/video)
- specified parent logical device/port combination (defaults to TV/port
1)
I kept the change you made to wake up the screen when the TV source goes
active (although for libcec2 only; yours supports it from 1.7.1 but won't
compile against older versions). However, it doesn't actually wake the
screen up for me - I need a button press to do that like before. Is that
part working for you? My screensaver/desktop might just be set up
differently...
--
Ticket URL: <https://code.mythtv.org/trac/ticket/11338#comment:3>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list