Files
2026-04-09 22:37:04 +08:00

17 lines
915 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
看哪个接口插上了的命令是什么?
看“哪个接口插上了”HDMI/DP 有线缆/EDID的高信号命令是这些任选其一
看 PipeWire/PA 端口可用性(最直观):
pactl list cards | sed -n '/cml_rt5682_def/,+220p' | grep -nE '\[Out\] HDMI|availability group|available|not available|device\.product\.name'
看 ALSA Jack 开关(最硬核、与线缆插拔直接相关):
amixer -c0 cget "iface=CARD,name='HDMI/DP,pcm=2 Jack'"
amixer -c0 cget "iface=CARD,name='HDMI/DP,pcm=3 Jack'"
amixer -c0 cget "iface=CARD,name='HDMI/DP,pcm=4 Jack'"
输出里 : values=on 就表示该口“插上了/有连接”。
看 ELD 是否有内容(有 EDID/显示器信息时通常非空):
amixer -c0 cget "iface=PCM,name='ELD',device=2"
amixer -c0 cget "iface=PCM,name='ELD',device=3"
amixer -c0 cget "iface=PCM,name='ELD',device=4"
values=0/空通常表示没连上或还没就绪。