个人工具
登录
查看“UbuntuHelp:TabletSetupWizardpen/zh”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:TabletSetupWizardpen/zh”的源代码
来自Ubuntu中文
←
UbuntuHelp:TabletSetupWizardpen/zh
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
== 已知能使用 Wizardpen-driver 驱动的数位板 == 本安装测试了以下USB数位板。 非USB并不被本指导所支持。 === <br>已知数位板名 (包装) === Acecad Flair II GT-504 <br>G-pen <br>Genius Wizardpen <br>Genius Mousepen <br>Genius <br>iBall <br>Manhattan <br>Pentagram <br>QWare <br>UC-LOGIC === <br>已知的数位板系统名 (计算机所识别的) === 语法: Output from "/sys/bus/usb/devices/*/product" (Output from "lsusb") - 名称<br>Tablet WP4030U (lsusb: UC-Logic Technology Corp. ) - Tablet WP4030U <br>Tablet WP5540U (lsusb: UC-Logic Technology Corp. Genius MousePen 5x4 Tablet) - Genius MousePen 5x4 Tablet <br>Tablet WP8060U (Genius MousePen 8x6 Tablet) - Genius MousePen 8x6" Tablet <br>Tablet WP8060U (lsusb:UC-Logic Technology Corp.) - Manhattan Graphics Tablet 8x6" <br>Tablet PF1209 (lsusb: UC-Logic Technology Corp.) - Genius PenSketch 9x12" <br>Tablet PF1209 - Pentagram Titan Tablet <br>如果您的数位板能使用,但不在列表之上,请把它添加上去。(如果您还没账号,发邮件告诉我: danielklejnstrup@gmail.com) == <br>安装您的数位板 == === 基本信息 === <br>本想到基于最新的版本:*ubuntu 7.10 (Gutsy Gibbon) 。 其他版本请参考相应页面: *ubuntu 5.10 (Breezy Badger):TabletSetupWizardpenBreezy *ubuntu 6.06 (Dapper Drake):TabletSetupWizardpenDapper *ubuntu 6.10 (Edgy Eft): TabletSetupWizardpenEdgy *ubuntu 7.04 (Feisty Fawn):TabletSetupWizardpenFeisty AMD64 的电脑按以下操作步骤操作可能会出现不能工作的问题,在这里有一个ubuntu7.10版的AMD64软件包。 === 安装所需的软件包 === <br>打开终端安装所需要的包——执行以下命令: sudo apt-get install xutils libx11-dev libxext-dev x-dev build-essential xautomation xinput === <br>下载并安装驱动 === <br>下载 wizardpen驱动 并解压——执行以下命令: wget http://www.dallerweb.dk/ubuntu/wizardpen-driver-0.5.0.tar.gz<br>tar -xvzf wizardpen-driver-0.5.0.tar.gz<br>cd wizardpen-driver-0.5.0 <br>在ubuntu7.10里,似乎有一个驱动编译的问题。为了修正它,我在ubuntu6.06版系统里编译了驱动,并上传到我的站点上,要安装“我”的驱动,运行下列命令: wget http://www.dallerweb.dk/dl.php?file=wizardpen_drv.so -O wizardpen_drv.so<br>sudo cp wizardpen_drv.so /usr/lib/xorg/modules/input/ === <br>安装udev (如果您的手写板是USB接口) === <br>如果还没连接,请连接您的手写板。 找出它的设备名(产品) ——执行以下命令: cat /sys/bus/usb/devices/*/product <br>根据您的系统会看到类似这样的输出: Tablet WP8060U<br>UHCI Host Controller<br>UHCI Host Controller<br>UHCI Host Controller<br>EHCI Host Controller <br>记下手写板产品 (很明显在我的是 Tablet WP8060U ) Now,,添加 udev 规则: (注意上面输出的细节!) 执行以下命令: sudo bash<br>echo 'BUS=="usb", KERNEL=="event*", SYSFS{product}=="Tablet WP8060U", NAME="input/%k", SYMLINK+="tablet-event", MODE="0666"' >> /etc/udev/rules.d/010_local.rules<br>exit <br>重启udev ——执行: sudo /etc/init.d/udev restart <br>检查系统连接是否被添加了——执行以下命令: ls -la /dev/tablet-event <br>如果输出文字,说明安装成功了。 === 调整 === <br>注:在这一小节,您能从调整中见到输出信息,如果您的数位板未在此列出,可以使用那个输出代替。 如果您的数位板未列出,把输出的信息和数位板的型号用邮件发给我 。(请看页面结尾的邮箱地址 )。如果您想自己调整,那就继续下去吧。 AMD64 use may cause problems! - Currently the following link doesn't work! Note: AMD64 Gutsy users only can install a ready made package for the calibration tool from here. Enter the "calibrate"-directory - Run this command: cd calibrate<br>Build the calibration tool - Run this command: make<br>Calibrate in order to find the edges of your tablet/digitizer - Run this command: sudo ./wizardpen-calibrate /dev/tablet-event<br>Save the output from wizardpen-calibrate (the last 12 lines!) - You'll need it later in this howto! [编辑] Calibration output (If calibrate for some reason doesn't work!) <br>Skip this section if calibrate worked for you! Tablet W5540U (UC-Logic): Section "InputDevice"<br>Identifier "WizardPen Tablet"<br>Option "SendCoreEvents" "true"<br>Driver "wizardpen"<br>Option "Device" "/dev/tablet-event"<br>Option "TopX" "2199"<br>Option "TopY" "3598"<br>Option "BottomX" "30325"<br>Option "BottomY" "29278"<br>Option "MaxX" "30325"<br>Option "MaxY" "29278"<br>EndSection<br>Tablet W8060U (UC-Logic): Section "InputDevice"<br>Identifier "WizardPen Tablet"<br>Option "SendCoreEvents" "true"<br>Driver "wizardpen"<br>Option "Device" "/dev/tablet-event"<br>Option "TopX" "826"<br>Option "TopY" "2626"<br>Option "BottomX" "32747"<br>Option "BottomY" "32762"<br>Option "MaxX" "32747"<br>Option "MaxY" "32762"<br>EndSection<br>Tablet PF1209 (UC-LOGIC) Section "InputDevice"<br>Identifier "WizardPen Tablet"<br>Option "SendCoreEvents" "true"<br>Driver "wizardpen"<br>Option "Device" "/dev/tablet-event"<br>Option "TopX" "0"<br>Option "TopY" "1553"<br>Option "BottomX" "32541"<br>Option "BottomY" "32762"<br>Option "MaxX" "32541"<br>Option "MaxY" "32762"<br>EndSection<br>[编辑] Setting up X <br>Now we are ready to edit the xorg.conf file! Take a backup - Run this command: sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup<br>Edit the file - Run this command: sudo vim /etc/X11/xorg.conf<br>Press "I" - So that "-- INSERT --" appears! Insert the output from calibrate into xorg.conf: (just place it below your generic mouse!) Add the following line in the "ServerLayout" section: InputDevice "WizardPen Tablet" "AlwaysCore"<br>Save the file, and exit the editor! (Press "ESC" and write ":wq" and press "Enter") [编辑] Making X start without a tablet connected <br>Now, the driver should NOT be initialized, if the tablet is NOT found! The wizardpen-driver does not support hotplugging, so we should run a script on startup, to define whether or not the tablet is present. Open /etc/rc.local - Run this command: sudo vim /etc/rc.local<br>Press "I" - So that "-- INSERT --" appears! ...and insert some code: (insert it JUST above "exit 0") XORG_CONF=/etc/X11/xorg.conf<br>if [ -e /dev/tablet-event ]; then<br>sed -ie 's/^\(\s*\)\#\(\s*InputDevice\s\s*\"WizardPen\ Tablet\"\s\s*\"AlwaysCore\"\)\s*$/\1\2/' "$XORG_CONF"<br>echo "Udev created /dev/tablet-event = Tablet present! - Tablet-driver enabled"<br>else<br>sed -ie 's/\(^\s*InputDevice\s\s*\"WizardPen\ Tablet\"\s\s*\"AlwaysCore\"\)\s*$/\#&/' "$XORG_CONF"<br>echo "Udev did NOT create /dev/tablet-event = tablet NOT present! - Tablet-driver disabled"<br>fi<br>...so that the file looks something like this: (in case you haven't added anything else to the file!) !/bin/sh -e<br>#<br># rc.local<br>#<br># This script is executed at the end of each multiuser runlevel.<br># Make sure that the script will "exit 0" on success or any other<br># value on error.<br>#<br># In order to enable or disable this script just change the execution<br># bits.<br>#<br># By default this script does nothing. <br>XORG_CONF=/etc/X11/xorg.conf<br>if [ -e /dev/tablet-event ]; then<br>sed -ie 's/^\(\s*\)\#\(\s*InputDevice\s\s*\"WizardPen\ Tablet\"\s\s*\"AlwaysCore\"\)\s*$/\1\2/' "$XORG_CONF"<br>echo "Udev created /dev/tablet-event = Tablet present! - Tablet-driver enabled"<br>else<br>sed -ie 's/\(^\s*InputDevice\s\s*\"WizardPen\ Tablet\"\s\s*\"AlwaysCore\"\)\s*$/\#&/' "$XORG_CONF"<br>echo "Udev did NOT create /dev/tablet-event = tablet NOT present! - Tablet-driver disabled"<br>fi exit 0 Save the file, and exit the editor! (Press "ESC" and write ":wq" and press "Enter") Now you can test udev's ability to detect the tablet - Run this command: sudo /etc/init.d/rc.local start<br>The output will tell you if it is present or not! - And it should match reality! (try to disconnect it, and try again! - connect, and then again! - etc...) You should now be able to restart X and have the tablet working as a mouse. I'm still working on a way to support hotplugging, but the above code-example will make X start without a present tablet. [编辑] Configuring the buttons on the pen <br>I'm working on a wizard for this task! In the meantime, look into the package "xinput" which is installed first in this guide. Here is a list of numbers with their corresponding function: Number Function <br>0 No action (only movement) <br>1 Left button click <br>2 Middle Button click <br>3 Right Button click <br>4 Scroll up (one click equals one step of scroll wheel in my logitech mouse) <br>5 Scroll down [编辑] Configuring the tablet HOTSPOTS <br>I'm working on a daemon for this task! It's working almost well so far, just need a little tweaking, and making it start automatically. The biggest problem is to execute the commands as child-processes (so that a failure doesn't cause the daemon to die!) [编辑] Troubleshooting - See this if you have any problems <br>[编辑] The command cat /var/log/Xorg.0.log | grep "wizardpen" outputs errors <br>The output of <br>cat /var/log/Xorg.0.log | grep "wizardpen"<br>may reveal several errors, some of them are: Module present, but with compilation-errors: (II) LoadModule: "wizardpen" <br>(II) Loading /usr/lib/xorg/modules/input/wizardpen_drv.so<br>dlopen: /usr/lib/xorg/modules/input/wizardpen_drv.so: undefined symbol: __stack_chk_fail_local <br>(EE) Failed to load /usr/lib/xorg/modules/input/wizardpen_drv.so<br>(II) UnloadModule: "wizardpen" <br>(EE) Failed to load module "wizardpen" (loader failed, 7)<br>(EE) No Input driver matching `wizardpen' <br>Module missing: (II) LoadModule: "wizardpen"<br>(WW) Warning, couldn't open module wizardpen<br>(II) UnloadModule: "wizardpen"<br>(EE) Failed to load module "wizardpen" (module does not exist, 0)<br>(EE) No Input driver matching `wizardpen' <br>If you get the above using the Gutsy AMD64 package do the following, then restart Xorg: sudo cp /usr/lib/modules/input/wizardpen_drv.so /usr/lib/xorg/modules/input/<br>[编辑] The Xserver is not starting after playing with the xorg.conf file <br>Wow - That's bad! - First of all, check that you set everything right! Well, I suggest that you drop me an email, telling me what went wrong! And then just restore the backup we created - run this command: sudo cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf<br>[编辑] Everything seems to work, except pressure sensitivity <br>All the tablets mentioned in "known tablets" has pressure sensitivity support in Linux! If pressure-sensitivity doesn't work, there are 3 possible causes! 1. The driver is not properly installed 2. The tablet is not supported by this driver 3. The application is not properly configured, to accept pressure sensitivity. Please make sure that your favourite application supports pressure sensitivity. Application Support for pressure sensitivity Guide <br>Krita Full support since 1.6 Non yet <br>Inkscape Full support TabletSetupInkscape <br>Gimp Full support - but problems with 2.2.13 TabletSetupGIMP Please tell me about other applications! [编辑] Pressure sensitivity works, but is not calibrated well <br>The section we inserted into xorg.conf holds some options to calibrate the area of the tablet, but I haven't put in options to configure pressure sensitivity, since it varies a lot. You can insert these options to enable MAX and MIN pressure sensitivity: Option "TopZ" "10" Option "BottomZ" "511" Option "MaxZ" "511" Where "TopZ" represents the lowest pressure-level to accept, and "BottomZ"/"MaxZ" represents the maximum pressure-level to accept. [编辑] I have problems not solved by the above troubleshooting <br>Maybe I can help! Plug in your tablet FIRST (If not already plugged in), and THEN run these commands: This requires that you have downloaded the tar-file to your home-directory! (Which is default!) cd ~/wizardpen-driver-0.5.0/debug<br>./debug<br>The last command (may take some time to execute) will create the file "errorlog" which holds the information I would like in order to be able to help you! Please mail me on: danielklejnstrup@gmail.com (And don't forget to attach the errorlog!) <br>
返回至
UbuntuHelp:TabletSetupWizardpen/zh
。