1 .TH xinput 1 __xorgversion__
4 xinput - utility to configure and test X input devices
7 .B xinput [OPTIONS] [DEVICE]
10 xinput is a utility to list available input devices, query information about
11 a device and change input device settings.
15 Test if the X Input extension is available and return the version number
16 of the program and the version supported by the server. This option does not
17 require a device name.
20 .B --list [--short || --long || --name-only || --id-only] [\fIdevice\fP]
21 If no argument is given list all the input devices. If an argument is given,
22 show all the features of \fIdevice\fP.
23 If --long is provided, the output includes detailed information about the
24 capabilities of each devices. Otherwise, or if --short is provided, only the
25 device names and some minimal information is listed.
26 If --name-only is provided, the output is limited to the device names. One
27 device name is listed per line. Note that the order the devices are listed
29 If --id-only is provided, the output is limited to the device IDs. One
30 device ID is listed per line. Note that the order the devices are listed is
34 .B --get-feedbacks \fIdevice\fP
35 Display the feedbacks of \fIdevice\fP.
38 .B --set-pointer \fIdevice\fP
39 Switch \fIdevice\fP in core pointer.
40 This option does nothing on X servers 1.5 and later.
43 .B --set-mode \fIdevice\fP \fIABSOLUTE|RELATIVE\fP
44 Change the mode of \fIdevice\fP.
47 .B --set-ptr-feedback \fIdevice\fP \fIthreshold\fP \fInum\fP \fIdenom\fP
48 Change the pointer acceleration (or feedback) parameters of \fIdevice\fP.
49 The xset(__appmansuffix__) man page has more details. For X.Org Server 1.7
50 and above, there are additional device properties pertaining to pointer
51 acceleration. These do not replace, but complement the pointer feedback
55 .B --set-integer-feedback \fIdevice\fP \fIindex\fP \fIvalue\fP
56 Change the value of an integer feedback of \fIdevice\fP.
59 .B --set-button-map \fIdevice\fP \fImap_button_1\fP [\fImap_button_2\fP [\fI...\fP]]
60 Change the button mapping of \fIdevice\fP. The buttons are specified in
61 physical order (starting with button 1) and are mapped to the logical button
62 provided. 0 disables a button. The default button mapping for a device is 1
66 .B --query-state \fIdevice\fP
67 Query the device state.
70 .B --list-props \fIdevice\fP [\fIdevice\fP [\fI...\fP]]
71 Lists properties that can be set for the given device(s).
74 .B --set-int-prop \fIdevice\fP \fIproperty\fP \fIformat\fP \fIvalue\fP
75 Sets an integer property for the device. Appropriate values for \fIformat\fP
76 are 8, 16, or 32, depending on the property. Deprecated, use
81 .B --set-float-prop \fIdevice\fP \fIproperty\fP \fIvalue\fP
82 Sets a float property for the device. Deprecated, use
87 .B --set\-prop [\-\-type=\fIatom|float|int\fP] [\-\-format=\fI8|16|32\fP] \fIdevice\fP \fIproperty\fP \fIvalue\fP [...]
88 Set the property to the given value(s). If not specified, the format and type
89 of the property are left as-is. The arguments are interpreted according to the
93 .B --watch-props \fIdevice\fP
94 Prints to standard out when property changes occur.
97 .B --delete-prop \fIdevice\fP \fIproperty\fP
98 Delete the property from the device.
101 .B --test [-proximity] \fIdevice\fP
102 Register all extended events from \fIdevice\fP and enter an endless
103 loop displaying events received. If the -proximity is given, ProximityIn
104 and ProximityOut are registered.
107 .B --test-xi2 [\fIdevice\fP]
108 Register for a number of XI2 events and display them. If a device is given,
109 only events on this device are displayed.
112 .B --create-master \fIprefix\fP [sendCore] [enable]
113 Create a new pair of master devices on an XI2-enabled server with the given
114 \fIprefix\fP. The server will create one master pointer named "\fIprefix\fP
115 pointer" and one master keyboard named "\fIprefix\fP keyboard". If
116 \fIsendCore\fP is 1, this pair of master devices is set to send core events
117 (default). If \fIenable\fP is 1, this master device pair will be enabled
118 immediately (default).
121 .B --remove-master \fImaster\fP [Floating|AttachToMaster] [returnPointer] [returnKeyboard]
122 Remove \fImaster\fP and its paired master device. Attached slave devices
123 are set floating if \fIFloating\fP is specified or the argument is omitted.
124 If the second argument is \fIAttachToMaster\fP, \fIreturnPointer\fP
125 specifies the master pointer to attach all slave pointers to and
126 \fIreturnKeyboard\fP specifies the master keyboard to attach all slave
130 .B --reattach \fIslave\fP \fImaster\fP
131 Reattach \fIslave\fP to \fImaster\fP.
134 .B --float \fIslave\fP
135 Remove \fIslave\fP from its current master device.
138 .B --set-cp \fIwindow\fP \fImaster\fP
139 Set the ClientPointer for the client owning \fIwindow\fP to \fImaster\fP.
140 \fImaster\fP must specify a master pointer.
143 .B --map-to-crtc \fIdevice\fP \fIcrtc\fP
144 Restricts the movements of the absolute \fIdevice\fP to the RandR
145 \fIcrtc\fP. The CRTC name must match a currently connected CRTC (see
146 \fIxrandr(__appmansuffix__)\fP). If the NVIDIA binary driver is
147 detected or RandR 1.2 or later is not available, a Xinerama output may be
148 specified as "HEAD-N", with N being the Xinerama screen number. This option
149 has no effect on relative devices.
151 \fIdevice\fP can be the device name as a string or the XID of the
154 \fIslave\fP can be the device name as a string or the XID of a slave
157 \fImaster\fP can be the device name as a string or the XID of a master
160 \fIproperty\fP can be the property as a string or the Atom value.
163 X(__miscmansuffix__), xset(__appmansuffix__), xrandr(__appmansuffix__)
165 Copyright 1996,1997, Frederic Lepied.
167 Copyright 2007, Peter Hutterer.
169 Copyright 2008, Philip Langdale.
171 Copyright 2009-2011, Red Hat, Inc.
176 Peter Hutterer <peter.hutterer@who-t.net>
177 Philip Langdale, <philipl@alumni.utexas.net>
178 Frederic Lepied, France <Frederic.Lepied@sugix.frmug.org>
179 Julien Cristau <jcristau@debian.org>
180 Thomas Jaeger <ThJaeger@gmail.com>