Skip to content

Getting Started

Federico Di Pierro edited this page Aug 2, 2021 · 21 revisions

Clightd is a bus interface that lets you easily set screen brightness, gamma temperature and get ambient brightness through webcam frames capture.
Als sensors are supported too.

Naming

Clightd naming is explained in Clight wiki.
Note that it uses "d" suffix because it was born as Clight's backend daemon.
As of today, it is a generic DBus interface that is in no way uniquely linked to Clight.

Build deps

  • libsystemd >= 221 (systemd/sd-bus.h) or elogind (elogind/sd-bus.h)
  • libudev or libeudev (libudev.h)
  • libmodule >= 5.0.0 (module/module_easy.h, module/modules_easy.h, module/map.h)
  • libjpeg-turbo (jpeglib.h)
  • libusb (libusb.h)
  • polkit-gobject-1
  • cmake >= 3.5
  • gcc or clang
  • pkg-config

Needed only if built with gamma support:

  • libxrandr (X11/extensions/Xrandr.h)
  • libx11 (X11/Xlib.h)
  • libwayland (wayland-client.h)
  • libdrm (xf86drm.h, xf86drmMode.h)
  • wayland-scanner

Needed only if built with dpms support:

  • libxext (X11/extensions/Xext.h)
  • libx11 (X11/Xlib.h)
  • libwayland (wayland-client.h)
  • libdrm (xf86drm.h, xf86drmMode.h)
  • wayland-scanner

Needed only if built with screen support:

  • libx11 (X11/Xlib.h)
  • libwayland (wayland-client.h)
  • wayland-scanner

Needed only if built with ddcutil support:

  • ddcutil >= 0.9.5 (ddcutil_c_api.h)

Runtime deps:

  • shared objects from build libraries
  • polkit

Cmdline parameters

Clightd supports a single cmdline parameter:

  • -v/--version -> prints clightd version and leaves

Clone this wiki locally