Skip to content

power: Use Mutter D-Bus API directly

Some laptops with NVIDIA graphics may use "Panel" instead of "eDP" or "LVDS", as its connector type.

This is correct per RandR protocol [1], but this causes GSD consider the display as an external one, inhibiting systemd-logind from entering suspend upon lid closing.

Stop using gnome_rr to manipulate monitor configuration, since the Mutter D-Bus API's GetCurrentState() can correctly identify the display as an internal display.

[1] https://cgit.freedesktop.org/xorg/proto/randrproto/tree/randrproto.txt

See gnome-desktop!24 (closed) Partially address #131

Merge request reports