特殊:Badtitle/NS100:TabletSetupWizardpenBreezy:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第110行: | 第110行: | ||
<pre><nowiki> | <pre><nowiki> | ||
Section "InputDevice" | Section "InputDevice" | ||
Identifier "WizardPen Tablet" | Identifier "WizardPen Tablet" | ||
Option "SendCoreEvents" "true" | Option "SendCoreEvents" "true" | ||
(the output from calibrate) | (the output from calibrate) | ||
EndSection | EndSection | ||
</nowiki></pre> | </nowiki></pre> | ||
第132行: | 第132行: | ||
XORG_CONF=/etc/X11/xorg.conf | XORG_CONF=/etc/X11/xorg.conf | ||
if [ -e /dev/tablet-event ]; then | if [ -e /dev/tablet-event ]; then | ||
sed -ie 's/^\(\s*\)\#\(\s*InputDevice\s\s*\"WizardPen\ Tablet\"\s\s*\"AlwaysCore\"\)\s*$/\1\2/' "$XORG_CONF" | sed -ie 's/^\(\s*\)\#\(\s*InputDevice\s\s*\"WizardPen\ Tablet\"\s\s*\"AlwaysCore\"\)\s*$/\1\2/' "$XORG_CONF" | ||
echo "Udev created /dev/tablet-event, which means that the tablet is present! - Tablet-driver enabled" # You can delete this line! - It's only for debugging! | echo "Udev created /dev/tablet-event, which means that the tablet is present! - Tablet-driver enabled" # You can delete this line! - It's only for debugging! | ||
else | else | ||
sed -ie 's/\(^\s*InputDevice\s\s*\"WizardPen\ Tablet\"\s\s*\"AlwaysCore\"\)\s*$/\#&/' "$XORG_CONF" | sed -ie 's/\(^\s*InputDevice\s\s*\"WizardPen\ Tablet\"\s\s*\"AlwaysCore\"\)\s*$/\#&/' "$XORG_CONF" | ||
echo "Udev did NOT create /dev/tablet-event, which means that the tablet is NOT present! - Tablet-driver disabled" # You can delete this line! - It's only for debugging! | echo "Udev did NOT create /dev/tablet-event, which means that the tablet is NOT present! - Tablet-driver disabled" # You can delete this line! - It's only for debugging! | ||
fi | fi | ||
</nowiki></pre> | </nowiki></pre> |
2007年12月6日 (四) 10:56的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/TabletSetupWizardpenBreezy }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/af | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|Afrikaans| [[::TabletSetupWizardpenBreezy/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/ar | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|العربية| [[::TabletSetupWizardpenBreezy/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/az | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|azərbaycanca| [[::TabletSetupWizardpenBreezy/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/bcc | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|جهلسری بلوچی| [[::TabletSetupWizardpenBreezy/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/bg | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|български| [[::TabletSetupWizardpenBreezy/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/br | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|brezhoneg| [[::TabletSetupWizardpenBreezy/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/ca | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|català| [[::TabletSetupWizardpenBreezy/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/cs | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|čeština| [[::TabletSetupWizardpenBreezy/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/de | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|Deutsch| [[::TabletSetupWizardpenBreezy/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/el | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|Ελληνικά| [[::TabletSetupWizardpenBreezy/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/es | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|español| [[::TabletSetupWizardpenBreezy/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/fa | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|فارسی| [[::TabletSetupWizardpenBreezy/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/fi | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|suomi| [[::TabletSetupWizardpenBreezy/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/fr | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|français| [[::TabletSetupWizardpenBreezy/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/gu | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|ગુજરાતી| [[::TabletSetupWizardpenBreezy/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/he | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|עברית| [[::TabletSetupWizardpenBreezy/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/hu | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|magyar| [[::TabletSetupWizardpenBreezy/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/id | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|Bahasa Indonesia| [[::TabletSetupWizardpenBreezy/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/it | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|italiano| [[::TabletSetupWizardpenBreezy/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/ja | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|日本語| [[::TabletSetupWizardpenBreezy/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/ko | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|한국어| [[::TabletSetupWizardpenBreezy/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/ksh | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|Ripoarisch| [[::TabletSetupWizardpenBreezy/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/mr | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|मराठी| [[::TabletSetupWizardpenBreezy/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/ms | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|Bahasa Melayu| [[::TabletSetupWizardpenBreezy/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/nl | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|Nederlands| [[::TabletSetupWizardpenBreezy/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/no | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|norsk| [[::TabletSetupWizardpenBreezy/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/oc | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|occitan| [[::TabletSetupWizardpenBreezy/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/pl | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|polski| [[::TabletSetupWizardpenBreezy/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/pt | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|português| [[::TabletSetupWizardpenBreezy/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/ro | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|română| [[::TabletSetupWizardpenBreezy/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/ru | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|русский| [[::TabletSetupWizardpenBreezy/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/si | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|සිංහල| [[::TabletSetupWizardpenBreezy/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/sq | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|shqip| [[::TabletSetupWizardpenBreezy/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/sr | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|српски / srpski| [[::TabletSetupWizardpenBreezy/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/sv | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|svenska| [[::TabletSetupWizardpenBreezy/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/th | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|ไทย| [[::TabletSetupWizardpenBreezy/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/tr | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|Türkçe| [[::TabletSetupWizardpenBreezy/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/vi | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|Tiếng Việt| [[::TabletSetupWizardpenBreezy/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/yue | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|粵語| [[::TabletSetupWizardpenBreezy/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/zh | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|中文| [[::TabletSetupWizardpenBreezy/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/zh-hans | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|中文(简体)| [[::TabletSetupWizardpenBreezy/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:TabletSetupWizardpenBreezy | UbuntuHelp:TabletSetupWizardpenBreezy | {{#if: | :}}TabletSetupWizardpenBreezy}}/zh-hant | • {{#if: UbuntuHelp:TabletSetupWizardpenBreezy|中文(繁體)| [[::TabletSetupWizardpenBreezy/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:TabletSetupWizardpenBreezy|:TabletSetupWizardpenBreezy|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :TabletSetupWizardpenBreezy/zh | | {{#ifexist: TabletSetupWizardpenBreezy/zh | | {{#ifeq: {{#titleparts:TabletSetupWizardpenBreezy|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:TabletSetupWizardpenBreezy|1|-1|}} | zh | | }}
THIS GUIDE IS NO LONGER UPDATED - SEE: TabletSetupWizardpen for support for the newest release
Known tablets working with the Wizardpen-driver
The setup has been tested with the following tablets.
Known vendors
- UC-LOGIC
Known tablets
- Tablet WP5540U
- Tablet WP8060U
Setting up your tablet
General Information
This guide is based on: *ubuntu 6.06 - Dapper Drake For the newest release, please see TabletSetupWizardpen
The first step...
Open a terminal Install some needed packages - Run this command:
sudo apt-get install xutils libx11-dev libxext-dev x-dev build-essential
Downloading and installing the driver
Download the wizardpen driver, and extract it! - Run these commands:
wget http://www.stud.fit.vutbr.cz/~xhorak28/wizardpen-driver-0.5.0.tar.gz
tar -xvzf wizardpen-driver-0.5.0.tar.gz
cd wizardpen-driver-0.5.0
Some adjustment is needed - Run this command:
sed -ie 's,\#include\ \"/usr/X11R6/lib/X11/config/Server.tmpl\",,' Imakefile
Create a Makefile, from the Imakefile - Run this command:
xmkmf
Run "make" to build the X driver - Run this command:
make
Copy the driver into the input-driver-directory:
sudo cp wizardpen_drv.o /usr/X11R6/lib/modules/input/
Setting up udev
Connect your tablet, if it is not connected yet. Find out what the device is called: (product) Run this command:
cat /sys/bus/usb/devices/*/product
The output will look something like this: (depending on your system)
Tablet WP8060U UHCI Host Controller UHCI Host Controller UHCI Host Controller EHCI Host Controller
Note the product of the tablet (obviously Tablet WP8060U in my case!) Now, add a udev rule: (Note that the SYSFS{product} is tablet-specific! - See output from above command!) Run these commands:
sudo bash
echo 'BUS=="usb", KERNEL=="event*", SYSFS{product}=="Tablet WP8060U", NAME="input/%k", SYMLINK+="tablet-event"' >> /etc/udev/rules.d/010_local.rules
exit
Restart udev - Run this command:
sudo /etc/init.d/udev restart
Check that the syslink has been created - Run this command:
ls -la /dev/tablet-event
If it outputs a line, it means that it succeeded!
Calibration
Enter the "calibrate"-directory - Run this command:
cd calibrate
Build the calibration tool - Run this command:
make
Calibrate in order to find the edges of your tablet/digitizer - Run this command:
sudo ./wizardpen-calibrate /dev/tablet-event
Save the output from wizardpen-calibrate (the last 8 lines!) - You need it later in this howto!
Setting up X
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
Edit the file - Run this command:
sudo vi /etc/X11/xorg.conf
Press "I" - So that "-- INSERT --" appears! Insert the following section into xorg.conf: (just place it below your generic mouse!)
Section "InputDevice" Identifier "WizardPen Tablet" Option "SendCoreEvents" "true" (the output from calibrate) EndSection
Add the following line in the "ServerLayout" section:
InputDevice "WizardPen Tablet" "AlwaysCore"
Save the file, and exit the editor! (Press "ESC" and write ":wq" and press "Enter")
Making X start without a tablet connected
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/init.d/bootmisc.sh - Run this command:
sudo vi /etc/init.d/bootmisc.sh
Press "I" - So that "-- INSERT --" appears! ...and insert some code: (insert it JUST above ": exit 0")
XORG_CONF=/etc/X11/xorg.conf if [ -e /dev/tablet-event ]; then sed -ie 's/^\(\s*\)\#\(\s*InputDevice\s\s*\"WizardPen\ Tablet\"\s\s*\"AlwaysCore\"\)\s*$/\1\2/' "$XORG_CONF" echo "Udev created /dev/tablet-event, which means that the tablet is present! - Tablet-driver enabled" # You can delete this line! - It's only for debugging! else sed -ie 's/\(^\s*InputDevice\s\s*\"WizardPen\ Tablet\"\s\s*\"AlwaysCore\"\)\s*$/\#&/' "$XORG_CONF" echo "Udev did NOT create /dev/tablet-event, which means that the tablet is NOT present! - Tablet-driver disabled" # You can delete this line! - It's only for debugging! fi
Save the file, and exit the editor! (Press "ESC" and write ":wq" and press "Enter") 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. X will still freeze if you unplug the tablet! - Please contact me, in case you have a solution!