Comment 5 for bug 227183

Revision history for this message
Peter Antoniac (pan1nx) wrote :

If you do that, make sure that you don't have the /etc/penmount.dat file there (move it or remove it from there). If you have the file, the penmount drivers from the penmount.com will read it...

I have actually a debian package that works now. If you want it, let me know. I have one compiled.

But, if you want to make one for yourself, I suggest this:
 1. apt-get source xserver-xorg-input-penmount
 1. Move the xf86PM.c and .h from penmount.com download (version 2.0.1) into that src directory.
 1. Apply these pacthes there:
 cd xserv.../src
 add these patches:
--- src/xf86PM.c.orig 2007-08-08 13:27:08.000000000 +0300
+++ src/xf86PM.c 2008-05-19 11:28:04.000000000 +0300
@@ -58,13 +58,13 @@
 #undef BUS_ISA
 #endif

+#include <xisb.h>
 #include <misc.h>
 #include <xf86.h>
 #define NEED_XF86_TYPES
 #include <xf86_ansic.h>
 #include <xf86_OSproc.h>
 #include <xf86Xinput.h>
-#include <xisb.h>
 #include <exevents.h>

 /*****************************************************************************
@@ -1335,7 +1335,7 @@
 static int
 ControlProc (InputInfoPtr pInfo, xDeviceCtl * control)
 {
- xDeviceTSCalibrationCtl *c = (xDeviceTSCalibrationCtl *) control;
+ xDeviceAbsCalibCtl *c = (xDeviceAbsCalibCtl *) control;
     PenMountPrivatePtr priv = (PenMountPrivatePtr) (pInfo->private);

     priv->min_x = c->min_x;

and
--- src/xf86PM.h.orig 2007-08-08 13:27:08.000000000 +0300
+++ src/xf86PM.h 2008-05-19 11:08:32.000000000 +0300
@@ -31,6 +31,7 @@

 #ifndef _PENMOUNT_H_
 #define _PENMOUNT_H_
+#define DONT_DEFINE_WRAPPERS

 /**********************************************
           File Path