Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

I have my Ubuntu Desktop (13.04) installation setup for dual monitors (one VGA and one HDMI, built-in display off) out of my laptop. This is working fine when I am logged in, however when I reboot the boot/login screen is only on my laptop screen. Since I want to have the laptop close and tucked away, this is a problem.

Any suggestions on how to get this to work properly? I tried a suggestion of adding a file to /etc/X11/Xsession. I called it '98extmonitor' and it had the following contents:

xrandr -q | grep 'VGA1 connected' && xrandr --output LVDS1 --off --output VGA1 --auto

But that had no change in effect.

share|improve this question
up vote 2 down vote accepted

I solved this by adding an option to the GRUB command line

GRUB_CMDLINE_LINUX="video=LVDS-1:d video=VGA-1:e video=HDMI-1:e"

That boots up my system with the same login on both monitors. When I login, the dual spanning monitor setup kicks in.

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.