Saturday, April 12, 2008

Genius Wizardpen with Ubuntu Linux (8.04 only)

NOTE
  • AN UPDATED TUTORIAL FOR INTREPID IBEX IS AVAILABLE! Need someone to check whether that tutorial is compatible with Hardy Heron
  • [Compatible with Hardy Heron (8.04) ONLY]
  • [TODO]
    • Add a FAQ section (especially the fact that only realized that recently the original forum was down x_x...) -- main proof that I have been neglecting this blog and WizardPen progress these days
    • Any update if necessary

UPDATE HISTORY:

21 October 2008

  • Verified that steps are compatible with Intrepid Ibex (using compile by source method),
  • Added draft FAQ [Big TODO item, help needed]

27 May 2008

  • Added a troubleshooting step in the setting up section which recommends you to regenerate a fresh xorg.conf

27 April 2008

  • Updated link to download the driver source (Contributor: zack)
  • Included instruction on how to using precompiled driver
  • Modified xorg.conf on where to put the "CorePointer" option

As Ubuntu 8.04 (Hardy Heron) was released end of April 2008, one of the major change is XOrg 7.3, which sports hot-plugging, auto-configuration, better support of multiple input device and other powerful features. However, with those features in place, the existing Genius Wizardpen driver was not compatible with the latest XOrg.

Currently, Miriad (whom participated in the original Wizardpen driver forums) have updated the driver to make it compatible with XOrg 7.3 (rejoice!). Here are the instructions to configuring your Wizardpen:

Obtaining the driver
Option 1: Using a precompiled driver (Recommended)

Miriad have provided a precompiled driver for Hardy and can be obtained from http://specificcrap.arbitrarycrap.com/wizardpen_drv.so. Just download the driver and put it in /usr/lib/xorg/modules/input/.

Option 2: Building from source

(*Note: I haven't tested this with completely fresh Hardy system though ^^||)

  1. Download the source package: http://specificcrap.arbitrarycrap.com/wizardpen-0.6.0.2.tar.gz
  2. Unpack it somewhere with following command: tar -zxvf wizardpen-0.6.0.2.tar.gz
  3. Grab the necessary packages (UNCONFIRMED! Let me know if I missed out an important package): sudo aptitude install xutils libx11-dev libxext-dev x-dev build-essential xautomation xinput xserver-xorg-dev
  4. Change directory to where you unpacked the source code: cd wizardpen-0.6.0.2
  5. Compile and install the driver: sudo ./configure --with-xorg-module-dir=/usr/lib/xorg/modules && make && make install
  6. Verify that the driver is installed correctly (Check for wizardpen.la and wizardpen.so): ls /usr/lib/xorg/modules/input/wizardpen.*
Configuring and using your Wizardpen
  1. Connect your Wizardpen tablet (if you haven't already done so)
  2. Find out the name of your tablet : cat /proc/bus/input/devices | grep Name
  3. Edit your /etc/X11/xorg.conf file and type the following (or to verify against your last working xorg.conf with the Wizardpen in Gutsy):
    Section "InputDevice"
    Identifier "Configured Mouse"
    Driver "vmmouse"
    Option "Emulate3Buttons" "true"
    EndSection

    Section "InputDevice"
    Identifier "WizardPen Tablet"
    # Paste the name of the tablet as found in the previous step
    Option "Name" "UC-LOGIC Tablet WP5540U"
    Option "SendCoreEvents" "true"
    Driver "wizardpen"
    Option "TopX" "5619"
    Option "TopY" "6554"
    Option "BottomX" "29405"
    Option "BottomY" "29671"
    Option "MaxX" "29405"
    Option "MaxY" "29671"
    EndSection

    Section "ServerLayout"
    Identifier "Default Layout"
    Screen "Default Screen"
    InputDevice "WizardPen Tablet" "SendCoreEvents"
    InputDevice "Configured Mouse" "CorePointer"
    EndSection
  4. Restart your X server: sudo /etc/init.d/gdm restart (*Note: It'd be better for you to logout, press Alt-F1 to go into the command prompt screen to execute this command)
  5. If X fails to start up, or that the cursor runs amok with unpredictable and unacceptable behaviour (e.g. button mapping screw-ups), I greatly recommend that you execute sudo dpkg-reconfigure xserver-xorg to regenerate a new working copy of xorg.conf and reattempt to configure the Wizardpen again (i.e. repeat Step 3-4 in this section). It may be helpful to read the IMPORTANT NOTE I had below.

IMPORTANT NOTE: The "SendCoreEvents" option is mandatory to prevent focus stealing between your mouse and Wizardpen, which would lead to a jerky pointer which is not what you'd want when you're drawing ;). It may be required to have your mouse being set with the "CorePointer" option (Reason I'm setting this option for the mouse is because without the actual mouse configured with "CorePointer" would give X11 an option to select the Wizardpen as the core [read: main] pointer and royally screw the button mapping of my mouse).

Should you find your Wizardpen not working yet, check out the /var/log/Xorg.0.log to see what went wrong (Search for "EE" and "WW" would give you some important hint). Google and the UbuntuForums are always your friend when it come to troubleshooting things ;).

Till then, good luck and have fun!

[FAQ - DRAFT]
  1. Wireless mouse for Wizardpen is not working: From my understanding is that support for the wireless mouse that comes with Wizardpen is NOT IMPLEMENTED yet. Therefore it won't work.
  2. Pressure sensitivity not working in GIMP: Check your GIMP preferences at "Edit > Preferences". Under the "Input Devices" menu item, click on "Configure Extended Input Devices...". Choose the WizardPen device and MAKE SURE YOU SET THE MODE TO SCREEN/WINDOW (not "Disabled"). Without that setting, it won't work ;)

[REFERENCE AND RESOURCES]

  1. WizardPen driver and XOrg 7.3
  2. TabletSetupWizardpen (Ubuntu Community Help)
  3. HOWTO: Setup a wizardpen-based tablet (Ubuntu Forums)

63 comments:

Stephen "Weg" said...

Hi there. I followed all these steps, however, although the tablet is detected and installed properly, the actual pen does not move the cursor. The tablet mouse does, and if I have the tablet mouse on the tablet, then hover the pen over, it moves the cursor in strange ways, but as yet, no direct pen movement works. Although one of the pen buttons is detected as the third wheel. I have tried using xinput to change the button mapping, but it says that the device doesn't exist. Any ideas?

Felix Leong said...

I suppose I didn't read wrongly that you had the Wizardpen that came together with a mouse that works with the tablet? From my limited knowledge is that the mouse support the driver isn't that complete yet. (which Miriad from the WizardPen forums claims to provide initial support for in 0.6.1).

Since I don't have the tablet mouse, I regret that I'm not of much help. Do make a post over the WizardPen driver thread, I'm pretty sure you'd find a solution :).

P/S: It'd be interesting to see what 'xinput test [your tablet name]' command would report when you make pen movements. If xinput does report the pen movement events, I'm pretty sure it's a matter of configuration.

PsYhLo said...

can you place this wizardpen-0.6.0.2.tar.gz somewhere else because the above link doesn't work for me

Miriad said...

New hosting is up, driver is at

http://specificcrap.arbitrarycrap.com/wizardpen-0.6.0.2.tar.gz

Precompiled for hardy i386:

http://specificcrap.arbitrarycrap.com/wizardpen_drv.so


Also, I disagree with the CorePointer definition in ServerLayout, It should be SendCoreEvents


Miriad

Felix Leong said...

Zack,

Thanks for updating me with the links. I have made some amendments to my xorg.conf in relation of the "CorePointer" option, which I have set it to be set for the main mouse that I'm using to have X11 explicitly set the mouse as the main pointing device. (somehow I have encountered weird mouse button mappings without the option set)

Unknown said...

i did the installation and ever thing and the button on the tablets pen works but the cursor docent move around.(using WP8060U (lsusb:UC-Logic Technology Corp.) - Manhattan Graphics Tablet 8x6")help me out.

Miriad said...

For those of you having problems, please read through http://www.stud.fit.vutbr.cz/%7Exhorak28/unb/forum.php?req=thread&id=71 , and post the neccisary debug info there, I will attempt to help as much as possible


Miriad

Felix Leong said...

Martha,

Could you execute this in the command prompt `xinput test [your tablet name in Xorg.conf]`? Hover your pen around on the tablet and check the output.

You may also want to check /var/log/Xorg.0.log and check whether any errors were reported.

If everything failed in vain, post up your xorg.conf ;).

P/S: You may find it useful to check the original Wizardpen forum thread (http://www.stud.fit.vutbr.cz/~xhorak28/unb/forum.php?req=thread&id=71)

bunk said...

Hey thanks! Works like a charm (option 2, compiled for hardy heron 64 bit).

Perfect instructions.

Unknown said...

I'm a fairly new linux user, trying to get the wizardpen driver to work on Kubuntu 8.04 (got it working on Ubuntu 7.10).

The precompiled driver in your post didn't work for me (or maybe I didn't properly configure it, I'm not sure which.) Anyway, I'm now trying to install the driver and all proceeds well until I get the following error messages:

[Lots of output from install process, followed by:]
Making install in src
make[1]: Entering directory `/home/rick/wizardpen-0.6.0.2/src'
make[2]: Entering directory `/home/rick/wizardpen-0.6.0.2/src'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib/xorg/modules/input" || /bin/mkdir -p "/usr/lib/xorg/modules/input"
/bin/bash ../libtool --mode=install /usr/bin/install -c 'wizardpen_drv.la' '/usr/lib/xorg/modules/input/wizardpen_drv.la'
/usr/bin/install -c .libs/wizardpen_drv.so /usr/lib/xorg/modules/input/wizardpen_drv.so
/usr/bin/install: cannot create regular file `/usr/lib/xorg/modules/input/wizardpen_drv.so': Permission denied
make[2]: *** [install-wizardpen_drv_laLTLIBRARIES] Error 1
make[2]: Leaving directory `/home/rick/wizardpen-0.6.0.2/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/rick/wizardpen-0.6.0.2/src'
make: *** [install-recursive] Error 1
rick@Kubuntu:~/wizardpen-0.6.0.2$

I'm stuck. Help a newbie out? Thanks.

Felix Leong said...

Rick,

Installing the module requires root. Can you try to do a `sudo make install` in your wizardpen compilation directory?

Unknown said...

At your suggestion, I just did, and it appears that two new files, wizardpen.la and wizardpen.so are now in /usr/lib/xorg/modules/input. I will play around with it now and see what happens.

Unknown said...

I believe the driver is installed correctly; but no joy. The pen and tablet are unresponsive (although sometimes the light on the tablet comes on when the pen touches the tablet.)

Here is some more info that may help:

My xorg.conf (I apologize if the formatting is off):


Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
EndSection

Section "InputDevice"
Identifier "WizardPen Tablet"
Option "Name" "UC-LOGIC Tablet WP8060U"
Option "SendCoreEvents" "true"
Driver "wizardpen"
Option "Device" "/dev/tablet-event"
Option "TopX" "826"
Option "TopY" "2626"
Option "BottomX" "32747"
Option "BottomY" "32762"
Option "MaxX" "32747"
Option "MaxY" "32762"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "fglrx"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
Defaultdepth 24
EndSection

Section "ServerLayout"
Identifier "Default Layout"
screen "Default Screen"
InputDevice "WizardPen Tablet" "AlwaysCore"
EndSection
Section "Module"
Load "glx"
EndSection


In addition, I copied wizardpen_drv.so to /usr/lib/xorg/modules/ in addition to the one installed in /usr/lib/xorg/modules/input (as instructed in the Ubuntu how-to).

When I run sudo /etc/init.d/udev restart
I get: * Loading additional hardware drivers... [ OK ]
When I run ls -la /dev/tablet-event, I get:
lrwxrwxrwx 1 root root 12 2008-05-12 22:38 /dev/tablet-event -> input/event2

Furthermore, /etc/rc.local reads as:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

XORG_CONF=/etc/X11/xorg.conf
if [ -e /dev/tablet-event ]; then
sed -ie 's/^\(\s*\)\#\(\s*InputDevice\s\s*\"WizardPen\ Tablet\"\s\s*\"AlwaysCore\"\)\s*$/\1\2/' "$XORG_CONF"
echo "Udev created /dev/tablet-event = Tablet present! - Tablet-driver enabled"
else
sed -ie 's/\(^\s*InputDevice\s\s*\"WizardPen\ Tablet\"\s\s*\"AlwaysCore\"\)\s*$/\#&/' "$XORG_CONF"
echo "Udev did NOT create /dev/tablet-event = tablet NOT present! - Tablet-driver disabled"
fi

exit 0

And when I run "sudo /etc/init.d/rc.local start" I get:

* Running local boot scripts (/etc/rc.local) Udev created /dev/tablet-event = Tablet present! - Tablet-driver enabled
[ OK ]


Even after all of this, I can't seem to make this tablet work on Kubuntu Hardy. I would appreciate any further suggestions you might have.

Felix Leong said...

Rick,

One thing I'm not particular sure is whether the old config will still work (probably you can check /var/log/Xorg.0.log for error messages).

The udev is no longer necessary to setup Wizardpen as Xorg7.3 (in Hardy) already have support for input device hotpluging.

One thing I'd do is to try to comment "Option "Device" "/dev/tablet-event"" in your Wizardpen "InputDevice" section and restart X.

If that doesn't work, I would appreciate if you post the relevant errors in Xorg.0.log :).

Felix Leong said...

Rick,

P/s: You may want to review the "Configuring and using your Wizardpen" section in this HOWTO and double confirm everything is done right ;)

Unknown said...

I checked the Xorg.O.log and found no mention of the wizardpen driver. Even to my inexperienced eye, that seems problematic. I did check the file Xorg.O.log.old and found:

Module class: X.Org Video Driver
(II) LoadModule: "wizardpen"
(II) Loading /usr/lib/xorg/modules//wizardpen_drv.so
(II) Module wizardpen: vendor="X.Org Foundation"
compiled for 1.4.0.90, module version = 1.0.0
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 2.0

I guess I will go back and repeat the entire procedure, and model my xorg.conf file on yours, and see what happens.

Felix Leong said...

Rick,

It seemed that XOrg didn't even notice the existence of the tablet at all, which is definitely telling you something ;).

I would suggest you do the following:
1. Verify that the driver is installed in the correct directory `ls /usr/lib/xorg/modules/input/wizardpen.*`
2. Connect your Wizardpen and verify that Linux found the device (typically by executing `lsusb` and probably `dmesg`)
3. Repeat the "Configuring and using your Wizardpen"
4. If it doesn't work, Xorg.0.log is always your friend, that's how I troubleshoot the problems when I installed mine :)

Miriad said...

a subset of the WizardPen tablets come with mice (the MousePen tablets). Currently, the mouse is not supported.

However, all pens (so far that we've tested) should work with the current driver.

If your xorg.conf file has info about the tablet as an Input Device and in your Server Layout, and Xorg.0.log contains nothing about it, You've probably encountered a recent bug from upgrading to the new Xorg where it wont parse the old config file, and instead use some defaults.

The way to fix this is by backing up your xorg.conf file, then running 'sudo dpkg-reconfigure xserver-xorg' then copying any parts you changed from your backup into the new file.


--Miriad

Hari said...

Hi,

I've got the wizardpen driver 0.6.0.2 working on Debian Testing but I find that the button mappings are screwed up.

Whenever I tap the pen or hold and drag it on the surface, it detects it as a middle mouse button click and as a result, I'm unable to draw anything using it on GIMP.

My pen is an iBall WP5540.

Can you suggest how I should resolve this problem?

Mozart Couto said...

This precompiled driver is for the Ubuntu Hardy Heron 64-bit?
Where can I get a driver to 64?
thank you.

Unknown said...

Hi,
My daugher and I just got her tablet working. You must put the driver section before any options.
Section "InputDevice"
Identifier "WizardPen Tablet"
Driver "wizardpen"
Option "SendCoreEvents" "true"
Option "Device" "/dev/tablet-event"
Option "TopX" "2199"
Option "TopY" "3598"
Option "BottomX" "30325"
Option "BottomY" "29278"
Option "MaxX" "30325"
Option "MaxY" "29278"
EndSection
Once we did that...presto....it started working wonderfully

Miriad said...

There is no precompiled driver for Hardy 64-bit at the moment, although I hope to have one out for the next release. To get a driver for Hardy 64-bit, you need to download the 0.6.0.2 package, extract it, then change into that directory and run "sudo make && make install" (without the quotes)


--Miriad2m

Unknown said...

Hi,

The stroke of the pen in this horrible GIMP someone tried this?

generates much noise


The behavior of the pen with windows also ta strange and mouse from the tablet does not work!

This also happens to you?

Miriad said...

The mouse included with the mousepen tablets does not work, I've encountered a few small bugs with the changes, and hope to have that posted this weekend (I've finally got some free time at my parent's place).

If you are getting the strange noise on pressure sensitivity, please make sure your configured mouse section does not have a device of "/dev/mice", but instead the device of your actual mouse. I also hope to have this fixed soon (maybe it is already, I havent tested that yet, but its in the code).


--Miriad

Unknown said...

Ok Zack,

Still I thank for his work to try a driver for the tablet work!

I hope someday we can dream with driver pre-compiled and already integrated into Linux as the wacom (http://linuxwacom.sourceforge.net/).

I will continue testing and monitoring!

thanks

zanzibar said...

Thanks for the Blog,
Just tried the option one with ubuntu 8.04 and a genius pensketch 9x12 which is a UC logic PF1209. So far seems to be working well with pressure support in GIMP.
Cheers

Paul Holmes said...

Coolio! I got it working, but I have a dual monitor setup, and just want my tablet on my primary monitor. Right now it stretches across both (which means when I draw a circle it comes out an oval). Does anyone have any ideas?

Miriad said...

A side effect with the way XRandR works for dual monitors is one virtual monitor, which throws off my current way to get the monitor size. I think for my next release I'll add a way to control what the monitor size is manually (Via xorg.conf options), to override the results X gives the driver (Which are sometimes horribly wrong) 0.6.1 is currently in in release canidate state, and is available as source on the wizardpen forums [http://www.stud.fit.vutbr.cz/~xhorak28/unb/forum.php?req=thread&id=71]

Samuel J. Tassia said...

Finally I have a working pen, thanks lads, and lasses!!. However somewhere in the process there were some changes with my regular mouse pad on my laptop. The center button no longer allows for scrolling up and down as it did before I made the changes to xorg. Also the mouse which came w/ the Genius mouse pen only seems to move in small circular motions. Please keep in mind I'm not tech savvy, and don't know much about Ubuntu, or Linux. I installed it out of spite of Windows. I'm running on an Acer Aspire 3690. Thanks in advance for any help!

Allons-Y

Gez said...

I have installed the version 0.6.0.2 and have a couple of problems.
Everything seems to work fine, but using the tablet for a while I found this:
-double clicking with the tip of the pen doesn't work.
-The input of some form fields can't be focused with the pen (for instance the file name in GIMP's save dialog, or numeric fields)
-In GIMP, some macro key bindings seem to be lost after using the tablet
-Mouse no longer works on canvas after the tablet was used for the first time (this was already a problem with the previous version in Feisty and Gutsy)
-Ink and pen strokes introduce noise proportionally to the pressure applied to the pen tip.

The xorg configuration is exactly as displayed here, so it is not a "mice" driver conflict. I even tried removing the mouse entry from xorg.conf and got the same results.

Miriad said...

guillermo:in 0.6.0.2

Xorg 7.3 has some neat features, that if you dont have the Configured Mouse section (or you dont have the configured mouse section in your ServerLayout), it creates a default section for you, using the /dev/input/mice device, effectively causing the problem you're describing.

Also, there should be no mouse support in 0.6.0.2. If you would like mouse support, please go to the wizardpen forums and download 0.6.1rc1. The mouse support is currently very slow, but working (That will be fixed in the next release, probably 0.6.1rc2)

--Miriad

Gez said...

Miriad:
Thank you for your reply. I think I have the configured muse section I followed the guide above using the same steps, I only changed the calibration data which I took from the Ubuntu docs wiki. In fact, that calibration data was originally mine (I sent it to the post author).
Everything seems to be fine, but I still have those problems.
I'll try to compile the new driver and see if it goes better.

Any other sugestion? (I mean, about the xorg.conf file)

Gez said...

bad news. Just compiled the 0.6.1rc driver and have the same problems.

I'm a little bit confused about the mouse part.
These are my current xorg settings (just the parts that affect the mouse driver):

Section "InputDevice"
Identifier "Configured Mouse"
Driver "vmmouse"
Option "Emulate3Buttons" "true"
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "WizardPen Tablet" "SendCoreEvents"
InputDevice "Configured Mouse" "CorePointer"
EndSection

I tried some settings suggested at the forums, but the most I got was no mouse and the same tablet behavior that I described earlier.

Am I doing something wrong here?

Miriad said...

Yes, the ConfiguredMouse section needs a "Device" option (Otherwise it assumes /dev/input/mice, which gives you the bad noise). Just add in 'Option "Device" "/dev/input/mouseX"' (Where X is the number of your actual mouse). You can find X by running 'sudo cat /dev/input/mouse0' and trying to move your mouse around, then trying mouse1, up till it outputs something when you move your mouse.


As far as the mouse on the tablet goes, its probably working, but it moves VERY slow (I think one pixel per report, which means you'll need to sweep it across the entire tablet a few times just to get a small distance.


--Miriad

Gez said...

Thank you very much Zach!!!
It works very good now. Every error I described before has gone.
The problem was, exactly as you stated, the lack of a device definition in my xorg.conf file.
I found out what device was asigned to my mouse with cat and modified xorg.conf and everything went fine since that.
Thanks again. My wife was about to kill me because she wanted her tablet back so badly :-)

Gez said...

sorry... Zack :-)

Dennis van Leeuwen said...

The setup went fine, the Pen is now working in Hardy. But... the buttons do not work like they should. Pressing the left button brings me back several pages. Or sometimes it jumps from Firefox to the desktop. Does anyone have the same problem?

Ociosu said...

My buttons used to do strange things.
I changed xorg.conf as follows. Now buttons work ok, but I still can not make the tablet mouse work.

#Section "InputDevice"
# Identifier "Configured Mouse"
# Driver "mouse"
# Option "CorePointer"
#EndSection


Section "InputDevice"
Identifier "Configured Mouse"
Driver "vmmouse"
Option "Emulate3Buttons" "true"
EndSection


Section "InputDevice"
Identifier "WizardPen Tablet"
Option "Name" "UC-LOGIC Tablet WP8060U"
Option "SendCoreEvents" "true"
Driver "wizardpen"
Option "TopX" "10"
Option "TopY" "10"
Option "TopZ" "10"
Option "BottomX" "32747"
Option "BottomY" "32762"
Option "BottomZ" "1023"
EndSection


Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "WizardPen Tablet" "CorePointer"
InputDevice "Configured Mouse" "AlwaysCore"

Unknown said...

ociosu:

Your ConfiguredMouse should have CorePointer, and AlwaysCore no longer works (It has been replaced with SendCoreEvents). You should set it to use a device other than /dev/input/mice (thats what ConfiguredMouse uses by default, even with the vmmouse driver)

As far as the tablet mouse goes, which driver version are you using? also note that if you change the button mapping for the pen, you'll also change the button mapping for the mouse.

--Miriad

Ociosu said...

Miriad:
Thank you for your kind answer.
I really don't know what I'm doing!
I'm new at Linux. I tried to configure the tablet, and after reading a lot of post, and spend all the weekend trying to configure the tablet, I finally got that configuration that at least makes the pencil work right, although the mouse of the tablet does nothing. (I am onlyu interested in the mouse of the tablet, not any other mouse).

If I change:

InputDevice "WizardPen Tablet" "SendCoreEvents"
InputDevice "Configured Mouse" "CorePointer"

the pencil stops working, and only the mouse works!

And with:
InputDevice "WizardPen Tablet" "SendCoreEvents"
InputDevice "Configured Mouse" "CorePointer"
Only the pen works, but the buttons do strange things, like jumping between webs...

Unknown said...

ociosu:

change:

Section "InputDevice"
Identifier "Configured Mouse"
Driver "vmmouse"
Option "Emulate3Buttons" "true"
EndSection

to:

Section "InputDevice"
Identifier "Configured Mouse"
Driver "vmmouse"
Option "Emulate3Buttons" "true"
Option "Device" "/dev/input/mouse2"
EndSection

and

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "WizardPen Tablet" "CorePointer"
InputDevice "Configured Mouse" "AlwaysCore"

to:

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "WizardPen Tablet" "SendCoreEvents"
InputDevice "Configured Mouse" "CorePointer"

That should make your pen buttons work correctly (It will send side button, forward button and extra button to the configured mouse if you dont change those, making them go back and forth in webpages if you dont change them)

For mouse support on the tablet, make sure you're running driver version 0.6.1rc2, as its the only drive working so far with mouse support. (Available as source here: http://specificcrap.arbitrarycrap.com/wizardpen-0.6.1rc2.tar.gz )

Ociosu said...

Miriad:
Thanks again.
After making the suggested changes, I could not restart X.
After rebooting, only low resolution was allowed, and only with mouse, not pen.

I made so many trials during the weekend, that I'm not sure which driver I am running. I think is 0.6, but for sure, not 0.6.1rc2, so at least that is the clue with the mouse thing...

This is what I have in
/etc/udev/rules.d/010_local.rules

BUS=="usb", KERNEL=="event*", SYSFS{product}=="Tablet WP8060U", NAME="input/%k", SYMLINK+="tablet-event", MODE="0666"


And in
/etc/rc.local

# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

XORG_CONF=/etc/X11/xorg.conf
if [ -e /dev/tablet-event ]; then
sed -ie 's/^\(\s*\)\#\(\s*InputDevice\s\s*\"WizardPen\ Tablet\"\s\s*\"SendCoreEvents\"\)\s*$/\1\2/' "$XORG_CONF"
echo "Udev created /dev/tablet-event, which means that the tablet is present! - Tablet-driver enabled"
xinput set-button-map "WizardPen Tablet" 1 2 3
else
sed -ie 's/\(^\s*InputDevice\s\s*\"WizardPen\ Tablet\"\s\s*\"SendCoreEvents\"\)\s*$/\#&/' "$XORG_CONF"
echo "Udev did NOT create /dev/tablet-event, which means that the tablet is NOT present! - Tablet-driver disabled"
fi

exit 0

Don't understand a single word, he he...

Quite difficult this linux thing, but I'm decided to leave our friend Bill...

Thanks.

Unknown said...

Neither of those are needed. You can comment out or delete everything but exit 0 in rc.local, and you can delete the udev rules file. The new autodev system (Giving the drive the tablet name instead of device) uses the /dev/input/eventX devices, and doesnt look for a link, and XOrg 7.3's newer hotplug system automatically disables the device if it isnt there.


If X isnt restarting, can you do a 'cp /var/log/Xorg.0.log ~/Xorg.0.log', then go back to your backup config and post the contents of ~/Xorg.0.log so I can see whats going on?

--Miriad

Ociosu said...

Miriad:

Thanks, once again.

I got it.

I replaced the driver, and installed the one with mouse support, deleted everything in both files, and changed xorg.conf according to your indications, and everything works fine.

Buttons, mouse and pen.

Many, many thanks. I spent a lot of hours this weekend trying to make this work.

I can not help you in nothing related to linux, but maybe, if you are learning to play guitar or spanish, I could do something... ;-)
Thanks again.

alisson said...

Really thanks for writte this tutorial and host the driver.

Mateo ♐︎♒︎ said...

Thanks a lot!
I've followed https://help.ubuntu.com/community/TabletSetupWizardpen before reach this blog, and the table didn't work. If the udev stuff is not needed anymore, that wiki page should be updated so people searching for a working guide, doesn't stumble with outdated/wrong instructions...

Thanks again! :-)

Gez said...

Hi Miriad.
I have a new problem. I think the tablet driver has some problems with xorg. I get frequent xorg hangs and strange behavior when using the tablet in gimp or inkscape.
I seems like something I use in both programs does something wrong with xorg, then the pen buttons start to act erratically, not functioning or staying on (apparently).
In inkscape I can't select things with a pen click, but I can do it dragging. When it happens I can't click the UI buttons anymore.
Something similar occurs with gimp.
If I close the session and restart it, the problem is temporarily gone.

Do you have an idea of what's going on? Is there any new version of the driver to try out?

Gez said...

I've just read that you posted the address to download 0.6.1rc2
I'm about to compile it. I'll let you know if this version fixed the issue.

Gez said...

Unfortunately RC2 didn't fix the issues. I installed the tablet in a windows box to discard any malfunction in the tablet itself and it worked fine, so I guess it is something about the driver.
The problems I'm having are:
- frequent xorg hangs (restarting x solves the problem.
- Sometimes with light pressure, it doesn't seem to be detected when the pen is off the tablet, and it keeps drawing even if the tablet isn't touching the tablet surface. Clicking a couple of times on the tablet seems to fix the problem.
- Clicking with the tip of the pen seems to be "stuck" sometimes. I can't click on buttons, but I can drag.

In every problem an X restart fixes temporarily the problem.

Any ideas?

George said...

Thank you so much for this driver. I am using Kubuntu 8.04 and installation of the precompiled driver went fine.
However I am having the same problem as Dennis have described. When I use a pen's front button my FireFox 3 navigates one page back.

Seems that the solution was already provided in some further posts but I am not so good in Linux configuring. Could some one please help me? What should I do to make this button not to navigate back in FireFox?

Ociosu said...

Hello!
After using the driver with no problem for 3 months, I changed my PC, so I reinstall everything.
I am using the same xorg.conf as before.

Before the change, when pressing the central button and moving the pen, scroll used to work perfect. Just didn't need the scroll bars at all.

Now something is wrong, but don't know what. The button configuration is the same as before, but the scroll does not work. Any idea?

Many thanks.

Ociosu said...

Sooorrry....
I have realized it is just a problem of the configuration of the firefox!

coisas que piscam said...

Thank you!
But the pressure sensitivity don't work.
-cry

Unknown said...

Hi there I have followed the installation. and my Pad is working.. well sort of

only about 1/4 of the surface.
any ideas of how I can get the use of the full surface I am running Hardy 8.04 on my Macbook and my pen pad is a genius mousepen 8x6

I tried setting the x and y values in the xorg and the fdi file but this does not do anything..

I ran the calibration and used the output in the xorg file.. but no go..

here is a copy of my xorg..

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
EndSection

Section "InputDevice"
Identifier "WizardPen Tablet"
Driver "wizardpen"
Option "Name" "UC-LOGIC Tablet WP8060U"
Option "SendCoreEvents" "true"
Option "Device" "/dev/tablet-event"
Option "TopX" "826"
Option "TopY" "2626"
Option "BottomX" "65494"
Option "BottomY" "65494"
Option "MaxX" "65494"
Option "MaxY" "65494"
EndSection

Section "Device"
Identifier "Configured Video Device"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Configured Mouse" "CorePointer"
InputDevice "Synaptics Touchpad"
InputDevice "WizardPen Tablet" "AlwaysCore"
EndSection

dgoemans said...

There seem to be many issues with the forum site. I'm using openSUSE, and have exactly the problem mentioned in the thread: http://wizardpen-drv.sourceforge.net/unb/forum.php?req=thread&id=71
Sadly since the move to Sourceforge, the linked files are often not avail. The problem i have is that the screen coordinates are being translated incorrectly. After initial set up, the cursor jumps to bottom right corner of screen. if i change the config in xorg.conf manually ( top=0,0 bottom=300,300 ), i can get some movement, but it's really messed up. Any suggestions about this or maybe ( since i'm a developer ) any place i can look to fix this?

roberlan said...

Hi, I work with illustration and graphic design and since last week i se ubuntu. im brand new to the system and i dont know programming. With the precomplied driver downloaded here I installed my tablet on ubuntu 8.04, but im having problems just like the ones described by Guillermo. (double click with the tip of the pen doesnot work, and the selection in Gimp) Which makes impossible to work in Gimp or inkscape. I saw a comment of a user on how to configure the "configuredmouse" with mouseX. But i cant figure out what is the X. Can somebody help me? please.

Felix Leong said...

Roberlan,

Please check from /var/log/Xorg.0.log to make sure that the Wizardpen driver is loaded correctly without warning or errors. Should it be loaded correctly, you should be seeing "(MM) LoadModule: "wizardpen"" in the log file and was later correctly mapped to your tablet.

With Ubuntu 8.04 and above, you don't need to know the which event device the tablet is being mapped to, however you'll still need to know the hardware name of the tablet itself (by executing `cat /proc/bus/input/devices | grep -i name`) and put it in your xorg.conf (although untested, the recommended method is actually by adding a HAL fdi rule. Please refer to my tutorial for 8.10 for details.

As for GIMP and Inkscape, you'll need to configure your tablet in order for it to work properly (for GIMP it's at Edit > Preferences > Input Devices). Refer to the FAQ in the post for more precise details.

kat said...

Hello, I'm an extremely new user of Ubuntu. I have version 9.04 and I am having difficulty getting my Genius MousePen 8x6 Tablet working. It is recognized as a usb device with this name: UC-LOGIC Tablet WP8060U. When compiling the wizard several errors occur, it never completely compiles. The errors include:

wizardpen.c:88: warning: data definition has no type or storage class
wizardpen.c:90: warning: data definition has no type or storage class
wizardpen.c:92: warning: data definition has no type or storage class
wizardpen.c:95: warning: data definition has no type or storage class
wizardpen.c:97: warning: data definition has no type or storage class
wizardpen.c: In function 'DeviceInit':
wizardpen.c:662: warning: passing argument 3 of 'InitValuatorClassDeviceStruct' makes integer from pointer without a cast
wizardpen.c:662: error: too many arguments to function 'InitValuatorClassDeviceStruct'
make[2]: *** [wizardpen.lo] Error 1
make[2]: Leaving directory `/home/storm/Documents/wizardpen-0.7.0-alpha1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/storm/Documents/wizardpen-0.7.0-alpha1'
make: *** [all] Error 2

I am seriously hoping to get my tablet working on Ubuntu soon. I would greatly appreciate any help.

Anonymous said...

Hi all,

I'm trying to compile this driver with Ubuntu Jaunty 64 bits and got this error:

david@notedcl:~/Desktop/wizardpen-0.6.0.2$ sudo ./configure --with-xorg-module-dir=/usr/lib/xorg/modules && make && make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output

(I've supressed some output here to fit 4096 char blog message limit)


checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking if RANDR is defined... yes
checking if XINPUT is defined... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XORG... yes
checking for ANSI C header files... (cached) yes
checking linux/input.h usability... yes
checking linux/input.h presence... yes
checking for linux/input.h... yes
checking sysfs/libsysfs.h usability... yes
checking sysfs/libsysfs.h presence... yes
checking for sysfs/libsysfs.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating man/Makefile
config.status: creating config.h
config.status: executing depfiles commands
make all-recursive
make[1]: Entering directory `/home/david/Desktop/wizardpen-0.6.0.2'
Making all in src
make[2]: Entering directory `/home/david/Desktop/wizardpen-0.6.0.2/src'
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -I/usr/include/xorg -I/usr/include/pixman-1 -I../src -MT wizardpen.lo -MD -MP -MF .deps/wizardpen.Tpo -c -o wizardpen.lo wizardpen.c
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -I/usr/include/xorg -I/usr/include/pixman-1 -I../src -MT wizardpen.lo -MD -MP -MF .deps/wizardpen.Tpo -c wizardpen.c -fPIC -DPIC -o .libs/wizardpen.o
wizardpen.c:212: warning: initializer-string for array of chars is too long
wizardpen.c: In function 'DeviceInit':
wizardpen.c:648: warning: passing argument 3 of 'InitValuatorClassDeviceStruct' makes integer from pointer without a cast
wizardpen.c:648: error: too many arguments to function 'InitValuatorClassDeviceStruct'
make[2]: *** [wizardpen.lo] Error 1
make[2]: Leaving directory `/home/david/Desktop/wizardpen-0.6.0.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/david/Desktop/wizardpen-0.6.0.2'
make: *** [all] Error 2


Any ideas?

Thanks in advance,
David

Unknown said...

specificrap links are not working.

Alan Cárdenas said...

The option 2 worked excelent on ubuntu 64 bit 8.04.

Unknown said...

Hey Felix!!
U r Awesome man!!!
nothing was working gdm failed many times..
but then I restarted and i was very sure things would work out but the only question how?
thwn i thought only to follow one instruction..
and then i followed ones listed here.. and specifically restarting gdm at console..
and here i sit now happy to say that my WP5540U works on ubuntu 9.04!!!!
thanks felix..

Unknown said...

after getting the same errors as you all did, and after reading some xorg documentation...

wizardpen.c:648: error: too many arguments to function 'InitValuatorClassDeviceStruct'

i decided (very carelessly!!!) to add the missing parameter to the InitValuatorClassDeviceStruct function.

here is the code snap from my wizardpen_drv.c version 0.7.alpha 2 file:


/* 3 axes */
if (InitValuatorClassDeviceStruct (
dev,
3,
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
xf86GetMotionEvents,
#endif
"labels",
local->history_size,
((priv->flags & ABSOLUTE_FLAG)? Absolute: Relative)|OutOfProximity) == FALSE)
{
xf86Msg(X_ERROR, "%s: unable to allocate ValuatorClassDeviceStruct\n", local->name);
return !Success;
}
else
{

InitValuatorAxisStruct(dev,
0,
"labels",
0, /* min val */
/*screenInfo.screens[0]->width,*/ /* max val */
screenmaxx, /* max val */
1000, /* resolution */
0, /* min_res */
1000); /* max_res */
InitValuatorAxisStruct(dev,
1,
"labels",
0, /* min val */
/*screenInfo.screens[0]->height,*/ /* max val */
screenmaxy, /* max val */
1000, /* resolution */
0, /* min_res */
1000); /* max_res */
InitValuatorAxisStruct(dev,
2,
"labels",
0, /* min val */
/*priv->bottomZ,*/ /* max val */
1023,
1000, /* resolution */
0, /* min_res */
1000); /* max_res */


as you can see, i add "labels" which is char* where it was screeming for Atom*

got some warrnings, BUT... it works
i compiled it successfully and loaded it by adding to the xorg.conf the following lines:

Section "ServerLayout"
# Option "AllowEmptyInput" "off"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
# InputDevice "Keyboard0" "CoreKeyboard"
# InputDevice "Mouse0" "CorePointer"
# InputDevice "Synaptics Touchpad" "AlwaysCore"
InputDevice "WizardPen Tablet" "AlwaysCore"
EndSection

Section "InputDevice"
Identifier "WizardPen Tablet"
Option "SendCoreEvents" "true"
Driver "wizardpen"
# Option "Device" "/dev/tablet-event"
Option "Device" "/dev/input/by-id/usb-UC-LOGIC_Tablet_WP8060U-event-mouse"
# Option "Device" "/dev/input/by-id/usb-UC-LOGIC_Tablet_WP8060U-mouse"
# Option "TopX" "826"
# Option "TopY" "2626"
Option "TopX" "1138"
Option "TopY" "2918"
# Option "BottomX" "32747"
# Option "BottomY" "32762"
Option "BottomX" "30031"
Option "BottomY" "31487"
Option "ScreenX" "30031"
Option "ScreenY" "31487"
Option "TopZ" "10"
Option "BottomZ" "511"
Option "debugyn" "y"
EndSection

the mouse pointer is a little bit jerky but it works.

enjoy :-)