2

Hi i have a ThinkPad T430 with an external monitor plugged into docking-station via VGA.

When i close the lid and reopen it, my internal display stays black and does not get reactivated.

I'm using a fresh install of an Ubuntu Saucy daily build.

cebor
  • 185

1 Answers1

2

I have had the same problem with my Thinkpad T430. I have upgrade from Ubuntu 13.04 to 13.10.

I have solved this problem using these commands. You need to explicit set mode with --mode option, without --mode it won't work:

xrandr --output LVDS1 --mode 1600x900
xrandr --output LVDS1 --mode 1600x900 --left-of VGA1

NOTE: you should change 1600x900 to your screen resolution, to get a list of supported resolutions enter this command:

xrandr

Looks like the wake up / resume script does not explicitly set this after resume from suspend.

Simple automatic solution: create a new file named: /etc/pm/sleep.d/01_thinkpadlcd with below script:

#!/bin/sh
#copy to /etc/pm/sleep.d
LOGFILE="/var/log/sleep.log"

case "$1" in
        resume|thaw)
                echo "Resumed from suspend at `date`" >> "$LOGFILE"
                xrandr --output LVDS1 --mode 1600x900 --left-of VGA1
                echo "Thinkpad built-in monitor turned on"
                ;;
esac

Remember to set execution bit for it:

sudo chmod +x /etc/pm/sleep.d/01_thinkpadlcd
uocnb
  • 136