作者:Tank hi.baidu.com/uroot 2009.4.26
升级到9.04,重新配置Tablet. 型号是W5540U.
1. 编译:
首先把编译需要环境和lib下载安装。
sudo apt-get install xutils libx11-dev libxext-dev x-dev
sudo apt-get install build-essential xautomation xinput xserver-xorg-dev
然后 Tablet驱动下载:
http://code.google.com/p/linuxgenius/
http://linuxgenius.googlecode.com/files/wizardpen-0.7.0-alpha2.tar.gz
tar xfz wizardpen-0.7.0-alpha2.tar.gz
cd wizardpen-0.7.0-alpha2
sudo ./configure --with-xorg-module-dir=/usr/lib/xorg/modules
sudo make
sudo make install
安装完成后,
查看一下是否成功。
ls /usr/lib/xorg/modules/input/wizardpen_drv.*
应该有两个文件:
/usr/lib/xorg/modules/input/wizardpen_drv.la
/usr/lib/xorg/modules/input/wizardpen_drv.so
(
不知道9.04是否还需要如下步骤?我是做了。
sudo bash
echo 'BUS=="usb", KERNEL=="event*", SYSFS{product}=="Tablet
WP5540U", NAME="input/%k", SYMLINK+="tablet-event", MODE="0666"' >> /etc/udev/rules.d/010_local.rules
)
2.查看设备名称: grep -i name /proc/bus/input/devices
N: Name="Power Button (FF)"
N: Name="Power Button (CM)"
N: Name="Sleep Button (CM)"
N: Name="Macintosh mouse button emulation"
N: Name="UC-LOGIC Tablet WP5540U"
...
注意:从这里开始,和之前版本配置不一样。不需要修改xorg.conf了。
3.创建配置文件:
sudo gedit /etc/hal/fdi/policy/99-x11-wizardpen.fdi
内容如下:其中的橙色设备名字需要用自己的设备名替换。就是第2步中查找到的设备名。
<?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="input.x11_options.SendCoreEvents" type="string">true</merge>
<merge key="input.x11_options.TopX" type="string">2684</merge>
<merge key="input.x11_options.TopY" type="string">4679</merge>
<merge key="input.x11_options.BottomX" type="string">30447</merge>
<merge key="input.x11_options.BottomY" type="string">29569</merge>
<merge key="input.x11_options.MaxX" type="string">30447</merge>
<merge key="input.x11_options.MaxY" type="string">29569</merge>
</match>
</device>
</deviceinfo>
4. reboot .
5. 校正位置,可以使用
cd wizardpen-0.7.0-alpha2/calibrate/
sudo ./wizardpen-calibrate /dev/tablet-event
点左上角和右下角。然后根据屏幕输出数据调整3中配置文件的数据。
参考:
Ubuntu 6.10 安装后记[十四]-Linux下的手写板(Tablet)驱动配置
[Linux]Ubuntu 8.04 手写板(Tablet WP5540U)驱动配置成功 2008.8.16
http://digitalbluewave.blogspot.com/2008/10/genius-wizardpen-with-intrepid-ibex.html
https://help.ubuntu.com/community/TabletSetupWizardpen