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

Hi I just installed Xubuntu on my Laptop, now I want it to disable the laptop screen as long as the external screen is connected. But when I disconnect the external monitor I want the laptop screen to be activated again. How can I configure xubuntu to work this way? I have a nvidia graphics card and an intel chipset in my laptop. Hope you guys can help me out.

share|improve this question
when I simply disable the laptop screen output, the screen doesnt turn on automatically after unplugging the external screen, so thats no good.. – Janosch Jun 6 '13 at 21:31
So, you want HDMI hot-plugging! Just like usb hot-plugging! I don't think that's possible yet. At least not by default. Maybe ... with some custom-made complicated script. – ipse lute May 27 at 10:44

What happens if you run the following in Terminal and while your laptop is connected to the external monitor and both screens are displaying?

xrandr --output eDP1 --off
share|improve this answer

I used the guide in here to do exactly this a few days ago:

Only had to change the sound profile for it to work perfectly. When I connect an hdmi cable, the display turns off on my laptop and moves to the monitor and the sound changes as well. When I disconnect it, it returns everything to it's previous state.

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.