Skip to content

WIP: gsd-backlight: Add multi monitor brightness handling

Currently we only track and manage a single internal backlight device in gsd, users with external monitors or multiple monitors can't change their device brightness using gnome and have to rely on external scripts.

This patch allows managing all devices listed in /sys/class/backlight/ (which is possible using ddcci kernel driver). gsd-backlight now maintains global brightness values as well as per monitor brightness.

For now we allow the user only to change the global brightness and individual device brightness is handled internally. This allows us to keep the same interface externally for Settings and the Shell. Later on we can expose individual device brightness settings which might involve more UI decisions.

Global brightness is always a percentage (1..100) and individual brightness values are adjusted accordingly.

Related to: #527

Merge request reports