3

I have an Asus EEE PC 701 laptop with 7" 800x480 screen running Debian Jessie with Openbox as a WM. As I try to maximally use all the capabilities of this laptop, I'm searching for a way to get a dynamically-configurable dual monitor setup, so that when I feel limited by this laptop's small screen, I can just attach an external monitor and it will work. However, there seems to be little or no information about it, keeping in mind that I have integrated Intel GPU with one VGA output. The question is - what should I install&&configure in order to just plug in a monitor in my laptop and instantly have my workspace extended?

marked as duplicate by Caleb, jasonwryan, cuonglm, Anthon, slm Jun 25 '14 at 11:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

You could write your own script and use xrandr.

examples: check if new monitor is connected:

xrandr | grep -i conntected

But you can grep your new monitor.

xrandr | grep -i "The name of your monitor"

So if the command:

xrandr | grep -i "the name of your monitor" is true do something with it.

if (xrandr | grep -i "connected"); then                                  
  echo "yes"
  # do something with the new monitor 
else
  # no new monitors connected do nothing
  echo "nope"
fi
  • Aha, so it all comes to polling =( In the end, I just installed arandr and forgot about anything being dynamic, that's all. Thank you for your answer! – Арсений Пичугин Aug 5 '14 at 22:51

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