How to fix the bug that there is no signal when the Raspberry Pi is connected to a monitor with an HDMI cable All In One

xgqfrms / 2023-06-04 / 原文

How to fix the bug that there is no signal when the Raspberry Pi is connected to a monitor with an HDMI cable All In One

如何修复树莓派使用HDMI 线连接显示器后没有信号 bug

errors ❌

No HDMI Signal

solution

  1. 首先连接 HDMI ,然后再接通树莓的电源(开机)
  2. 开启 HDMI 配置

image

$ sudo vim /boot/config.txt
$ cat /boot/config.txt

HDMI config

https://www.raspberrypi.com/documentation/computers/config_txt.html#hdmi-mode

These values are valid if hdmi_group=1 (CEA):

These values are valid if hdmi_group=2 (DMT):

https://www.raspberrypi.com/documentation/computers/config_txt.html#hdmi_mode

https://www.raspberrypi.com/documentation/computers/config_txt.html#hdmi_force_mode

tvservice

$ tvservice -s
tvservice is not supported when using the vc4-kms-v3d driver.
Similar features are available with standard linux tools
such as kmsprint from kms++-utils

kmsprint

$ kmsprint --help
Usage: kmsprint [OPTIONS]

Options:
      --device=DEVICE     DEVICE is the path to DRM card to open
  -l, --list              Print list instead of tree
  -m, --modes             Print modes
      --xmode             Print modes using X modeline
  -p, --props             Print properties

https://www.raspberrypi.com/documentation/computers/config_txt.html#which-values-are-valid-for-my-monitor

https://www.raspberrypi.com/documentation/computers/config_txt.html#generic-display-options

https://www.raspberrypi.com/documentation/computers/config_txt.html#raspberry-pi-4-hdmi-pipeline

tvservice is not supported when using the vc4-kms-v3d driver.

https://forums.raspberrypi.com/viewtopic.php?t=327372
https://github.com/SvenVD/rpisurv/issues/143
https://archlinuxarm.org/forum/viewtopic.php?f=65&t=16392

VLC

VLC media player
VLC 是一款自由、开源的跨平台多媒体播放器及框架,可播放大多数多媒体文件,以及 DVD、音频 CD、VCD 及各类流媒体协议。

VLC media player
VLC a free and open source cross-platform multimedia player and framework that plays most multimedia files as well as DVD, Audio CD, VCD, and various streaming protocols.

image

https://www.videolan.org/vlc/

https://en.wikipedia.org/wiki/VLC_media_player

demos

$ cat /boot/config.txt | grep hdmi
#hdmi_safe=1
# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1
#hdmi_group=1
#hdmi_mode=1
hdmi_drive=2
config_hdmi_boost=4
$ vcgencmd get_config str | grep hdmi
hdmi_cvt:0=
hdmi_cvt:1=
hdmi_edid_filename:0=
hdmi_edid_filename:1=
hdmi_timings:0=
hdmi_timings:1=

$ vcgencmd get_config int | grep hdmi
config_hdmi_boost=5
display_hdmi_rotate=-1
hdmi_drive:0=2
hdmi_force_cec_address:0=65535
hdmi_force_cec_address:1=65535
hdmi_force_hotplug:0=1
hdmi_pixel_freq_limit:0=0x9a7ec80

专有名词

CTA =>Consumer Technology Association / 消费者技术协会

https://web.archive.org/web/20171201033424/https://standards.cta.tech/kwspub/published_docs/CTA-861-G_FINAL_revised_2017.pdf

DMT => Display Monitor Timings / 显示监视器计时

https://focuslcds.com/raspberry-pi-configuration-modes-cea-vs-dmt-fan9204/

https://raspberrypi.stackexchange.com/questions/7332/what-is-the-difference-between-cea-and-dmt
https://forums.raspberrypi.com/viewtopic.php?t=5021

CEC => Consumer Electronics Control / 消费电子控制

https://en.wikipedia.org/wiki/Consumer_Electronics_Control#CEC

EDID => Extended Display Identification Data / 扩展显示识别数据

https://en.wikipedia.org/wiki/Extended_Display_Identification_Data

refs



©xgqfrms 2012-2021

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!