Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

No hdmi-cec control after running custom script
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
No hdmi-cec control after running custom script
26th Apr, 2020, 05:37 PM
Post: #1
joehc Offline
Registered
Posts: 15
Joined: Jul 2016
Reputation: 0
No hdmi-cec control after running custom script
Device: Raspberry pi 3b+
Distro: Xbian (Debian Buster)

Hey guys

I have a script that runs in the background to get the power status of my tv. The script has the following condition in an if sentence:
Code:
$(echo 'pow 0' | cec-client -s -d 1 RPI) =~ "power status: on"
The abovementioned cec-client-command returns the anticipated result, but running the command makes Kodi "loose" the cec-control. In other words I cannot control Kodi with my remote anymore after the script is executed.

Can anyone help me determined if that is the right behavior and if so, how do I reconnect cec?

Thanks in advance.
Find all posts by this user
Quote this message in a reply
29th Apr, 2020, 09:56 PM
Post: #2
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: No hdmi-cec control after running custom script
(26th Apr, 2020 05:37 PM)joehc Wrote:  Device: Raspberry pi 3b+
Distro: Xbian (Debian Buster)

Hey guys

I have a script that runs in the background to get the power status of my tv. The script has the following condition in an if sentence:
Code:
$(echo 'pow 0' | cec-client -s -d 1 RPI) =~ "power status: on"
The abovementioned cec-client-command returns the anticipated result, but running the command makes Kodi "loose" the cec-control. In other words I cannot control Kodi with my remote anymore after the script is executed.

Can anyone help me determined if that is the right behavior and if so, how do I reconnect cec?

Thanks in advance.

Unfortunately this is not longer supported by the CEC library, only one application can access the CEC port

Some commands are available via Kodis built in commands but unfortunately the support is very little and one required command has been added (xbmc-send.py --action="cecStandby(force)") see /etc/init/xbmc-screensaver.conf
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 14th May, 2025, 08:34 AM Powered By MyBB, © 2002-2025 MyBB Group.