Mode setting test tool for DRM/KMS drivers
modetest is a command-line utility used to test and verify the functionality of DRM (Direct Rendering Manager) and KMS (Kernel Mode Setting) drivers.
Compilation:
./configure --prefix=/opt/ --host=aarch64-linux-gnu
make && make install
modetest [OPTION]...
Query Options:
-c List connectors.
-e List encoders.
-f List framebuffers.
-p List CRTCs and planes.
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>[-<vrefresh>][@<format>] Set a display mode.
-C Test hardware cursor.
-v Test vertical blanking page flips.
-w <obj_id>:<prop_name>:<value> Set a property.
Generic Options:
-a Enable atomic mode setting.
-d Drop master privileges after mode setting.
-M <module> Specify the driver module to use.
-D <device> Specify the device node to use.
<module>)i915: Intel Integrated Graphicsamdgpu: AMD Radeon Graphicsradeon: Legacy AMD Radeon Graphicsnouveau: Open-source NVIDIA Graphicsvmwgfx: VMware Graphicsomapdrm: TI OMAP Graphicsexynos: Samsung Exynos Graphicsmsm: Qualcomm MSM Graphicsrockchip: Rockchip GraphicsQuery device information:
modetest
Test display on a MIPI-DSI device using the Rockchip driver:
modetest -M rockchip -s 211@108:1200x1920 -v
This command will typically display a sequence of color blocks or test patterns on the screen.
Test with hardware cursor:
modetest -M rockchip -s 211@108:1200x1920 -C