linux – 在RPI上使用cec-client关闭电视

linux – 在RPI上使用cec-client关闭电视,第1张

概述我有运行Raspbian的RPi B通过HDMI连接到我的LG电视.我成功编译并安装了cec-client,我可以使用命令echo“on 0”|轻松打开电视cec-client -s,但当我尝试使用命令echo“standby 0”|关闭电视时cec-client -s我得到这个输出: opening a connection to the CEC adapter...DEBUG: [ 我有运行Raspbian的RPi B通过HDMI连接到我的LG电视.我成功编译并安装了cec-clIEnt,我可以使用命令echo“on 0”|轻松打开电视cec-clIEnt -s,但当我尝试使用命令echo“standby 0”|关闭电视时cec-clIEnt -s我得到这个输出:

opening a connection to the CEC adapter...DEBUG:   [             316]     unregistering all CEC clIEntsDEBUG:   [             318]     broadcast (F): osd name set to 'broadcast'DEBUG:   [             324]     InitHostCEC - vchiq_initialise succeededDEBUG:   [             325]     InitHostCEC - vchi_initialise succeededDEBUG:   [             326]     InitHostCEC - vchi_connect succeededDEBUG:   [             330]     logical address changed to broadcast (f)DEBUG:   [             333]     RegisterLogicalAddress - registering address eDEBUG:   [             605]     logical address changed to Recorder 1 (1)DEBUG:   [             605]     logical address changed to Free use (e)DEBUG:   [             605]     Open - vc_cec initialisedNOTICE:  [             605]     connection openedDEBUG:   [             607]     processor thread startedDEBUG:   [             608]     << broadcast (F) -> TV (0): PolLDEBUG:   [             611]     initiator 'broadcast' is not supported by the CEC adapter. using 'Free use' insteadTRAFFIC: [             612]     << e0DEBUG:   [             647]     >> PolL sentDEBUG:   [             647]     TV (0): device status changed into 'present'DEBUG:   [             647]     << requesting vendor ID of 'TV' (0)TRAFFIC: [             647]     << e0:8cDEBUG:   [            1858]     expected response not received (87: device vendor ID)TRAFFIC: [            1859]     << e0:8cDEBUG:   [            3070]     expected response not received (87: device vendor ID)NOTICE:  [            3070]     registering new CEC clIEnt - v2.1.4DEBUG:   [            3070]     detecting logical address for type 'recording device'DEBUG:   [            3070]     trying logical address 'Recorder 1'DEBUG:   [            3070]     << Recorder 1 (1) -> Recorder 1 (1): PolLTRAFFIC: [            3071]     << 11DEBUG:   [            3071]     UnregisterLogicalAddress - releasing prevIoUs logical addressDEBUG:   [            3072]     logical address changed to broadcast (f)DEBUG:   [            3073]     RegisterLogicalAddress - registering address 1DEBUG:   [            3255]     logical address changed to Free use (e)DEBUG:   [            3255]     logical address changed to Recorder 1 (1)TRAFFIC: [            3255]     << 11DEBUG:   [            3255]     >> PolL not sentDEBUG:   [            3256]     using logical address 'Recorder 1'DEBUG:   [            3256]     Recorder 1 (1): device status changed into 'handled by libCEC'DEBUG:   [            3256]     Recorder 1 (1): power status changed from 'unkNown' to 'on'DEBUG:   [            3256]     Recorder 1 (1): vendor = pulse Eight (001582)DEBUG:   [            3256]     Recorder 1 (1): CEC version 1.4DEBUG:   [            3256]     AllocateLogicalAddresses - device '0',type 'recording device',LA '1'DEBUG:   [            3256]     Recorder 1 (1): osd name set to 'CECTester'DEBUG:   [            3256]     Recorder 1 (1): menu language set to 'eng'DEBUG:   [            3258]     GetPhysicalAddress - physical address = 3000DEBUG:   [            3258]     autodetectPhysicalAddress - autodetected physical address '3000'DEBUG:   [            3260]     Recorder 1 (1): physical address changed from ffff to 3000DEBUG:   [            3262]     << Recorder 1 (1) -> broadcast (F): physical adddress 3000TRAFFIC: [            3263]     << 1f:84:30:00:01NOTICE:  [            3415]     CEC clIEnt registered: libCEC version = 2.1.4,clIEnt version = 2.1.4,firmware version = 1,logical address(es) = Recorder 1 (1),physical address: 3.0.0.0,host: armv6l-unkNown-linux-gnueabihf,features: 'P8 USB' 'P8 USB detect' 'RPi',git revision: a560d24,compiled on: Sun Sep 14 17:49:41 UTC 2014 by pi@raspBerrypi on linux 3.12.28+ (armv6l)DEBUG:   [            3415]     << Recorder 1 (1) -> TV (0): OSD name 'CECTester'TRAFFIC: [            3415]     << 10:47:43:45:43:54:65:73:74:65:72DEBUG:   [            3716]     << requesting power status of 'TV' (0)TRAFFIC: [            3716]     << 10:8fTRAFFIC: [            3868]     >> 01:8cDEBUG:   [            3868]     >> TV (0) -> Recorder 1 (1): give device vendor ID (8C)DEBUG:   [            3871]     << Recorder 1 (1) -> TV (0): vendor ID pulse Eight (1582)TRAFFIC: [            3873]     << 1f:87:00:15:82TRAFFIC: [            4087]     >> 01:90:00DEBUG:   [            4087]     >> TV (0) -> Recorder 1 (1): report power status (90)DEBUG:   [            4088]     TV (0): power status changed from 'unkNown' to 'on'DEBUG:   [            4089]     expected response received (90: report power status)DEBUG:   [            4091]     << requesting vendor ID of 'TV' (0)TRAFFIC: [            4091]     << 10:8cTRAFFIC: [            4323]     >> 0f:87:00:e0:91DEBUG:   [            4323]     >> TV (0) -> broadcast (F): device vendor ID (87)DEBUG:   [            4323]     TV (0): vendor = LG (00e091)DEBUG:   [            4323]     << Recorder 1 (1) -> broadcast (F): vendor ID pulse Eight (1582)TRAFFIC: [            4323]     << 1f:87:00:15:82DEBUG:   [            4474]     expected response received (87: device vendor ID)DEBUG:   [            4475]     replacing the command handler for device 'TV' (0)DEBUG:   [            4478]     TV (0): CEC version 1.3aDEBUG:   [            4479]     TV (0): menu language set to 'eng'DEBUG:   [            4481]     Recorder 1 (1): vendor = LG (00e091)DEBUG:   [            4485]     replacing the command handler for device 'Recorder 1' (1)DEBUG:   [            4485]     Recorder 1 (1): CEC version 1.3aNOTICE:  [            4487]     << putting 'TV' (0) in standby modeTRAFFIC: [            4488]     << 10:36DEBUG:   [            4552]     unregistering all CEC clIEntsNOTICE:  [            4555]     unregistering clIEnt: libCEC version = 2.1.4,compiled on: Sun Sep 14 17:49:41 UTC 2014 by pi@raspBerrypi on linux 3.12.28+ (armv6l)DEBUG:   [            4559]     Recorder 1 (1): power status changed from 'on' to 'unkNown'DEBUG:   [            4561]     Recorder 1 (1): vendor = UnkNown (000000)DEBUG:   [            4564]     Recorder 1 (1): CEC version unkNownDEBUG:   [            4565]     Recorder 1 (1): osd name set to 'Recorder 1'DEBUG:   [            4567]     Recorder 1 (1): device status changed into 'unkNown'DEBUG:   [            4567]     unregistering all CEC clIEntsDEBUG:   [            4624]     UnregisterLogicalAddress - releasing prevIoUs logical addressDEBUG:   [            4630]     logical address changed to broadcast (f)

没有任何反应.此外,我只使用Cli,并在一段时间后RPi将电视放入空白屏幕保护程序,但我无法弄清楚如何在我的命令下立即执行此 *** 作.

解决方法 似乎libCEC没有任何问题.然而,LG TV模型的HDMI-CEC实现可能只是忽略了备用命令.您应该使用其他符合HDMI-CEC标准的设备测试RaspBerry Pi,以检查备用命令是否正常工作. 总结

以上是内存溢出为你收集整理的linux – 在RPI上使用cec-client关闭电视全部内容,希望文章能够帮你解决linux – 在RPI上使用cec-client关闭电视所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1030766.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存