LibCEC for vero4k build

Hi…

I am trying to get libcec/cec-client to work, and installed both libcec2 and cec-utils as per apt-get install.

The lib does not seems to be compiled for vero through?

osmc@osmc:~$ cec-client -i
libCEC version: 2.1.4, host: arm-unknown-linux-gnueabihf, features: ‘P8 USB’ ‘P8 USB detect’, compiled on: Thu Aug 7 18:08:13 UTC 2014 by buildd@hoiby.debian.org on Linux 3.15-trunk-armmp-lpae (armv7l)

osmc@osmc:~$ cec-client -l
Found devices: NONE

Is there anyone here successed with using cec-client for our vero4k ?

Rgds; Jesper.

Well I get:

osmc@vero:~$ cec-client -l
libCEC version: 4.0.2,  compiled on Wed Nov 22 02:45:53 UTC 2017 by root@compiler2 on Linux 4.9.0-3-amd64 (armv7l), features: P8_USB, DRM, P8_detect, AOCEC
Found devices: 1

device:              1
com port:            AOCEC
vendor id:           0000
product id:          0000
firmware version:    5
type:                unknown

That’s without installing anything extra. But I am running stretch.

Hi…

I installed the version 4, but it is not compiled with the AOCEC support as the one you got!

You are running stretch for Kodi 1.8 right?

Thanks man, and marry X-mas!

osmc@osmc:~$ cec-client -i
libCEC version: 4.0.1, compiled on Linux-3.16.0-4-armmp-lpae … , features: P8_USB, DRM, P8_detect, randr

CEC is included and handled by OSMC automatically. You don’t need to install it manually. Doing so will probably give you an old upstream Debian version

Sam

Morning…

I was installing the cec-utils, as i would like to try if i could switch between inputs on my TV this way; case is i have some problems with it’s ir-remote and TV cannot be controlled with “IP-Control” as many newer tv’s can… sadly!

When i reboot my vero, the input switch, so i guess it is working

Rgds; Jesper.

CEC utilities, such as cec-client, are already included in OSMC.
OSMC will set itself as active source by default on boot, no changes are necessary

Sam

Strange… I tried to execute cec-client before i was installing it?

Anyway, can we see which version of the libcec is installed default on new vero4k box ?

Rgds; Jesper.

dpkg -l | grep cec

osmc@osmc:~$ dpkg -l | grep cec
ii cec-utils 4.0.1+dfsg1-1 armhf USB CEC Adaptor communication Library (utility programs)
ii libcec2:armhf 2.1.4-2 armhf USB CEC Adaptor communication Library (shared library)
ii libcec4:armhf 4.0.1+dfsg1-1 armhf USB CEC Adaptor communication Library (shared library)
ii vero3-libcec-osmc 4.0.2-5 armhf libcec

Rgds; Jesper

Remove all other than vero3-libcec-osmc

Cool…

osmc@osmc:~$ dpkg -l | grep cec
rc libcec2:armhf 2.1.4-2 armhf USB CEC Adaptor communication Library (shared library)
ii vero3-libcec-osmc 4.0.2-5 armhf libcec

And also when executing cec-client ::

osmc@osmc:~$ cec-client -l
libCEC version: 4.0.2, compiled on Sat May 27 17:22:08 UTC 2017 by root@compiler2 on Linux 3.16.0-4-amd64 (armv7l), features: P8_USB, DRM, P8_detect, AOCEC
Found devices: 1

device: 1
com port: AOCEC
vendor id: 0000
product id: 0000
firmware version: 5
type: unknown

something is working now … thanks…

Rgds; Jesper.

It would have worked before without installing any extra packages.

Sam

Yes… I might have tried something wrong…

Anyway i am reading about the cec connection/protocol, and howto control (if possible) it ?

Rgds; Jesper

cec-client --help will give you some clues.

Sam

So this is pretty cool :grin:

I have an RPI with some homemade home-automation stuff on, which i use for turning on/off tvset and other stuff.

So pressing the switch for switching to Vero4k input (HDMI 3) now works flawlessly

sudo -u pi bash -c "ssh osmc@192.168.1.128 /home/osmc/scripts/cec_wakeup.sh"

The SSH connection from the RPI to the Vero is executing a script there, which activate cec

#!/bin/bash

kodi-send --action="CECActivateSource"
exit

So now i have to figure out howto make cec switch input back to tv

Rgds; Jesper.