xiaomi,beryllium: No fractional scale exported via DisplayConfig GetCurrentState
The result is that Settings doesn't offer any fractional scales to pick.
In case someone wants to fix this:
Dbus call:
gdbus call -e -o /org/gnome/Mutter/DisplayConfig -d org.gnome.Mutter.DisplayConfig -m org.gnome.Mutter.DisplayConfig.GetCurrentState
The reason is that get_closest_scale_factor_for_resolution()
doesn't find a scale factor that ends up on a pixel boundary for both width and height for the panels 1080 x 2246
resolution so it (correctly) discards those.
Relevant commits 5861153b. Adding a test with the beryllium's mode to phosh_head_calculate_supported_mode_scales
shows the problem without any DBus.
Edited by Guido Günther