使用Raspberry PI检测HDMI输入当前是否是电视的选定信号源 [英] Detecting if HDMI input is currently the TV's selected source, using Raspberry PI

查看:116
本文介绍了使用Raspberry PI检测HDMI输入当前是否是电视的选定信号源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用通过HDMI连接到三星电视的RPi.我试图触发RPi进程,以便仅在电视使用HDMI输出时才激活它们.实际上,我想从电视中选择正确的HDMI输入时开始该过程,并在选择另一个电视源时终止它.

I am using a RPi connected through HDMI to a Samsung TV. I am attempting to trigger RPi processes so that they are only active when the HDMI output is being used by the TV. Effectively, I would like to start the process when the correct HDMI input is selected from the TV and terminate it when another TV source is selected.

我尝试使用tvservice –s 为此,但是命令的输出不会改变,具体取决于电视是否配置为使用RPi的HDMI或任何其他信号源.

I have tried to use tvservice –s for that end, but the command’s output does not change depending on whether the TV is configured to use the RPi’s HDMI or any other source.

因此,我欢迎就可以使用其他机制(例如低级驱动程序,libCEC,xrandr)确定电视当前是否使用RPI的HDMI提出建议.

Therefore, I welcome suggestions on what other mechanisms could be used (e.g. low-level drivers, libCEC, xrandr) to determine if the TV is currently using the RPI’s HDMI.

谢谢!

推荐答案

HDMI接收器设备(如电视)在切换信号源时不再中断HDMI握手".当HDMI年轻时,切换信号源将花费3到6秒的时间……在此期间,通常黑屏.电视消费者发现这是不可接受的,因此制造商创建的输入一直在线".这使得即使切换时连接也似乎保持打开状态.

HDMI sink devices (like TVs) no longer break the HDMI "handshake" when switching sources. When HDMI was young, switching sources would take 3-6 seconds... generally with a black screen during the interim. TV consumers found this unacceptable, so manufacturers created inputs which were "always on." This makes the connection appear to remain on even when switched.

这篇关于使用Raspberry PI检测HDMI输入当前是否是电视的选定信号源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆