As I said, this is far too complicated for the average user, I guess we should handle it ourselves by copy-pasting some code from e.g. xfce's display dialog/settings daemon.
(I guess that's the edge Ubuntu has over us with having gnome/unity-settings-daemon running in the greeter session already...)
Ok, found the xrandr script for lightdm now.
As I said, this is far too complicated for the average user, I guess we should handle it ourselves by copy-pasting some code from e.g. xfce's display dialog/settings daemon.
(I guess that's the edge Ubuntu has over us with having gnome/unity- settings- daemon running in the greeter session already...)