树莓派5的HDMI1、HDMI2输出相同的画面,两个HDMI口外接两个显示屏显示相同的画面。
1条回答 默认 最新
吃不了席 2024-08-27 22:00关注以下回复参考:皆我百晓生、券券喵儿等免费微信小程序作答:
要实现树莓派5的两个HDMI口输出同一个画面到两个显示屏,可以通过以下步骤操作:
-
首先确保树莓派5已经安装好操作系统,并连接好两个显示屏。
-
打开终端,输入以下命令安装必要的软件包:
sudo apt-get update sudo apt-get install xorg xserver-xorg xinit x11-xserver-utils- 创建一个新的文件,例如
/etc/X11/xorg.conf.d/99-hdmi.conf,并输入以下内容:
Section "ServerLayout" Identifier "layout" Screen 0 "screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" EndSection Section "Module" Load "modesetting" EndSection Section "Monitor" Identifier "monitor0" VendorName "Raspberry Pi" Modeline "640x480@60" 60.00 63.50 70.88 106.25 12.50 60.00 60.14 60.00 60.00 Option "PreferredMode" "640x480@60" Option "NoScale" "True" Option "Primary" "True" EndSection Section "Device" Identifier "card0" Driver "fbdev" BusID "PCI:0:2:0" Option "FBTexBufferSize" "32" Option "ShadowFB" "True" Option "Rotate" "normal" Option "Gamma" "1.0" EndSection Section "Screen" Identifier "screen0" Device "card0" Monitor "monitor0" DefaultDepth 24 SubSection "Display" Depth 24 Modes "640x480@60" EndSubSection EndSection- 保存文件并重启树莓派:
sudo reboot现在,树莓派5的两个HDMI口应该可以输出相同的画面到两个显示屏了。
解决 无用评论 打赏 举报-