lightdm doesn't run the display-setup-script script
Solution 1:
Using Ubuntu, the best way to get your user account to have the right resolution for your dual monitor setup is as follows:
- Delete monitors.xml from ~/.config/
- Open Screen Display in System Settings
- Set appropriate screen settings (use XRandR or ARandR beforehand if need be)
- Then the big one - Hit Apply
You'll notice after doing the above that monitors.xml is rewritten, and whenever you login your dual monitor setup will work.
Secondly, to get the login screen to work correctly the process you need to follow is as is this answer. The tricky part is ensuring your permissions are correct - On top of setting the correct permissions for the symbolic link, you also need to make sure Others are able to access the monitors.xml file as well as the ~/.config folder.
The beauty of this setup is, as opposed to trying to brute force some xrandr commands, that whenever you change your resolution/monitor set-up in Ubuntu, your login screen will follow suit.
For both of the above to work you need to make sure you remove any references to xrandr commands at startup.