Jumping Login Box after Lighdm Multiple Monitor workaround

Posted by Tom Gamon on Ask Ubuntu See other posts from Ask Ubuntu or by Tom Gamon
Published on 2012-12-18T21:28:39Z Indexed on 2012/12/18 23:13 UTC
Read the original article Hit count: 200

Filed under:
|
|

So I used this workaround to sort my resolution at the login screen when using multiple monitors with Lightdm.

#!/bin/bash

XCOM0=`xrandr -q | grep 'VGA1 connected'`
XCOM1=`xrandr --output LVDS1 --primary --auto --output VGA1 --auto --right-of LVDS1`
XCOM2=`xrandr --output LVDS1 --primary --auto`
# if the external monitor is connected, then we tell XRANDR to set up an extended desktop
if [ -n "$XCOM0" ] || [ ! "$XCOM0" = "" ]; then echo $XCOM1
# if the external monitor is disconnected, then we tell XRANDR to output only to the laptop screen
else echo $XCOM2
fi

exit 0;

Found Here: How to force Multiple Monitors correct resolutions for LightDM?

It works great.

However, now when I am on my login screen, the login box seems to jump to between the two displays. Any advice as to how I could make it stay on one display?

Thanks

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about login