Skip to content
Federico Di Pierro edited this page Dec 18, 2020 · 8 revisions

Since Clightd 5.0, Dpms API exposes 3 different plugins (priority-listed below):

  • /org/clightd/clightd/Dpms/Xorg
  • /org/clightd/clightd/Dpms/Wl
  • /org/clightd/clightd/Dpms/Drm

When calling any of those, their plugin will be used; when calling main object path first available plugin will be used instead given the above priority-listed list.

Note that Changed signal will be sent on both main object path and used plugin's path.

The API is the same for any of those plugins; but first 2 input parameters ("ss") meaning changes:

Xorg

  • $DISPLAY
  • $XAUTHORITY

Wl

  • $WAYLAND_DISPLAY
  • $XDG_RUNTIME_DIR

Support on wayland requires the compositor to implement org_kde_kwin_dpms protocol.

Drm

  • card (if empty, defaults to first drm device it finds through udev)
  • unused
Clone this wiki locally