Lucid: wizardpen driver not loaded due to xorg module requirement mismatch?

Asked by Robert Saunders

I am using Kubuntu Lucid upgraded from Karmic (later I fresh installed Lucid but no difference to situation). I have been using the package at doctormo's repro as per the https://help.ubuntu.com/community/TabletSetupWizardpen page. Bugs and fixes as yet reported do not help in my case (cursor will not move from top left of screen). I am not writing this as a bug (Hope its the right thing to do - its my first time doing something like this) as in other ways my problem duplicates solved bug #552617. Making a 70-wizardpen.conf file as in the above bug report does not help, though (Instead of cursor at top left the pen has no effect whatsoever). The problem seems to be here in the xorg log:

Information config/udev: Adding input device UC-LOGIC Tablet WP5540U (/dev/input/event5)
 From config file UC-LOGIC Tablet WP5540U: Applying InputClass "evdev pointer catchall"
 From config file UC-LOGIC Tablet WP5540U: Applying InputClass "evdev tablet catchall"
 From config file UC-LOGIC Tablet WP5540U: Applying InputClass "wizardpen"
 Information LoadModule: "wizardpen"
 Information Loading /usr/lib/xorg/modules/input/wizardpen_drv.so
 Information Module wizardpen: vendor="X.Org Foundation"
 Information compiled for 1.6.0, module version = 0.7.3
 Information Module class: X.Org XInput Driver
 Information ABI class: X.Org XInput driver, version 4.0
 Error module ABI major version (4) doesn't match the server's version (7)
 Information UnloadModule: "wizardpen"
 Information Unloading /usr/lib/xorg/modules/input/wizardpen_drv.so
 Error Failed to load module "wizardpen" (module requirement mismatch, 0)
 Error No input driver matching `wizardpen'

I found a forum post that provides a solution for error due to module mismatch here: http://ubuntuforums.org/archive/index.php/t-1204537.html
However, adding the suggested section to 70-wizardpen.conf or xorg.conf causes a segmentation fault on reboot so X does not start. Here is the addition suggested on that forum page:

Section "ServerFlags"
             Option "IgnoreABI" "True"
EndSection

Here is some of the resulting xorg log showing the fault:

(II) config/udev: Adding input device UC-LOGIC Tablet WP5540U (/dev/input/event5)
(**) UC-LOGIC Tablet WP5540U: Applying InputClass "evdev pointer catchall"
(**) UC-LOGIC Tablet WP5540U: Applying InputClass "evdev tablet catchall"
(**) UC-LOGIC Tablet WP5540U: Applying InputClass "wizardpen"
(II) LoadModule: "wizardpen"
(II) Loading /usr/lib/xorg/modules/input/wizardpen_drv.so
(II) Module wizardpen: vendor="X.Org Foundation"
 compiled for 1.6.0, module version = 0.7.3
 Module class: X.Org XInput Driver
 ABI class: X.Org XInput driver, version 4.0
(WW) module ABI major version (4) doesn't match the server's version (7)
(**) Option "Device" "/dev/input/event5"
(--) UC-LOGIC Tablet WP5540U: MaxX:32767 MaxY:32767 MaxZ:1023
(--) UC-LOGIC Tablet WP5540U: aspect ratio:1.38:1
(**) UC-LOGIC Tablet WP5540U is in absolute mode
(II) UC-LOGIC Tablet WP5540U: ScreenX = 1024, ScreenY = 768
(**) UC-LOGIC Tablet WP5540U: TopX = 2199
(**) UC-LOGIC Tablet WP5540U: TopY = 3598
(**) UC-LOGIC Tablet WP5540U: BottomX = 30325
(**) UC-LOGIC Tablet WP5540U: BottomY = 29278
(**) UC-LOGIC Tablet WP5540U: TopZ (min pressure) = 10
(**) UC-LOGIC Tablet WP5540U: BottomZ (max pressure) = 1023
(**) UC-LOGIC Tablet WP5540U: always reports core events
(II) XINPUT: Adding extended input device "UC-LOGIC Tablet WP5540U" (type: WizardPen Tablet)

Backtrace:
0: /usr/bin/X (xorg_backtrace+0x3b) [0x80e937b]
1: /usr/bin/X (0x8048000+0x61c7d) [0x80a9c7d]
2: (vdso) (__kernel_rt_sigreturn+0x0) [0x881410]
3: /usr/lib/xorg/modules/input/wizardpen_drv.so (0x173000+0x2eff) [0x175eff]
4: /usr/bin/X (ActivateDevice+0x53) [0x806ba63]
5: /usr/bin/X (0x8048000+0x7b566) [0x80c3566]
6: /usr/bin/X (0x8048000+0x7ba99) [0x80c3a99]
7: /usr/bin/X (0x8048000+0x568ed) [0x809e8ed]
8: /usr/bin/X (0x8048000+0x56c56) [0x809ec56]
9: /usr/bin/X (config_init+0x17) [0x809e3b7]
10: /usr/bin/X (0x8048000+0x1ed34) [0x8066d34]
11: /lib/tls/i686/cmov/libc.so.6 (__libc_start_main+0xe6) [0x1f3bd6]
12: /usr/bin/X (0x8048000+0x1e961) [0x8066961]
Segmentation fault at address 0x100

Caught signal 11 (Segmentation fault). Server aborting

So... Does anyone know another solution for this? If I have time I may try compiling the driver to see if that fixes it, but it would be nice if it worked for me through a package ;)
Thanks for the work you are doing getting these tablets to work well on Linux!
Regards
Robert

Question information

Language:
English Edit question
Status:
Solved
For:
Wizardpen Edit question
Assignee:
No assignee Edit question
Solved by:
Robert Saunders
Solved:
Last query:
Last reply:
Revision history for this message
Ali Lown (a-lown0) said :
#1

The fact that you are getting a seg-fault suggests that the module is not compiled correctly for your config.
Compilation from our source here should solve that (but I accept that it will take you some time to get all the dev-headers needed in place).

Which version of X are you using? As you can see from the log, the module is compiled for 1.6.0, presumably you are using something greater than that.

Revision history for this message
Robert Saunders (veryrobert) said :
#2

Thanks for the reply.

dpkg -l xserver-xorg-core shows X version 1.7.6.

I have tried to compile the driver from bzr branch following the wiki instructions at https://help.ubuntu.com/community/TabletSetupWizardpen. I have all the required packages listed there.
Generating the configure script works. I get stuck at:
./configure --with-xorg-module-dir=/usr/lib/xorg/modules
and i'm out of my depth as to knowing what to do about it!
Here is the output from the configure command:

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... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
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
./configure: line 11249: PKG_PROG_PKG_CONFIG: command not found
./configure: line 11253: --variable=sdkdir: command not found
checking if RANDR is defined... no
./configure: line 11285: PKG_PROG_PKG_CONFIG: command not found
./configure: line 11289: --variable=sdkdir: command not found
checking if XINPUT is defined... no
./configure: line 11323: syntax error near unexpected token `XORG,'
./configure: line 11323: `PKG_CHECK_MODULES(XORG, xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES)'

Revision history for this message
Ali Lown (a-lown0) said :
#3

Hmm. You do have the pkg-config package installed, don't you?
The above output suggests you don't, or at least, it can not find it for some reason.

Revision history for this message
Robert Saunders (veryrobert) said :
#4

Thank you Ali Lown, for solving the problem!

For the help of anyone who experiences the same problem:
My fresh install of Lucid used X version 1.7.6 so did not work with the wizardpen driver from the doctormo ppa.
I could not compile after getting the bzr source as first I needed to install the package pkg-config (this was not in the list of needed packages in the wizardpen source README file or in the list on the community wiki) then ran ./autogen.sh and compiled as per wiki instructions.
After "make && sudo make install" I rebooted and my pen works well without the need for further other configuration (tested briefly in gimp and inkscape).
Thanks again!