]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/man/man4/ums.4
awk: Merge 20210729 from One True Awk upstream (0592de4a)
[FreeBSD/FreeBSD.git] / share / man / man4 / ums.4
1 .\" Copyright (c) 1999
2 .\"     Nick Hibma <n_hibma@FreeBSD.org>. All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\"
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 .\" SUCH DAMAGE.
24 .\"
25 .\" $FreeBSD$
26 .\"
27 .Dd April 24, 2018
28 .Dt UMS 4
29 .Os
30 .Sh NAME
31 .Nm ums
32 .Nd USB mouse driver
33 .Sh SYNOPSIS
34 To compile this driver into the kernel,
35 place the following lines in your
36 kernel configuration file:
37 .Bd -ragged -offset indent
38 .Cd "device ums"
39 .Cd "device hid"
40 .Cd "device uhci"
41 .Cd "device ohci"
42 .Cd "device usb"
43 .Ed
44 .Pp
45 Alternatively, to load the driver as a
46 module at boot time, place the following line in
47 .Xr loader.conf 5 :
48 .Bd -literal -offset indent
49 ums_load="YES"
50 .Ed
51 .Sh DESCRIPTION
52 The
53 .Nm
54 driver provides support for mice that attach to the USB port.
55 Supported are
56 mice with any number of buttons and mice with a wheel.
57 .Pp
58 The
59 .Pa /dev/ums0
60 device presents the mouse as a
61 .Ar sysmouse
62 or
63 .Ar mousesystems
64 type device.
65 See
66 .Xr moused 8
67 for an explanation of these mouse types.
68 .Sh SYSCTL VARIABLES
69 The following variables are available as both
70 .Xr sysctl 8
71 variables and
72 .Xr loader 8
73 tunables:
74 .Bl -tag -width indent
75 .It Va hw.usb.ums.debug
76 Debug output level, where 0 is debugging disabled and larger values increase
77 debug message verbosity.
78 Default is 0.
79 .El
80 .Sh FILES
81 .Bl -tag -width /dev/ums0 -compact
82 .It Pa /dev/ums0
83 blocking device node
84 .El
85 .Sh EXAMPLES
86 Use the first
87 USB mouse on the system as your console mouse:
88 .Pp
89 .Dl moused -p /dev/ums0 -t auto
90 .Pp
91 To be able to use the USB mouse under X, change the "Pointer" section in
92 .Nm xorg.conf
93 to the following:
94 .Pp
95 .Dl Device "/dev/ums0"
96 .Dl Protocol "Auto"
97 .Pp
98 If you want to be able to use the mouse in both virtual consoles as well
99 as in X change it to:
100 .Pp
101 .Dl Device "/dev/sysmouse"
102 .Dl Protocol "Auto"
103 .Sh SEE ALSO
104 .Xr ohci 4 ,
105 .Xr sysmouse 4 ,
106 .Xr uhci 4 ,
107 .Xr usb 4 ,
108 .Xr xorg.conf 5 Pq Pa ports/x11/xorg ,
109 .Xr moused 8
110 .Sh AUTHORS
111 .An -nosplit
112 The
113 .Nm
114 driver was written by
115 .An Lennart Augustsson Aq Mt augustss@cs.chalmers.se
116 for
117 .Nx
118 and was adopted for
119 .Fx
120 by
121 .An MAEKAWA Masahide Aq Mt bishop@rr.iij4u.or.jp .
122 .Pp
123 This manual page was written by
124 .An Nick Hibma Aq Mt n_hibma@FreeBSD.org
125 with input from
126 .An Kazutaka YOKOTA Aq Mt yokota@zodiac.mech.utsunomiya-u.ac.jp .