xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

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

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
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
## 打开✅
hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
## 开启 HDMI ✅
hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
## 开启HDMI ✅
config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
# fix BCM bug ❓
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Run in 64-bit mode
arm_64bit=1

# Disable compensation for displays with overscan
disable_overscan=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[all]

[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]

# mini URAT 暂时注释掉 https://www.cnblogs.com/xgqfrms/p/17365120.html#5173367
# dtoverlay=pi3-miniuart-bt
# force_turbo=1

program_usb_boot_mode=1
gpu_mem=100

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

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!

专有名词

CEA => Consumer Electronics Association / 消费者电子协会

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

https://www.cnblogs.com/xgqfrms/p/17454001.html#5182383



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

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


posted @ 2023-06-04 12:53  xgqfrms  阅读(78)  评论(4编辑  收藏  举报