Pages

Monday 29 September 2014

Elementary OS messed up resolution on logon screen

After connecting secondary monitor to my laptop the login screen looks like it lost display settings and got resolution changed. I was having trouble finding solution, following is what worked for me:


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

2. Create script txt file eg. loginScreenFix.sh with following content:

#!/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.