Wacom Bamboo Pen & Touch on Gentoo Linux (part 2)

 x0r   0
linux gentoo wacom x11

As promised, I'll give you a little follow-up on the custom scripts I've written to make my Wacom tablet work on Gentoo.

The biggest issue I had was pretty much anything with respect to aspect ratio. For instance, I have a ThinkPad with a 1024×768 screen, but the tablet is designed for 16:10 screens.

Checking for correct aspect ratio

The test is simple: grab a coin, fire up GIMP and trace the coin. If you don't get a circle, that means the aspect ratio of the tablet is off, and therefore your drawings will be stretched.

Fixing aspect ratio

Two commands are enough:

xsetwacom set "Wacom Bamboo 16FG 4x5 Pen stylus" "Area" "0 0 12266 9200"
xsetwacom set "Wacom Bamboo 16FG 4x5 Pen eraser" "Area" "0 0 12266 9200"

This will set the active area of the tablet. Its active area is 14720×9200 units, so you can "clip off" a little bit of the tablet's active area in order to preserve your aspect ratio. For more info, this page has some more useful resources.

The big picture

Here's the contents of my ~/myscripts/wacom_init.sh (which I run manually when I hotplug my Wacom tablet):

#!/bin/sh

# Wacom settings: eraser and pen aspect ratio and softer pressure curve
xsetwacom set "Wacom Bamboo 16FG 4x5 Pen stylus" "Area" "0 0 12266 9200"
xsetwacom set "Wacom Bamboo 16FG 4x5 Pen eraser" "Area" "0 0 12266 9200"
xsetwacom set "Wacom Bamboo 16FG 4x5 Pen stylus" "PressureCurve" "0 50 50 100"
xsetwacom set "Wacom Bamboo 16FG 4x5 Pen eraser" "PressureCurve" "0 50 50 100"

# Wacom keys
xsetwacom set "Wacom Bamboo 16FG 4x5 Finger pad" Button 9 "key shift key plus"
xsetwacom set "Wacom Bamboo 16FG 4x5 Finger pad" Button 8 "key shift key minus"

Have fun!

Commentaires

Poster un commentaire

Poster un commentaire