Skip to content
Federico Di Pierro edited this page Nov 1, 2020 · 8 revisions

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

  • Xorg
  • Wl
  • Drm

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 number (found through ls /dev/dri/card*)
  • unused

When first param is left empty, clightd will fallback to "0", making it try to use /dev/dri/card0.

Clone this wiki locally