我尝试将 Raspberry Pi 3B+与 DLPDCLR2000EVM 集成在一起、以在运行时显示静态图像、但无法让投影仪显示 Raspberry Pi OS 的桌面。 在引导过程中,当我执行会更改显示的终端命令时,默认启动屏幕将闪烁,如vlc file.mov。
我使用本教程将组件连接在一起:
下面是 我对 Raspberry Pi 所做的配置更改:
/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_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or# no display#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 interfacesdtparam=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 camerascamera_auto_detect=1
# Automatically load overlays for detected DSI displaysdisplay_auto_detect=1
# Enable DRM VC4 V3D driverdtoverlay=vc4-kms-v3dmax_framebuffers=2
# Run in 64-bit modearm_64bit=1
# Disable compensation for displays with overscandisable_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 allowsarm_boost=1
[all]
dtoverlay=i2c-gpio,bus=3,i2c_gpio_sda=23,i2c_gpio_scl=24,i2c_gpio_delay_us=2
dtoverlay=dpi18overscan_left=0overscan_right=0overscan_top=0overscan_bottom=0framebuffer_width=864framebuffer_height=480
enable_dpi_lcd=1
display_default_lcd=1
dpi_group=2dpi_mode=87
dpi_output_format=458773hdmi_timings=854 0 14 4 12 480 0 2 3 9 0 0 0 60 0 32000000 3
/etc/rc.local
#!/bin/sh -e## rc.local## This script is executed at the end of each multiuser runlevel.# Make sure that the script will "exit 0" on success or any other# value on error.## In order to enable or disable this script just change the execution# bits.## By default this script does nothing.
# Print the IP address_IP=$(hostname -I) || trueif [ "$_IP" ]; then printf "My IP address is %s\n" "$_IP"fi
sudo i2cset -y 3 0x1b 0x0c 0x00 0x00 0x00 0x13 isudo i2cset -y 3 0x1b 0x0b 0x00 0x00 0x00 0x00 i
exit 0
测试模式即使是快速连续工作、我也认为没有时序问题。 下面是一个 Python 脚本、我使用它来检查测试模式:
import osimport timeos.system('i2cset -y 3 0x1b 0x0c 0x00 0x00 0x00 0x1b i')os.system('i2cset -y 3 0x1b 0x0b 0x00 0x00 0x00 0x01 i')for index in range(1, 14): PATTERN = "{0:#0{1}x}".format(index, 4) os.system('i2cset -y 3 0x1b 0x11 0x00 0x00 0x00 ' + PATTERN + ' i')
为什么显示器卡在闪屏上、仅闪烁、不显示 Raspberry Pi OS 桌面? 所有教程或讨论似乎都能立即工作。