]> diplodocus.org Git - xorg-xinput/blob - man/xinput.man
Fix crash for enable/disable without a device argument
[xorg-xinput] / man / xinput.man
1 .TH xinput 1 __xorgversion__
2
3 .SH NAME
4 xinput - utility to configure and test X input devices
5
6 .SH SYNOPSIS
7 .B xinput [OPTIONS] [DEVICE]
8
9 .SH DESCRIPTION
10 xinput is a utility to list available input devices, query information about
11 a device and change input device settings.
12 .SH OPTIONS
13 .TP 8
14 .B --version
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.
18 .PP
19 .TP 8
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
28 is undefined.
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
31 undefined.
32 .PP
33 .TP 8
34 .B --get-feedbacks \fIdevice\fP
35 Display the feedbacks of \fIdevice\fP.
36 .PP
37 .TP 8
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.
41 .PP
42 .TP 8
43 .B --set-mode \fIdevice\fP \fIABSOLUTE|RELATIVE\fP
44 Change the mode of \fIdevice\fP.
45 .PP
46 .TP 8
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
52 setting.
53 .PP
54 .TP 8
55 .B --set-integer-feedback \fIdevice\fP \fIindex\fP \fIvalue\fP
56 Change the value of an integer feedback of \fIdevice\fP.
57 .PP
58 .TP 8
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
63 2 3 4 5 6 etc.
64 .PP
65 .TP 8
66 .B --query-state \fIdevice\fP
67 Query the device state.
68 .PP
69 .TP 8
70 .B --list-props \fIdevice\fP [\fIdevice\fP [\fI...\fP]]
71 Lists properties that can be set for the given device(s).
72 .PP
73 .TP 8
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
77 .B --set-prop
78 instead.
79 .PP
80 .TP 8
81 .B --set-float-prop \fIdevice\fP \fIproperty\fP \fIvalue\fP
82 Sets a float property for the device. Deprecated, use
83 .B --set-prop
84 instead.
85 .PP
86 .TP 8
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
90 property type.
91 .PP
92 .TP 8
93 .B --watch-props \fIdevice\fP
94 Prints to standard out when property changes occur.
95 .PP
96 .TP 8
97 .B --delete-prop \fIdevice\fP \fIproperty\fP
98 Delete the property from the device.
99 .PP
100 .TP 8
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.
105 .PP
106 .TP 8
107 .B --test-xi2 [--root] [\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. If --root is given, events are
110 selected on the root window only. Otherwise, a new client window is created
111 (similar to xev).
112 .PP
113 .TP 8
114 .B --create-master \fIprefix\fP [sendCore] [enable]
115 Create a new pair of master devices on an XI2-enabled server with the given
116 \fIprefix\fP. The server will create one master pointer named "\fIprefix\fP
117 pointer" and one master keyboard named "\fIprefix\fP keyboard". If
118 \fIsendCore\fP is 1, this pair of master devices is set to send core events
119 (default). If \fIenable\fP is 1, this master device pair will be enabled
120 immediately (default).
121 .PP
122 .TP 8
123 .B --remove-master \fImaster\fP [Floating|AttachToMaster] [returnPointer] [returnKeyboard]
124 Remove \fImaster\fP and its paired master device. Attached slave devices
125 are set floating if \fIFloating\fP is specified or the argument is omitted.
126 If the second argument is \fIAttachToMaster\fP, \fIreturnPointer\fP
127 specifies the master pointer to attach all slave pointers to and
128 \fIreturnKeyboard\fP specifies the master keyboard to attach all slave
129 keyboards to.
130 .PP
131 .TP 8
132 .B --reattach \fIslave\fP \fImaster\fP
133 Reattach \fIslave\fP to \fImaster\fP.
134 .PP
135 .TP 8
136 .B --float \fIslave\fP
137 Remove \fIslave\fP from its current master device.
138 .PP
139 .TP 8
140 .B --set-cp \fIwindow\fP \fImaster\fP
141 Set the ClientPointer for the client owning \fIwindow\fP to \fImaster\fP.
142 \fImaster\fP must specify a master pointer.
143 .PP
144 .TP 8
145 .B --map-to-output \fIdevice\fP \fIcrtc\fP
146 Restricts the movements of the absolute \fIdevice\fP to the RandR
147 \fIcrtc\fP. The output name must match a currently connected output (see
148 \fIxrandr(__appmansuffix__)\fP). If the NVIDIA binary driver is
149 detected or RandR 1.2 or later is not available, a Xinerama output may be
150 specified as "HEAD-N", with N being the Xinerama screen number. This option
151 has no effect on relative devices.
152 .PP
153 .TP 8
154 .B --enable \fIdevice\fP
155 Enable the \fIdevice\fP. This call is equivalent to
156 .B xinput --set-prop device \fI"Device Enabled"\fP 1
157 .PP
158 .TP 8
159 .B --disable \fIdevice\fP
160 Disable the \fIdevice\fP. This call is equivalent to
161 .B xinput --set-prop device \fI"Device Enabled"\fP 0
162 .PP
163 \fIdevice\fP can be the device name as a string or the XID of the
164 device.
165 .PP
166 \fIslave\fP can be the device name as a string or the XID of a slave
167 device.
168 .PP
169 \fImaster\fP can be the device name as a string or the XID of a master
170 device.
171 .PP
172 \fIproperty\fP can be the property as a string or the Atom value.
173 .PP
174 .SH "SEE ALSO"
175 X(__miscmansuffix__), xset(__appmansuffix__), xrandr(__appmansuffix__)
176 .SH COPYRIGHT
177 Copyright 1996,1997, Frederic Lepied.
178 .PP
179 Copyright 2007, Peter Hutterer.
180 .PP
181 Copyright 2008, Philip Langdale.
182 .PP
183 Copyright 2009-2011, Red Hat, Inc.
184
185 .SH AUTHORS
186
187 .nf
188 Peter Hutterer <peter.hutterer@who-t.net>
189 Philip Langdale, <philipl@alumni.utexas.net>
190 Frederic Lepied, France <Frederic.Lepied@sugix.frmug.org>
191 Julien Cristau <jcristau@debian.org>
192 Thomas Jaeger <ThJaeger@gmail.com>
193 and more.
194 .fi