XBMC(或者更确切地说是 libcec)仅在几个 HDMI 控制器中支持 CEC。
我想要一种方法来从命令行找出机器上安装了哪个 HDMI / CEC 控制器。
这是我现在正在查看的示例机器,但我正在寻找适用于任何 Linux 机器的通用解决方案:
System Information
Manufacturer: ASUSTeK Computer INC.
Product Name: EB1012P
也许有一个实用程序可以探测 HDMI 控制器以了解其功能?
这是lspci
:
$ lspci
00:00.0 Host bridge: Intel Corporation Atom Processor D4xx/D5xx/N4xx/N5xx DMI Bridge (rev 02)
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 3 (rev 02)
00:1c.3 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 4 (rev 02)
00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 02)
00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 02)
00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 02)
00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 02)
00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation NM10 Family LPC Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation NM10/ICH7 Family SATA Controller [AHCI mode] (rev 02)
00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 02)
02:00.0 VGA compatible controller: NVIDIA Corporation GT218 [ION] (rev a2)
02:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)
03:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
05:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
答案1
cec-客户端-l
安装(debian/ubuntu)
apt-get install cec-utils libcec-dev
跑步
cec-client -l
这将列出系统上的所有 CEC 设备。如果没有 CEC 支持设备,
cec-client -l
将返回Found devices: NONE
,这是正确的。请记住,大多数 PC 显卡(Nvidia、AMD)不支持 CEC(参见 PS2、PS3)。已知(有明确文档/规格)支持 CEC 的 GPU 是视频核心,在 Raspberry Pi 中找到。
PS1:
libcec-dev
需要在 Ubuntu 12.04 上才能cec-client
正常运行。PS2:根据在线论坛帖子,Nvidia(GF、GT(ION)、GTX)从未声称支持 CEC,也没有否认。Nvidia 网站没有关于 CEC 的信息。它基本上没有提到任何与此有关的事情。我只是认为这是“不”。
PS3:少数AMD PDF文档提到CEC,明确指出不支持。
xrandr --prop(这可能有帮助,我的视频卡没有 cec 可以验证)
以下是示例输出
#xrandr --prop
Screen 0: minimum 320 x 200, current 2560 x 1024, maximum 8192 x 8192
VGA1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
EDID:
00ffffffffffff0010ac194050435341
281101030e261e78eeee95a3544c9926
0f5054a54b00714f8180010101010101
010101010101302a009851002a403070
1300782d1100001e000000ff00434333
3838374136415343500a000000fc0044
454c4c20313930374650560a000000fd
00384c1e510e000a20202020202000d9
1280x1024 60.0*+ 75.0
1152x864 75.0
1024x768 75.1 60.0
800x600 75.0 60.3
640x480 75.0 60.0
720x400 70.1
HDMI1 disconnected (normal left inverted right x axis y axis)
Broadcast RGB: Full
supported: Full Limited 16:2
audio: auto
supported: off auto on
DP1 disconnected (normal left inverted right x axis y axis)
Broadcast RGB: Full
supported: Full Limited 16:2
audio: auto
supported: off auto on
HDMI2 connected 1280x1024+1280+0 (normal left inverted right x axis y axis) 376mm x 301mm
EDID:
00ffffffffffff0010ac204045375241
2811010380261e78eeee95a3544c9926
0f5054a54b00714f8180010101010101
010101010101302a009851002a403070
1300782d1100001e000000ff00434333
3838374136415237450a000000fc0044
454c4c20313930374650560a000000fd
00384c1e510e000a2020202020200090
Broadcast RGB: Full
supported: Full Limited 16:2
audio: auto
supported: off auto on
1280x1024 60.0*+ 75.0
1152x864 75.0
1024x768 75.1 60.0
800x600 75.0 60.3
640x480 75.0 60.0
720x400 70.1
DP2 disconnected (normal left inverted right x axis y axis)
Broadcast RGB: Full
supported: Full Limited 16:2
audio: auto
supported: off auto on