Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I set the location for the login screen with lightdm in a multi monitor setup.

If have two monitors (1920x1080) + (1920x1200) and currently after I boot the login is shown on the left (smaller) monitor. I would like to view it only on the right (bigger) monitor.

Switching the cables on the graphics card did not help, and I have already made the bigger screen my primary screen using xrandr:

xrandr --output DVI-1 --primary #big screen

After login my panel is on the primary screen but the login screen itself is shown on the other smaller screen. How can I configure lightdm to display the login only on the bigger screen.

share|improve this question
I have the exact same issue. Can't find the X11 configuration for LightDM – Ben Orozco May 22 '14 at 23:49

This did the trick for me. Find out your primary screen:

$ xrandr

And create the file /usr/bin/ with the following command:

xrandr --output DVI-0 --primary

**Change DVI-0 for your primary screen.*

Make it executable:

sudo chmod +x /usr/bin/

And add it to /etc/lightdm/lightdm.conf file:



share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.