Skip to content

compositor-drm: config output to reposition

yishan yang requested to merge yayowd/qimm:pull-to-weston into main

Use the simple one-dimensional layout design to repositioning outputs.

NOTE: The independent-CRTC clone mode not support.

The following output section configuration items can be used:
pos-origin=false
    Used as origin output, the origin output is positioned at (0, 0) and only  one.   If
    set  to false, DO NOT used as origin output. If this is not set, used as a candidate
    for origin output, the first one (at run-time not at config file) will be used  when
    no  origin  output is configured. The reposition will stop when origin output is not
    found. Currently, this option is supported by drm-backend.  Defaults to unset.
pos-refer=output-name
    The name of the output referenced by this output, this  output  will  be  positioned
    relative to that output. If this is not set, origin output will be used. The reposi‐
    tion will stop when reference output is not found or  reference  output  is  reposi‐
    tioned  failed  or circular reference occurs. Currently, this option is supported by
    drm-backend. Defaults to unset.
pos-direction={left,right,top,bottom}
    Set direction relative to reference output. Currently, this option is  supported  by
    drm-backend. left is the default.
pos-align={start,center,end}
    Set  align  relative  to reference output, the align is cross with direction.  start
    make this output line up at the start of reference output.  center to align them  in
    the  center.  end  to align them to the end.  Currently, this option is supported by
    drm-backend. start is the default.

Example:

[output]
name=eDP-1
#pos-origin=true

[output]
name=HDMI-A-1
#pos-refer=eDP-1
pos-direction=top
pos-align=center
Edited by yishan yang

Merge request reports