-
Notifications
You must be signed in to change notification settings - Fork 45
Device Properties
The xf86-input-wacom driver exposes a number of properties that may be used to monitor or modify its operation. These properties are used by tools like xsetwacom
and the GNOME Control Center, and may be used by other applications as well. It is even possible to interact with these properties through shell scripts with the help of the xinput
utility.
You will typically never need to directly interact with the driver properties unless you are writing your own control panel software. If you are looking to make adjustments to the driver's operation, we recommend you stick to using available control panels instead.
Note that not all of these properties may be available on a given system. Tools which interact with these properties should check to see which exist prior to trying to read or write to them.
The xinput
command (installed as part of the xorg-xinput
package or similar) can be used to read, write, and watch properties through the command-line. Please read man xinput
for specific information on how to use the command. Combined with some shell magic, this can be used to quickly hack together useful scripts.
The source code to the xinput
command provides a good starting point for reading, writing, and watching properties programmatically. Its src/properties.c
file will be of particular interest. Also worth reading are the following pages:
[man xlistdeviceproperties](https://linux.die.net/man/3/xlistdeviceproperties)
[man xgetdeviceproperty](https://linux.die.net/man/3/xgetdeviceproperty)
[man xchangedeviceproperty](https://linux.die.net/man/3/xchangedeviceproperty)
- http://who-t.blogspot.com/2008/10/device-properties-have-landed.html
Property Name | Type | R/W | Description |
---|---|---|---|
Device Node | Atom | Read-only |
Path to the event device node which this X device reads from. This may be used, for example, to link individual X devices back into a single logical device that the user interacts with. It can also be used as a starting point to query other tools and libraries for additional device information. |
Device Product ID | Int32[2] | Read-only |
Vendor and Product ID for device. Returns a pair of integers which contain VID:PID information. E.g. |
Property Name | Type | R/W | Description |
---|---|---|---|
Wacom Serial IDs | Int32[5] | Read-only |
Serial number and tool type for pen currently and previously in prox. Format of the values is |
Wacom Tool Type | Atom | Read-only |
General class of tool represented by this device. Possible values: |
Property Name | Type | R/W | Description |
---|---|---|---|
Coordinate Transformation Matrix | Float[9] | Read-Write |
Restrict the pointer to a single monitor, window, or arbitrary region of the desktop. This is a 9-element affine transformation matrix in row-major order which operates in normalized desktop space. The default value |
Wacom Tablet Area | Int32[4] | Read-Write |
Restrict the tablet's active area to a portion of the surface. This property defines the active area of the tablet in tablet space with It is important to note that the default |
Wacom Rotation | Int8 | Read-Write |
Logically rotate the tablet coordinates. Valid values are |
Property Name | Type | R/W | Description |
---|---|---|---|
Wacom Pressurecurve | Int32[4] | Read-Write |
Defines how hard or soft the pen feels This property defines a pair of control points that adjust the shape of a Bezier curve from |
Wacom Proximity Threshold | Int32 | Read-Write |
Defines the distance at which a tool in relative mode can move the cursor. Adjusting this distance allows you to change how far the pen or puck must be picked up from the tablet surface before it is treated as being out of prox. The pointer will only move in response to motion when the pen or puck is closer than this distance. A user may wish to change this value for ergonomic reasons. Values are in arbitrary tablet-distance units. |
Wacom Pressure Threshold | Int32 | Read-Write |
Defines the minimum pressure needed to trigger a click Pressure is still reported below this threshold in case an application needs access to the data, but an actual left-click event (which is normally necessary to draw or interact with GUI elements) is not emitted until the pressure level is reached. Values are contained in a normalized 0-2048 pressure range. |
Wacom Sample and Suppress | Int32[2] | Read-Write |
Define data noise reduction parameters The driver's two noise-reduction parameters can be controlled through this property. The first adjusts the minimum change that must occur in any value for it to not be ignored as noise. The second adjusts the number of previous samples that get averaged together prior to reporting. |
Property Name | Type | R/W | Description |
---|---|---|---|
Wacom Button Actions | Atom[] | Read-Only | Look-up table mapping button number to action property |
Wacom button action | Int32[] | Read-Write | List of encoded actions to perform on button press |
Property Name | Type | R/W | Description |
---|---|---|---|
Device Accel Profile | Int8 | Read-Write | |
Device Accel Constant Deceleration | Float | Read-Write | |
Device Accel Adaptive Deceleration | Float | Read-Write | |
Device Accel Velocity Scaling | Float | Read-Write |
Property Name | Type | R/W | Description |
---|---|---|---|
Wacom Hover Click | Int8 | Read-Write | Set whether side-switch clicks require an accompanying tap |
Wacom Enable Touch Gesture | Int8 | Read-Write | Swap between driver-provided and desktop-provided gestures |
Wacom Touch Gesture Parameters | Int8[3] | Read-Write | Driver-provided gesture settings |
Wacom Panscroll Threshold | Int32 | Read-Write | Adjust distance pen must move for panscroll gesture to trigger |
Property Name | Type | R/W | Description |
---|---|---|---|
Device Enabled | Int8 | Read-Write | Completely enable or disable a device |
Wacom Enable Touch | Int8 | Read-Write | Disable touch input, or see if it is disabled by hardware |
Wacom Pressure Recalibration | Int8 | Read-Write | Adjust how worn-out pens are treated |
Wacom Debug Levels | Int8[2] | Read-Write | Adjust the amount and type of logging produced by the driver |
Wacom Serial ID binding | Int32 | Read-Write |
Bind the use of this device to a single pen. Writing a serial number to this property will cause the driver to ignore events from pens that have a different serial number. The default value of |
- Building The Driver
- Tablet Operation
- xsetwacom
- External Utilities
- Debugging
- Contributing