drm_tool
drm_tool copied to clipboard
Turn off monitor?
Is it possible to turn off screen with this tool?
I don't believe that drm allows that. In any case, is preferable to use modtest tool of the libdrm package than this tool:
~# modetest --help
usage: modetest [-acDdefMPpsCvw]
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>[-<vrefresh>][@<format>] set a mode
-C test hw cursor
-v test vsynced page flipping
-w <obj_id>:<prop_name>:<value> set property
-a use atomic API
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.
If you are wanting to turn on / off an hdmi screen that is connected to the card, it will be easier for you to research about HDMI-CEC. In linux you have a command line utility called cec-client which will allow you to turn on and off an hdmi screen in the case your screen (and card) support it. There are plenty of guides on how to do it using a raspberry pi. Some parts of them will apply on any cec enable card and screen.
Hope the provided information helps.