Ubuntu and the X220T Touch Screen

I have a thinkpad laptop with a touchscreen and a swivel so it can fold up and pretend to be an oversized tablet. I like it a lot, but the touch screen interface hasn’t been all that useful since I normally use this machine docked and then it maps the whole of one screen as a touch interface across my multiple monitors as a desktop space!

I recently sorted this out, so I thought I’d share the scripts that worked for me on Saucy Salamander Ubuntu 13.10 with Unity.

First, work out which device you actually want:


$ xsetwacom --list
Wacom Bamboo stylus id: 11 type: STYLUS
Wacom ISDv4 E6 Pen stylus id: 13 type: STYLUS
Wacom ISDv4 E6 Finger touch id: 14 type: TOUCH
Wacom Bamboo eraser id: 19 type: ERASER
Wacom Bamboo cursor id: 20 type: CURSOR
Wacom Bamboo pad id: 21 type: PAD
Wacom ISDv4 E6 Pen eraser id: 22 type: ERASER

Then, use xsetwacom to get the right touch input relating to the correct screen, even with multiple monitors:


$ xsetwacom set "Wacom ISDv4 E6 Finger touch" MapToOutput LVDS1

At this point I should point out that my touch screen is incorrectly configured and therefore needs the script above running every time I plug or unplug an external display. Since I dock my machine, move it almost daily, and regularly present … that’s kinda irritating. Any solutions on improving that are welcome.

3 thoughts on “Ubuntu and the X220T Touch Screen

  1. I’ve not actually used it myself, but udev can be used to run scripts when particular devices are plugged in, so you may be able to configure it to spot your external display being plugged in.

  2. This might be something you can fix with udev?

    A brief google for “udev run script on device connect” shows this link: http://askubuntu.com/questions/121304/start-script-when-connecting-phone-through-usb

    Obviously, I’ve not done it, but it does look like a good starting point. The next time we bump into each other (i might be at PHPNW next week, but I’m not 100% sure), I’ll see what I can do, or failing that, I can try going through some stuff with you over IRC?

Leave a Reply

Please use [code] and [/code] around any source code you wish to share.

This site uses Akismet to reduce spam. Learn how your comment data is processed.