1. In terminal run xrandr -q to check monitor details.
Laptop display: LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 293mm x 164mm
External monitor: VGA1 connected 1280x1024+1366+33 (normal left inverted right x axis y axis) 376mm x 301mm
#!/bin/sh
xrandr --output LVDS1 --primary --mode 1366x768
3. Make it executable with: chmod a+rx loginScreenFix.sh
Can run it to test if worked but resolution should be changed to see difference
4. Copy this to shared folder:
sudo cp loginScreenFix.sh /usr/share/
5. To run it on logon screen I updated lightdm config:
sudo gedit /etc/lightdm/lightdm.conf
Add my fix script path at the end:
display-fix-script=/usr/share/loginScreenFix.sh
6. Reboot to check if it worked.