Debian Codegraph @

data/wacom.example

raw
1 # Example model file description for a tablet
2 #
3 # The .tablet file must have a name matching the device, usually
4 # the lowercase version of <vendor>-<model>.tablet. See existing data files
5 # for guidance, Wacom devices can skip the vendor name.
6 #
7 # In most cases, a tablet data file can be autogenerated, see the README
8 # in the wacom-hid-descriptors repository:
9 # https://github.com/linuxwacom/wacom-hid-descriptors/
10 #
11 # In 90% of remaining cases we already ship a file for a device that is
12 # similar to the new one to be added. The best approach is to copy that file
13 # and change it. This example file here describes all possible keys.
14 #
15 # To test a new file, copy it into /usr/share/libwacom/ and run
16 # libwacom-list-local-devices. This should show your device with all
17 # information from this file.
18 #
19 # The file should start with a pseudo-drawing of the device that illustrates
20 # where the buttons are. See the data/intuos5-m.tablet file for a full
21 # example:
22 #
23 # Wacom
24 # Intuos5 M
25 # PTK-650
26 #
27 # The comment MUST name the sysinfo and link to the respective issue in the
28 # wacom-hid-descriptors repository. See that repository for details.
29 # sysinfo.1234abcd
30 # https://github.com/linuxwacom/wacom-hid-descriptors/issues/1234
31 #
32 # Button Map:
33 # (A=1, B=2, C=3, ...)
34 #
35 # *-----------------------*
36 # | |
37 # B | |
38 # C | |
39 # D | |
40 # E | |
41 # A | TABLET |
42 # F | |
43 # G | |
44 # H | |
45 # I | |
46 # | |
47 # *-----------------------*
48 #
49 [Device]
50
51 # The name is the vendor and product name announced by the kernel. This
52 # filename is shown as device name by tools like libinput record,
53 # evemu-record or evtest.
54 Name=Wacom Intuos4 6x9
55
56 # The unique model name for this device where it differs significantly from
57 # the Name. For example, Wacom has several devices named Wacom Intuos Pro
58 # but they all have a unique model name (e.g. PTH-660).
59 # Leave blank where the device name is sufficient to identify.
60 ModelName=
61
62 # DeviceMatch includes the bus (usb, bluetooth, serial), the vendor ID and
63 # product ID and optionally the device name. This is the connector used,
64 # not whatever name the kernel might give it, so some "Wacom Serial" builtin
65 # devices will be USB as that's how they're connected.
66 #
67 # For example:
68 # $ lsusb | grep Wacom
69 # Bus 002 Device 003: ID 056a:00bc Wacom Co., Ltd Intuos4 6x9
70 # will give you the device match below.
71 #
72 # You can find a full list of known Device IDs at:
73 # https://github.com/linuxwacom/input-wacom/wiki/Device-IDs
74 #
75 # Do not add 0x in front of the hex numbers, make sure to pad each ID
76 # so it has exactly 4 digits. hex letters must be lowercase.
77 #
78 # Multiple matches are joined by a semicolon
79 DeviceMatch=usb|056a|00bc;bluetooth|056a|00bc;
80 # If the vendor/product ID is not sufficient to distinguish the name
81 # (common for HUION, GAOMON, UCLogic, XP-Pen), use the device name
82 # as fourth element in the match string.
83 # DeviceMatch=usb|1234|abcd:SomeDevice Name;
84 #
85 # Optionally after the device name (which may be empty) the
86 # the remainder of that substring is the uniq ID to match against.
87 # DeviceMatch=usb|1234|abcd||ABC_1234;
88 # DeviceMatch=usb|1234|abcd|SomeDevice Name|ABC_1234;
89
90 # Paired PID includes the match line of any device that share the same
91 # physical device but has different product or vendor ids (e.g. the touch
92 # device on the 24HDT). The format of the match line is identical to
93 # DeviceMatch but only one value is permitted.
94 # Note: the PIDs listed may not be libwacom devices themselves.
95 PairedIDs=usb|056a|0335
96
97 # Class of the tablet. Valid classes include Intuos3, Intuos4, Graphire, Bamboo, Cintiq
98 # If unsure, or not applicable (the tablet isn't stand-alone for example).
99 #
100 # The class is deprecated as of v1.4. For non-Wacom devices, set to Bamboo
101 # for external tablets and ISDV4 for built-in ones.
102 Class=Bamboo
103
104 # (Optional) Width in inches, as advertised by the manufacturer
105 Width=9
106
107 # (Optional) Height in inches, as advertised by the manufacturer
108 Height=6
109
110 # Integration flags. Set to Display where the device is an external monitor
111 # (e.g. Cintiq) or Display;System where the device is built into the display
112 # of the system itself (i.e. part of a laptop). Leave empty for external
113 # tablets.
114 # Note, if unspecified, the integration flags will be taken from the kernel.
115 IntegratedIn=Display;System
116
117 # Filename of the SVG representing this tablet. Only needed for tablets with
118 # pad buttons.
119 Layout=wacom-bamboo-16fg-m-pt.svg
120 # Styli
121 #
122 # This is a list of stylus IDs supported by the tablet. Non-Wacom devices
123 # usually do not support specific stylus IDs and default to the generic
124 # pens. If the stylus has an eraser:
125 # Styli=@generic-with-eraser
126 # If the stylus does not have an eraser:
127 # Styli=@generic-no-eraser
128 #
129 # For Wacom devices this is needed only for the professional series devices,
130 # i.e. Intuos Pro and Cintiq.
131 #
132 # In general, differently sized models of the same range support the same
133 # styli, so you can copy/paste the list from another definition.
134 #
135 # After that, you can try piecing the stylus list from the names of the
136 # styli in wacom.stylus, using the Wacom webshop as a reference
137 # (how many supported styli, what do they look like, etc.)
138 #
139 # Finally, if you cannot find any information about the styli supported
140 # by your device, you will need to gather the "Wacom Serial IDs",
141 # and getting each stylus in proximity of the tablet.
142 Styli=0x802;0x804;0x40802;0x80c;0x80a;0x4080a;0x90a;0x20802;0x902;
143
144 # Optional features that this tablet supports
145 # Some features are dependent on the actual tool used, e.g. not all styli
146 # have an eraser and some styli have additional custom axes (e.g. the
147 # airbrush pen). These features describe those available on the tablet.
148 #
149 # Features not set in a file default to false/0
150
151 [Features]
152 # This tablet supports styli (and erasers, if present on the actual stylus)
153 Stylus=true
154
155 # Whether the tablet can be used left-handed.
156 # This is only for asymmetrical stand-alone tablets. The tablet
157 # is deemed reversible if the tablet can be turned 180 degrees
158 # so buttons are placed on the other side. The Intuos4 tablet
159 # is a great example of that.
160 Reversible=true
161
162 # This tablet supports touch.
163 Touch=false
164
165 # This tablet provides a hardware touch switch.
166 TouchSwitch=false
167
168 # This tablet has one or more touch rings (Intuos4 and Cintiq 24HD)
169 # A touch ring is a circular button that responds to touch
170 # (rather than clicks) and sends absolute events:
171 # http://intuos.wacom.com/americas/touch-ring.php
172 NumRings=1
173
174 # This tablet's number of dials/rotary toggles that send relative events
175 # similar to a mouse wheel.
176 NumDials=1
177
178 # This tablet's number of touch strips (e.g. Cintiq 22HD), default is zero
179 NumStrips=1
180
181 # Number of buttons on the tablet
182
183 # Metadata about the buttons on the tablet
184 # Buttons are "numbered" using upper-case letters
185 [Buttons]
186 # Location of the buttons
187 Left=A;B
188 Right=C;D
189 Top=
190 Bottom=
191 # The evdev codes for the buttons in order A, B, C, ...
192 # The code must be defined for all buttons or this line is ignored
193 EvdevCodes=BTN_LEFT;BTN_MIDDLE;BTN_RIGHT;BTN_SIDE
194
195 #####################
196 # ADVANCED FEATURES #
197 #####################
198
199 # Those are only needed for a few professional tablets
200 # for which the values have already been filled in.
201
202 # Which buttons have OLEDs associated to them
203 # Only the Intuos4 devices had this.
204 # http://101.wacom.com/i4settings/images/expresskeys-feature.jpg
205 OLEDs=B;C;D;E;F;G;H;I
206
207 # The location of the various rings, if associated with a button
208 # or buttons.
209 # For example, a single button in the middle of the touchring, like
210 # on the Intuos4 tablets. You will need to mention the number of modes
211 # that the button allows if there isn't one button per mode.
212 Ring=A
213 RingNumModes=4
214 # Or the 2nd touchring associated with 3 buttons like the Cintiq24HD
215 Ring2=I;J;K
216 # Implied, as we have 3 buttons for that ring
217 Ring2NumModes=3
218
219 # If the touchstrips have mode toggling through a button
220 # like on the Cintiq 21UX2
221 Strip=A
222 Strip2=J
223 # We assume the same number of modes for each of the touchstrips
224 # if there is more than one
225 StripsNumModes=4
226
227 # If the dials have mode toggling through a button
228 Dial=A
229 # The number of modes we can toggle through.
230 DialNumModes=4
231 # Buttons associated with the second dial, if any.
232 Dial2=B
233 # Number of modes on the second dial, if any
234 Dial2NumModes=4
235
236
237 # Metadata about the keys on the tablet
238 [Keys]
239 # The evdev codes for the keys (if any) in order from left to right.
240 # Keys that have a code of zero do not produce any events.
241 KeyCodes=0;KEY_CONTROLPANEL;KEY_ONSCREEN_KEYBOARD;KEY_BUTTONCONFIG;SW_MUTE_DEVICE