--- wacom-tools-0.7.2.orig/linuxwacom/configure +++ wacom-tools-0.7.2/linuxwacom/configure @@ -19260,11 +19260,11 @@ WCM_ARCH=`uname -m` echo "$as_me:$LINENO: result: $WCM_ARCH" >&5 echo "${ECHO_T}$WCM_ARCH" >&6 -WCM_XLIBDIR_DEFAULT=/usr/X11R6/lib +WCM_XLIBDIR_DEFAULT=/usr/lib WCM_OPTION_XSERVER64=no IS64=`echo $WCM_ARCH | grep -c "64"` if test $IS64 != 0; then - WCM_XLIBDIR_DEFAULT=/usr/X11R6/lib64 + WCM_XLIBDIR_DEFAULT=/usr/lib64 WCM_OPTION_XSERVER64=yes fi WCM_XORGSDK_DEFAULT=$WCM_XLIBDIR_DEFAULT/Server @@ -19548,7 +19548,7 @@ if test -n "$WCM_XORGSDK"; then echo "$as_me:$LINENO: checking for valid Xorg SDK" >&5 echo $ECHO_N "checking for valid Xorg SDK... $ECHO_C" >&6 - if test -f $WCM_XORGSDK/include/xf86Version.h; then + if test -f $WCM_XORGSDK/xf86Version.h; then WCM_ENV_XORGSDK=yes echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6 --- wacom-tools-0.7.2.orig/linuxwacom/acinclude.m4 +++ wacom-tools-0.7.2/linuxwacom/acinclude.m4 @@ -220,7 +220,7 @@ if test -n "$WCM_XORGSDK"; then AC_MSG_CHECKING(for valid Xorg SDK) - if test -f $WCM_XORGSDK/include/xf86Version.h; then + if test -f $WCM_XORGSDK/xf86Version.h; then WCM_ENV_XORGSDK=yes AC_MSG_RESULT(ok) elif test -f $WCM_XORGSDK/xc/include/xf86Version.h; then --- wacom-tools-0.7.2.orig/linuxwacom/src/xsetwacom.c +++ wacom-tools-0.7.2/linuxwacom/src/xsetwacom.c @@ -193,6 +193,14 @@ XWACOM_PARAM_TPCBUTTON, VALUE_OPTIONAL, RANGE, 0, 1, BOOLEAN_VALUE, 1 }, + { "Rotate", + "Sets the rotation of the tablet. " + "Values = NONE, CW, CCW (default is NONE).", + XWACOM_PARAM_ROTATE, VALUE_OPTIONAL, + RANGE, XWACOM_VALUE_ROTATE_NONE, + XWACOM_VALUE_ROTATE_CCW, SINGLE_VALUE, + XWACOM_VALUE_ROTATE_NONE }, + { "FileModel", "Writes tablet models to /etc/wacom.dat", XWACOM_PARAM_FILEMODEL, VALUE_OPTIONAL }, @@ -406,6 +414,15 @@ !strcasecmp(pszValues[i],"false") || !strcasecmp(pszValues[i],"relative"))) nValues[i] = 0; + else if ((p->nParamID == XWACOM_PARAM_ROTATE) && + (!strcasecmp(pszValues[i],"none"))) + nValues[i] = XWACOM_VALUE_ROTATE_NONE; + else if ((p->nParamID == XWACOM_PARAM_ROTATE) && + (!strcasecmp(pszValues[i],"cw"))) + nValues[i] = XWACOM_VALUE_ROTATE_CW; + else if ((p->nParamID == XWACOM_PARAM_ROTATE) && + (!strcasecmp(pszValues[i],"ccw"))) + nValues[i] = XWACOM_VALUE_ROTATE_CCW; else { fprintf(stderr,"Set: Value '%s' is " --- wacom-tools-0.7.2.orig/linuxwacom/src/Xwacom.h +++ wacom-tools-0.7.2/linuxwacom/src/Xwacom.h @@ -44,5 +44,10 @@ #define XWACOM_PARAM_GIMP 102 #define XWACOM_PARAM_MMT 103 #define XWACOM_PARAM_TPCBUTTON 104 +#define XWACOM_PARAM_ROTATE 105 + +#define XWACOM_VALUE_ROTATE_NONE 0 +#define XWACOM_VALUE_ROTATE_CW 1 +#define XWACOM_VALUE_ROTATE_CCW 2 #endif /* __XF86_XWACOM_H */ --- wacom-tools-0.7.2.orig/linuxwacom/src/xf86Wacom.c +++ wacom-tools-0.7.2/linuxwacom/src/xf86Wacom.c @@ -664,6 +664,8 @@ { WacomDevicePtr priv = (WacomDevicePtr)local->private; char st[32]; + int temp; + int oldRotation; switch (param) { @@ -825,6 +827,51 @@ xf86ReplaceStrOption(local->options, "TPCButton", "off"); } break; + case XWACOM_PARAM_ROTATE: + if (value == ROTATE_NONE) { + xf86ReplaceStrOption(local->options, "Rotate", "NONE"); + } else if (value == ROTATE_CW) { + xf86ReplaceStrOption(local->options, "Rotate", "CW"); + } else if (value == ROTATE_CCW) { + xf86ReplaceStrOption(local->options, "Rotate", "CCW"); + } else { + return BadValue; + } + oldRotation = priv->common->wcmRotate; + priv->common->wcmRotate = value; + + /* Rotate tablet range */ + if ((oldRotation == ROTATE_NONE && + (value == ROTATE_CW || value == ROTATE_CCW)) || + ((oldRotation == ROTATE_CW || oldRotation == ROTATE_CCW) && + value == ROTATE_NONE)) + { + temp = priv->common->wcmMaxX; + priv->common->wcmMaxX = priv->common->wcmMaxY; + priv->common->wcmMaxY = temp; + + temp = priv->topX; + priv->topX = priv->topY; + priv->topY = temp; + + temp = priv->bottomX; + priv->bottomX = priv->bottomY; + priv->bottomY = temp; + + InitValuatorAxisStruct(local->dev, 0, 0, priv->common->wcmMaxX, + mils(priv->common->wcmResolX), + 0, mils(priv->common->wcmResolX)); + + InitValuatorAxisStruct(local->dev, 1, 0, priv->common->wcmMaxY, + mils(priv->common->wcmResolY), + 0, mils(priv->common->wcmResolY)); + } + + DBG(10, ErrorF("rotated %s: rotate=%d, maxX=%d, maxY=%d\n", + local->name, priv->common->wcmRotate, + priv->common->wcmMaxX, priv->common->wcmMaxY)); + + break; default: DBG(10, ErrorF("xf86WcmSetParam invalid param %d\n",param)); return BadMatch; --- wacom-tools-0.7.2.orig/linuxwacom/src/xf86Wacom.h +++ wacom-tools-0.7.2/linuxwacom/src/xf86Wacom.h @@ -414,9 +414,9 @@ #define DEVICE_ISDV4 0x000C -#define ROTATE_NONE 0 -#define ROTATE_CW 1 -#define ROTATE_CCW 2 +#define ROTATE_NONE XWACOM_VALUE_ROTATE_NONE +#define ROTATE_CW XWACOM_VALUE_ROTATE_CW +#define ROTATE_CCW XWACOM_VALUE_ROTATE_CCW #define MAX_CHANNELS 2 #define MAX_USB_EVENTS 32 --- wacom-tools-0.7.2.orig/linuxwacom/src/wcmISDV4.c +++ wacom-tools-0.7.2/linuxwacom/src/wcmISDV4.c @@ -198,7 +198,7 @@ { WacomDeviceState* last = &common->wcmChannel[0].valid.state; WacomDeviceState* ds; - int n, cur_type; + int n, cur_type, side = 0; if ((n = xf86WcmSerialValidate(common,data)) > 0) { @@ -207,7 +207,7 @@ else { /* Coordinate data bit check */ - if (data[0] & 0x40) + if (data[0] & 0x40 && data[1] == 0) return common->wcmPktLength; } /* pick up where we left off, minus relative values */ @@ -215,6 +215,7 @@ RESET_RELATIVE(*ds); ds->proximity = (data[0] & 0x20); + side = (data[0] & 0x40); /* x and y in "normal" orientetion (wide length is X) */ ds->x = (((int)data[6] & 0x60) >> 5) | ((int)data[2] << 2) | @@ -226,7 +227,13 @@ ds->pressure = (((data[6] & 0x07) << 7) | data[5] ); /* buttons */ - ds->buttons = (data[0] & 0x07); + if (side) { + ds->buttons = 1 << (data[1] + 0x7); + ds->proximity = 1; + ds->x = -1; + ds->y = -1; + } else + ds->buttons = (data[0] & 0x07); /* check which device we have */ cur_type = (ds->buttons & 4) ? ERASER_ID : STYLUS_ID; --- wacom-tools-0.7.2.orig/linuxwacom/src/Makefile.in +++ wacom-tools-0.7.2/linuxwacom/src/Makefile.in @@ -303,7 +303,7 @@ @WCM_ENV_XF86_TRUE@ -I$(XF86_DIR) \ @WCM_ENV_XF86_TRUE@ -I$(XF86_DIR)/exports/include -@WCM_ENV_XORGSDK_TRUE@DRIVER_INCLUDES = -I$(XORGSDK_DIR)/include +@WCM_ENV_XORGSDK_TRUE@DRIVER_INCLUDES = -I$(XORGSDK_DIR) -I$(XORGSDK_DIR)/../X11/ NO_MERGE_CONSTANTS = @WCM_NO_MERGE_CONSTANTS@ LINUX_INPUT = @WCM_LINUX_INPUT@ @WCM_DLLOADER_TRUE@DLLOADER = -fPIC @@ -788,7 +788,7 @@ -o $@ -c $(subst .o,.c,$@) @WCM_DLLOADER_TRUE@wacom_drv.so: $(XF86OBJS) -@WCM_DLLOADER_TRUE@ $(CC) -shared -nostdlib -o wacom_drv.so $(XF86OBJS) -Bstatic -lgcc +@WCM_DLLOADER_TRUE@ $(CC) -shared -o wacom_drv.so $(XF86OBJS) @WCM_DLLOADER_FALSE@wacom_drv.o: $(XF86OBJS) @WCM_DLLOADER_FALSE@ $(LD) -r $(XF86OBJS) -o wacom_drv.o # Tell versions [3.59,3.63) of GNU make to not export all variables. --- wacom-tools-0.7.2.orig/linuxwacom/src/wcmCommon.c +++ wacom-tools-0.7.2/linuxwacom/src/wcmCommon.c @@ -41,6 +41,7 @@ ****************************************************************************/ static void transPressureCurve(WacomDevicePtr pDev, WacomDeviceStatePtr pState); +static void transRotate(WacomDevicePtr pDev, WacomDeviceStatePtr pState); static void commonDispatchDevice(WacomCommonPtr common, unsigned int channel, const WacomChannelPtr pChannel); static void resetSampleCounter(const WacomChannelPtr pChannel); @@ -210,7 +211,7 @@ /* Tablet PC buttons. */ if ( common->wcmTPCButton && !IsCursor(priv) && !IsPad(priv) && !IsEraser(priv) ) { - if ( buttons & 1 ) + if ( buttons & 1 || buttons >=100) { if ( !(priv->flags & TPCBUTTONS_FLAG) ) { @@ -419,20 +420,6 @@ x, y, z, is_button ? "true" : "false", buttons, tx, ty, wheel, rot, throttle)); - /* rotation mixes x and y up a bit */ - if (common->wcmRotate == ROTATE_CW) - { - tmp_coord = x; - x = y; - y = common->wcmMaxY - tmp_coord; - } - else if (common->wcmRotate == ROTATE_CCW) - { - tmp_coord = y; - y = x; - x = common->wcmMaxX - tmp_coord; - } - is_absolute = (priv->flags & ABSOLUTE_FLAG); is_core_pointer = xf86IsCorePointer(local->dev); @@ -565,7 +552,7 @@ } /* don't move the cursor if it only supports buttons */ - if( !(priv->flags & BUTTONS_ONLY_FLAG) ) + if( !(priv->flags & BUTTONS_ONLY_FLAG) && rx != -1) { xf86PostMotionEvent(local->dev, is_absolute, 0, 6, rx, ry, rz, v3, v4, v5); @@ -870,23 +857,6 @@ DBG(10, ErrorF("commonDispatchEvents\n")); - if (!ds->device_type) - { - /* defaults to cursor if tool is on the tablet when X starts */ - ds->device_type = CURSOR_ID; - ds->proximity = 1; - if (ds->serial_num) - for (idx=0; idxwcmNumDevices; idx++) - { - priv = common->wcmDevices[idx]->private; - if (ds->serial_num == priv->serial) - { - ds->device_type = DEVICE_ID(priv->flags); - break; - } - } - } - /* Find the device the current events are meant for */ for (idx=0; idxwcmNumDevices; idx++) { @@ -930,6 +900,8 @@ /* User-requested transformations come last */ + transRotate(priv, &filtered); + #if 0 /* not quite ready for prime-time; @@ -1123,3 +1095,21 @@ FILTER_PRESSURE_RES; } } + +static void transRotate(WacomDevicePtr pDev, WacomDeviceStatePtr pState) +{ + int temp; + + if (pDev->common->wcmRotate == ROTATE_CW) + { + temp = pState->x; + pState->x = pState->y; + pState->y = pDev->common->wcmMaxY - temp; + } + else if (pDev->common->wcmRotate == ROTATE_CCW) + { + temp = pState->y; + pState->y = pState->x; + pState->x = pDev->common->wcmMaxX - temp; + } +} --- wacom-tools-0.7.2.orig/debian/po/POTFILES.in +++ wacom-tools-0.7.2/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] wacom-kernel-source.templates +[type: gettext/rfc822deb] wacom.po-templates --- wacom-tools-0.7.2.orig/debian/po/fr.po +++ wacom-tools-0.7.2/debian/po/fr.po @@ -0,0 +1,286 @@ +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# Developers do not need to manually edit POT or PO files. +# +# +msgid "" +msgstr "" +"Project-Id-Version: wacom-tools 0.6.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-11-05 06:22+1030\n" +"PO-Revision-Date: 2004-11-15 15:07+0100\n" +"Last-Translator: Jean-Luc Coulon (f5ibh) \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:4 +msgid "Would you like the wacom modules to be compiled automatically?" +msgstr "Les modules wacom doivent-ils être compilés automatiquement ?" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:4 +msgid "" +"In order to make full use of a wacom graphics tablet you need to compile and " +"install the provided modules to suit your running Linux kernel." +msgstr "" +"Pour pouvoir utiliser toutes les possibilités de votre tablette graphique " +"Wacom, vous devez compiler et installer les modules correspondant à votre " +"version du noyau Linux." + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:4 +msgid "" +"Alternatively, you might prefer to build it manually. The source to do this " +"can be found in /usr/src/modules/wacom. You may use a tool like make-kpkg" +"(1) or `fakeroot debian/rules kdist [ KSRC=... KVERS=... ]` to create a " +"Debian package as above, or you can simply `configure && make` and install " +"it by hand." +msgstr "" +"Vous pouvez cependant préférer les compiler vous-même. La manière de " +"procéder est décrite dans /usr/src/modules/wacom. Vous pouvez utiliser un " +"outil tel que make-kpkg (1) ou « fakeroot debian/rules kdist [ KSRC=... " +"KVERS=...·] » pour créer un paquet Debian comme ci-dessus. Vous pouvez aussi " +"utiliser « configure && make » et les installer vous-même." + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:27 +msgid "Would you like to create a binary wacom-kernel-modules package now?" +msgstr "Voulez-vous créer un paquet binaire wacom-kernel-modules maintenant ?" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:27 +msgid "" +"If you opt to do this, the wacom modules will be compiled into a Debian " +"binary package using a local kernel configuration which you will be required " +"to specify. You must have either a kernel-headers-* package installed to " +"suit the kernel you wish to use it with, or have a suitably configured " +"kernel source tree available. If you do not currently have either of these " +"available you should choose not to do this at present. Once you have " +"suitable headers installed you can return to this selection with:" +msgstr "" +"Si vous choisissez cette option, un paquet Debian des modules wacom sera " +"construit en utilisant une configuration locale du noyau de linux que vous " +"devrez indiquer. Le paquet kernel-headers-* correspondant au noyau que vous " +"utilisez doit être installé sur votre machine ou une arborescence des " +"sources du noyau déjà configurée. Une fois les en-têtes requis installés, " +"vous pouvez revenir à cette sélection par :" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:27 +msgid "dpkg-reconfigure wacom-kernel-source" +msgstr "dpkg-reconfigure wacom-kernel-source" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:27 +msgid "" +"Note this package may replace some modules that were originally built with " +"your running kernel. You should ensure the original modules can be replaced " +"in the event of trouble before installing the resulting package. Also if " +"you have already built a wacom-kernel-modules package in this way using the " +"same kernel version then that package may be overwritten. You should rename " +"or relocate it before continuing if you wish to preserve it." +msgstr "" +"Veuillez noter que ce paquet va remplacer certains modules qui ont été " +"construits initialement avec votre noyau actuel. Vous devez vous assurer que " +"les modules d'origine peuvent êtres restaurés si vous rencontrez des " +"problèmes en installant le paquet résultant. Vous pouvez les renommer ou les " +"déplacer si vous désirez les conserver." + +#. Type: string +#. Description +#: ../wacom-kernel-source.templates:48 +msgid "What is the location of your Linux headers?" +msgstr "Emplacement des en-têtes du noyau Linux :" + +#. Type: string +#. Description +#: ../wacom-kernel-source.templates:48 +msgid "" +"You have choosen to compile the wacom modules, so you must specify the " +"location of the Linux kernel headers for them to use." +msgstr "" +"Vous avez choisi de compiler les modules wacom, vous devez donc préciser " +"l'emplacement où se trouvent les en-têtes du noyau Linux de façon à pouvoir " +"les utiliser." + +#. Type: string +#. Description +#: ../wacom-kernel-source.templates:48 +msgid "" +"When Linux headers are provided by a kernel-headers-* package, they reside " +"in /usr/src/kernel-headers-*." +msgstr "" +"Lorsque les en-têtes du noyau Linux sont fournis par le paquet kernel-" +"headers-*, ils se trouvent dans /usr/src/kernel-headers-*." + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:58 +msgid "Do you wish to specify a different Linux headers directory?" +msgstr "" +"Voulez-vous indiquer un autre répertoire pour les en-têtes du noyau Linux ?" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:58 +msgid "The directory you have provided is not a valid Linux headers location." +msgstr "" +"Le répertoire que vous avez indiqué n'est pas un emplacement valable pour " +"les en-têtes du noyau Linux." + +#. Type: note +#. Description +#: ../wacom-kernel-source.templates:63 +msgid "What to do after module compilation." +msgstr "Opérations à effectuer après la compilation des modules" + +#. Type: note +#. Description +#: ../wacom-kernel-source.templates:63 +msgid "" +"The wacom-kernel-modules package will be built in /usr/src/modules. You will " +"have to install it yourself after it is created and can do so from that " +"directory using:" +msgstr "" +"Le paquet wacom-kernel-modules sera construit dans /usr/src/modules. Vous " +"devrez l'installer vous-même après sa création. Vous pourrez le faire depuis " +"cet emplacement par la commande :" + +#. Type: note +#. Description +#: ../wacom-kernel-source.templates:63 +msgid "dpkg -i wacom-kernel-module-.deb" +msgstr "dpkg -i·wacom-kernel-module-.deb" + +#. Type: note +#. Description +#: ../wacom-kernel-source.templates:63 +msgid "" +"Unfortunately that cannot be done automatically at this stage because dpkg " +"is not able to be called recursively." +msgstr "" +"Cela ne peut malheureusement pas être effectué automatiquement à ce niveau " +"car dpkg ne peut pas être appelé récursivement." + +#. Type: note +#. Description +#: ../wacom-kernel-source.templates:63 +msgid "" +"Once the module package is installed, you probably won't need the wacom-" +"kernel-source package anymore unless you plan to update your kernel again " +"later. In that case you can safely purge it completely with 'dpkg -P wacom-" +"kernel-source'. Otherwise, you will be able to rebuild the wacom-kernel-" +"modules package in this manner at any time with `dpkg-reconfigure wacom-" +"kernel-source`. You will be prompted once again for the location of the " +"kernel headers to use." +msgstr "" +"Une fois le paquet des modules installé, vous n'aurez sans doute plus besoin " +"du paquet wacom-kernel-source à moins que vous prévoyiez de mettre à jour " +"votre noyau plus tard. Vous pouvez donc purger complètement ce paquet sans " +"risque avec la commande « dpkg -P wacom-kernel-source ». Sinon, vous pourrez " +"reconstruire à n'importe quel moment le paquet wacom-kernel-modules avec la " +"commande « dpkg-reconfigure·wacom-kernel-source ». Il vous sera alors " +"demandé de nouveau l'emplacement des en-têtes du noyau à utiliser." + +#. Type: note +#. Description +#: ../wacom-kernel-source.templates:63 +msgid "" +"If you update the wacom-kernel-source package at some later time (or remove " +"it without purging, then reinstall) the answers you have given here will be " +"used to repeat this process and create a new module package for you to " +"install." +msgstr "" +"Si vous faites plus tard la mise à niveau du paquet wacom-kernel-source (ou " +"si vous le supprimez sans le purger et que vous le réinstalliez), les " +"réponses que vous avez données seront utilisées pour répéter le processus et " +"créer un nouveau paquet de modules prêt à être installé." + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:88 +msgid "Do you want watch the module compilation progress?" +msgstr "Faut-il afficher les messages de construction du paquet ?" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:88 +msgid "" +"The process of building a binary package may produce quite a lot of output. " +"Seeing this output may be useful if you have problems with it building, or " +"annoying if you don't want the extra noise." +msgstr "" +"Le processus de construction d'un paquet binaire peut afficher de nombreux " +"messages. Les visualiser peut être utile si vous rencontrez des problèmes " +"lors de sa construction ou être gênant si vous ne désirez pas davantage de " +"bruit." + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:96 +msgid "Do you want to delete the wacom-kernel-modules packages?" +msgstr "Faut-il effacer les paquets wacom-kernel-modules ?" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:96 +msgid "" +"There are binary wacom-kernel-modules packages left in /usr/src(/modules) " +"that were generated from this package. Once you have manually installed them " +"you don't need those packages anymore, though you may like to keep them for " +"backup or re-installation purposes." +msgstr "" +"Des paquets binaires wacom-kernel-modules créés à partir de ce paquet " +"subsistent dans /usr/src(/modules). Une fois que vous les avez installés, " +"vous n'en n'avez plus besoin ; vous pouvez cependant vouloir les conserver à " +"titre de sauvegarde ou dans le but de les réinstaller." + +#. Type: note +#. Description +#: ../wacom.po-templates:3 +msgid "The wacom module must be loaded before the HID module." +msgstr "Le module wacom doit être chargé avant le module hid" + +#. Type: note +#. Description +#: ../wacom.po-templates:3 +msgid "" +"If the wacom driver is not loaded before the normal Linux HID driver then " +"the HID will have already claimed the device as a generic mouse and the " +"wacom driver will be ignored. This package may also replace some modules " +"out of your running kernel. It is typically not safe for this installer to " +"automatically unload the HID module and insert the wacom driver beneath it, " +"nor to automatically remove any of the other affected modules. If you wish " +"to install the wacom module without rebooting the machine you will need to " +"shut down all processes that use the HID module and its dependents and " +"unload them manually before installing the wacom module. The simplest thing " +"to do is reboot the machine at some convenient opportunity after the package " +"install is complete and let the new modules configuration determine the " +"proper loading order." +msgstr "" +"Si le pilote wacom n'est pas chargé avant le pilote hid normal de Linux, le " +"module hid aura déjà réservé le périphérique comme souris générique et le " +"pilote wacom sera ignoré. Ce paquet peut aussi remplacer d'autres modules de " +"votre noyau actuel. Laisser cet installeur décharger le module hid et " +"charger le module wacom ensuite n'est pas sûr. Il n'est également pas sûr de " +"décharger automatiquement l'un des autres modules concernés. Si vous voulez " +"charger le module wacom sans redémarrer le système, vous devrez arrêter tous " +"les processus qui utilisent le module hid et ceux qui en dépendent. Il est " +"bien plus simple de redémarrer le système et de laisser la nouvelle " +"configuration des modules définir le meilleur ordre de chargement." --- wacom-tools-0.7.2.orig/debian/po/templates.pot +++ wacom-tools-0.7.2/debian/po/templates.pot @@ -0,0 +1,228 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-11-05 06:22+1030\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:4 +msgid "Would you like the wacom modules to be compiled automatically?" +msgstr "" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:4 +msgid "" +"In order to make full use of a wacom graphics tablet you need to compile and " +"install the provided modules to suit your running Linux kernel." +msgstr "" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:4 +msgid "" +"Alternatively, you might prefer to build it manually. The source to do this " +"can be found in /usr/src/modules/wacom. You may use a tool like make-kpkg" +"(1) or `fakeroot debian/rules kdist [ KSRC=... KVERS=... ]` to create a " +"Debian package as above, or you can simply `configure && make` and install " +"it by hand." +msgstr "" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:27 +msgid "Would you like to create a binary wacom-kernel-modules package now?" +msgstr "" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:27 +msgid "" +"If you opt to do this, the wacom modules will be compiled into a Debian " +"binary package using a local kernel configuration which you will be required " +"to specify. You must have either a kernel-headers-* package installed to " +"suit the kernel you wish to use it with, or have a suitably configured " +"kernel source tree available. If you do not currently have either of these " +"available you should choose not to do this at present. Once you have " +"suitable headers installed you can return to this selection with:" +msgstr "" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:27 +msgid "dpkg-reconfigure wacom-kernel-source" +msgstr "" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:27 +msgid "" +"Note this package may replace some modules that were originally built with " +"your running kernel. You should ensure the original modules can be replaced " +"in the event of trouble before installing the resulting package. Also if " +"you have already built a wacom-kernel-modules package in this way using the " +"same kernel version then that package may be overwritten. You should rename " +"or relocate it before continuing if you wish to preserve it." +msgstr "" + +#. Type: string +#. Description +#: ../wacom-kernel-source.templates:48 +msgid "What is the location of your Linux headers?" +msgstr "" + +#. Type: string +#. Description +#: ../wacom-kernel-source.templates:48 +msgid "" +"You have choosen to compile the wacom modules, so you must specify the " +"location of the Linux kernel headers for them to use." +msgstr "" + +#. Type: string +#. Description +#: ../wacom-kernel-source.templates:48 +msgid "" +"When Linux headers are provided by a kernel-headers-* package, they reside " +"in /usr/src/kernel-headers-*." +msgstr "" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:58 +msgid "Do you wish to specify a different Linux headers directory?" +msgstr "" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:58 +msgid "The directory you have provided is not a valid Linux headers location." +msgstr "" + +#. Type: note +#. Description +#: ../wacom-kernel-source.templates:63 +msgid "What to do after module compilation." +msgstr "" + +#. Type: note +#. Description +#: ../wacom-kernel-source.templates:63 +msgid "" +"The wacom-kernel-modules package will be built in /usr/src/modules. You will " +"have to install it yourself after it is created and can do so from that " +"directory using:" +msgstr "" + +#. Type: note +#. Description +#: ../wacom-kernel-source.templates:63 +msgid "dpkg -i wacom-kernel-module-.deb" +msgstr "" + +#. Type: note +#. Description +#: ../wacom-kernel-source.templates:63 +msgid "" +"Unfortunately that cannot be done automatically at this stage because dpkg " +"is not able to be called recursively." +msgstr "" + +#. Type: note +#. Description +#: ../wacom-kernel-source.templates:63 +msgid "" +"Once the module package is installed, you probably won't need the wacom-" +"kernel-source package anymore unless you plan to update your kernel again " +"later. In that case you can safely purge it completely with 'dpkg -P wacom-" +"kernel-source'. Otherwise, you will be able to rebuild the wacom-kernel-" +"modules package in this manner at any time with `dpkg-reconfigure wacom-" +"kernel-source`. You will be prompted once again for the location of the " +"kernel headers to use." +msgstr "" + +#. Type: note +#. Description +#: ../wacom-kernel-source.templates:63 +msgid "" +"If you update the wacom-kernel-source package at some later time (or remove " +"it without purging, then reinstall) the answers you have given here will be " +"used to repeat this process and create a new module package for you to " +"install." +msgstr "" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:88 +msgid "Do you want watch the module compilation progress?" +msgstr "" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:88 +msgid "" +"The process of building a binary package may produce quite a lot of output. " +"Seeing this output may be useful if you have problems with it building, or " +"annoying if you don't want the extra noise." +msgstr "" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:96 +msgid "Do you want to delete the wacom-kernel-modules packages?" +msgstr "" + +#. Type: boolean +#. Description +#: ../wacom-kernel-source.templates:96 +msgid "" +"There are binary wacom-kernel-modules packages left in /usr/src(/modules) " +"that were generated from this package. Once you have manually installed them " +"you don't need those packages anymore, though you may like to keep them for " +"backup or re-installation purposes." +msgstr "" + +#. Type: note +#. Description +#: ../wacom.po-templates:3 +msgid "The wacom module must be loaded before the HID module." +msgstr "" + +#. Type: note +#. Description +#: ../wacom.po-templates:3 +msgid "" +"If the wacom driver is not loaded before the normal Linux HID driver then " +"the HID will have already claimed the device as a generic mouse and the " +"wacom driver will be ignored. This package may also replace some modules " +"out of your running kernel. It is typically not safe for this installer to " +"automatically unload the HID module and insert the wacom driver beneath it, " +"nor to automatically remove any of the other affected modules. If you wish " +"to install the wacom module without rebooting the machine you will need to " +"shut down all processes that use the HID module and its dependents and " +"unload them manually before installing the wacom module. The simplest thing " +"to do is reboot the machine at some convenient opportunity after the package " +"install is complete and let the new modules configuration determine the " +"proper loading order." +msgstr "" --- wacom-tools-0.7.2.orig/debian/65-wacom.rules +++ wacom-tools-0.7.2/debian/65-wacom.rules @@ -0,0 +1,4 @@ +# udev rule for wacom tablets. + +KERNEL=="event[0-9]*", SYSFS{idVendor}=="056a", SYMLINK+="input/wacom" + --- wacom-tools-0.7.2.orig/debian/rules +++ wacom-tools-0.7.2/debian/rules @@ -0,0 +1,402 @@ +#!/usr/bin/make -f +# Derived from: +# Sample debian/rules that uses debhelper, +# GNU copyright 1997 by Joey Hess. +# Copyright Ron Lee 2003, 2004. + +#export DH_VERBOSE=1 + +# Must be exported or the dh_* scripts will never see it. +export DH_OPTIONS + +# Do this here instead of in a compat file so we don't need two of them, +# one for the main source package and one for the module binary package. +export DH_COMPAT=4 + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + + +lw_tools = linuxwacom +objdir_lw = $(lw_tools)/builddir + + +### KERNEL SETUP +### Setup things needed for making kernel module packages, +### adapted from /usr/share/kernel-package/sample.module.rules + +# KSRC is the location of the kernel source. This is the default value, +# when make-kpkg is used it will supply to real value +KSRC = /usr/src/linux +# KDREV is the package-revision, as given to make-kpkg by the user. +# Just put a simply default value in here which we use when we test +# the packagebuilding without make-kpkg +ifeq ($(strip $(KDREV)),) +KDREV = "test1.0" +endif + +## Now to determine the kernel version, normally supplied by make-kpkg +ifeq ($(strip $(KVERS)),) +# Now we need to get the kernel-version somehow (we are not running +# under make-kpkg?) +ifeq ($(strip $(KSRC)),) +$(error Error. I do not know how to determine the kernel version) +else +kversion := $(shell egrep '^VERSION +=' $(KSRC)/Makefile 2>/dev/null | \ + sed -e 's/[^0-9]*\([0-9]*\)/\1/') +kplevel := $(shell egrep '^PATCHLEVEL +=' $(KSRC)/Makefile 2>/dev/null | \ + sed -e 's/[^0-9]*\([0-9]*\)/\1/') +ksublevel := $(shell egrep '^SUBLEVEL +=' $(KSRC)/Makefile 2>/dev/null | \ + sed -e 's/[^0-9]*\([0-9]*\)/\1/') +EXTRA_VERSION := $(shell egrep '^EXTRAVERSION +=' $(KSRC)/Makefile 2>/dev/null | \ + sed -e 's/EXTRAVERSION[\t ]*=[\t ]*\(.*\)/\1/') +kextra := $(strip $(EXTRA_VERSION)) +HAVE_NEW_MODLIB := $(shell egrep '\(INSTALL_MOD_PATH\)' \ + $(KSRC)/Makefile 2>/dev/null ) + +# If you want to have more than one kernel configuration per kernel +# version, set FLAVOUR in the top level kernel Makefile *before* +# invoking make-kpkg -- it will be appended to UTS_RELEASE in +# version.h (separated by a hyphen). This affects everything -- the +# names and versions of the image, source, headers, and doc packages, +# and where the modules are searched for in /lib/modules. + +ifdef FLAVOUR +# uhm - should check if we really have a Makefile capable of Flavours? +endif + +FLAVOUR := $(shell grep ^FLAVOUR $(KSRC)/Makefile 2>/dev/null | \ + perl -ple 's/FLAVOUR[\s:=]+//g') + +ifneq ($(strip $(FLAVOUR)),) +INT_FLAV := -$(FLAVOUR) +FLAV_ARG := FLAVOUR=$(FLAVOUR) +else +INT_FLAV := +FLAV_ARG := +endif + +## This is the replacement for FLAVOUR +ifneq ($(strip $(APPEND_TO_VERSION)),) +iatv := $(strip $(APPEND_TO_VERSION)) +EXTRAV_ARG := EXTRAVERSION=${EXTRA_VERSION}${iatv} +else +iatv := +EXTRAV_ARG := +endif + +KVERS = $(kversion).$(kplevel).$(ksublevel)$(kextra)$(iatv)$(INT_FLAV) + +endif +endif + +non_epoch_version = $(shell echo $(KVERS) | perl -pe 's/^\d+://') +epoch = $(shell echo $(KVERS) | perl -ne 'm/^(\d+:)/ && print $$1') + +# We also need the package version +pversion = $(shell sed -ne '1s/.*(\(.*\)).*/\1/p' debian/changelog) + +# MODDIR is the place where the final .deb package should be made. This is the +# default value, when make-kpkg is used it will supply to real value +MODDIR = .. + +pmodules = wacom-kernel-modules-$(non_epoch_version) +psource = wacom-kernel-source + +# Prepares the package for distribution. Intended for the kernel +# maintainer. +kdist: kdist_clean kdist_configure kdist_image + +# The kdist_configure target is called by make-kpkg modules_config. It +# should configure the module so it is ready for compilation (mostly +# useful for calling configure) +kdist_configure: + ./configure --disable-libwacomxi \ + --disable-wacomdrv \ + --disable-libwacomcfg \ + --disable-wacdump \ + --disable-xidump \ + --disable-xsetwacom \ + --enable-wacom \ + --with-kernel=$(KSRC) + + +# the kdist_image target is called by make-kpkg modules_image. It is +# responsible for compiling the module and creating the package. It +# should also clean up after making the module. Please note we use a +# seperate binary-modules target to make testing the package building +# easier +kdist_image: + $(MAKE) $(MFLAGS) -f debian/rules binary-modules + $(MAKE) $(MFLAGS) -f debian/rules kdist_clean + +# the kdist_clean target is called by make-kpkg modules_clean. It is +# responsible for cleaning up any changes that have been made by the +# other kdist_commands (except for the .deb files created). +kdist_clean: clean-common + dh_testdir + dh_testroot + + -$(MAKE) clean; + rm -f debian/$(pmodules).* debian/control + + +debian/control: + sed -e 's/$${kpkg\:Kernel\-Version}/$(non_epoch_version)/' \ + debian/wacom.control > debian/control + + +# the binary-modules target prepares the $(pmodules) package. +# It is called by make-kpkg and *not* during a normal build +binary-modules: DH_OPTIONS=-p$(pmodules) +binary-modules: debian/control + # Is this needed for setting up a Depends? + #echo "kpkg:Package-Version=$(epoch)$(pversion)+$(non_epoch_version)" \ + # >> debian/$(package).substvars + echo "kpkg:Kernel-Version=$(non_epoch_version)" > \ + debian/$(pmodules).substvars + + # The substvars mechanism seems slightly broken, hack to get around it + # stolen from the qce-ga package. + # We do this above instead so control exists when the clean targets + # are run. + #sed -e 's/$${kpkg\:Kernel\-Version}/$(non_epoch_version)/' \ + #debian/cpad.control > debian/control + + # Make sure we've had a chance to get a control file before doing this: + dh_testdir + dh_testroot + dh_clean -k + + # Set up per package control files with suitable names + for f in modules modprobe templates; do \ + cp -a debian/wacom.$$f debian/$(pmodules).$$f; \ + done + for f in postinst config; do \ + echo "#!/bin/sh" | cat - debian/wacom.$$f > debian/$(pmodules).$$f; \ + done + + # Build the modules + $(MAKE) + + # It's hard to be sure where the modules are with the upstream + # build system, so 'install' them in a temp dir for the moment. + + mkdir -p temp + find src/2.4.* -name "*.o" -exec cp {} temp \; + find src/2.6.* -name "*.ko" -exec cp {} temp \; + + # Install the modules + if [ -e temp/wacom.o ]; then \ + dh_install temp/wacom.o \ + lib/modules/$(non_epoch_version)/kernel/drivers/usb; \ + else \ + dh_install temp/wacom.ko \ + lib/modules/$(non_epoch_version)/kernel/drivers/usb/input; \ + dh_installdirs etc/modprobe-before-usbhid.d/wacom; \ + fi + $(RM) -r temp + + # XXX We still need this for 2.4 + #dh_installmodules + + dh_installdebconf + dh_installchangelogs + dh_installdocs + dh_compress + dh_fixperms + + dh_installdeb + #dh_gencontrol -- -v$(epoch)$(pversion)+$(non_epoch_version)+$(KDREV) + dh_gencontrol -- -v$(epoch)$(pversion) + dh_md5sums + #dh_builddeb --destdir=$(KSRC)/.. + dh_builddeb --destdir=$(MODDIR) + +### end KERNEL SETUP + + +config-arch: config-arch-stamp +config-arch-stamp: + dh_testdir + mkdir -p $(objdir_lw) + cd $(objdir_lw) && \ + ../configure --prefix=/usr \ + --disable-libwacomxi \ + --enable-wacomdrv \ + --enable-dlloader \ + --with-xlib=/usr/lib/xorg/ \ + --with-xorg-sdk=/usr/include/xorg/ + touch $@ + + +build-arch: config-arch build-arch-stamp +build-arch-stamp: + dh_testdir + # copy src + for i in xf86Wacom.c Xwacom.h xf86Wacom.h wcmFilter.h wcmSerial.c wcmSerial.h wcmUSB.c wcmISDV4.c wcmCommon.c wcmCompat.c wcmConfig.c wcmFilter.c; do \ + cp $(lw_tools)/src/$$i $(objdir_lw)/src/$$i; \ + done + + cd $(objdir_lw) && $(MAKE) + touch $@ + +build-indep: build-indep-stamp +build-indep-stamp: + dh_testdir + + # Add here command to compile/build the arch indep package. + # It's ok not to do anything here, if you don't need to build + # anything for this package. + #/usr/bin/docbook-to-man debian/cpad.sgml > cpad.1 + + po2debconf debian/wacom.po-templates > debian/wacom.templates + + touch $@ + +build: build-indep build-arch + +clean: clean-common + dh_testdir + dh_testroot + #-cd $(objdir_lw) && $(MAKE) clean + $(RM) -r $(objdir_lw) + + # Ensure po files are up to date for the source package. + debconf-updatepo + +clean-common: debian/control + dh_testdir + dh_testroot + rm -f *-stamp + dh_clean + + +install: build install-indep install-arch + +install-arch: DH_OPTIONS=-pwacom-tools +install-arch: + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + cd $(objdir_lw) && $(MAKE) install DESTDIR=$(shell pwd)/debian/wacom-tools + + # Remove these for the moment, they belong in + # a -dev package but nothing needs it yet. + $(RM) -r debian/wacom-tools/usr/include + $(RM) -r debian/wacom-tools/usr/lib/libwacomcfg.{a,la,so} + + # Remove this because it shouldn't have even been created, + # given the way we are configured. + $(RM) -r debian/wacom-tools/usr/X11R6 + + # FIXME: work around this file being not _exactly_ html... + # dh_installdirs usr/share/doc/wacom-tools + # cp linuxwacom/docs/docs.html debian/wacom-tools/usr/share/doc/wacom-tools/wacom-doc.txt + + dh_installman debian/wacom-tools.1 + dh_link usr/share/man/man1/wacom-tools.1 usr/share/man/man1/wacdump.1 \ + usr/share/man/man1/wacom-tools.1 usr/share/man/man1/xidump.1 \ + usr/share/man/man1/wacom-tools.1 usr/share/man/man1/xsetwacom.1 + + dh_install debian/65-wacom.rules etc/udev/rules.d + + install -d debian/xserver-xorg-input-wacom/usr/lib/xorg/modules/input/ + mv debian/wacom-tools/usr/lib/xorg/modules/input/wacom_drv.so debian/xserver-xorg-input-wacom/usr/lib/xorg/modules/input/wacom_drv.so + rm -rf debian/wacom-tools/usr/lib/xorg/ + +install-indep: install-source + +install-source: DH_OPTIONS=-p$(psource) +install-source: + dh_testdir + dh_testroot + dh_clean -k + + # Copy the driver source + dh_install -Xbuilddir $(lw_tools)/* usr/src/modules/wacom + + # Copy the needed debian/ pieces + dh_install debian/rules \ + debian/changelog \ + debian/copyright \ + debian/wacom.config \ + debian/wacom.control \ + debian/wacom.modprobe \ + debian/wacom.modules \ + debian/wacom.postinst \ + debian/wacom.templates \ + usr/src/modules/wacom/debian + + # Copy the userspace code as an example. + #dh_installexamples cpad_05/user/* + #dh_installexamples cpad_05/README + + dh_installdebconf + + +# Build architecture-independent files here. +# Pass -i to all debhelper commands in this target to reduce clutter. +binary-indep: build-indep install-indep + dh_testdir -i + dh_testroot -i +# dh_installdebconf -i + dh_installdocs -i +# dh_installexamples -i +# dh_installmenu -i +# dh_installinit -i +# dh_installman -i + dh_installchangelogs -i +# dh_link -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i +# dh_perl -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: build-arch install-arch + dh_testdir -a + dh_testroot -a +# dh_installdebconf -a + dh_installdocs -a + dh_installexamples -a + dh_installmenu -a + dh_installinit -a -- start 10 2 3 4 5 . + dh_installcron -a +# dh_installman -a + dh_installinfo -a +# dh_undocumented -a + dh_installchangelogs -a + dh_strip -a + dh_link -a + dh_compress -a + dh_fixperms -a + dh_makeshlibs -a + dh_installdeb -a +# dh_perl -a + dh_shlibdeps -a -L wacom-tools -l debian/wacom-tools/usr/lib + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +# No binary arch for this one. +binary: binary-indep binary-arch + +.PHONY: build clean clean-common binary-indep binary-arch binary \ + install install-source binary-modules \ + kdist kdist_configure kdist_image kdist_clean + --- wacom-tools-0.7.2.orig/debian/wacom.postinst +++ wacom-tools-0.7.2/debian/wacom.postinst @@ -0,0 +1,23 @@ +# postinst script for cpad-kernel-module +# No hashbang here to prevent bitching about this template file. +# We add it later once the real name of this file is resolved. + +set -e + +# Show the notes about creating a new device file and +# module ordering if we haven't already done so. +. /usr/share/debconf/confmodule + +# FIXME will dh do the above for us if we don't interfere? +# we may not need a postinst for anything else now... + +rm -f /etc/udev/rules.d/10-wacom.rules +rm -f /etc/hotplug.d/input/wacom.hotplug +rmdir /etc/hotplug.d/input 2>/dev/null +rmdir /etc/hotplug.d 2>/dev/null + +#DEBHELPER# + +exit 0 + + --- wacom-tools-0.7.2.orig/debian/wacom-tools.init.d +++ wacom-tools-0.7.2/debian/wacom-tools.init.d @@ -0,0 +1,28 @@ +#!/bin/bash + +. /lib/lsb/init-functions + +if [ ! -d /sys/bus/pnp/devices ]; then exit; fi + +cd /sys/bus/pnp/devices + +case $1 in + start|restart|reload|force-reload) + log_begin_msg "Doing Wacom setup..." + for x in *; do + PORT=unknown; + for y in `cat $x/id`; do + case "$y" in + WACf006*|WACf005*|WACf004*) + PORT=/dev/`echo $x/tty:* | awk -F: '{print $3}'` + ln -sf $PORT /dev/wacom + ;; + esac + done + done + log_end_msg 0; + ;; + stop) + exit 0; + ;; +esac --- wacom-tools-0.7.2.orig/debian/changelog +++ wacom-tools-0.7.2/debian/changelog @@ -0,0 +1,209 @@ +wacom-tools (1:0.7.2-0ubuntu5) dapper; urgency=low + + * Drop the hotplug.d script as it's never run anyway. + * Rename the udev rule to 65-wacom.rules and generally fix. + + -- Scott James Remnant Thu, 20 Apr 2006 12:45:44 +0100 + +wacom-tools (1:0.7.2-0ubuntu4) dapper; urgency=low + + * Fix rotation support + + -- Matthew Garrett Sun, 9 Apr 2006 17:31:03 +0100 + +wacom-tools (1:0.7.2-0ubuntu3) dapper; urgency=low + + * Further init script fixups - should now be happy on machines without PNP + * Add support for the side buttons on tablet PCs (tested on HP TC1105, + should work elsewhere) + + -- Matthew Garrett Sun, 9 Apr 2006 16:22:57 +0100 + +wacom-tools (1:0.7.2-0ubuntu2) dapper; urgency=low + + * Fix up the init script + + -- Matthew Garrett Thu, 6 Apr 2006 00:41:06 +0100 + +wacom-tools (1:0.7.2-0ubuntu1) dapper; urgency=low + + * New upstream version. Exception granted by Colin Watson. + + * Build xserver-xorg-driver-wacom. + (Closes Ubuntu: #4773, #28846) + + * Bump epoch to make xserver-xorg-driver-wacom newer than the one in breezy. + + -- Fabio M. Di Nitto Fri, 31 Mar 2006 11:47:06 +0200 + +wacom-tools (0.6.6-8ubuntu6) breezy; urgency=low + + * Fix rotation support + + -- Matthew Garrett Thu, 29 Sep 2005 14:29:16 +0100 + +wacom-tools (0.6.6-8ubuntu5) breezy; urgency=low + + * Add support for on-the-fly rotation to xsetwacom (#16336) + + -- Matthew Garrett Thu, 29 Sep 2005 02:13:56 +0100 + +wacom-tools (0.6.6-8ubuntu4) breezy; urgency=low + + * Add a new PnP ID (HP tc4200 uses WACf006) + + -- Matthew Garrett Sun, 25 Sep 2005 12:52:23 +0100 + +wacom-tools (0.6.6-8ubuntu3) breezy; urgency=low + + * Ensure that setup is done before X starts + + -- Matthew Garrett Wed, 21 Sep 2005 18:12:47 +0100 + +wacom-tools (0.6.6-8ubuntu2) breezy; urgency=low + + * Add PnP autoconfiguration for serial Wacom devices + + -- Matthew Garrett Wed, 21 Sep 2005 17:24:28 +0100 + +wacom-tools (0.6.6-8ubuntu1) breezy; urgency=low + + * fix missing build-depends for xorg transition. Closes: #14606 + + -- LaMont Jones Sat, 3 Sep 2005 11:14:58 -0600 + +wacom-tools (0.6.6-8) unstable; urgency=low + + * The promised new upstream is still in limbo, so in the + meantime, s/kdist_config/kdist_configure/ + Closes: #296168, #314739 + * Look for the docs in the correct source location when + installing them to the binary package. Closes: #300579 + * And don't pretend they are html. That is just far too + surprising for popular taste. + + -- Ron Lee Sun, 19 Jun 2005 00:37:25 +0930 + +wacom-tools (0.6.6-7) unstable; urgency=low + + * Restore build-dep on libx11-dev, despite reports to the + contrary libxt-dev alone is evidently not sufficient. + Closes: #294960 + + -- Ron Lee Sun, 13 Feb 2005 10:52:07 +1030 + +wacom-tools (0.6.6-6) unstable; urgency=low + + * Punt device snatching out to userspace via sysfs, it's the only + way to be sure at present. This is an(other) experimental + implementation before the core kernel api is decided and only + available for kernel 2.6.10 and later at this stage. + * Add a udev rule to create /dev/input/wacom* for each + wacom tablet device plugged in to the system. Its a conffile + so you can hard code your own device id's there if you want + constant names that don't depend on the number of wacom devices + you have and the order you plug them in. + * Add a hotplug script to poke the module device snatching code. + * Typo fix in 2.6.7/wacom.c Closes: #294642 thanks. + * Patch missing functions into 2.6.8/wacom.c, I have a report + that this works for people who really need it. Closes: #287941 + * Add debhelper build-dep to the module package. Closes: #290721 + * Add libx11 build-dep too until this is fixed properly upstream, + and a dep on build-essential Closes: #288238 thanks. + * Does not close #286111, nor can I reproduce it still. + + -- Ron Lee Sat, 12 Feb 2005 16:27:21 +1030 + +wacom-tools (0.6.6-5) unstable; urgency=low + + * First crack at the device snatching patch. + + -- Ron Lee Tue, 11 Jan 2005 18:00:40 +1030 + +wacom-tools (0.6.6-4) unstable; urgency=low + + * Removed evdev patch since what it attempts to do is + already handled in the kernel for cases where it might + reliably work. + + Removed usbhid patch since we can get in before it + without needing to manually maintain a list of 'quirks'. + + Removed mousedev and usbmouse patches, since the former + is now built into 2.6 kernels anyway and cannot easily + be replaced on the fly, and since this is simply the wrong + approach to fixing the problem of dynamic device naming + for generic devices IMO, it just hides it for some people + until they buy another device. + + This and tested support for kernel 2.6, Closes: #281230 + and more... + + * Explicitly point configure at the kernel source. Closes: #285206 + + * Update the other libtool goop as well to fix FTBFS + on mips and mipsel. Closes: #285213 + + * (ab)use a shared 'confdir' (and worse) to restore something like + the functionality needed by wacom.modutils for wacom.modprobe + until we can fix the kernel. Don't try this at home kids, it is + surely not best practice in any of the domains it kludges through. + Though its as legal as falling asleep sober at the wheel ... + + -- Ron Lee Fri, 10 Dec 2004 16:12:07 +1030 + +wacom-tools (0.6.6-3) unstable; urgency=low + + * Updated to build with 2.6.10-rc2. + + -- Ron Lee Fri, 3 Dec 2004 23:58:50 +1030 + +wacom-tools (0.6.6-2) unstable; urgency=low + + * Updated patch for kernel 2.4.28 + + -- Ron Lee Fri, 3 Dec 2004 03:24:16 +1030 + +wacom-tools (0.6.6-1) unstable; urgency=low + + * New upstream release incorporating submitted fixes, + thanks Ping! + * Add missing build depends, Closes: #281451 + thanks Andreas Jochens. + * Included fr.po debconf template translation, Closes: #282768 + thanks Jean-Luc Coulon (f5ibh) and the debian-l10n-french ml. + * Use DESTDIR instead of (ab)using prefix as it is supported here. + Closes: #283037 + + -- Ron Lee Thu, 2 Dec 2004 19:09:05 +1030 + +wacom-tools (0.6.5-2) unstable; urgency=low + + * This package builds arch any utils too, add suitable build depends. + Closes: #281126 Thanks lamont. + + -- Ron Lee Sun, 14 Nov 2004 20:54:13 +1030 + +wacom-tools (0.6.5-1) unstable; urgency=low + + * New linuxwacom beta release. + * Improves support for Intuos3 and more recent 2.6 branch kernels. + (but still only tested with 2.4.27, see below) + + -- Ron Lee Sun, 7 Nov 2004 01:32:34 +1030 + +wacom-tools (0.6.4-1) unstable; urgency=low + + * Initial trivial packaging. Note this has only been tested with 2.4.27. + * Provides the basics from the linuxwacom project -- test and config tools, + and kernel modules in a convenient form for users of kernel packages. + It does not provide an updated X11 module, hopefully any important parts + of that will be ultimately be included by the X maintainers once I look + at what they might accept. + * Updated config.{guess,sub}. + * Modify the version detection to handle a non-numeric suffix + from --append_to_version or flavour. + * Closes: #279555 + + -- Ron Lee Thu, 4 Nov 2003 16:06:55 -0800 + --- wacom-tools-0.7.2.orig/debian/control +++ wacom-tools-0.7.2/debian/control @@ -0,0 +1,36 @@ +Source: wacom-tools +Section: graphics +Priority: optional +Maintainer: Ron Lee +Build-Depends: debhelper (>= 4.1.16), po-debconf, libxt-dev, libncurses5-dev, x11proto-input-dev, libxi-dev, xserver-xorg-dev, xserver-xorg-core +Build-Depends-Indep: debhelper (>= 4.1.16), po-debconf +Standards-Version: 3.6.1.1 + +Package: wacom-kernel-source +Section: devel +Architecture: all +Depends: build-essential, debhelper (>= 4.1.16), libx11-dev, ${misc:Depends} +Description: source for the wacom binary modules + This package provides the source code for the wacom kernel and X11 modules. + You will need a kernel headers package or properly configured source for + your running kernel to create the binary module package. + +Package: wacom-tools +Section: utils +Architecture: any +Depends: ${shlibs:Depends}, setserial +Description: utilities for wacom tablets and other hid devices + This package provides utilities to test and configure wacom graphics tablets. + You will need kernel modules built from the wacom-kernel-source package to + use them with such devices. It also provides hotplug and udev scripts which + may be useful without these tools and (later) with the wacom support in the + mainline kernel packages as well (2.6.11 or later). + +Package: xserver-xorg-input-wacom +Architecture: any +Depends: ${shlibs:Depends}, xserver-xorg-core (>= 1:0.99.0-1) +Provides: xserver-xorg-input +Replaces: xserver-xorg (<< 6.8.2-35) +Description: X.Org X server -- Wacom input driver + This driver for the X.Org X server provides support for Wacom UD, PenPartner, + Cintiq, Volito, Intuos and Graphire graphics tablets, as well as the TabletPC. --- wacom-tools-0.7.2.orig/debian/NEWS.Debian +++ wacom-tools-0.7.2/debian/NEWS.Debian @@ -0,0 +1,17 @@ +wacom-tools (0.6.6-6) unstable; urgency=low + + The end of the event* madness is near. The first wacom device + plugged in may now always be referred to as /dev/input/wacom. + Additional devices will in theory be enumerated, I don't have + them so I can't vouch for the quality of that particular theory + at this stage. + + Full hotplug support is still lacking in the X drivers, you would + be well advised to restart X at this stage if you need to plug or + unplug the tablet. On the upside, users of kernel 2.6.10 and + later should not need to reboot or monkey about with module + loading order anymore, we can safely repossess the device from + more generic drivers now. + + -- Ron Lee Sat, 12 Feb 2005 16:27:21 +1030 + --- wacom-tools-0.7.2.orig/debian/README.Debian +++ wacom-tools-0.7.2/debian/README.Debian @@ -0,0 +1,23 @@ +wacom tools for Debian +---------------------- + +This package is an attempt to organise the tools and binary modules required +to use the Wacom family of graphics tablets and related devices under Debian. + +NOTE: This package should be considered HIGHLY experimental. I am neither a +kernel guru nor a lawyer, think about that. Installing the module into your +kernel and/or poking at it once it is in may do TERRIBLE THINGS to your +system. It probably won't, but that is not my guarantee to make, so be +careful with important data. Like that still needs repeating. + +The wacom-tools package contains some simple utilities useful for testing +and configuring devices and the wacom-kernel-source package can create the +necessary kernel modules for your running kernel. The remaining patches, +to wacom_drv.o for X11, can hopefully be merged into the Debian and/or +mainline X11 source. + +Update: xfree86 4.3.0.dfsg.1-9 has integrated the upstream linuxwacom + patches up to 0.6.4. This should be sufficient for almost + everybody except intuos3 users who want support for the aux pads. + + -- Ron , Thu, 4 Nov 2004 16:06:55 -0800 --- wacom-tools-0.7.2.orig/debian/copyright +++ wacom-tools-0.7.2/debian/copyright @@ -0,0 +1,10 @@ +This package was created by Ron Lee on +Thu, 4 Nov 2004 16:06:55 -0800. + +Parts of it were downloaded from http://linuxwacom.sf.net + +Copyright: GPL + +A copy of the GPL can be found in /usr/share/common-licenses on +Debian systems. + --- wacom-tools-0.7.2.orig/debian/wacom-kernel-source.config +++ wacom-tools-0.7.2/debian/wacom-kernel-source.config @@ -0,0 +1,40 @@ +#!/bin/sh +set -e +. /usr/share/debconf/confmodule + +export keep_asking=true +export want_to_build=false + +if [ "$1" = "reconfigure" ]; then + db_input medium wacom-kernel-source/recompile || true + db_go + db_get wacom-kernel-source/recompile + keep_asking=$RET +fi + +while [ $keep_asking = true ] && \ + ( [ "$1" = "reconfigure" ] || \ + ( db_input medium wacom-kernel-source/module && \ + db_go && db_get wacom-kernel-source/module && \ + [ "$RET" = "true" ] ) ); +do + db_input medium wacom-kernel-source/kernel || true + db_go + db_get wacom-kernel-source/kernel + if [ ! -r $RET/include/linux/version.h ]; then + db_input medium wacom-kernel-source/wrong_kernel || true + db_go + db_get wacom-kernel-source/wrong_kernel + keep_asking=$RET + else + keep_asking=false + want_to_build=true + fi +done + +if [ $want_to_build = "true" ]; then + db_input low wacom-kernel-source/verbose || true + db_input high wacom-kernel-source/module_location || true + db_go +fi + --- wacom-tools-0.7.2.orig/debian/wacom-kernel-source.postinst +++ wacom-tools-0.7.2/debian/wacom-kernel-source.postinst @@ -0,0 +1,88 @@ +#! /bin/sh +# postinst script for wacom-kernel-source +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/share/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +# Load the debconf libs +. /usr/share/debconf/confmodule + +kernel=`uname -s` + +case "$1" in + + configure|reconfigure) + + if [ "$1" = "configure" ] && \ + [ "$DEBCONF_RECONFIGURE" != "1" ] && \ + db_get wacom-kernel-source/module && \ + [ "$RET" = "true" ] \ + || [ "$1" = "reconfigure" ] || \ + [ "$DEBCONF_RECONFIGURE" = "1" ] && \ + db_get wacom-kernel-source/recompile && \ + [ "$RET" = "true" ]; + then + + db_get wacom-kernel-source/kernel + ksrc=$RET + if [ -d $ksrc/include ]; then + + kvers="`head -n 1 $ksrc/include/linux/version.h | cut -c 22- | rev | cut -c 2- | rev`" + [ $kvers = `uname -r` ] || echo "Warning: kernel headers don't match running $kernel version." + + echo -n "Building wacom modules for $kernel $kvers (this may take a few minutes)..." + + db_get wacom-kernel-source/verbose + VERBOSE=$RET + if $VERBOSE; then + echo + cd /usr/src/modules/wacom + debian/rules kdist KVERS=$kvers KSRC=$ksrc; + else + cd /usr/src/modules/wacom + debian/rules kdist KVERS=$kvers KSRC=$ksrc >/dev/null 2>/dev/null + echo "Done." + fi + + else + echo "Error: kernel headers not found in '$ksrc'" + fi + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- wacom-tools-0.7.2.orig/debian/wacom-kernel-source.postrm +++ wacom-tools-0.7.2/debian/wacom-kernel-source.postrm @@ -0,0 +1,58 @@ +#! /bin/sh +# postrm script for wacom-kernel-source +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see /usr/share/doc/packaging-manual/ + +# Load the debconf libs +. /usr/share/debconf/confmodule + + +case "$1" in + purge|remove) + + rm -rf /usr/src/modules/wacom + + if [ -f /usr/src/wacom-kernel-modules-*.deb ] || + [ -f /usr/src/modules/wacom-kernel-modules-*.deb ] + then + db_input medium wacom-kernel-source/erase || true + db_go; + fi + + db_get wacom-kernel-source/erase + if [ $RET = "true" ]; then + rm -f /usr/src/wacom-kernel-modules-*.deb + rm -f /usr/src/modules/wacom-kernel-modules-*.deb + fi + + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 0 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + + --- wacom-tools-0.7.2.orig/debian/wacom-kernel-source.templates +++ wacom-tools-0.7.2/debian/wacom-kernel-source.templates @@ -0,0 +1,100 @@ +Template: wacom-kernel-source/module +Type: boolean +Default: true +_Description: Would you like the wacom modules to be compiled automatically? + In order to make full use of a wacom graphics tablet you need to compile and + install the provided modules to suit your running Linux kernel. + . + If you opt to do this, the wacom modules will be compiled into a Debian binary + package using a local kernel configuration which you will be required to + specify. You must have either a kernel-headers-* package installed to suit + the kernel you wish to use it with, or have a suitably configured kernel + source tree available. If you do not currently have either of these available + you should choose not to do this at present. Once you have suitable headers + installed you can return to this selection with: + . + dpkg-reconfigure wacom-kernel-source + . + Alternatively, you might prefer to build it manually. The source to do this + can be found in /usr/src/modules/wacom. You may use a tool like make-kpkg(1) + or `fakeroot debian/rules kdist [ KSRC=... KVERS=... ]` to create + a Debian package as above, or you can simply `configure && make` and install + it by hand. + +Template: wacom-kernel-source/recompile +Type: boolean +Default: true +_Description: Would you like to create a binary wacom-kernel-modules package now? + If you opt to do this, the wacom modules will be compiled into a Debian binary + package using a local kernel configuration which you will be required to + specify. You must have either a kernel-headers-* package installed to suit + the kernel you wish to use it with, or have a suitably configured kernel + source tree available. If you do not currently have either of these available + you should choose not to do this at present. Once you have suitable headers + installed you can return to this selection with: + . + dpkg-reconfigure wacom-kernel-source + . + Note this package may replace some modules that were originally built with + your running kernel. You should ensure the original modules can be replaced + in the event of trouble before installing the resulting package. Also if you + have already built a wacom-kernel-modules package in this way using the same + kernel version then that package may be overwritten. You should rename or + relocate it before continuing if you wish to preserve it. + +Template: wacom-kernel-source/kernel +Type: string +Default: /usr/src/linux/ +_Description: What is the location of your Linux headers? + You have choosen to compile the wacom modules, so you must specify the location + of the Linux kernel headers for them to use. + . + When Linux headers are provided by a kernel-headers-* package, they reside in + /usr/src/kernel-headers-*. + +Template: wacom-kernel-source/wrong_kernel +Type: boolean +Default: false +_Description: Do you wish to specify a different Linux headers directory? + The directory you have provided is not a valid Linux headers location. + +Template: wacom-kernel-source/module_location +Type: note +_Description: What to do after module compilation. + The wacom-kernel-modules package will be built in /usr/src/modules. You will + have to install it yourself after it is created and can do so from that + directory using: + . + dpkg -i wacom-kernel-module-.deb + . + Unfortunately that cannot be done automatically at this stage because dpkg + is not able to be called recursively. + . + Once the module package is installed, you probably won't need the + wacom-kernel-source package anymore unless you plan to update your kernel + again later. In that case you can safely purge it completely with 'dpkg -P + wacom-kernel-source'. Otherwise, you will be able to rebuild the + wacom-kernel-modules package in this manner at any time with `dpkg-reconfigure + wacom-kernel-source`. You will be prompted once again for the location of the + kernel headers to use. + . + If you update the wacom-kernel-source package at some later time (or remove it + without purging, then reinstall) the answers you have given here will be used + to repeat this process and create a new module package for you to install. + +Template: wacom-kernel-source/verbose +Type: boolean +Default: false +_Description: Do you want watch the module compilation progress? + The process of building a binary package may produce quite a lot of output. + Seeing this output may be useful if you have problems with it building, + or annoying if you don't want the extra noise. + +Template: wacom-kernel-source/erase +Type: boolean +Default: false +_Description: Do you want to delete the wacom-kernel-modules packages? + There are binary wacom-kernel-modules packages left in /usr/src(/modules) that + were generated from this package. Once you have manually installed them you + don't need those packages anymore, though you may like to keep them for backup + or re-installation purposes. --- wacom-tools-0.7.2.orig/debian/wacom-tools.1 +++ wacom-tools-0.7.2/debian/wacom-tools.1 @@ -0,0 +1,18 @@ +.TH wacom\-tools 1 "5 Nov 2004" "Debian GNU/Linux" "Debian" +.SH NAME +wacdump \- HID event monitor. +.br +xidump \- XInput event monitor. +.br +xsetwacom \- wacom input device configuration. +.br + +.SH DESCRIPTION +The upstream documentation for these tools is available in +/usr/share/doc/wacom-tools + +.SH COPYRIGHT +This manpage was written by Ron Lee for the Debian GNU/Linux +distribution. It may be freely distributed by anyone insane enough to find it +useful. + --- wacom-tools-0.7.2.orig/debian/wacom.config +++ wacom-tools-0.7.2/debian/wacom.config @@ -0,0 +1,10 @@ +# config script for wacom-kernel-modules +# No hashbang here to prevent bitching about this template file. +# We add it later once the real name of this file is resolved. + +set -e +. /usr/share/debconf/confmodule + +db_input high wacom-kernel-modules/moduleorder || true +db_go + --- wacom-tools-0.7.2.orig/debian/wacom.control +++ wacom-tools-0.7.2/debian/wacom.control @@ -0,0 +1,20 @@ +Source: wacom-tools +Section: graphics +Priority: optional +Maintainer: Ron Lee +Build-Depends: debhelper (>= 4.1.16) +Standards-Version: 3.6.1.1 + +Package: wacom-kernel-modules-${kpkg:Kernel-Version} +Architecture: any +Depends: ${misc:Depends} +Provides: wacom-kernel-modules +Replaces: kernel-image-${kpkg:Kernel-Version} +Description: wacom modules for Linux kernel-${kpkg:Kernel-Version} + This package contains loadable kernel modules for wacom graphics + tablets suitable for Linux-${kpkg:Kernel-Version} + . + It was created from the wacom-kernel-source Package to suit that + kernel. To create another package to suit a different kernel, + run `dpkg-reconfigure wacom-kernel-source` and follow the bouncing + ball. --- wacom-tools-0.7.2.orig/debian/wacom.hotplug +++ wacom-tools-0.7.2/debian/wacom.hotplug @@ -0,0 +1,33 @@ +#!/bin/sh +# hotplug agent script for wacom devices + +KERNEL=$(uname -r) +MODULE_DIR=/lib/modules/$KERNEL +USBMAP=$MODULE_DIR/modules.usbmap + +WACOM_DEVICES=$(awk '$1 == "wacom" { print $4 }' $USBMAP) +VENDOR_ID=56a + +REBIND_REQUEST=/sys/module/wacom/parameters/rebind + +case $ACTION in + add|register) + + for d in $WACOM_DEVICES; do + # convert from usbmap format to the one used for PRODUCT. + DEVICE_ID=$(printf "%x" $d) + + case $PRODUCT in + */$VENDOR_ID/$DEVICE_ID/*) + if [ -w $REBIND_REQUEST ]; then + echo 1 > $REBIND_REQUEST + fi + ;; + esac + done + ;; + + remove|unregister) + ;; +esac + --- wacom-tools-0.7.2.orig/debian/wacom.modprobe +++ wacom-tools-0.7.2/debian/wacom.modprobe @@ -0,0 +1,12 @@ + +# Crude reimplementation of add below hid foo. +# Things really need to be fixed so the modules can do it themselves +# kernel side but in the meantime packages can at least use this +# as a cooperative hack: + +install usbhid \ + for m in $(cd /etc/modprobe-before-usbhid.d && ls); \ + do /sbin/modprobe $m; \ + done; \ + /sbin/modprobe --ignore-install usbhid + --- wacom-tools-0.7.2.orig/debian/wacom.modules +++ wacom-tools-0.7.2/debian/wacom.modules @@ -0,0 +1,6 @@ +# The wacom driver must be installed before the hid module (which will +# otherwise claim the tablet first). Not sure if there is a way we +# can hijack it from within the module itself. + +add below hid wacom + --- wacom-tools-0.7.2.orig/debian/wacom.po-templates +++ wacom-tools-0.7.2/debian/wacom.po-templates @@ -0,0 +1,15 @@ +Template: wacom-kernel-modules/moduleorder +Type: note +_Description: The wacom module must be loaded before the HID module. + If the wacom driver is not loaded before the normal Linux HID driver then the + HID will have already claimed the device as a generic mouse and the wacom + driver will be ignored. This package may also replace some modules out of + your running kernel. It is typically not safe for this installer to + automatically unload the HID module and insert the wacom driver beneath it, + nor to automatically remove any of the other affected modules. + If you wish to install the wacom module without rebooting the machine you will + need to shut down all processes that use the HID module and its dependents and + unload them manually before installing the wacom module. The simplest thing to + do is reboot the machine at some convenient opportunity after the package + install is complete and let the new modules configuration determine the proper + loading order. --- wacom-tools-0.7.2.orig/debian/wacom.templates +++ wacom-tools-0.7.2/debian/wacom.templates @@ -0,0 +1,27 @@ +Template: wacom-kernel-modules/moduleorder +Type: note +Description: The wacom module must be loaded before the HID module. + If the wacom driver is not loaded before the normal Linux HID driver then the + HID will have already claimed the device as a generic mouse and the wacom + driver will be ignored. This package may also replace some modules out of + your running kernel. It is typically not safe for this installer to + automatically unload the HID module and insert the wacom driver beneath it, + nor to automatically remove any of the other affected modules. + If you wish to install the wacom module without rebooting the machine you will + need to shut down all processes that use the HID module and its dependents and + unload them manually before installing the wacom module. The simplest thing to + do is reboot the machine at some convenient opportunity after the package + install is complete and let the new modules configuration determine the proper + loading order. +Description-fr.UTF-8: Le module wacom doit être chargé avant le module hid + Si le pilote wacom n'est pas chargé avant le pilote hid normal de Linux, + le module hid aura déjà réservé le périphérique comme souris + générique et le pilote wacom sera ignoré. Ce paquet peut aussi + remplacer d'autres modules de votre noyau actuel. Laisser cet installeur + décharger le module hid et charger le module wacom ensuite n'est pas + sûr. Il n'est également pas sûr de décharger automatiquement l'un des + autres modules concernés. Si vous voulez charger le module wacom sans + redémarrer le système, vous devrez arrêter tous les processus qui + utilisent le module hid et ceux qui en dépendent. Il est bien plus simple + de redémarrer le système et de laisser la nouvelle configuration des + modules définir le meilleur ordre de chargement.