I use different displays connected to my HDMI ports and the laptop display. In order to resolve LightDM login resolution bug I've developed a script beginning from what written in How to force Multiple Monitors correct resolutions for LightDM?:
#!/bin/bash XCOM01=`xrandr -q | grep 'HDMI1 connected'` XCOM02=`xrandr -q | grep 'HDMI2 connected'` XCOM1=`xrandr --output HDMI1 --primary --auto` XCOM2=`xrandr --output HDMI2 --primary --auto` XCOM3=`xrandr --output LVDS1 --primary --auto` # if the external monitor HDMI1 is connected, then we tell XRANDR to set up use it for login if [ -n "$XCOM01" ] || [ ! "$XCOM01" = "" ]; then echo $XCOM1 # if the external monitor HDMI2 is connected, then we tell XRANDR to set up use it for login else if [ -n "$XCOM02" ] || [ ! "$XCOM02" = "" ]; then echo $XCOM2 # if both the external monitors are disconnected, then we tell XRANDR to output to the laptop screen else echo $XCOM3 fi fi exit 0;
Now the resolution is correct, but the greeter panel occupies a space equal to the previous wrong resolution!! What can I do?