Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I set my Lenovo X220 Tablet onto the docking station where a 1920x1200 screen is attached via Display Port -> DVI, both the internal and the external screen show the greatest common resolution which is 1024x768.

I can then set the display settings within KDE, but that is rather time consuming. Is there a way to set up the displays correctly when the notebook is in the docking station? Os can I write a shell script that sets the displays correctly?

share|improve this question
add comment

2 Answers 2

In my "Displays" menu (12.04) there is a checkbox "Mirror displays". If you uncheck it you can choose individual resolutions for each display. If you want to mirror the display both have to have the same resolution. Don't know how to get it higher. Hope this helps.

share|improve this answer
1  
I do know how to set the displays to the correct resolution. My problem is that it does not stay that way after rebooting. –  queueoverflow Jun 14 '12 at 15:44
    
Ah, OK. Had some problems with that too but not since 11.10. Maybe you should edit your question. It sounds a little like it is impossible to set another resolution ;-) –  André Stannek Jun 15 '12 at 6:23
add comment
up vote 0 down vote accepted

Using xrandr, I managed to write a script for it.

The main part is this:

case "$1" in
    on)
        xrandr --output "$internal" --auto
        xrandr --output "$external" --auto --right-of "$internal" --primary
        ;;
    off)
        xrandr --output "$internal" --auto --primary
        xrandr --output "$external" --off
        ;;
esac
share|improve this answer
add comment

Your Answer

 
discard

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.