Jump to content


Photo

How can I execute custom script on HDMI-CEC code.


  • Please log in to reply
3 replies to this topic

#1 Rustbread

  • Member
  • 7 posts

0
Neutral

Posted 17 September 2021 - 21:04

Hello,
I wish to put my receiver in standby mode when I switch to Android TV, unfortunately my TV sends standby signal only on turning off.

I have enabled hdmicec.log and from it I can see that it sends A0 08 00 46 00 13 00 10 80 90 01 00 00 00 00 to receiver.

I want to react to this code in my custom way, because I need to also create fail safe as this code is also send when changing input to with I don't want my receiver to react.

I can program the logic in .sh or .py if needed. C is also not out of question.

So how I can subscribe to hdmi-cec event?

 

Cheers


Edited by Rustbread, 17 September 2021 - 21:09.


Re: How can I execute custom script on HDMI-CEC code. #2 WanWizard

  • PLi® Core member
  • 70,851 posts

+1,832
Excellent

Posted 18 September 2021 - 13:04

That is "Give tuner device status", you can't do much with that I'm afraid.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: How can I execute custom script on HDMI-CEC code. #3 mrvica

  • Senior Member
  • 1,271 posts

+88
Good

Posted 18 September 2021 - 13:31

Sending HDMI-CEC commands from CLI? - [EN] Enduser support - Forums (openpli.org)



Re: How can I execute custom script on HDMI-CEC code. #4 Rustbread

  • Member
  • 7 posts

0
Neutral

Posted 18 September 2021 - 16:03

That is "Give tuner device status", you can't do much with that I'm afraid.

 

A shame,"Give tuner device status" in my case is send in stable enough manner that it could be used for enabling standby.

 

Sending HDMI-CEC commands from CLI? - [EN] Enduser support - Forums (openpli.org)

 

cec-cl may be an solution but considering I don't have that much time for it, I will go for easy solution and bind standby to red button an manually go to standby.




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users