跳到主要内容

1.5.1 RDK X5

RDK X5支持HDMI和MIPI DSI两种显示输出方式,不能同时使用,系统默认采用HDMI输出。

HDMI

RDK X5提供一路HDMI接口,支持的最大分辨率为1080P60。

HDMI 切换

系统默认采用HDMI输出,不需要额外配置。如果您已经切换到MIPI DSI输出,可以使用srpi-config工具来切换回HDMI输出,重启设备生效。

2 Display Options > D1 Dsiplay Choice > 2 HDMI

image-hdmi-choice.png

如果您不想使用srpi-config工具,可以按照以下命令行方法进行配置。

mv /etc/X11/xorg.conf.d/xorg_hdmi_ignore.conf /etc/X11/xorg.conf.d/xorg_hdmi_ignore.conf.disable
mv /etc/X11/xorg.conf.d/xorg_dsi_ignore.conf.disable /etc/X11/xorg.conf.d/xorg_dsi_ignore.conf

默认分辨率

默认分辨率可以通过修改/etc/X11/xorg.conf.d/1-resolution.conf文件来实现:

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x720"
EndSubSection
EndSection

MIPI DSI

2.8inch DSI LCD

硬件连接

使用DSI-Cable-12cm排线,将显示屏DSI接口连接到X5 rdk主板的22PIN DSI接口,用接口的卡扣把没有触点的背面压紧。

安装效果如下:

screenshot-20250916-165057

软件配置

使用srpi-config工具来选择2.8inch DSI LCD,重启后生效。

2 Display Options > D3 MIPI LCD Choice > 2.8inch DSI LCD

screenshot-20250916-155629

效果演示

screenshot-20250916-170803

3.4inch DSI LCD

硬件连接

使用DSI-Cable-12cm排线,将显示屏DSI接口连接到X5 rdk主板的22PIN DSI接口,用接口的卡扣把没有触点的背面压紧。

通过4PIN顶针连通5V供电,包括5V和GND。在 RDK X5 主板的 40 PIN 接口上,第 4 脚为 5 V,第 6 脚为 GND。

安装效果如下:

screenshot-20250916-170117

screenshot-20250916-170258

软件配置

使用srpi-config工具来选择3.4inch DSI LCD (C),重启后生效。

2 Display Options > D3 MIPI LCD Choice > 3.4inch DSI LCD (C)

screenshot-20250916-155629

效果演示

screenshot-20250916-174413

4.3inch DSI LCD

硬件连接

使用DSI-Cable-12cm排线,将显示屏DSI接口连接到X5 rdk主板的22PIN DSI接口,用接口的卡扣把没有触点的背面压紧。

安装效果如下:

screenshot-20250916-175405

软件配置

使用srpi-config工具来选择4.3inch DSI LCD,重启后生效。

2 Display Options > D3 MIPI LCD Choice > 4.3inch DSI LCD

screenshot-20250916-155629

效果演示

screenshot-20250916-175718

7inchC DSI LCD

硬件连接

使用DSI-Cable-12cm排线,将显示屏DSI接口连接到X5 rdk主板的22PIN DSI接口,用接口的卡扣把没有触点的背面压紧。

通过4PIN顶针连通5V供电,包括5V和GND。在 RDK X5 主板的 40 PIN 接口上,第 4 脚为 5 V,第 6 脚为 GND。

通过4PIN顶针连通I2C通信,接到X5 rdk主板 40PIN I2C5接口上。在 RDK X5 主板的 40 PIN 接口上,第 3 脚为 SDA5,第 5 脚为 SCL5。

安装效果如下:

screenshot-20250916-180903 screenshot-20250916-180943

软件配置

使用srpi-config工具来选择7inch DSI LCD (C),重启后生效。

2 Display Options > D3 MIPI LCD Choice > 7inch DSI LCD (C)

screenshot-20250916-155629

效果演示

screenshot-20250916-181324

7.9inch DSI LCD

硬件连接

使用DSI-Cable-12cm排线,将显示屏DSI接口连接到X5 rdk主板的22PIN DSI接口,用接口的卡扣把没有触点的背面压紧。

使用5V/3A的 type-C 接口电源为屏幕供电。

安装效果如下:

screenshot-20250916-191016

软件配置

使用srpi-config工具来选择7.9inch DSI LCD,重启后生效。

2 Display Options > D3 MIPI LCD Choice > 7.9inch DSI LCD

screenshot-20250916-155629

效果演示

screenshot-20250916-191422

8inch DSI LCD

硬件连接

使用DSI-Cable-12cm排线,将显示屏DSI接口连接到X5 rdk主板的22PIN DSI接口,用接口的卡扣把没有触点的背面压紧。

使用5V/3A的 type-C 接口电源为屏幕供电。

安装效果如下:

screenshot-20250916-192525

软件配置

使用srpi-config工具来选择8inch DSI LCD (C),重启后生效。

2 Display Options > D3 MIPI LCD Choice > 8inch DSI LCD (C)

screenshot-20250916-155629

效果演示

screenshot-20250916-192539

10.1inch DSI LCD

硬件连接

使用DSI-Cable-12cm排线,将显示屏DSI接口连接到X5 rdk主板的22PIN DSI接口,用接口的卡扣把没有触点的背面压紧。

使用5V/3A的 type-C 接口电源为屏幕供电。

安装效果如下:

screenshot-20250916-192555

软件配置

使用srpi-config工具来选择10.1inch DSI LCD (C),重启后生效。

2 Display Options > D3 MIPI LCD Choice > 10.1inch DSI LCD (C)

screenshot-20250916-155629

效果演示

screenshot-20250916-192612

旧版本方法

如果您系统中srpi-config工具版本较低,没有D3 MIPI LCD Choice选项,可以使用以下方法升级工具。

screenshot-20250916-162038

或者您不想使用srpi-config工具,可以按照以下命令行方法进行配置。

1,通过命令切换到MIPI DSI显示方式。

mv /etc/X11/xorg.conf.d/xorg_dsi_ignore.conf /etc/X11/xorg.conf.d/xorg_dsi_ignore.conf.disable
mv /etc/X11/xorg.conf.d/xorg_hdmi_ignore.conf.disable /etc/X11/xorg.conf.d/xorg_hdmi_ignore.conf

2,打开/boot/config.txt文件,以2.8inch DSI LCD为例,在config.txt最后加入以下代码,保存,退出,重启系统。

dtoverlay=dsi-waveshare-panel-overlay-2_8_inch

所有版本的显示屏配置方法相同,只需修改dtoverlay参数即可。可以参考下表

屏幕类型dtoverlay参数
2.8inch DSI LCDdsi-waveshare-panel-overlay-2_8_inch
3.4inch DSI LCD (C)dsi-waveshare-panel-overlay-3_4_inch
4.3inch DSI LCDdsi-waveshare-panel-overlay-4_3_inch
7inch DSI LCD (C)dsi-waveshare-panel-overlay-7_0_inchC
7.9inch DSI LCDdsi-waveshare-panel-overlay-7_9_inch
8inch DSI LCDdsi-waveshare-panel-overlay-8_0_inch
10.1inch DSI LCDdsi-waveshare-panel-overlay-10_1_inch