# CEC Activate command?

**URL:** <https://community.yatse.tv/t/cec-activate-command/3130>\
**Category:** Solved\
**Created:** [December 13, 2020, 8:37am UTC](https://community.yatse.tv/t/cec-activate-command/3130 "2020-12-13T08:37:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gurabli](https://community.yatse.tv/user_avatar/community.yatse.tv/gurabli/32/1959_2.png) [@gurabli](https://community.yatse.tv/u/gurabli)\
**Post date:** [December 13, 2020, 8:37am UTC](https://community.yatse.tv/t/cec-activate-command/3130/1 "2020-12-13T08:37:42Z")

</div>

Long time Yatse user here. With my new Onkyo AVR I have some problems with CEC, namely loosing remote on input change.  
If I send the Activate CEC command from Yatse shutdown menu, CEC is back and fully functional.  
Can you please tell me what command is exactly sent to Kodi and in which way? I would like to use the same command mapped to my remote.

 ![Screenshot_20201212-085239](https://community.yatse.tv/uploads/default/original/2X/d/dc49217a599bbd2cfb0986e2d259f3844f1f0bc3.png)

---

<div class="post-metadata">

**Author:** ![Tolriq](https://community.yatse.tv/user_avatar/community.yatse.tv/tolriq/32/12_2.png) [@Tolriq](https://community.yatse.tv/u/Tolriq)\
**Post date:** [December 13, 2020, 8:40am UTC](https://community.yatse.tv/t/cec-activate-command/3130/2 "2020-12-13T08:40:25Z")

</div>

This is best questions for Kodi forums 😉

CECActivateSource()  
[https://kodi.wiki/view/List\_of\_built-in\_functions](https://kodi.wiki/view/List_of_built-in_functions)

---

<div class="post-metadata">

**Author:** ![gurabli](https://community.yatse.tv/user_avatar/community.yatse.tv/gurabli/32/1959_2.png) [@gurabli](https://community.yatse.tv/u/gurabli)\
**Post date:** [December 13, 2020, 8:45am UTC](https://community.yatse.tv/t/cec-activate-command/3130/3 "2020-12-13T08:45:12Z")

</div>

Thanks! Yes, I started on Kodi/Coreelec forums, but the only command that works is yours in Yatse.  
So the above simply sends the built in CECActivateSource()

---

<div class="post-metadata">

**Author:** ![Rafik128](https://community.yatse.tv/letter_avatar_proxy/v4/letter/r/a4c791/32.png) [@Rafik128](https://community.yatse.tv/u/Rafik128)\
**Post date:** [July 31, 2025, 1:46pm UTC](https://community.yatse.tv/t/cec-activate-command/3130/4 "2025-07-31T13:46:03Z")

</div>

Easy to assign this command for instance to Yatse Shortcut button 1 but… does anyone could suggest how to invoke this command in cron on the Linux-based OS on which Kodi is installed?  
I have Odroid-N2 HTC with CoreELEC OS installed which have Kodi installed by default.  
Odroid-N2 is connected by HDMI to Denon AVR which is then connected to TV of course by HDMI cable as well.  
Unfortunately CEC protocol is very “unstable” causing I can’t navigate in Kodi using my TV remote. Then I need to use Yatse to activate CEC.  
I would like to have CECActiveSource() command to be launched every minute in CoreELEC cron.  
Is it possible?
