|
|
| (未显示同一用户的4个中间版本) |
| 第1行: |
第1行: |
| | {{TabsTest |
| | |产品介绍= |
| | [[File:7-DSI-A-1-1.png|224x224像素|right]] |
| | * 7寸电容触摸屏,硬件分辨率为800×480 |
| | * 电容式5点触摸控制 |
| | * 钢化玻璃电容触摸面板,硬度达6H |
| | * 支持Pi5/4B/CM4/3B+/3A+/3B/CM3/CM3+/2B/B+/A+ |
| | * 直接通过Raspberry Pi的DSI接口驱动LCD,刷新率可达60Hz |
| | * 配合Raspberry Pi使用时,支持Raspberry Pi OS / Ubuntu / Kali / Volumio 和 Retropie,免驱 |
| | * 配合VisionFive2使用时,支持Debian,单点触控,免驱 |
| | * 配合Tinker Board 2使用时,支持Linux/Android,五点触控,免驱 |
| | * 配合Core3566使用时,支持Debian/Ubuntu,五点触控,免驱 |
| | * 支持通过软件控制背光亮度 |
| | == DSI-15PIN 接口定义 == |
| | {| class="wikitable prettytable red" |
| | !PIN |
| | !标志 |
| | !PIN |
| | !标志 |
| | |- |
| | |1 |
| | |GND |
| | |9 |
| | |MIPI DSI1_DP0 |
| | |- |
| | |2 |
| | |MIPI DSI1_DN1 |
| | |10 |
| | |GND |
| | |- |
| | |3 |
| | |MIPI DSI1_DP1 |
| | |11 |
| | |SCL0 |
| | |- |
| | |4 |
| | |GND |
| | |12 |
| | |SDA0 |
| | |- |
| | |5 |
| | |MIPI DSI1_CN |
| | |13 |
| | |GND |
| | |- |
| | |6 |
| | |MIPI DSI1_CP |
| | |14 |
| | |3.3V |
| | |- |
| | |7 |
| | |GND |
| | |15 |
| | |3.3V |
| | |- |
| | |8 |
| | |DSI1_DN0 |
| | | |
| | | |
| | |} |
| | |
| | |
| | |硬件连接= |
| | == 搭配Pi 4B/3B+/3A+/3B/2B/B+/A+使用 == |
| | 1. 使用FFC线,将7inch DSI LCD连接到Raspberry Pi主板的15PIN DSI接口。<br /> |
| | 2. 使用2PIN电源连接线将LCD的电源接口连接到树莓派的40PIN GPIO接口。<br /> |
| | 3. 为了方便使用,可以把Raspberry Pi通过螺丝固定到7inch DSI LCD的背面,并组装上铜柱。<br /> |
| | 最终安装效果如下图所示:<br /> |
| | [[File:DSI-7A-PI4.png|646x646px]] |
| | == 搭配Pi 5/CM4/CM3+/CM3使用 == |
| | 1. 使用DSI-Cable-12cm线材,将7inch DSI LCD连接到Raspberry Pi主板的22PIN DSI1接口。<br /> |
| | 2. 使用2PIN电源连接线将LCD的电源接口连接到树莓派的40PIN GPIO接口。<br /> |
| | 3. 为了方便使用,可以把Raspberry Pi 5通过螺丝固定的7inch DSI LCD的背面,并组装上铜柱。如下图所示:<br /> |
| | [[File:DSI-7A-PI5.png|629x629px]] |
| | |
| | |软件设置= |
| | == 用于Bookworm和Bullseye系统== |
| | <span id="用于Bookworm和Bullseye系统"></span> |
|
| |
|
| <img src="https://www.lcdwiki.com/res/CE_ROHS/3.5inch/EMC.jpg" width="600">
| | ===方法一:使用Raspberry Pi Imager烧写最新官方镜像 === |
| | 用于树莓派的Raspberry Pi OS / Ubuntu / Kali / Volumio 和 Retropie系统。 |
|
| |
|
| {{lan
| | * 1. 将TF卡连接到PC,下载并使用[https://www.raspberrypi.com/software Raspberry Pi Imager]进行烧录对应系统镜像。 |
| |
| |
| cn=https://www.lcdwiki.com/zh/5inch_HDMI_Display-B
| |
| |
| |
| en=https://www.lcdwiki.com/5inch_HDMI_Display-B
| |
| }}
| |
|
| |
|
| <tabber>
| | [插入对应图片] |
| 产品说明=
| |
| {{
| |
| Header|title=产品图片
| |
| }}
| |
|
| |
|
| [[File:MPI5001-01.jpg|650px]]<br />
| | * 2. 镜像烧写完成后,打开TF卡根目录的config.txt文件,在config.txt最后加入以下代码,保存并安全弹出TF卡。 |
| [[File:MPI5001-02.jpg|200px]]
| |
| [[File:MPI5001-03.jpg|200px]]
| |
| [[File:MPI5001-04.jpg|200px]]
| |
|
| |
|
| {{
| | <pre class="code2highlight lang-c">dtoverlay=vc4-kms-v3d |
| Header|title=产品介绍
| | #DSI1 Use |
| }}
| | dtoverlay=vc4-kms-dsi-7inch |
| | #DSI0 Use(Only Pi5/CM4) |
| | #dtoverlay=vc4-kms-dsi-7inch,dsi0</pre> |
| | * 3. 将TF卡插入树莓派,给树莓派上电,正常等待几秒后可以进入显示,系统启动后可以正常触摸。 |
| | * <span style="color:#FF0000;">注意:对于树莓派5的Bookworm系统,建议手动更新到最新的系统版本并重启(需在联网状态进行)</span> |
|
| |
|
| * 5inch标准显示器,硬件分辨率800×480,可通过软件配置分辨率(最高支持1920X1080)
| | <pre class="code2highlight lang-c">#更新系统 |
| * 带电容触摸屏,支持5点触摸控制,USB触摸,免驱
| | sudo apt-get update |
| * 自带OSD菜单调节功能(可调节对比度/亮度/开关机等)
| | sudo apt-get full-upgrade -y |
| * 兼容Raspberry Pi、BB Black、Banana Pi等主流mini PC
| | #重启系统 |
| * 作为Raspberry Pi显示器使用时,支持Raspbian、Ubuntu、WIN10 IOT等系统,单点触控,免驱
| | sudo reboot</pre> |
| * 作为计算机显示器使用时,支持Windows 7/ 8/ 8 .1/ 10,五点触控,免驱
| |
| * 支持微软索尼PS4、XBOX360和任天堂等常用游戏主机
| |
| * 本产品通过CE、RoHS认证
| |
|
| |
|
| {{
| | === 方法二:使用预安装镜像 === |
| Header|title=产品参数
| | 1.选择对应的树莓派版本镜像,下载并解压为.img文件。<br /> |
| }}
| | '''树莓派3/4B/CM4/5版本下载:''' |
|
| |
|
| * 尺寸:5.0(inch)
| | QD-DSI-7A LCD Bookworm- Pi3/4B/CM4/5预安装镜像 |
| * SKU:MPI5001
| |
| * 分辨率:800×480(dots)
| |
| * 触摸:5点电容触摸
| |
| * 外形尺寸:121.11*95.24(mm)
| |
| * 产品重量:248(g)
| |
|
| |
|
| | 【插入百度盘链接镜像地址】 |
|
| |
|
| {{
| | 2.将TF卡连接到PC,使用[https://www.QD.net/w/upload/d/d7/Panasonic_SDFormatter.zip SDFormatter]格式化TF卡。<br /> |
| Header|title=硬件说明
| | 3.打开[https://www.QD.net/w/upload/7/76/Win32DiskImager.zip Win32DiskImager],选择准备好的系统镜像,点击“Write”开始烧录。<br /> |
| }}
| | 4.烧录完成后,打开TF卡根目录的config.txt文件,找到"[all]"这一行,根据自己的'''屏幕型号''',取消注释相关行,以使能DSI屏,然后保存并安全弹出TF卡。 |
| [[文件:MPI5001-05.jpg|524x524像素]]<br />
| |
|
| |
|
| ① Earphone: 3.5mm音频输出接口<br />
| | <pre>注意:对于Pi5/CM4/CM3+/CM3,由于有两个MIPI DSI显示接口,请确保使用正确的显示接口和指令,默认推荐使用DSI1显示接口。</pre> |
| ②&③ Touch: USB 触摸/供电接口, 用于供电和触摸输出,两者功能一致,只接任意一个即可<br />
| | 下面以800*480的DSI LCD屏为例:<br /> |
| ④ Display: HDMI 接口, 用于连接主板和 LCD 显示屏进行HDMI传输<br />
| | 使用DSI1接口: |
| ⑤ Power: 控制背光打开和关闭,可节省功耗<br />
| |
| ⑥ Return: 设置显示菜单时,返回上一级<br />
| |
| ⑦ Right/Down: 方向键 (背光快捷调节键)<br />
| |
| ⑧ Left/Up: 方向键 (背光快捷调节键)<br />
| |
| ⑨ Menu: 显示OSD设置菜单 / 选择键<br />
| |
| {{
| |
| Header|title=在树莓派Raspbian/Ubuntu Mate/Win10 IoT Core系统中使用
| |
| }}
| |
|
| |
|
| | <pre class="code2highlight lang-c">#800*480 resolution DSI LCD display |
| | dtoverlay=vc4-kms-dsi-7inch</pre> |
| | 使用的DSI0接口: |
|
| |
|
| * '''步骤1,安装官方镜像''' | | <pre class="code2highlight lang-c">#800*480 resolution DSI LCD display |
| | dtoverlay=vc4-kms-dsi-7inch,dsi0</pre> |
| | 5.将TF卡插入树莓派,通电启动,等待几秒即可进入系统显示,触控功能也可正常工作。 |
|
| |
|
| # 从官方下载最新镜像
| | ==调节背光亮度 == |
| # 按官方教程步骤安装好系统
| | * 1.打开"Screen Configuration"应用程序;<br /> |
|
| |
|
| * '''步骤2,修改config.txt配置文件'''
| |
|
| |
|
| 步骤1烧写完成后,打开Micro SD卡根目录的config.txt文件并在文件末端加入以下代码,保存并安全弹出Micro SD卡:{{code|1=
| | [[File:Pi5-mipiDSI-Brightness-0.png]] |
| max_usb_current=1
| |
| hdmi_force_hotplug=1
| |
| config_hdmi_boost=7
| |
| hdmi_group=2
| |
| hdmi_mode=1
| |
| hdmi_mode=87
| |
| hdmi_drive=1
| |
| hdmi_cvt 800 480 60 6 0 0 0
| |
| }}
| |
|
| |
|
| * '''步骤3,''' | | * 2.进入"Screen"->"DSI-2"->"Brightness" ,勾选您需要设置的背光亮度,最后点击"Apply",即可完成背光设置。 |
|
| |
|
| 将Micro SD卡插入树莓派,将HDMI线连接树莓派和LCD,将USB线连接树莓派的4个USB口任意一个,USB线另一端连接到LCD的USB口,然后给树莓派上电,如显示和触摸均正常则驱动成功(请使用足2A电源供电)。
| | [[wiki/%E6%96%87%E4%BB%B6:Pi5-mipiDSI-Brightness.png|[[File:/w/upload/a/ac/Pi5-mipiDSI-Brightness.png|600x869px|Pi5-mipiDSI-Brightness.png]]]] |
|
| |
|
| {{
| | QD也提供了对应的应用程序(该程序仅用于Bookworm和Bullseye系统),用户可以通过以下方式下载安装使用: |
| Header|title=如何作为电脑显示器使用
| |
| }}
| |
| * 使用HDMI连接线将电脑HDMI输出信号连接至LCD的HDMI接口;
| |
| * 将MicroUSB连接线一端连接LCD的USB Touch接口(两个MicroUSB任意一个均可),另一端连接至电脑的USB端口。
| |
| * 如有多个显示器,请先拔掉其他显示器接口,将本LCD作为唯一显示器进行测试。
| |
| {{
| |
| Header|title=产品尺寸
| |
| }}
| |
|
| |
|
| *[https://www.lcdwiki.com/res/MPI5001/MPI5001_Product_Dimensions.png MPI5001_Product_Dimensions ]
| | <pre>wget https://www.QD.net/w/upload/f/f4/Brightness.zip |
| | unzip Brightness.zip |
| | cd Brightness |
| | sudo chmod +x install.sh |
| | ./install.sh</pre> |
| | 安装完成后,可以在开始菜单-》Accessories -》Brightness 打开该程序,如下图: |
|
| |
|
| {{
| | [[wiki/%E6%96%87%E4%BB%B6:43H-800480-IPS-CT-details-13.gif|[[File:/w/upload/2/2c/43H-800480-IPS-CT-details-13.gif|960x580px|43H-800480-IPS-CT-details-13.gif]]]] |
| Header|title=如何旋转显示和触摸
| |
| }}
| |
|
| |
|
| * [[如何旋转显示和触摸(电容触摸)]]
| | 另外,也在终端输入以下命令可以控制背光亮度: |
|
| |
|
| {{
| | <pre>echo X | sudo tee /sys/class/backlight/*/brightness</pre> |
| Header|title=文档/视频
| | 其中X表示0~255中的任意数字。0表示背光最暗,255表示背光最亮。例如: |
| }}
| |
|
| |
|
| *[https://www.lcdwiki.com/res/MPI5001/CN/5inch_HDMI_Display-B_用户手册(CN).pdf 5inch_HDMI_Display-B_用户手册(CN)]
| | <pre>echo 100 | sudo tee /sys/class/backlight/*/brightness |
| *[https://www.lcdwiki.com/res/MPI5001/CN/如何安装LCD驱动(CN)_V1.2.pdf 如何安装LCD驱动(CN)_V1.2]
| | echo 0 | sudo tee /sys/class/backlight/*/brightness |
| *[https://www.lcdwiki.com/res/MPI5001/CN/LCD旋转显示和触摸的方法(CN).pdf LCD旋转显示和触摸的方法(CN)]
| | echo 255 | sudo tee /sys/class/backlight/*/brightness</pre> |
| *[https://www.lcdwiki.com/res/MPI5001/CN/如何安装虚拟键盘(CN).pdf 如何安装虚拟键盘(CN)]
| | [[File:亮度调节-GIF.gif|center|464x464px]] |
|
| |
|
| {{
| | == 显示旋转 == |
| Header|title=驱动下载
| | === <span id="Bookworm.E6.98.BE.E7.A4.BA.E6.97.8B.E8.BD.AC" class="mw-headline">Bookworm显示旋转</span> === |
| }}
| | <span id="Bookworm显示旋转"></span>'''GUI 界面旋转''' |
|
| |
|
| | * 1.打开"Screen Configuration"应用程序;<br /> |
|
| |
|
| *本地下载:[https://www.lcdwiki.com/res/RaspDriver/LCD-show.tar.gz LCD-show.tar.gz]
| |
| {{
| |
| Header|title=镜像下载
| |
| }}
| |
|
| |
|
| | [[wiki/%E6%96%87%E4%BB%B6:DSI-LCD-Bookworm-Rotate-01.png|[[File:/w/upload/thumb/6/65/DSI-LCD-Bookworm-Rotate-01.png/600px-DSI-LCD-Bookworm-Rotate-01.png|600x364px|DSI-LCD-Bookworm-Rotate-01.png]]]] |
|
| |
|
| 如果你觉得前面步骤的修改配置、安装驱动都比较困难或者仍然显示异常,
| | * 2.进入"Screen"->"DSI-1"->"Touchscreen" ,勾选"6-0038 generic ft5x06(79)" |
| 请先使用我们预装好驱动的镜像,下载后解压并把镜像写入到TF卡中。然后把卡插入树莓派就可以使用了。
| |
|
| |
|
| *百度云盘下载:[https://pan.baidu.com/s/1VjtNRuzpiSRWGFsvRQjuOg Images Download]
| | [[wiki/%E6%96%87%E4%BB%B6:DSI-LCD-Bookworm-Rotate-02.png|[[File:/w/upload/thumb/1/1f/DSI-LCD-Bookworm-Rotate-02.png/600px-DSI-LCD-Bookworm-Rotate-02.png|600x360px|DSI-LCD-Bookworm-Rotate-02.png]]]] |
| *google云盘下载:等待上传
| |
|
| |
|
| | * 3.单击"Apply"并关闭当前窗口。根据弹出提示重新启动,然后触摸屏选择完成。 |
|
| |
|
| {{
| | [[wiki/%E6%96%87%E4%BB%B6:DSI-LCD-Bookworm-Rotate-03.png|[[File:/w/upload/2/25/DSI-LCD-Bookworm-Rotate-03.png|400x332px|DSI-LCD-Bookworm-Rotate-03.png]]]]<br /> |
| Header|title=常用软件
| | [[wiki/%E6%96%87%E4%BB%B6:DSI-LCD-Bookworm-Rotate-05.png|[[File:/w/upload/thumb/8/8c/DSI-LCD-Bookworm-Rotate-05.png/400px-DSI-LCD-Bookworm-Rotate-05.png|400x140px|DSI-LCD-Bookworm-Rotate-05.png]]]] |
| }}
| |
|
| |
|
| *[https://www.lcdwiki.com/res/software/Panasonic_SDFormatter.zip Panasonic SDFormatter] | | * 4.进入"Screen"->"DSI-1"->"Orientation" ,勾选您需要旋转的方向,最后点击“Apply”,即可完成显示屏和触摸的同步旋转。 |
| *[https://www.lcdwiki.com/res/software/Win32DiskImager.zip Win32DiskImager]
| |
| *[https://www.lcdwiki.com/res/software/putty.zip PuTTY]
| |
|
| |
|
| |-|
| | [[wiki/%E6%96%87%E4%BB%B6:DSI-LCD-Bookworm-Rotate-04.png|[[File:/w/upload/thumb/3/35/DSI-LCD-Bookworm-Rotate-04.png/600px-DSI-LCD-Bookworm-Rotate-04.png|600x361px|DSI-LCD-Bookworm-Rotate-04.png]]]] --><br /> |
| 常见问答=<table class="a-r at-c roundy bgd-blue bl-white" style="margin-left: 5px; margin-bottom: 5px;"> <table style="margin-top: 10px; border-right: 20px solid transparent; border-top: 20px solid #008DE6;"><table style="margin-top: 10px; border-right: 20px solid transparent; border-top: 20px solid #008DE6;">
| | '''注意:仅Bookworm系统支持以上同步旋转方法。对于Bullseye和Butser系统,显示旋转后,需手动单独设置触摸旋转。'''<br /> |
| <tr>
| |
| <td>
| |
| <table class="roundy" style="margin-top: -30px; margin-left: -5px; margin-right: -5px; background: #008DE6;">
| |
| <tr>
| |
| <td><font color="#FFF"> <big><big>
| |
| 问题:使用光盘/网盘提供的树莓派镜像,无法正常使用LCD,怎么处理?
| |
| </big></big></font>
| |
| </td></tr></table>
| |
| </td></tr></table>
| |
| <table style="margin-top: 10px; border-left: 20px solid transparent; border-top: 20px solid #DDD;">
| |
| <tr>
| |
| <td>
| |
| <table class="roundy mw-collapsible" style="margin-top: -30px; margin-left: -5px; margin-right: -5px; background: #DDD;">
| |
| <tr>
| |
| <td><font color="#008DE6"> <b><big>答复:</big></b></font><br />
| |
| </td></tr>
| |
| <tr>
| |
| <td>
| |
| <ul><li>确定硬件连接无误且接触良好
| |
| </li><li>确定TF卡烧写正常,系统启动是否正常。
| |
| </li><li>树莓派正常启动时PWR灯常亮,ACT灯闪烁。
| |
| </li><li>如果发现两灯都常亮则可能是TF卡烧写镜像不成功或TF卡与树莓派接触不良。
| |
| </li><li>推荐使用5V 2A电源适配器对树莓派进行供电。 如使用电脑USB接口供电,可能由于供电不足导致树莓派无法正常启动。
| |
| </li>
| |
| </ul>
| |
| </td></tr></table>
| |
| </td></tr></table>
| |
| <br /> | | <br /> |
| | '''lite版本显示旋转''' |
| | |
| | * 1.需要修改/boot/cmdline.txt文件: |
| | |
| | <pre>sudo nano /boot/cmdline.txt</pre> |
| | * 2.在cmdline.txt文件开头,添加对应显示旋转角度的指令:(请注意,该命令需要放在同一行上,每个命令用空格分隔。) |
| | |
| | <pre>video=DSI-1:800x480M@60,rotate=90</pre> |
| | 通过将rotate值更改为 90、180 或 270 来更改显示旋转的角度。 |
| | |
| | * 3.保存并重新启动 |
| | |
| | <pre>sudo reboot</pre> |
| | |
| | === Bullseye/Buster显示旋转=== |
| | '''GUI 界面旋转''' |
| | |
| | * 1.打开"Screen Configuration"应用程序;<br /> |
| | |
| | |
| | [[wiki/%E6%96%87%E4%BB%B6:DSI-LCD-Bullseye-Rotate-02.png|[[File:/w/upload/thumb/d/d4/DSI-LCD-Bullseye-Rotate-02.png/600px-DSI-LCD-Bullseye-Rotate-02.png|600x362px|DSI-LCD-Bullseye-Rotate-02.png]]]] |
| | |
| | * 2.进入"Screen"->"DSI-1"->"Orientation" ,勾选您需要旋转的方向,最后点击"Apply",即可完成显示旋转。 |
| | |
| | [[wiki/%E6%96%87%E4%BB%B6:DSI-LCD-Bullseye-Rotate-03.png|[[File:/w/upload/thumb/a/ae/DSI-LCD-Bullseye-Rotate-03.png/600px-DSI-LCD-Bullseye-Rotate-03.png|600x361px|DSI-LCD-Bullseye-Rotate-03.png]]]][[wiki/%E6%96%87%E4%BB%B6:DSI-LCD-Bullseye-Rotate-04.png|[[File:/w/upload/3/3b/DSI-LCD-Bullseye-Rotate-04.png|400x306px|DSI-LCD-Bullseye-Rotate-04.png]]]] |
|
| |
|
| <table style="margin-top: 10px; border-right: 20px solid transparent; border-top: 20px solid #008DE6;">
| |
| <tr>
| |
| <td>
| |
| <table class="roundy" style="margin-top: -30px; margin-left: -5px; margin-right: -5px; background: #008DE6;">
| |
| <tr>
| |
| <td><font color="#FFF"> <b><big><big>问题:</big></big></b></font><font color="#EEE"><big>使用树莓派官方提供的镜像, LCD无显示是什么原因?
| |
| </big></font>
| |
| </td></tr></table>
| |
| </td></tr></table>
| |
| <table style="margin-top: 10px; border-left: 20px solid transparent; border-top: 20px solid #DDD;">
| |
| <tr>
| |
| <td>
| |
| <table class="roundy mw-collapsible" style="margin-top: -30px; margin-left: -5px; margin-right: -5px; background: #DDD;">
| |
| <tr>
| |
| <td><font color="#008DE6"> <b><big>答复:</big></b></font><br />
| |
| </td></tr>
| |
| <tr>
| |
| <td>
| |
| <ul><li>LCD需要安装驱动才能正确显示,具体请参考”如何安装LCD驱动”相关说明文档,
| |
| </li><li>建议先使用我们提供的镜像,测试通过后,再自行安装驱动程序。
| |
| </li></ul>
| |
| </td></tr></table>
| |
| </td></tr></table>
| |
| <br /> | | <br /> |
| | '''lite版本显示旋转''' |
| | |
| | * 1.需要修改/boot/cmdline.txt文件: |
| | |
| | <pre>sudo nano /boot/cmdline.txt</pre> |
| | * 2.在cmdline.txt文件开头,添加对应显示旋转角度的指令:(请注意,该命令需要放在同一行上,每个命令用空格分隔。) |
| | |
| | <pre>video=DSI-1:800x480M@60,rotate=90</pre> |
| | 通过将rotate值更改为 90、180 或 270 来更改显示旋转的角度。 |
| | |
| | * 3.保存并重新启动 |
| | |
| | <pre>sudo reboot</pre> |
| | |
| | === Stretch/Jessie显示旋转 === |
| | '''对于一些比较古老的系统,它们不使用vc4-kms-v3d 或 vc4-fkms-v3d 驱动模式,显示旋转方法如下''' |
| | |
| | * 1. 在config.txt文件中加入语句(config文件位于TF卡根目录,即/boot中): |
| | |
| | <pre>display_rotate=1 #1:90;2: 180; 3: 270</pre> |
| | * 2. 保存后重启树莓派即可 |
| | |
| | <pre>sudo reboot</pre> |
| | |
| | == 触摸旋转 == |
| | === Bookworm 触摸 === |
| | 如果使用图形界面进行旋转,可以在屏幕布局编辑器窗口中勾选“Touchscreen”来同步触摸旋转。屏幕旋转方法请参考前面的介绍。命令行旋转方法请参考以下文字:<br /> |
| | 1. 创建一个名为的新文件99-QD-touch.rules |
| | |
| | <pre>sudo nano /etc/udev/rules.d/99-QD-touch.rules</pre> |
| | 2. 根据需要添加以下行: |
| | |
| | <pre>#90°: |
| | ENV{ID_INPUT_TOUCHSCREEN}=="1", ENV{LIBINPUT_CALIBRATION_MATRIX}="0 -1 1 1 0 0" |
| | |
| | #180°: |
| | #ENV{ID_INPUT_TOUCHSCREEN}=="1", ENV{LIBINPUT_CALIBRATION_MATRIX}="-1 0 1 0 -1 1" |
| | |
| | #270°: |
| | #ENV{ID_INPUT_TOUCHSCREEN}=="1", ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1"</pre> |
| | 3. 保存并重启 |
|
| |
|
| <table style="margin-top: 10px; border-right: 20px solid transparent; border-top: 20px solid #008DE6;"> | | <pre>sudo reboot</pre> |
| <tr> | | |
| <td>
| | === Bullseye/Buster 触摸 === |
| <table class="roundy" style="margin-top: -30px; margin-left: -5px; margin-right: -5px; background: #008DE6;">
| | '''部分系统显示旋转后,触摸方向不一致,需要按下文操作进行触摸旋转:'''<br /> |
| <tr>
| | 1. 安装libinput |
| <td><font color="#FFF"> <b><big><big>问题:</big></big></b></font><font color="#EEE"><big>装好驱动后如想切换回传统显示器进行显示,如何操作?
| | |
| </big></font> | | <pre>sudo apt-get install xserver-xorg-input-libinput</pre> |
| </td></tr></table> | | * 如果你安装的是Ubuntu系统,或者是Jetson Nano。安装指令为 |
| </td></tr></table>
| | |
| <table style="margin-top: 10px; border-left: 20px solid transparent; border-top: 20px solid #DDD;">
| | <pre>sudo apt install xserver-xorg-input-synaptics</pre> |
| <tr> | | 2. 在/etc/X11/下创建xorg.conf.d目录 (如果该目录已存在,这直接进行第3步) |
| <td> | | |
| <table class="roundy mw-collapsible" style="margin-top: -30px; margin-left: -5px; margin-right: -5px; background: #DDD;">
| | <pre>sudo mkdir /etc/X11/xorg.conf.d</pre> |
| <tr>
| | 3. 复制40-libinput-conf 文件到刚刚创建的目录下 |
| <td><font color="#008DE6"> <b><big>答复:</big></b></font><br /> | | |
| </td></tr>
| | <pre>sudo cp /usr/share/X11/xorg.conf.d/40-libinput.conf /etc/X11/xorg.conf.d/</pre> |
| <tr> | | 4. 编辑该文件 |
| <td> | | |
| <ul><li>请参考”如何安装LCD驱动”相关说明文档,使用以下命令切换: | | <pre>sudo nano /etc/X11/xorg.conf.d/40-libinput.conf</pre> |
| {{code|1=
| | <pre>#找到 touchscreen的部分,在里面添加对应的旋转角度指令,然后保存即可 |
| sudo ./LCD-hdmi
| | #90°Right触摸旋转: |
| }}
| | Option "CalibrationMatrix" "0 1 0 -1 0 1 0 0 1" |
| </li></ul> | | #180° Inverted触摸旋转: |
| </td></tr></table>
| | #Option "CalibrationMatrix" "-1 0 1 0 -1 1 0 0 1" |
| </td></tr></table> | | #270° Left旋转: |
| <br /> | | #Option "CalibrationMatrix" "0 -1 1 1 0 0 0 0 1" |
| | 类似下图位置:</pre> |
| | [[wiki/%E6%96%87%E4%BB%B6:Touch_roate.jpg|[[File:/w/upload/b/b1/Touch_roate.jpg|685x435px|Touch roate.jpg]]]]<br /> |
| | 5. 重启树莓派 |
| | |
| | <pre>sudo reboot</pre> |
| | 完成以上步骤后触摸将会进行旋转。<br /> |
|
| |
|
| <table style="margin-top: 10px; border-right: 20px solid transparent; border-top: 20px solid #008DE6;">
| |
| <tr>
| |
| <td>
| |
| <table class="roundy" style="margin-top: -30px; margin-left: -5px; margin-right: -5px; background: #008DE6;">
| |
| <tr>
| |
| <td><font color="#FFF"> <b><big><big>问题:</big></big></b></font><font color="#EEE"><big>使用7寸HDMI屏时显示正常但无触摸功能,如何处理?
| |
| </big></font>
| |
| </td></tr></table>
| |
| </td></tr></table>
| |
| <table style="margin-top: 10px; border-left: 20px solid transparent; border-top: 20px solid #DDD;">
| |
| <tr>
| |
| <td>
| |
| <table class="roundy mw-collapsible" style="margin-top: -30px; margin-left: -5px; margin-right: -5px; background: #DDD;">
| |
| <tr>
| |
| <td><font color="#008DE6"> <b><big>答复:</big></b></font><br />
| |
| </td></tr>
| |
| <tr>
| |
| <td>
| |
| <ul><li>检查触摸排线接插处是否运输松动
| |
| </li><li>检查USB一端是否连接树莓派4个USB口中任意一个,另一端连接到液晶屏的USB Touch接口.
| |
| </li><li>可先将USB触摸连接到电脑USB口,观察是否能正常被电脑识别并正常触摸,以此可以判断触摸功能好坏,
| |
| </li></ul>
| |
| </td></tr></table>
| |
| </td></tr></table>
| |
| <br />
| |
|
| |
|
| <table style="margin-top: 10px; border-right: 20px solid transparent; border-top: 20px solid #008DE6;">
| |
| <tr>
| |
| <td>
| |
| <table class="roundy" style="margin-top: -30px; margin-left: -5px; margin-right: -5px; background: #008DE6;">
| |
| <tr>
| |
| <td><font color="#FFF"> <b><big><big>问题:</big></big></b></font><font color="#EEE"><big>问题:更新升级镜像之后无法使用?
| |
| </big></font>
| |
| </td></tr></table>
| |
| </td></tr></table>
| |
| <table style="margin-top: 10px; border-left: 20px solid transparent; border-top: 20px solid #DDD;">
| |
| <tr>
| |
| <td>
| |
| <table class="roundy mw-collapsible" style="margin-top: -30px; margin-left: -5px; margin-right: -5px; background: #DDD;">
| |
| <tr>
| |
| <td><font color="#008DE6"> <b><big>答复:</big></b></font><br />
| |
| </td></tr>
| |
| <tr>
| |
| <td>
| |
| <ul><li>更新需按照以下方式进行,否则可能导致镜像无法运行:
| |
| <pre style="border: 1px dashed black;color:black">
| |
| sudo apt-mark hold raspberrypi-bootloader
| |
| sudo apt-get update
| |
| sudo apt-get upgrade
| |
| </pre>
| |
| </li></ul>
| |
| </td></tr></table>
| |
| </td></tr></table>
| |
| <br />
| |
|
| |
|
| <table style="margin-top: 10px; border-right: 20px solid transparent; border-top: 20px solid #008DE6;">
| | == 屏幕休眠 == |
| <tr>
| | 在树莓派终端运行以下指令,屏幕即可进入休眠状态: |
| <td>
| |
| <table class="roundy" style="margin-top: -30px; margin-left: -5px; margin-right: -5px; background: #008DE6;">
| |
| <tr>
| |
| <td><font color="#FFF"> <b><big><big>问题:</big></big></b></font><font color="#EEE"><big>5寸和7寸屏连接到电脑HDMI,无法正常显示,怎么解决?
| |
| </big></font>
| |
| </td></tr></table>
| |
| </td></tr></table>
| |
| <table style="margin-top: 10px; border-left: 20px solid transparent; border-top: 20px solid #DDD;">
| |
| <tr>
| |
| <td>
| |
| <table class="roundy mw-collapsible" style="margin-top: -30px; margin-left: -5px; margin-right: -5px; background: #DDD;">
| |
| <tr>
| |
| <td><font color="#008DE6"> <b><big>答复:</big></b></font><br />
| |
| </td></tr>
| |
| <tr>
| |
| <td>
| |
| <ul><li>确定电脑的HDMI接口可以正常输出
| |
| </li><li>电脑只连接LCD作为显示设备,不连接其它的显示器(拔掉其他显示器)。
| |
| </li><li>先接USB供电线再接HDMI线。
| |
| </li><li>尝试重启电脑。
| |
| </li><li>必须使用windows操作系统。
| |
| </li></ul>
| |
| </td></tr></table>
| |
| </td></tr></table>
| |
| <br />
| |
|
| |
|
| <table style="margin-top: 10px; border-right: 20px solid transparent; border-top: 20px solid #008DE6;"> | | <pre>xset dpms force off</pre> |
| <tr>
| | '''注:该指令仅适用于Bullseye和Buster系统。''' |
| <td>
| |
| <table class="roundy" style="margin-top: -30px; margin-left: -5px; margin-right: -5px; background: #008DE6;">
| |
| <tr>
| |
| <td><font color="#FFF"> <b><big><big>问题:</big></big></b></font><font color="#EEE"><big>在树莓派3代上,怎么打开蓝牙功能?
| |
| </big></font>
| |
| </td></tr></table>
| |
| </td></tr></table>
| |
| <table style="margin-top: 10px; border-left: 20px solid transparent; border-top: 20px solid #DDD;">
| |
| <tr>
| |
| <td>
| |
| <table class="roundy mw-collapsible" style="margin-top: -30px; margin-left: -5px; margin-right: -5px; background: #DDD;">
| |
| <tr>
| |
| <td><font color="#008DE6"> <b><big>答复:</big></b></font><br />
| |
| </td></tr>
| |
| <tr>
| |
| <td>
| |
| <ul><li>方法1:升级到树莓派官方最新镜像(2016-05-27-jessie之后版本已经默认打开蓝牙功能);
| |
| </li><li>方法2:手动打开蓝牙功能<br />
| |
| {{code|1=
| |
| sudo apt-get install pi-bluetooth
| |
| sudo apt-get install bluetooth bluez blueman
| |
| systemctl status bluetooth
| |
| sudo systemctl start bluetooth
| |
| sudo reboot
| |
| }}
| |
| </li></ul>
| |
| </td></tr></table>
| |
| </td></tr></table>
| |
| <br />
| |
|
| |
|
| <table style="margin-top: 10px; border-right: 20px solid transparent; border-top: 20px solid #008DE6;">
| | == 禁用触摸== |
| <tr>
| | 在config.txt文件最后,加入以下对应禁用触摸的命令(config文件位于TF卡根目录,也可以通过命令访问:sudo nano /boot/config.txt): |
| <td>
| |
| <table class="roundy" style="margin-top: -30px; margin-left: -5px; margin-right: -5px; background: #008DE6;">
| |
| <tr>
| |
| <td><font color="#FFF"> <b><big><big>问题:</big></big></b></font><font color="#EEE"><big>使用5寸7寸HDMI屏时无法全屏或显示残缺,如何处理?
| |
| </big></font>
| |
| </td></tr></table>
| |
| </td></tr></table>
| |
| <table style="margin-top: 10px; border-left: 20px solid transparent; border-top: 20px solid #DDD;">
| |
| <tr>
| |
| <td>
| |
| <table class="roundy mw-collapsible" style="margin-top: -30px; margin-left: -5px; margin-right: -5px; background: #DDD;">
| |
| <tr>
| |
| <td><font color="#008DE6"> <b><big>答复:</big></b></font><br />
| |
| </td></tr>
| |
| <tr>
| |
| <td>
| |
| <ul><li>检查HDMI是否已经插好并且输出正常
| |
| </li><li>打开SD卡根目录下config.txt文件,检查HDMI配置是否正确
| |
| </li><li>5寸和7寸800*480应配置为如下参数:<br />
| |
| <pre style="border: 1px dashed black;color:black;width:80%">
| |
| hdmi_group=2
| |
| hdmi_mode=1
| |
| hdmi_mode=87
| |
| hdmi_cvt 800 480 60 6 0 0 0
| |
| </pre>
| |
| </li><li>7寸1024*600高清应配置为:<br />
| |
| <pre style="border: 1px dashed black;color:black;width:80%">
| |
| hdmi_group=2
| |
| hdmi_mode=1
| |
| hdmi_mode=87
| |
| hdmi_cvt 1024 600 60 6 0 0 0
| |
| </pre>
| |
| </li></ul>
| |
| </td></tr></table>
| |
| </td></tr></table>
| |
| <br />
| |
|
| |
|
| |-|
| | <pre>disable_touchscreen=1</pre> |
| 售后=
| | 注:添加指令后需重启生效。 |
|
| |
|
| {{
| | |资料= |
| contact_us
| | * [https://www.QD.net/w/upload/1/18/7inch-DSI-TOUCH-DS.pdf 触摸图纸] |
| | * [[wiki/%E6%96%87%E4%BB%B6:7inch_DSI_LCD.zip|7inch DSI LCD 3D图纸]] |
| | * [[wiki/%E6%96%87%E4%BB%B6:7inch_DSI_LCD_(with_case_A).zip|7inch DSI LCD (with case A) 3D图纸]] |
| | * [https://www.raspberrypi.com/software Raspberry Pi Imager] |
| }} | | }} |
| 版权声明:本文通过"易转载"管理版权。如需转载,请在易转载查询授权码"Y5W4",查看转载要求并自助获得授权。未经授权,禁止转载。
| |
| </tabber>
| |