Stop using gnome_rr to manipulate monitor configuration
The gnome_rr_*
API family are wrappers around the old low level monitor configuration API exposed by mutter. It exposes things like CRTCs and outputs, instead of higher level concepts like monitors.
As of this day, a grep shows that there are these existing usages:
- Gamma configuration (
plugins/color/
) - Backlight configuration (
plugins/power/
) - DPMS configuration (
plugins/power
)
These things need to be handled differently.
Gamma configuration needs to be moved to mutter, so that mutter can become more aware of color management. What this means for the color plugin I don't know; I'm not fully aware of all the things it does.
Backlight configuration contains gnome_rr
using fallbacks for when the udev stuff doesn't work. The gnome_rr
fallback does not work at all under Wayland. Is there any point in keeping this fallback? When will it be used? I'm not sure how valuable it is to keep it around if its only there for when udev isn't available.
DPMS configuration uses gnome_rr
for two things: checking if there is an external monitor connected and to setting the power saving mode. Both these should simply be changed to use the new D-Bus API directly.