Umbrella header for the PhosphorServiceBrightness library. More...
#include <PhosphorServiceBrightness/BrightnessDevice.h>#include <PhosphorServiceBrightness/BrightnessDeviceModel.h>#include <PhosphorServiceBrightness/BrightnessHost.h>#include <PhosphorServiceBrightness/QmlRegistration.h>Go to the source code of this file.
Umbrella header for the PhosphorServiceBrightness library.
PhosphorServiceBrightness exposes display and keyboard backlight brightness as Qt/QML-friendly types for Phosphor-based desktop shells. The library has no UI of its own. For internal panels and keyboard backlights the read path is sysfs (/sys/class/backlight and the *::kbd_backlight entries under /sys/class/leds) and the write path is logind's org.freedesktop.login1.Session.SetBrightness, so no root or udev rules are required. When built with libddcutil (PHOSPHORSERVICEBRIGHTNESS_HAVE_DDCUTIL), external monitors are additionally driven over DDC/CI: brightness is read and written through VCP feature 0x10 over I2C on a dedicated worker thread, and the monitors surface through the same BrightnessHost as ExternalDisplay devices.
Shells consume:
Phase 2.4 of the service-library plan documented in docs/phosphor-shell-design/04-implementation-plan.md. Built on the generic PhosphorDBus::Client async helper for the logind call.