Ubuntu and the X220T Touch Screen
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.
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.
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?
I’m late to the party by about a year, but I thought I could chime in in case you still haven’t figured something else out or if someone else comes across this by googling.
Look into the “thinkpad-scripts” at http://thinkpad-scripts.readthedocs.org/en/latest/index.html
they provide a dock and undock script that you could utilize to apply your workaround every time you dock and undock.