Skip to content

Commit

Permalink
doc: update modetest.md (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 10, 2023
1 parent fa4d169 commit ac04ffd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions command/modetest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,21 @@ DRM/KMS驱动程序libdrm中的模式测试工具

`modetest` 是一个用于测试和验证 DRM(Direct Rendering Manager)驱动程序功能的命令行工具。

**安装**
### 安装

**源码**[Mesa / drm · GitLab](https://gitlab.freedesktop.org/mesa/drm)
- **源码**[Mesa / drm · GitLab](https://gitlab.freedesktop.org/mesa/drm)
- **下载**[Index of /libdrm (dri.freedesktop.org)](https://dri.freedesktop.org/libdrm/)

**下载**[Index of /libdrm (dri.freedesktop.org)](https://dri.freedesktop.org/libdrm/)
__编译__

**编译**
```shell
./configure --prefix=/opt/ --host=aarch64-linux-gnu
make && make install
## 编译删除
make distclean
```

**参考**[libdrm调试准备 - 简书](https://www.jianshu.com/p/a9152ca3e7ab)

__参考__[libdrm调试准备 - 简书](https://www.jianshu.com/p/a9152ca3e7ab)

### 语法

Expand Down Expand Up @@ -73,7 +72,8 @@ modetest [选项]

### 实例

使用modetest查看相关信息
使用 `modetest` 查看相关信息

```shell
~# modetest
Encoders: # 省略了好多好多
Expand Down Expand Up @@ -114,7 +114,7 @@ id crtc fb CRTC x,y x,y gamma size possible crtcs

------

根据以上信息在MIPI-DSI显示设备上使用Rockchip显卡驱动测试
根据以上信息在 `MIPI-DSI` 显示设备上使用 `Rockchip` 显卡驱动测试

```shell
~# modetest -M rockchip -s 211@108:1200x1920 -v
Expand All @@ -129,7 +129,7 @@ freq: 59.87Hz
freq: 59.87Hz
```

在MIPI屏幕上将会看到闪烁的彩色块
`MIPI` 屏幕上将会看到闪烁的彩色块

------

Expand All @@ -139,6 +139,6 @@ setting mode 1200x1920-60Hz@XR24 on connectors 211, crtc 108
starting cursor
```

在MIPI屏幕上将会看到静止的彩色块
`MIPI` 屏幕上将会看到静止的彩色块


0 comments on commit ac04ffd

Please sign in to comment.