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.

1 Answer 1

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
3
  • Wouldn't it be neat if there was a script to be executed at wake-up... (just hinting at it, because I don't have the time to write it myself :P)
    – MadMike
    Oct 15, 2013 at 5:34
  • @MadMike I add a resume script as requested ;)
    – uocnb
    Oct 15, 2013 at 7:40
  • 1
    i opend also a bugreport @ launchpad: bugs.launchpad.net/ubuntu/+bug/1239813 can you click, that this also affects you? Thanks anyway!
    – cebor
    Oct 15, 2013 at 12:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .