Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
  • Builtin LCD should be 1440x900
  • External LCD should be 1920x1080

If Lenovo ThinkPad X200s is inserted into docking station the option mirror screen is always activated leading to a resolution of 1152x864 which looks terrible on the built-in and external LCD screen.

My manual configuration for docking mode (separate screens with maximum resolution) should be respected, but "Make Default" button has no consequences.

share|improve this question

closed as too localized by desgua, jrg Feb 24 '12 at 1:14

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

2 Answers

This is not a real solution but I have noticed that (atleast for my x61s) Ubuntu respects monitor configurations correctly if you dock your ThinkPad while it is suspended and resume after that.

I hadn't even noticed this bug before as I suspend so often.

share|improve this answer

As you pointed out:

This is a workaround for this bug:

/etc/udev/rules.d/99-vga.rules:

SUBSYSTEM=="drm", ACTION=="change", RUN+="/usr/local/sbin/vga_changed.sh"

/usr/local/sbin/vga_changed.sh:

#!/bin/bash
dmode="$(cat /sys/class/drm/card0-VGA-1/status)"

export DISPLAY=:0.0

if [ "${dmode}" = disconnected ]; then
    /usr/bin/sudo -u kiu /usr/bin/xrandr --output LVDS1 --mode 1440x900 --pos 0x0 --output VGA1 --off
elif [ "${dmode}" = connected ]; then
    /usr/bin/sudo -u kiu /usr/bin/xrandr --output LVDS1 --mode 1440x900 --pos 0x0 --output VGA1 --auto --mode 1920x1080 --right-of LVDS1
fi
share|improve this answer

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