特殊:Badtitle/NS100:Wacom.fdi:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/Wacom.fdi}} {{Languages|UbuntuHelp:Wacom.fdi}} == Configure Wacom Devices Using the .fdi File Method That Is the Default in Ubuntu 8.10 (Intrepid ... |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/Wacom.fdi}} | {{From|https://help.ubuntu.com/community/Wacom.fdi}} | ||
{{Languages|UbuntuHelp:Wacom.fdi}} | {{Languages|UbuntuHelp:Wacom.fdi}} | ||
== Configure Wacom Devices Using the .fdi File Method | == Configure Wacom Devices Using the .fdi File Method == | ||
''To discuss this guide, please use [http://ubuntuforums.org/showthread.php?t=967147 this Ubuntu forums thread].'' | ''To discuss this guide, please use [http://ubuntuforums.org/showthread.php?t=967147 this Ubuntu forums thread].'' | ||
'''''This section is intended as a complement to https://help.ubuntu.com/community/Wacom, in order to help users configure their Wacom device (only the stylus will work) using the default method in Ubuntu 8.10 (Intrepid). While using xorg.conf is still possible (see the [[UbuntuHelp:Wacom|guide]] for details), you can also keep the default method in Ubuntu 8.10 and set up the properties of the stylus manually | == Ubuntu 9.04 (Jaunty Jackalope) == | ||
'''IMPORTANT: If you used a custom .fdi file in Intrepid, ''remove or update this file before upgrading''''' | |||
In Jaunty, this method can be used to modify all tablet settings. Follow the instructions for Intrepid to create the file /etc/hal/fdi/policy/custom_wacom.fdi, which should have the basic structure (replace the options with your own): | |||
<pre><nowiki> | |||
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- --> | |||
<deviceinfo version="0.2"> | |||
<device> | |||
<match key="input.x11_driver" contains="wacom"> | |||
<match key="input.x11_options.Type" contains="stylus"> | |||
<merge key="input.x11_options.TPCButton" type="string">on</merge> | |||
<merge key="input.x11_options.KeepShape" type="string">on</merge> | |||
<merge key="input.x11_options.Threshold" type="string">1</merge> | |||
<merge key="input.x11_options.PressCurve" type="string">50,0,100,50</merge> | |||
</match> | |||
</match> | |||
<match key="input.x11_driver" contains="wacom"> | |||
<match key="input.x11_options.Type" contains="eraser"> | |||
<merge key="input.x11_options.TPCButton" type="string">on</merge> | |||
<merge key="input.x11_options.KeepShape" type="string">on</merge> | |||
<merge key="input.x11_options.Threshold" type="string">1</merge> | |||
<merge key="input.x11_options.PressCurve" type="string">50,0,100,50</merge> | |||
</match> | |||
</match> | |||
</device> | |||
</deviceinfo> | |||
</nowiki></pre> | |||
Each option is represented as one <merge> line, and these lines may be added and removed. Just make sure to keep the other parts of the file intact! | |||
== Ubuntu 8.10 (Intrepid Ibex) == | |||
'''''This section is intended as a complement to https://help.ubuntu.com/community/Wacom, in order to help users configure their Wacom device (only the stylus will work) using the default method in Ubuntu 8.10 (Intrepid). While using xorg.conf is still possible (see the [[UbuntuHelp:Wacom|guide]] for details), you can also keep the default method in Ubuntu 8.10 and set up the properties of the stylus manually.''''' | |||
With the default setup in Ubuntu 8.10, if you want to change the options for the stylus you can create a custom .fdi file and put it in /etc/hal/fdi/policy/. This preserves hotplugging while enabling you to configure your the stylus. | With the default setup in Ubuntu 8.10, if you want to change the options for the stylus you can create a custom .fdi file and put it in /etc/hal/fdi/policy/. This preserves hotplugging while enabling you to configure your the stylus. | ||
[[UbuntuHelp:[Files|Below]]] are some custom .fdi file for download. | [[UbuntuHelp:[Files|Below]]] are some custom .fdi file for download. | ||
第63行: | 第93行: | ||
* [[UbuntuHelp:attachment:Relative.fdi|attachment:Relative.fdi]] - For setting the stylus (pen tip) in Relative mode instead of the default Absolute. | * [[UbuntuHelp:attachment:Relative.fdi|attachment:Relative.fdi]] - For setting the stylus (pen tip) in Relative mode instead of the default Absolute. | ||
---- | ---- | ||
[[category:CategoryWacom]] | |||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2009年5月18日 (一) 18:14的最新版本
![]() |
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Wacom.fdi }} |
![]() |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/af | • {{#if: UbuntuHelp:Wacom.fdi|Afrikaans| [[::Wacom.fdi/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/ar | • {{#if: UbuntuHelp:Wacom.fdi|العربية| [[::Wacom.fdi/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/az | • {{#if: UbuntuHelp:Wacom.fdi|azərbaycanca| [[::Wacom.fdi/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/bcc | • {{#if: UbuntuHelp:Wacom.fdi|جهلسری بلوچی| [[::Wacom.fdi/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/bg | • {{#if: UbuntuHelp:Wacom.fdi|български| [[::Wacom.fdi/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/br | • {{#if: UbuntuHelp:Wacom.fdi|brezhoneg| [[::Wacom.fdi/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/ca | • {{#if: UbuntuHelp:Wacom.fdi|català| [[::Wacom.fdi/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/cs | • {{#if: UbuntuHelp:Wacom.fdi|čeština| [[::Wacom.fdi/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/de | • {{#if: UbuntuHelp:Wacom.fdi|Deutsch| [[::Wacom.fdi/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/el | • {{#if: UbuntuHelp:Wacom.fdi|Ελληνικά| [[::Wacom.fdi/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/es | • {{#if: UbuntuHelp:Wacom.fdi|español| [[::Wacom.fdi/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/fa | • {{#if: UbuntuHelp:Wacom.fdi|فارسی| [[::Wacom.fdi/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/fi | • {{#if: UbuntuHelp:Wacom.fdi|suomi| [[::Wacom.fdi/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/fr | • {{#if: UbuntuHelp:Wacom.fdi|français| [[::Wacom.fdi/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/gu | • {{#if: UbuntuHelp:Wacom.fdi|ગુજરાતી| [[::Wacom.fdi/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/he | • {{#if: UbuntuHelp:Wacom.fdi|עברית| [[::Wacom.fdi/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/hu | • {{#if: UbuntuHelp:Wacom.fdi|magyar| [[::Wacom.fdi/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/id | • {{#if: UbuntuHelp:Wacom.fdi|Bahasa Indonesia| [[::Wacom.fdi/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/it | • {{#if: UbuntuHelp:Wacom.fdi|italiano| [[::Wacom.fdi/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/ja | • {{#if: UbuntuHelp:Wacom.fdi|日本語| [[::Wacom.fdi/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/ko | • {{#if: UbuntuHelp:Wacom.fdi|한국어| [[::Wacom.fdi/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/ksh | • {{#if: UbuntuHelp:Wacom.fdi|Ripoarisch| [[::Wacom.fdi/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/mr | • {{#if: UbuntuHelp:Wacom.fdi|मराठी| [[::Wacom.fdi/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/ms | • {{#if: UbuntuHelp:Wacom.fdi|Bahasa Melayu| [[::Wacom.fdi/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/nl | • {{#if: UbuntuHelp:Wacom.fdi|Nederlands| [[::Wacom.fdi/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/no | • {{#if: UbuntuHelp:Wacom.fdi|norsk| [[::Wacom.fdi/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/oc | • {{#if: UbuntuHelp:Wacom.fdi|occitan| [[::Wacom.fdi/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/pl | • {{#if: UbuntuHelp:Wacom.fdi|polski| [[::Wacom.fdi/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/pt | • {{#if: UbuntuHelp:Wacom.fdi|português| [[::Wacom.fdi/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/ro | • {{#if: UbuntuHelp:Wacom.fdi|română| [[::Wacom.fdi/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/ru | • {{#if: UbuntuHelp:Wacom.fdi|русский| [[::Wacom.fdi/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/si | • {{#if: UbuntuHelp:Wacom.fdi|සිංහල| [[::Wacom.fdi/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/sq | • {{#if: UbuntuHelp:Wacom.fdi|shqip| [[::Wacom.fdi/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/sr | • {{#if: UbuntuHelp:Wacom.fdi|српски / srpski| [[::Wacom.fdi/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/sv | • {{#if: UbuntuHelp:Wacom.fdi|svenska| [[::Wacom.fdi/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/th | • {{#if: UbuntuHelp:Wacom.fdi|ไทย| [[::Wacom.fdi/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/tr | • {{#if: UbuntuHelp:Wacom.fdi|Türkçe| [[::Wacom.fdi/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/vi | • {{#if: UbuntuHelp:Wacom.fdi|Tiếng Việt| [[::Wacom.fdi/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/yue | • {{#if: UbuntuHelp:Wacom.fdi|粵語| [[::Wacom.fdi/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/zh | • {{#if: UbuntuHelp:Wacom.fdi|中文| [[::Wacom.fdi/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/zh-hans | • {{#if: UbuntuHelp:Wacom.fdi|中文(简体)| [[::Wacom.fdi/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Wacom.fdi | UbuntuHelp:Wacom.fdi | {{#if: | :}}Wacom.fdi}}/zh-hant | • {{#if: UbuntuHelp:Wacom.fdi|中文(繁體)| [[::Wacom.fdi/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Wacom.fdi|:Wacom.fdi|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Wacom.fdi/zh | | {{#ifexist: Wacom.fdi/zh | | {{#ifeq: {{#titleparts:Wacom.fdi|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Wacom.fdi|1|-1|}} | zh | | }}
Configure Wacom Devices Using the .fdi File Method
To discuss this guide, please use this Ubuntu forums thread.
Ubuntu 9.04 (Jaunty Jackalope)
IMPORTANT: If you used a custom .fdi file in Intrepid, remove or update this file before upgrading In Jaunty, this method can be used to modify all tablet settings. Follow the instructions for Intrepid to create the file /etc/hal/fdi/policy/custom_wacom.fdi, which should have the basic structure (replace the options with your own):
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- --> <deviceinfo version="0.2"> <device> <match key="input.x11_driver" contains="wacom"> <match key="input.x11_options.Type" contains="stylus"> <merge key="input.x11_options.TPCButton" type="string">on</merge> <merge key="input.x11_options.KeepShape" type="string">on</merge> <merge key="input.x11_options.Threshold" type="string">1</merge> <merge key="input.x11_options.PressCurve" type="string">50,0,100,50</merge> </match> </match> <match key="input.x11_driver" contains="wacom"> <match key="input.x11_options.Type" contains="eraser"> <merge key="input.x11_options.TPCButton" type="string">on</merge> <merge key="input.x11_options.KeepShape" type="string">on</merge> <merge key="input.x11_options.Threshold" type="string">1</merge> <merge key="input.x11_options.PressCurve" type="string">50,0,100,50</merge> </match> </match> </device> </deviceinfo>
Each option is represented as one <merge> line, and these lines may be added and removed. Just make sure to keep the other parts of the file intact!
Ubuntu 8.10 (Intrepid Ibex)
This section is intended as a complement to https://help.ubuntu.com/community/Wacom, in order to help users configure their Wacom device (only the stylus will work) using the default method in Ubuntu 8.10 (Intrepid). While using xorg.conf is still possible (see the guide for details), you can also keep the default method in Ubuntu 8.10 and set up the properties of the stylus manually.
With the default setup in Ubuntu 8.10, if you want to change the options for the stylus you can create a custom .fdi file and put it in /etc/hal/fdi/policy/. This preserves hotplugging while enabling you to configure your the stylus.
[[UbuntuHelp:[Files|Below]]] are some custom .fdi file for download.
Here's one as an example. You can add new options by inserting more x11_options lines (see below for some example ones). Option names are the same as in xorg.conf.
Open a terminal,
then type (or copy-paste) this command:
gksudo gedit /etc/hal/fdi/policy/custom_wacom.fdi
or, if you are using KDE:
kdesu kate /etc/hal/fdi/policy/custom_wacom.fdi
Here are some lines extracted from the default 10-wacom.fdi that is installed by the package xserver-xorg-input-wacom in /usr/share/hal/fdi/policy/20thirdparty/. Paste these lines in the new file that opens in the Text Editor.
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- --> <deviceinfo version="0.2"> <device> <match key="info.capabilities" contains="input"> <match key="info.product" contains="Wacom"> <merge key="input.x11_driver" type="string">wacom</merge> <merge key="input.x11_options.Type" type="string">stylus</merge> </match> <match key="info.product" contains="WALTOP"> <merge key="input.x11_driver" type="string">wacom</merge> <merge key="input.x11_options.Type" type="string">stylus</merge> </match> </match> <!-- N-Trig Duosense Electromagnetic Digitizer --> <match key="info.product" contains="HID 1b96:0001"> <match key="info.parent" contains="if0"> <merge key="input.x11_driver" type="string">wacom</merge> <merge key="input.x11_options.Type" type="string">stylus</merge> </match> </match> </device> </deviceinfo>
You can then add some more options by following the example below where only the setion for the "Wacom" info.product was kept (to check the name your device has, use the command lshal > lshal.txt
and check in the file that was created).
In this file the options TPCButton and KeepShape are set (see the Linux Wacom Project documentation for the names of the options, or look at an xorg.conf file that was working for you in previous releases).
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- --> <deviceinfo version="0.2"> <device> <match key="info.capabilities" contains="input"> <match key="info.product" contains="Wacom"> <merge key="input.x11_options.TPCButton" type="string">on</merge> <merge key="input.x11_options.KeepShape" type="string">on</merge> </match> </match> </device> </deviceinfo>
Save your file and unplug / turn off, then plug in / turn on your tablet. <<Anchor(Files)>>
custom_wacom.fdi for download
Here are some modified 10-wacom.fdi to paste in /etc/hal/fdi/policy as custom_wacom.fdi (or any other name ending by .fdi). Only use one file at a time!
- attachment:Relative.fdi - For setting the stylus (pen tip) in Relative mode instead of the default Absolute.