Page 4 of 4

Re: [Unofficial] libCEC and Python CEC

Posted: Thu Feb 16, 2017 4:57 am
by giciu
Hi and sorry for reopen old post ;)

On my asustor AS-606T (ADM 2.6.6.RCF2) usb-cec not working. I buy usb-cec module via pulse-eight. XBMC not recognize it, and lsusb print:
Bus 003 Device 002: ID 2548:1002 unknown vendor 2548:unknown device 1002
Asustor Portal, Media Pack, XBMC and Python install from APP Central.

Any idea ?

Regards Giciu.
sorry for my terrible english..

Re: [Unofficial] libCEC and Python CEC

Posted: Thu Feb 16, 2017 5:51 am
by father.mande
Hi,

To use libcec with pulse-eigth module ... you need cdc-acm kernel module loaded ...

... so just load it (if available) before starting application ...
... this is how it works with Kodi17 for ex.

I don't have the module for ADM 2.7 (new kernel and GPL source BUT config.gz is provide ... so with the GPL source ... normally not a big job ...
Perhaps somebody have already do the job ... (even better is to require to Asustor)

Philippe.

Re: [Unofficial] libCEC and Python CEC

Posted: Thu Feb 16, 2017 6:45 am
by giciu
@Philippe THX ;)

Asustor not supported usb-cec in AS-60 series, XBMC version in this series is 12.3.24 ;(
Linux kernel version 3.12.20 - i must download source kernel for this version, and compile cdc-acm? This can be done in asustor ?
After this I must install libcec_2.1.4-r3_any.apk and python-cec_0.2.2-r1_x86-64.apk from this post ?

Where search compiled version this packet. For I debian search in https://packages.debian.org/ but for Asustor ? Any idea?





Regards Giciu.
sorry for my terrible english..

Re: [Unofficial] libCEC and Python CEC

Posted: Thu Feb 16, 2017 6:29 pm
by father.mande
Hi,
giciu wrote:@Philippe THX ;)
Asustor not supported usb-cec in AS-60 series, XBMC version in this series is 12.3.24 ;(
Linux kernel version 3.12.20 - i must download source kernel for this version, and compile cdc-acm? This can be done in asustor ?
After this I must install libcec_2.1.4-r3_any.apk and python-cec_0.2.2-r1_x86-64.apk from this post ?
Where search compiled version this packet. For I debian search in https://packages.debian.org/ but for Asustor ? Any idea?
Regards Giciu.
sorry for my terrible english..
Did you search IN the apkg ... because I have some difficulty to understand (not the delivery of libcec ... but the fact that ... due to hardware (Intel IGP restriction) without the USB interface ... it's just for nothing ??? ... perhpas module are delivered ?

I don't know the AS-60x series ... so don't know if you have some chance to win ... Xbmc is now outdated ... so support from Xbmc team can be reduce at minimum ...

To generate a kernel module ... you need the complete set of tools require (gcc, make, etc. + some libraries (ncurse for ex.) to don't have a hard battle to set config environment
... some possibility exist on Asustor (using Entware for ex.) but I can't recommend to use them
You MUST know that you don't need to be ON the system to generate any module ... any system (near but more to have same gcc level for ex.) can be used
for my own I used an Ubuntu system to generate kernel modules (in fact a V.M. in Virtualbox or Vmware)

Last BUT MOST important : a kernel module MUST be generated for a specific kernel with the same "signature"
ex. if command uname -r display "3.10.20-al-2.5.3" as kernel release version ... the module MUST have the same (ex. here a module for the corresponding kernel)

Code: Select all

# strings fbdisk.ko | grep verm
vermagic=3.10.20-al-2.5.3 SMP preempt mod_unload modversions .....
Philippe.

Re: [Unofficial] libCEC and Python CEC

Posted: Fri Feb 17, 2017 1:14 am
by mafredri
@giciu: Unfortunately, the XBMC released by Asustor is not built with CEC support enabled. This means that even if you can compile the kernel module, it will not work "out of the box".

To use CEC with XBMC you must create a program that listens to the CEC signals and sends commands (either via API or keyboard) to XBMC. I have previously written about this here (includes my own solution to the issue).

I doubt my packages work anymore, they haven't been updated in ages, but are available here.