|
Well, as you may already know, the Genius Wizardpen Tablet works great on Linux!
Here I´ll try to give you all the necessary information to make it work on your Ubuntu Jaunty Jackalope, and most important of all, I´ll give you a couple of tricks that will make pressure sensitivity work in Blender!
(Please refer to the Links at the bottom to see where I extracted this info from)
Step 1 - Get the driver working!
First of all, get the driver…
If you have a 32 bits Ubuntu system you can try downloading this Deb package done by Giorgo Enrico:
http://www.mediafire.com/file/nyzyynygiyy/wizardpen_0.7.0-alpha2_i386.deb
(if this works for you, you can jump to the configuration section)
If you have a 64 bits system, or you want to compile it yourself, download the Source Code of the driver.
Source Code Link: 1, 2
*64 bits version by Guillermo Espertino! wizardpen-0.7.0_alpha2-1_amd64.deb
Compiling the Driver
-
Unpack it.
- 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.
- In order to compile the driver in Jaunty, You have to delete parameter ‘xf86GetMotionEvents’ in file ’src/wizardpen.c’ on line 648:
| if (InitValuatorClassDeviceStruct(dev,3,xf86GetMotionEvents,local->history_size,((priv->flags & ABSOLUTE_FLAG)? Absolute: Relative)|OutOfProximity)== FALSE)
The corrected line will look like this:
if (InitValuatorClassDeviceStruct(dev,3,local->history_size,((priv->flags & ABSOLUTE_FLAG)? Absolute: Relative)|OutOfProximity)== FALSE)
|
-
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.*
Step 2 - 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.
-
Connect your Wizardpen tablet.
- 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 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.
That should get your Genius Tablet working. If necessary, you can calibrate the tablet.
Calibrating your tablet
- Execute the following command: lshal | less
- 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]‘
- Scroll down until you find the following line: linux.device_file = ‘/dev/input/eventN‘ (N will be a number)
- The source package contains a program called ‘wizardpen-calibrate’, which is in the ‘calibrate’ folder, which actually echoes the appropriate X11 calibration settings
- 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)
- 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
- Edit the FDI file (/etc/hal/fdi/policy/99-x11-wizardpen.fdi) and subtitute the Top/Bottom/MaxX and Top/Bottom/MaxY values for the ones obtained from the wizardpen-calibrate command
- Once done, restart your computer and test your tablet.
Well, that would be it… now for the most important part….Blender!
Step - 3 Making Blender Recongnize Pressure Sensitivity!
(note that this might work for any graphic tablet, it is not Genius specific)
This step is actually very simple, you just have to add the following line to your FDI file:
| <merge key=”info.product” type=”string”>stylus</merge> |
What this line does is naming your tablet ¨stylus¨, and that is exactly what Blender needs to recognize it.
This is how my working FDI looks like:
|
<?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=”UC-LOGIC Tablet WP5540U”>
<merge key=”input.x11_driver” type=”string”>wizardpen</merge>
<merge key=”info.product” type=”string”>stylus</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>
|
Download FDI (in order to avoid problems with the format of the quotes when copy-pasting)
Well, I hope all this info helps you getting your wizardpen working!!
Thanks a lot to the people that contributed and still contribute to the developement and maintainance of the driver!!
References and Sources:
The Digital Blue Wave (Intrepid)
The Digital Blue Wave (Jaunty)
BlenderArtists
|