Difference between revisions of "Genius Tablet"

From ArchWiki
Jump to: navigation, search
(Created article, need to finish it.)
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
[[Category:Input devices]]
 
{{Stub}}
 
{{Stub}}
  
=Introduction=
+
==Introduction==
  
 
This is a guide to getting a Genius Wizardpen or MousePen tablet set up in Arch Linux.
 
This is a guide to getting a Genius Wizardpen or MousePen tablet set up in Arch Linux.
 +
It also work with G-Pen Series.
  
=Installation=
+
==Installation==
  
First, you need to install the X11 drivers. the wizardpen package in aur provides them:
+
First, you need to install the X11 drivers. The wizardpen package in aur provides them:
  
http://aur.archlinux.org/packages.php?ID=18158
+
https://aur.archlinux.org/packages.php?ID=42671
  
=Configuration=
+
==Configuration==
 +
First you have to know if your tablet is in the udev .rules file:
 +
;#lsusb
 +
:Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 +
:Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 +
:Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 +
:Bus 001 Device 002: ID 0402:5602 ALi Corp. M5602 Video Camera Controller
 +
:Bus 002 Device 005: ID 172f:0038 Waltop International Corp. Genius G-Pen F509
  
Next we need to configure Xorg. The driver package also comes with a utility called wizardpen-calibrate, which will aid you in finding appropriate settings, but first we need to know what device to run it on. Open a terminal and type:
+
The last one is our tablet. 172f  is the vendor id, 0038 the model id
  
cat /proc/bus/input/devices
+
Now we have to search the
 +
/etc/udev/rules.d/67-xorg-wizardpen.rules for the 2 id's which identifies our tablet
 +
...
 +
#Waltop
 +
ENV{ID_VENDOR_ID}=="172f",  ENV{ID_MODEL_ID}=="0038", ENV{x11_driver}="wizardpen"
 +
...
  
There should be at least one device that is recognizably a tablet. For example:
+
In our case we are lucky, our  tablet is here.  
  
I: Bus=0003 Vendor=5543 Product=0005 Version=0100
+
If it doesn't, just copy-paste the line from above and replace the VENDOR_ID and the MODEL_ID with ours.
N: Name="UC-LOGIC Tablet WP8060U"               
+
P: Phys=usb-0000:00:13.1-1/input0               
+
S: Sysfs=/class/input/input4                   
+
U: Uniq=                                       
+
H: Handlers=mouse1 event4                       
+
B: EV=1f                                       
+
B: KEY=c01 0 3f0001 0 0 0 0 0 0 0 0             
+
B: REL=303                                       
+
B: ABS=100000f                                 
+
B: MSC=10
+
  
Then, run wizardpen calibrate as root on the appropriate device. in this case we would do:
+
Now restart the computer, or restart X server and plug out an in your tablet( so udev rule take effect ).
  
wizardpen-calibrate /dev/input/event4
+
Test your tablet, mine had a wrong calibration , i.e. the resolution of monitor didn't match the whole surface of tablet.
  
The event4 comes from the "Handlers" line of the output above. if yours is event7, use that instead. Then follow the on-screen instructions. you will be asked to touch the stylus to two oppisite corners of the tablet, and then will be given settings to use in your xorg.conf for example:
+
==Calibration==
  
Please, press the stilus at ANY
+
Just do the following:
corner of your desired working area: ok, got 743,2241
+
#su
+
#wizardpen-calibrate  /dev/input/by-id/usb-WALTOP_Tablet-event-mouse
Please, press the stilus at OPPOSITE
+
(just find yours there, and be sure that is the *event* one.)
corner of your desired working area: ok, got 32747,32762
+
+
According to your input you may put following
+
lines into your XF86Config file:
+
+
        Driver          "wizardpen"
+
        Option          "Device"        "/dev/input/event4"
+
        Option          "TopX"          "743"
+
        Option          "TopY"          "2241"
+
        Option          "BottomX"      "32747"
+
        Option          "BottomY"      "32762"
+
        Option          "MaxX"          "32747"
+
        Option          "MaxY"          "32762"
+
  
These settings are for a MousePen 8x6 tablet. They may or may not be appropriate for your tablet.
+
Follow the instruction there, and what you receive is the configuration for your tablet.
 +
;..........................................................................................................................................
 +
:Please, press the stilus at ANY
 +
:corner of your desired working area: ok, got 189,77
 +
:
 +
:Please, press the stilus at OPPOSITE
 +
:corner of your desired working area: ok, got 17920,10734
 +
:
 +
:According to your input you may put the following
 +
:lines into your XF86Config/X.Org configuration file:
 +
:
 +
: Driver "wizardpen"
 +
: Option "Device" "/dev/input/by-id/usb-WALTOP_Tablet-event-mouse"
 +
: Option "TopX" "189"
 +
: Option "TopY" "77"
 +
: Option "BottomX" "17920"
 +
: Option "BottomY" "10734"
 +
:.........................................................................................................................................
 +
 
 +
The package will create {{ic|/etc/X11/xorg.conf.d/70-wizardpen.conf}} file which you can access for configuration.
 +
 
 +
Now edit that file, and replace with the configuration you receive. ( be careful not to remove everything from that file, just replace these you received from wizardpen-calibrate)
 +
 
 +
Most likely you will also need to disable ABI version checking in Xorg since otherwise wizardpen driver module will not load because of ABI version mismatch. Do it by adding the following to your {{ic|/etc/X11/xorg.conf}}:
 +
 
 +
Section "ServerFlags"
 +
    Option "IgnoreABI" "True"
 +
EndSection
 +
 
 +
After this, reboot or restart your X server.

Revision as of 17:35, 21 April 2012

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Genius Tablet#)

Introduction

This is a guide to getting a Genius Wizardpen or MousePen tablet set up in Arch Linux. It also work with G-Pen Series.

Installation

First, you need to install the X11 drivers. The wizardpen package in aur provides them:

https://aur.archlinux.org/packages.php?ID=42671

Configuration

First you have to know if your tablet is in the udev .rules file:

  1. lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0402:5602 ALi Corp. M5602 Video Camera Controller
Bus 002 Device 005: ID 172f:0038 Waltop International Corp. Genius G-Pen F509

The last one is our tablet. 172f is the vendor id, 0038 the model id

Now we have to search the /etc/udev/rules.d/67-xorg-wizardpen.rules for the 2 id's which identifies our tablet ...

  1. Waltop

ENV{ID_VENDOR_ID}=="172f", ENV{ID_MODEL_ID}=="0038", ENV{x11_driver}="wizardpen" ...

In our case we are lucky, our tablet is here.

If it doesn't, just copy-paste the line from above and replace the VENDOR_ID and the MODEL_ID with ours.

Now restart the computer, or restart X server and plug out an in your tablet( so udev rule take effect ).

Test your tablet, mine had a wrong calibration , i.e. the resolution of monitor didn't match the whole surface of tablet.

Calibration

Just do the following:

  1. su
  2. wizardpen-calibrate /dev/input/by-id/usb-WALTOP_Tablet-event-mouse

(just find yours there, and be sure that is the *event* one.)

Follow the instruction there, and what you receive is the configuration for your tablet.

..........................................................................................................................................
Please, press the stilus at ANY
corner of your desired working area: ok, got 189,77
Please, press the stilus at OPPOSITE
corner of your desired working area: ok, got 17920,10734
According to your input you may put the following
lines into your XF86Config/X.Org configuration file:
Driver "wizardpen"
Option "Device" "/dev/input/by-id/usb-WALTOP_Tablet-event-mouse"
Option "TopX" "189"
Option "TopY" "77"
Option "BottomX" "17920"
Option "BottomY" "10734"
.........................................................................................................................................

The package will create /etc/X11/xorg.conf.d/70-wizardpen.conf file which you can access for configuration.

Now edit that file, and replace with the configuration you receive. ( be careful not to remove everything from that file, just replace these you received from wizardpen-calibrate)

Most likely you will also need to disable ABI version checking in Xorg since otherwise wizardpen driver module will not load because of ABI version mismatch. Do it by adding the following to your /etc/X11/xorg.conf:

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

After this, reboot or restart your X server.