Running Modetest to Test Your DRM Display Driver Once you finish the DRM(Direct Rendering Manager)
来源:互联网 发布:linux vim 复制粘贴 编辑:程序博客网 时间:2024/04/29 14:33
Running Modetest to Test Your DRM Display Driver
Once you finish the DRM(Direct Rendering Manager) driver, you will need to run the modetest to test your driver. modetest is a user-land test program of libdrm. Now it can run on linux and android platform.
Get Modetest
Since modetest is within libdrm, so you can get it by clone a copy of libdrm:
$ git clone git://anongit.freedesktop.org/mesa/drm
Build on Android
Put libdrm code to “external/ ” directory of Android source code tree. For example, for hikey board , run bellow commad to build.
After finish building, modetest will be installed at directory: out/target/product/hikey/system/bin. Then your can tar a system.img which including modetest.
$ make systemimage
Build on Linux
On your target boad, for example, a debain/ubuntu linux, install bellow required tools and then build.
You’ll get modetest at “drm/tests/modetest” directory.
Run Modetest
Bellow commands list the DRM info including modes, where option “-M” specific the name of your DRM driver. e.g. for hikey board:
modetest -M hisi #list all the info of crtc, encoder and connector
modetest -M hisi -c #list all the info of connector including modes
./modetest -M hisi -c
Connectors:
id encoder status type size (mm) modes encoders
8 0 connected HDMI-A 470x300 1 7
modes:
name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
720p60 60 1280 1390 1430 1650 720 725 730 750 flags: phsync, pvsync; type: preferred, driver
props:
1 EDID:
flags: immutable blob
blobs:
value: 00ffffffffffff0030ae0c0a01010101 23180103802f1e78ee23c5a5574f9e26 0f5054bdcf00714f8180818c9500950f a9c0b300010121399030621a274068b0 3600da281100001c000000fd00324b1e 5311000a202020202020000000fc004c 543232353220576964650a20000000ff 0045333530303532310a202020200099 2 DPMS: flags: enum enums: On=0 Standby=1 Suspend=2 Off=3 value: 0
Test the modes by name with the “-s” option, you’ll see a color bar image display on your monitor if the driver is OK.
./modetest -M hisi -s 8:720p60 # where “8” is the connector id and “720p60” is the name of mode.
Note: Runing modetest on linux require not to run the X windows server.
- Running Modetest to Test Your DRM Display Driver Once you finish the DRM(Direct Rendering Manager)
- drm:Direct Rendering Manager
- DRM
- DRM
- DRM
- DRM
- How to disable DRM
- Architecture of a DRM driver
- The Direct Rendering Manager: Kernel Support for the Direct Rendering Infrastructure
- Introduction to the Direct Rendering Infrastructure
- 138 Your database instance is running. You are not able to access Oracle Enterprise Manager Database
- Linux DRM(一)Display Server
- [RFC] drm/exynos: add FIMC driver
- 72.You want to enable archiving on your database. Presently, the database is running in NOARCHIVELOG
- Introduction to Linux Graphics drivers: DRM
- Stop the Hollyweb! No DRM in HTML5
- DRM解释
- DRM是什么
- IO整理
- 关于iOS的GCD的介绍以及使用
- RMI多网卡问题
- mysql 命令行操作
- Android中如何控制LogCat的自定义输出
- Running Modetest to Test Your DRM Display Driver Once you finish the DRM(Direct Rendering Manager)
- java的反射
- Java泛型
- butterknife7.0的使用
- Android如何避免ANR 增加相应速度 Keeping Your App Responsive
- ACM之杭电——1001_Sum Problem
- 开源项目架构分析之--Audacity
- [网络流24题] 19 负载平衡(最小代价供求,最小费用最大流)
- 33个网站足以使你成为一个天才