Manage multiple monitors on Lenovo Thinkpads with Ubuntu

I’ve got a Lenovo laptop that I use for work, and it works great with the dock attached to dual monitors, except that there’s no easy way to switch between monitor profiles. So I threw together a pair of scripts to save and load monitor settings.

Docked Lenovo laptop

Docked Lenovo laptop

If you’re looking for a Lenovo laptop, Amazon.com has pretty decent prices on them.

The scripts require disper to work:

sudo gedit /etc/apt/sources.list

add the following lines

deb http://ppa.launchpad.net/wvengen/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/wvengen/ppa/ubuntu intrepid main

Save and exit the file

Update the source list using the following command

sudo apt-get update

Install disper using the following command:

sudo apt-get install disper

You can get the scripts from github:
git clone git@github.com:learntechblog/Lenovo-Monitor-Scripts.git

The scripts will probably work on other laptops as well, although I’ve only tested them with Lenovo laptops.

  1. I have a very similar situation with dual monitors when docked.

    What kind of video card does your Thinkpad have? Does this script + Disper work with the ATI proprietary drivers?

    How do you trigger the script? Fn-F7?

    Thanks in advance!
    David

    • admin
    • June 20th, 2011

    I no longer have the thinkpad (so i can’t cofirm what video card it was), but I can tell you that I didn’t do anything fancy with the video drivers. I do think I had the proprietary drivers enabled, although I’m not 100% sure.

    The scripts need to be run from a terminal. To save your settings, you would enter “./save-settings.sh MySavedConfigName”. That saves all the settings in a folder called MySavedConfigName. To load them, you would enter “./load-settings.sh MySavedConfigName”.

  1. No trackbacks yet.