linux modetest常用命令
【代码】linux modetest常用命令。
·
1 通过help有哪些参数
130|:/ # modetest -h
usage: modetest [-acDdefMPpsCvrw]
Query options:
-c list connectors
-e list encoders
-f list framebuffers
-p list CRTCs and planes (pipes)
Test options:
-P <plane_id>@<crtc_id>:<w>x<h>[+<x>+<y>][*<scale>][@<format>] set a plane
-s <connector_id>[,<connector_id>][@<crtc_id>]:[#<mode index>]<mode>[-<vrefresh>][@<format>] set a mode
-C test hw cursor
-v test vsynced page flipping
-r set the preferred mode for all connectors
-w <obj_id>:<prop_name>:<value> set property
-a use atomic API
-F pattern1,pattern2 specify fill patterns
Generic options:
-d drop master after mode set
-M module use the given driver
-D device use the given device
Default is to dump all info.
2 分3大类
2.1 查询
Query options:
-c list connectors
-e list encoders
-f list framebuffers
-p list CRTCs and planes (pipes)
2.2 测试
Test options:
-P <plane_id>@<crtc_id>:<w>x<h>[+<x>+<y>][*<scale>][@<format>] set a plane
-s <connector_id>[,<connector_id>][@<crtc_id>]:[#<mode index>]<mode>[-<vrefresh>][@<format>] set a mode
-C test hw cursor
-v test vsynced page flipping
-r set the preferred mode for all connectors
-w <obj_id>:<prop_name>:<value> set property
-a use atomic API
-F pattern1,pattern2 specify fill patterns
2.3 通用设置
Generic options:
-d drop master after mode set
-M module use the given driver
-D device use the given device
3 常用命令(RK平台)
- Query options 查询选项其实可以不用关心,执行modetest就会全部打印出来,保存文件再去找对应需要的内容即可,重点在测试与通用设置
3.1 修改Connectors id 为445的属性brightness为30
// -w <obj_id>:<prop_name>:<value> set property
modetest -M rockchip -w 445:brightness:30
3.2 Connectors id 为445的屏幕为彩条模式(800x1280)
// -s <connector_id>[,<connector_id>][@<crtc_id>]:[#<mode index>]<mode>[-<vrefresh>][@<format>]
// 直接设置分辨率
modetest -M rockchip -s 445:800x1280
//设置分辨率和刷新率
modetest -M rockchip -s 445:800x1280-60.08
// 通过#查找第0个mode
modetest -M rockchip -s 445:#0
3.3 查询
modetest -M rockchip

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐



所有评论(0)