LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-04-2010, 08:45 PM   #1
ichrispa
Member
 
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Rep: Reputation: 32
Aiptek Hyperpen Mini


Hi everyone,

I recently got an Aiptek Hyperpen Mini. Now I am trying to get it to run under SuSE.

The Tablet was sold as "Aiptek Hyperpen Mini". Linux correctly identifies it however as a Waltop Tablet (waltop sells it under the name QPad). It is much closer related to wacom then to aiptek, to the point that waltop offers linux drivers and tools which are mostly identical to the wacom tools.

In short: This "Aiptek" uses the wacom driver. At least on a kernel level.

I have managed to get the tablet to be recognized and installed correctly. wacdump shows the available data correctly (x/y/pressure/buttons).

What doesn't work is X. I am trying to use the tablet in a 2 Monitor environment (screen 1 leftof 0). As long as I treat the tablet as a USB/HID, it acts like a mouse (two buttons, no pressure). Since I need the pressure, I have declared it as a wacom tablet like so:

Code:
Section "ServerLayout"
        Identifier     "Layout[all]"
        Screen      0  "aticonfig-Screen[0]-0" 0 0
        Screen      1  "aticonfig-Screen[0]-1" LeftOf "aticonfig-Screen[0]-0"
        InputDevice    "Keyboard[0]" "CoreKeyboard"                          
        InputDevice    "Mouse[1]" "CorePointer"                              
        InputDevice    "pen"            "SendCoreEvents"                     
        InputDevice    "cursor"         "SendCoreEvents"                     
        Option      "Clone" "off"                                            
        Option      "Clone" "off"                                            
        Option      "Xinerama" "on"                                          
EndSection                                                                   
Section "InputDevice"
        Identifier      "pen"
        Driver          "wacom"
        Option          "Device"        "/dev/input/waltoptablet"
        Option          "Type"          "stylus"                 
        Option          "Mode"          "absolute"               
        Option          "Cursor"        "stylus"                 
        Option          "USB"           "on"                     
        Option          "ScreenNo"      "0"                      
EndSection                                                       

Section "InputDevice"
        Identifier      "cursor"
        Driver          "wacom" 
        Option          "Device"        "/dev/input/waltoptablet"
        Option          "Type"          "cursor"                 
        Option          "Mode"          "absolute"               
        Option          "Cursor"        "stylus"                 
        Option          "USB"           "on"                     
        Option          "ScreenNo"      "0"                      
        Option          "Twinview"      "leftof"                 
        Option          "TVResolution"  "1280x1024,1280x1024"    
        Option          "MMonitor"      "off"                    
        Option          "ForceDevice"   "ISDV4"                  
        Option          "Touch"         "off"                    
        Option          "KeepShape"     "on"                     
EndSection
The result is that my Screens are getting "cut in half".

Code:
+==================+ +==================+
|          ////////| |////////          | 
|          ////////| |////////          | 
|          ////////| |////////          | 
|          ////////| |////////          | 
|          ////////| |////////          | 
|          ////////| |////////          | 
+==================+ +==================+
   Screen 1  (Aux)      Screen 0 (Main)
The Area marked "/" is not accessible by the tablets cursor. When entering into it from the left (on Screen0), the cursor jumps to the left screen's white area. Equally, when entering the "/"'d area from the right (on Screen1), the cursor jumps back into the right screen's white area.

Somehow the wacom's coordinates get mapped to the screen in a really weird manner. I have tried all combinations of TwinView, MMonitor and ScreenNo with no avail. ScreenNo "0" keeps the cursor on screen 0, but again: only on the right half.


Does anyone have a solution for this? Hint's are welcome.

Thanks in advance.
 
Old 08-05-2010, 09:42 PM   #2
ichrispa
Member
 
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Original Poster
Rep: Reputation: 32
Ok, short update:

I recompiled the wacom driver from the linuxwacom project (http://linuxwacom.sourceforge.net/). It compiled and installed ok. When GDM loads, the tablet is handled as the settings above specify (tablet is limited to Screen 0) and it handles perfectly.

From Xorg.0.log:
Code:
(II) LoadModule: "wacom"
(II) Loading /usr/lib64/xorg/modules//input/wacom_drv.so
(II) Module wacom: vendor="X.Org Foundation"
        compiled for 1.6.5, module version = 1.0.0
        Module class: X.Org XInput Driver
        ABI class: X.Org XInput driver, version 4.0
(II) Wacom driver level: 47-0.8.8-7 $
...
Wacom got device id ox37
(==) Wacom using pressure threshold of 27 for button 1
(==) Wacom USB PL/Cintiq tablet speed=9600 (38400) maxX=12288 maxY=9216 maxZ=1023 resX=508 resY=508  tilt=disabled
(**) Option "Device" "/dev/input/waltoptablet"
Wacom P4 channel 0 for pen
Wacom final channel 0 for pen
Wacom got channel 0 for pen
Wacom got Pid ox37
Wacom got Pid ox37 again
(**) Option "SendCoreEvents"
(**) cursor: always reports core events
(**) cursor device is /dev/input/waltoptablet
(**) cursor is in absolute mode
(**) WACOM: suppress value is 2
(**) Option "USB" "on"
(**) cursor: reading USB link
(**) Option "ScreenNo" "0"
(**) cursor: attached screen number 0
(**) cursor: threshold = 27
(**) cursor: max x set to 12288
(**) cursor: max y set to 9216
(**) cursor: max z = 1023
(**) Option "BaudRate" "9600"
(II) XINPUT: Adding extended input device "cursor" (type: Wacom Cursor)
When I log into KDE (4.3.5) the behavior reverts to that described earlier. The tablet get's recognized as such though and gimp uses the pressure output. If it would be for that jump-from-screen-to-screen issue, this would be awesome.

Code:
#xinput --list --short 
"Virtual core pointer"  id=0    [XPointer]
"Virtual core keyboard" id=1    [XKeyboard]
"pen"   id=2    [XExtensionKeyboard]
"cursor"        id=3    [XExtensionKeyboard]
"AT Translated Set 2 keyboard"  id=4    [XExtensionKeyboard]
"Logitech USB Receiver" id=5    [XExtensionPointer]
"Power Button"  id=6    [XExtensionKeyboard]
"Power Button"  id=7    [XExtensionKeyboard]
I'm beginning to think that this might be a KDE issue related to how KDE handles the Xinerama multiscreen settings?

Last edited by ichrispa; 08-05-2010 at 09:45 PM.
 
Old 08-06-2010, 04:18 AM   #3
ichrispa
Member
 
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Original Poster
Rep: Reputation: 32
Solved! Here's how:

Xinerama has the nasty habit of messing up the wacom table-to-screen-mapping when the source is the tablet's coordinate system (obviously) and the target is the desktop, because Xinerama changes the desktops coordinate system.

The solution is to tell the wacom driver "don't map to the tablet's coordinates to the entire desktop, but to physical screen No x". To do this, we need to communicate our wish the the x-server's driver (not the kernel's device module! Don't fumble around in /sys/bus/usb/drivers/wacom).

"wacomcpl" is a realtime config-editor contained in the linuxwacom package. Select the devince instance (pen/sytlus/eraser/cursor...) and then select the "screen-mapping" button. Select the screen you want the tablet mapped to in the dropdown list. Calibrate the thing with the same application if necessary.

Again: All together:

How to get the Aiptek HyperPen Mini or Waltop QPad (same thing!) running under Linux(SuSE 11.2)/KDE (4.3.5):

0) The work 'Aiptek' on the packaging is meaningsless. Ignore it. This tablet is run with the wacom driver.

1) Download, compile an install the waltop-driver pack from here: http://www.waltop.com.tw/download.asp?lv=0&id=2
I was quite positively suprised by this manufacturer. Offering a complete Linux driver pack for Kernel and X, multiple kernel versions and config-tools!? OK, some of this is based on the linuxwacom project, but still: Thumbs up Waltop!
Important note: READ the readme and follow the instructions on HAL. Its only a copy-paste procedure, but its an important one!

2) We still need the wacom driver for X. Download, compile an install the linuxwacom package from here: http://linuxwacom.sourceforge.net/

3) We now have the kernel module for the waltop tablet and the wacom driver for X. First, we tell udev how to handle the device when plugged in:
goto /etc/udev/rules.d and add the file "60-waltop.rules" (under suse, there's already a 60-wacom.rules, which I used as a template):

Code:
KERNEL!="event[0-9]*", GOTO="wacom_end"

ATTRS{idVendor}=="172f", ENV{ID_PATH}=="?*", SYMLINK="input/by-path/$env{ID_PATH}-waltoptablet"

DRIVERS=="waltoptablet", ATTRS{bInterfaceNumber}=="00", ENV{WACOM_TYPE}="stylus"
DRIVERS=="waltoptablet", ATTRS{bInterfaceNumber}=="01", ENV{WACOM_TYPE}="cursor"

ATTRS{idVendor}=="172f", ATTRS{idProduct}=="0037", MODE="0755", SYMLINK+="input/waltoptablet"

ATTRS{idVendor}=="172f", ACTION=="add", RUN+="check_driver waltoptablet $devpath $env{ID_BUS}"

LABEL="wacom_end"
When you plug in the tablet now, udev should create a device /dev/input/waltoptablet linking to the appropriate event in that folder.

4) We now must inform X of the new device. There are numerous sample files out there. Mine is posted at the top of the thread.

5) Restart X!

6) Configure the tablet with "wacomcpl" (was included and installed from linuxwacom)

Done.

There still is a major offset betweem the cursor and the stylus in gimp. That one, I haven't figured out yet. Another drawback of course is that you are limited to only one screen when using the tablet. Hey: it's tablet or Xinerama, not both!

Last edited by ichrispa; 08-06-2010 at 04:19 AM.
 
Old 02-14-2011, 10:29 AM   #4
TheJoe
LQ Newbie
 
Registered: Feb 2011
Posts: 1

Rep: Reputation: 0
Hi there,
sorry to open an old thread, but i need some advice for this product.
I'm planning to buy one, does it support pressure like wacom tablets or it just stroke lines? Is it easy to configure in ubuntu / fedora?
 
Old 02-14-2011, 11:04 PM   #5
ichrispa
Member
 
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Original Poster
Rep: Reputation: 32
Hi there TheJoe,

no problem, i'm always glad if my threads help someone (after all, that's what they are for).

Quote:
does it support pressure like wacom tablets or it just stroke lines
It does support pressure sensitivity (tested with gimp and xournal). I think it was 512 levels, but it should be mentioned in the datasheet somewhere.

Quote:
Is it easy to configure in ubuntu / fedora
I am afraid i can't answer that. I don't use Ubuntu and I haven't tried Fedora since Version 6. The procedure above was tested with Debian and Suse (Ubuntu, being a Debian based Distro, should hence work).

"Easy" is also something I can't answer given that I don't know how comfortable you are manually configuring your distro. But chances with this Product are high that it won't work "out of the box".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Aiptek HyperPen meknb Linux - Hardware 0 04-18-2006 06:47 AM
Gaiptek: Aiptek Hyperpen Manager, where to find sources? npc Linux - Software 7 07-17-2005 10:32 PM
Mandrake 9.2 XFree 4.3 Aiptek Hyperpen Tablet problem purpurea Mandriva 0 01-20-2004 10:35 AM
aiptek pocket dv digit Linux - Hardware 1 09-20-2003 05:33 PM
Aiptek Hyperpen 8000u gbrethen Linux - Hardware 7 06-11-2003 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration