CEC adapter help with RPC

Hello,

I would need some help with CEC adapter. Sometime it does get stuck and what i found is enough (restarting kodi is not required) is to go into settings device.peripherals and disable / enabled the adapter.

Can someone help me with how this would be automated either with RPC command (Settings part of rpc json seems possible?) that would tweak the appropriate setting or with an ssh script.

I am running nightly coreelec with am6b plus.

Any help appreciated,

Ok, I found solution that does not require to rebuild entire kodi package to send random commands to cec without disrupting kodi cec.

What you need to do (for amlogic chipset like am6b plus) is to send command directly to the driver.

Simply use this command: echo “0x1f 0x82 0x10 0x00” > /sys/class/aocec/cmd

0x10 is the hdmi port, use 10 for 1, 20 for 2 etc…

This will save you a lot of time and nerves. :slight_smile:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.