Hari's Corner
Humour, comics, tech, law, software, reviews, essays, articles and HOWTOs intermingled with random philosophy now and thenGetting the WizardPen driver working on the new Xorg 1.4 on Debian
Filed under:
Tutorials and HOWTOs by
Hari
Posted on Wed, May 21, 2008 at 10:30 IST (last updated: Sat, Nov 1, 2008 @ 09:15 IST)
Download the latest WizardPen driver
You can find the new WizardPen driver source package to download here: http://specificcrap.arbitrarycrap.com/ Extract the source code into a directory. Install thexorg-dev
package using (as root)
You might also needapt-get install xorg-dev
pkg-config
for successfully compiling the driver:
apt-get install pkg-config
Compile the driver
From the source directory of the driver, issue the usual commands:Now instead of issuing./configure make
make install
which would not install in the correct location in Debian, copy the compiled driver file wizardpen_drv.so
(found inside the directory src/.lib
) to the Xorg module directory (/usr/lib/xorg/modules/input/
in Debian). From the driver source directory issue the command (as root)
cp src/.lib/wizardpen_drv.so /usr/lib/xorg/modules/input/
Modify the xorg.conf
file
I found out by painful trial and error that the button mappings of the graphics pen is screwed up if you also specify the mouse explicitly in xorg. By commenting out the default configured mouse in the ServerLayout
section, everything works fine. Even the mouse works without having to specify it explicitly. I think it's something to do with the new hotplugging mechanism of Xorg, but I haven't found out exactly why this should be so.
Here's my working xorg.conf file for the driver on my HP dv6314 laptop. Only the relevant sections are shown/highlighted.
Note that theSection "ServerLayout" Identifier "Default Layout" Screen "Default Screen" 0 0 InputDevice "Generic Keyboard" # InputDevice "Configured Mouse" # Note that this is commented out - mouse still works! # InputDevice "Synaptics Touchpad" InputDevice "WizardPen Tablet" EndSection ... ... Section "InputDevice" Identifier "WizardPen Tablet" Driver "wizardpen" Option "Name" "UC-LOGIC Tablet WP5540U" Option "SendCoreEvents" "true" # This is very important otherwise the pen won't respond Option "TopX" "0" Option "TopY" "0" Option "BottomX" "32739" Option "BottomY" "32745" Option "MaxX" "32739" Option "MaxY" "32745" EndSection ... ...
TopX
, TopY
, BottomX
and BottomY
values are decided by running the calibrate utility found within the same wizardpen driver source. The values specified above should work for an ordinary 5.5"x4" tablet.
Note that you no longer need to specify the USB tablet event device (as created by udev
) in xorg.conf
as the WizardPen driver automatically detects it for you.
You don't have to tell me: Xorg updates are hell when you use third-party drivers.
Comments closed
The blog owner has closed further commenting on this entry.
4 comment(s)
Comment by MrCorey (visitor) on Wed, May 21, 2008 @ 15:42 IST #
Comment by hari (blog owner) on Wed, May 21, 2008 @ 23:59 IST #
Comment by Ross (visitor) on Mon, Sep 15, 2008 @ 16:55 IST #
Comment by hari (blog owner) on Mon, Sep 15, 2008 @ 21:54 IST #