miércoles, 2 de septiembre de 2009

acteck dipen ap-8000 on ubuntu linux

[edit] for those of you who have ubuntu 11.04 natty this driver worked for me like a charm

sudo add-apt-repository ppa:doctormo/xorg-wizardpen

sudo apt-get update

sudo apt-get install xserver-xorg-input-wizardpen
Reboot and enjoy!!

Dont forget to edit the fdi file as told below.

I think this works since Lucid but i never tested it.
[/edit]

i was searching and finaly my solution was:
#i most thank to digitalbluewave for its blogentry, wizardpen-drv and others.
#will copy/paste what digitalbluewave suggests except modifying a little. To the point.

Steps:
Obtaining the driver
  • Download the source package: http://cid-43438aff38d34c29.skydrive.live.com/self.aspx/Public/wizardpen/wizardpen-0.7.0-alpha2.tar.gz
  • Unpack it somewhere with following command: tar -zxvf wizardpen-0.7.0-alpha2.tar.gz
  • Grab the necessary packages:sudo aptitude install xutils libx11-dev libxext-dev build-essential xautomation xinput xserver-xorg-dev
  • Change directory to where you unpacked the source code: cd wizardpen-0.6.0.2
  • Compile and install the driver: ./configure --with-xorg-module-dir=/usr/lib/xorg/modules && make && sudo make install.
  • Verify that the driver is installed correctly (Check for wizardpen_drv.la and wizardpen_drv.so): ls /usr/lib/xorg/modules/input/wizardpen_drv.*
  • Configuring and using your Wizardpen
  • For Xorg7.3, the recommended way to configure your input device is by adding HAL fdi files, which in turn allows you to hotplug your Wizardpen. This step is not only recommended, it's essentially CRUCIAL in the case of Intrepid Ibex as the xorg.conf method used in my Hardy tutorial WILL NOT WORK.
  • This new configuration method may be supported by Hardy Heron, but I greatly appreciate anyone who is able to confirm this to me :).
  • Connect your Wizardpen tablet (if you haven't already done so)
  • Find out the name of your tablet : grep -i name /proc/bus/input/devices
  • Double confirm that HAL captured the name of the tablet correctly as well: lshal | less
  • Create a new file with the name /etc/hal/fdi/policy/99-x11-wizardpen.fdi

    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <deviceinfo version="0.2">
    <device>
    <!-- This MUST match with the name of your tablet -->
    <match key="info.product" contains="NAME OF YOUR TABLE OBTAINED FROM PREVIOUS STEP">
    <merge key="input.x11_driver" type="string">wizardpen</merge>
    <merge key="input.x11_options.SendCoreEvents" type="string">true</merge>
    <merge key="input.x11_options.TopX" type="string">5619</merge>
    <merge key="input.x11_options.TopY" type="string">6554</merge>
    <merge key="input.x11_options.BottomX" type="string">29405</merge>
    <merge key="input.x11_options.BottomY" type="string">29671</merge>
    <merge key="input.x11_options.MaxX" type="string">29405</merge>
    <merge key="input.x11_options.MaxY" type="string">29671</merge>
    </match>
    </device>
    </deviceinfo>

  • Reboot your computer (*Note: Thanks to Ociosu for the update)
  • 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 start to debug your configuration.

TROUBLESHOOTING - IMPORTANT STEPS:
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 ;).
Calibrating your tablet
  1. Execute the following command: lshal | less
  2. Search the section with the name of your tablet, as obtained from Step 2 in the configuration step. The line should read something like: info.product = '[Name of your tablet]'
  3. Scroll down until you find the following line: linux.device_file = '/dev/input/eventN' (N will a number)
  4. The source package contains a program called 'wizardpen-calibrate', which is in the 'calibrate' folder, which actually echoes the appropriate X11 calibration settings
  5. Using a terminal/console, execute the calibration program: calibrate/wizardpen-calibrate /dev/input/eventN (*Note: Subtitute /dev/input/eventN with the one obtained from Step 3)
  6. Follow the instructions issued by the program, which will ask you to touch the top-left corner and bottom-right corner. Once completed, the program will echo the corresponding xorg.conf setting
  7. Edit the FDI file (/etc/hal/fdi/policy/99-x11-wizardpen.fdi) and subtitute the Top/Bottom/MaxX and Top/Bottom/MaxY values to the one obtained from the wizardpen-calibrate command
  8. Once done, restart your computer and test your tablet (UPDATE: Noy noted in the comments that you don't have to restart, but rather unplug and replug the tablet for the new settings to take effect. I'm pretty sure it'd work but I haven't tested it yet)
Till then, good luck and have fun!
FAQ - Draft, TODO
  1. Wireless mouse for Wizardpen support is only available in the latest wizardpen-0.7.0-* driver.
  2. Working with 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. TabletSetupWizardpen (Ubuntu Community Help)
  2. HOWTO: Setup a wizardpen-based tablet (Ubuntu Forums)
acteck dipen ap-8000, on ubuntu linux, gimp, pentablet, pen tablet, pen, tablet, gnu image manipulation program, pressure, ubuntu 9.04, linux, acteck, mexican, driver, mouse, usb, photoshop, painting, opensource, help, xcf, layers, canvas

2 comentarios:

rgz dijo...

Thanks, it was very useful.

Iván Rojo dijo...

Hi man, i cant install the driver can you helpme?

./configure --with-xorg-module-dir=/usr/lib/xorg/modules && make && sudo make install.


wizardpen.c:636: error: too few arguments to function 'InitButtonClassDeviceStruct'
wizardpen.c:662: warning: passing argument 3 of 'InitValuatorClassDeviceStruct' makes pointer from integer without a cast
/usr/include/xorg/input.h:296: note: expected 'Atom *' but argument is of type 'unsigned int'
wizardpen.c:662: error: too few arguments to function 'InitValuatorClassDeviceStruct'
wizardpen.c:677: error: too few arguments to function 'InitValuatorAxisStruct'
wizardpen.c:685: error: too few arguments to function 'InitValuatorAxisStruct'
wizardpen.c:693: error: too few arguments to function 'InitValuatorAxisStruct'
make[2]: *** [wizardpen.lo] Error 1
make[2]: se sale del directorio `/home/coolturens/Desktop/wizardpen-0.7.0-alpha2/src'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/home/coolturens/Desktop/wizardpen-0.7.0-alpha2'
make: *** [all] Error 2