jueves, 29 de julio de 2010

Tableta digitalizadora G-Pen 450 en Ubuntu 9.04

Luego de mucho estudiar y ensayar pude hacer funcionar correctamente la tableta digitalizadora Genius G-Pen 450 en un Ubuntu 9.04. Los pasos que seguí es un resumen en castellano de varias ayudas en idioma inglés.


Nota: el lápiz se apoya solamente para escribir o activar la tableta,  sino se interpreta como un click del mause y puede hacer cualquier cosa  si no está calibrada la presión.



1- Debemos bajar y instalar el paquete (a esta fecha 29-7-10)  xserver-xorg-input-wizardpen_0.7.0-1_i386.deb, o wizardpen, para ello  vamos a Sistema-> Adminsitración-> Orígenes de Software, y en la solapa  "software de terceros" añadimos:


luego pedimos actualizar, e ignoramos que la llave pública no la encuentra.

Luego vamos al gestor de paquete Synaptic, Sistema-> Administracion-> Gestor de paquetes Synaptic, marcamos el paquete xserver-xorg-input-wizardpen. Pedimos que se instale e ignoramos que es de dudosa procedencia.

2- Se pude certificar que fueron instalados los driver con:

ls /usr/lib/xorg/modules/input/wizardpen_drv.*

3- Conectamos la tableta al puerto USB, que si fue reconocida debe aparece cuando usamos: grep -i name /proc/bus/input/devices

N: Name="Power Button (FF)"
N: Name="Power Button (CM)"
N: Name="Macintosh mouse button emulation"
N: Name="AT Translated Set 2 keyboard"
N: Name="PC Speaker"
N: Name="ImPS/2 Generic Wheel Mouse"
N: Name="UC-LOGIC Tablet WP5540U"
Donde mi tableta es WP5540U.

4- Luego creamos el archivo 99-x11-wizardpen.fdi, si necesidad de modificar el xorg.conf como:

sudo vi /etc/hal/fdi/policy/99-x11-wizardpen.fdi

y le colocamos estos valores por defecto:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<deviceinfo version="0.2">
<device>
<!-- This MUST match with the name of your tablet obtained -->
<!-- in Step 2 specified previously -->
<match key="info.product" contains="UC-LOGIC Tablet WP5540U">
<merge key="input.x11_driver" type="string">wizardpen</merge>
<merge key="input.x11_options.SendCoreEvents" type="string">true</merge>
<!-- Modify these configuration accordingly -->
<!-- See CONFIGURATION OPTIONS section for the full-set of -->
<!-- configurable options -->
<merge key="input.x11_options.TopX" type="string">17317</merge>
<merge key="input.x11_options.TopY" type="string">7176</merge>
<merge key="input.x11_options.TopZ" type="string">10</merge>
<merge key="input.x11_options.BottomX" type="string">31759</merge>
<merge key="input.x11_options.BottomY" type="string">17537</merge>
<merge key="input.x11_options.BottomZ" type="string">511</merge>
<merge key="input.x11_options.MaxX" type="string">31759</merge>
<merge key="input.x11_options.MaxY" type="string">17537</merge>
<merge key="input.x11_options.MaxZ" type="string">511</merge>
</match>
</device>
</deviceinfo>

reiniciamos el udevd como: sudo /etc/init.d/udev restart

si bien anda cuando deslizamos el lápiz sin apoyar el puntero del ratón anda a lo loco, eso se debe a que falta calibrar la tableta en función del movimiento de nuestra mano,, para ello ejecutamos: lshal | less para saber que evento usa nuestra tablea... en mi caso es :

info.product = 'UC-LOGIC Tablet WP5540U' (string)
input.device = '/dev/input/event4' (string)

luego usamos sudo wizardpen-calibrate /dev/input/event4

y aparecerá esto, donde nos sugiere que movamos el lápiz de un extremo al otro con nuestra velocidad de la mano...

Please, press the stilus at ANY
corner of your desired working area: ok, got 16079,32745

Please, press the stilus at OPPOSITE
corner of your desired working area: ok, got 32185,16088

According to your input you may put the following
 
lines into your XF86Config/X.Org configuration file:

Driver "wizardpen"
Option "Device" "/dev/input/event4"
Option "TopX" "16079"
Option "TopY" "16088"
Option "BottomX" "32185"
Option "BottomY" "32745"

Reemplazamos esos valores en los item correspondientes en el archivo 99-x11-wizardpen.fdi, (no en el archivo que nos sugiere) de vuelta ejecutamos sudo /etc/init.d/udev restart y si todo anda bien el ratón se debería mover de manera cómoda (sin apoyar el lapiz).

1 comentario:

Anónimo dijo...

Tengo la genius Easypen i405 funciona comootro mouse, el lapiz no funciona la presion ??