From owner-freebsd-usb@FreeBSD.ORG Mon Jan 9 23:46:55 2012 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E9B91065678 for ; Mon, 9 Jan 2012 23:46:55 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id E668F8FC12 for ; Mon, 9 Jan 2012 23:46:54 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 23B8B7300A; Tue, 10 Jan 2012 00:48:02 +0100 (CET) Date: Tue, 10 Jan 2012 00:48:02 +0100 From: Luigi Rizzo To: usb@freebsd.org Message-ID: <20120109234802.GA82361@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: wacom and x11 and webcamd X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2012 23:46:55 -0000 i recently decided to check how well the wacom tablets are supported under FreeBSD-x11. This post is mostly a followup to http://lists.freebsd.org/pipermail/freebsd-usb/2011-October/010681.html and tries to give extra information on how to address common problems. In short, recent webcamd versions implement a linux module which makes the tablet available as /dev/input/event0 so you don't need any specific usb driver. In turn, xorg uses the wacom_drv.so module to access these events and convert them to a suitable format. I used the webcamd version from Hans' tree svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b/trunk/ports which is currently at version 3.2.0.1 , and the inputwacom patches at http://people.freebsd.org/~nox/tmp/inputwacom.patch The patch applies cleanly; at build time you should leave the usb support not selected (because uwacom does not compile and probably it is not necessary, either). I also left HAL disabled in building inputwacom, following a comment in the original post. Before running /usr/local/etc/rc.d/wacom onesetup remember to set wacom_porttype="usb" # lowercase, not uppercase) wacom_types="stylus eraser" in /etc/rc.conf and also replace "/dev/event0" with "/dev/input/event0" in /usr/local/etc/rc.d/wacom so that the correct entries are created in xorg.conf The proper sequence of actions is the following: - connect the tablet to the USB port (I tried a recent Bamboo touch and an old Wacom FT-0405 (Volito); both worked). The tablet identifies as a USB mouse and a uhid device. The mouse is possibly picked up by moused, so you should either kill moused on the tablet, or make sure that it is not recognised, or the events from the mouse will interfere with those from wacom_drv - start webcamd (either manually or automatically) . This creates /dev/input/event0 which is accessed by wacom_drv - start the X server. The tablet should be recognised and work in absolute coordinates. I found that by default the table is way too sensitive to pressure, so just approaching the tablet with the pen triggers a button pressure. You can set the threshold with the following user command (within X): xsetwacom --set stylus threshold 200 # range is 0..2047 I think you can also set the value from within xorg.conf Hope this helps... cheers luigi