Candela
Webcam-driven adaptive screen brightness for KDE Plasma on Wayland
About This Project
Candela provides adaptive screen brightness for KDE Plasma 6 on Wayland, addressing the absence of an ambient light sensor on many laptops. It samples light levels from the webcam, maps them through a tunable curve, and writes the resulting backlight value to PowerDevil, so screen brightness follows the room without manual adjustment. The project does not modify colour temperature, which remains under the control of KDE's Night Light feature.
The implementation is written in Python and interacts with the desktop through D-Bus, subscribing to PowerDevil's brightnessChanged signal to distinguish manual adjustments from its own writes. When a user adjusts brightness manually while automation is active, the adjustment is retained and automation pauses for a configurable period. Candela also reads the current colour temperature from KWin and adjusts its target to offset the perceived luminance lost when warmer colour temperatures are applied. Exposure is pinned through v4l-utils to prevent a webcam's auto-exposure from masking changes in ambient light, and the project includes a Debian packaging scaffold, a systemd user unit, and a GTK-free PyQt6 control window with tray icon.
The project is likely to be of interest to users of KDE Plasma on Linux laptops lacking an ambient light sensor, and to developers working with PowerDevil, KWin, or D-Bus integration on Wayland. The author documents its calibration status candidly: it is validated on a single hardware configuration, ships disabled by default, and has an untested low-light range, making it best suited to users willing to calibrate it against their own camera and lighting.