UMS(4)
π UMS(4) π β the USB mouse driver, bestie edition πβ¨
okay so. <cyan>ums</cyan> is the kernel driver for mice that plug into your USB port. she's the section 4 kernel interfaces manual girlie. let's get into it π«Ά
β¨ NAME β¨
ums β USB mouse driver π
πΈ SYNOPSIS πΈ
so to compile this driver into the kernel, you literally just drop these lines into your kernel configuration file:
device ums
device uhci
device ohci
device usb
alternatively β and this is the path i'd take ngl β to load the driver as a module at boot time, put this line in loader.conf(5):
ums_load="YES"
no cap: you need all fourdevicelines if you're going the compile-it-in route. don't skipuhci,ohciorusb, bestie, the mouse needs her whole entourage π
π¦ DESCRIPTION π¦
the ums driver provides support for mice that attach to the USB port. supported are mice with any number of buttons and mice with a wheel. yes, any number. multi-button icons, we see you, we love you ππ
the /dev/ums0 device presents the mouse as a sysmouse or mousesystems type device. see moused(8) for an explanation of these mouse types β she explains it better than i ever could, fr fr.
β SYSCTL VARIABLES β
the following variables are available as both sysctl(8) variables and loader(8) tunables (the way they serve double duty? it's giving versatile π):
hw.usb.ums.debugβ debug output level, where0is debugging disabled and larger values increase debug message verbosity. default is0.
so like: leave it at 0 unless you're out here hunting bugs, in which case crank that number up and let her yap π£οΈ
π FILES π
/dev/ums0β blocking device node β¨
π EXAMPLES π
use the first USB mouse on the system as your console mouse:
moused -p /dev/ums0 -t auto
to be able to use the USB mouse under X, change the "Pointer" section in xorg.conf to the following:
Device /dev/ums0
Protocol Auto
if you want to be able to use the mouse in both virtual consoles as well as in X, change it to:
Device /dev/sysmouse
Protocol Auto
the /dev/sysmouse glow-up is the move if you want one mouse config to rule both your console and your X session. main character energy fr π
π SEE ALSO π
ohci(4), sysmouse(4), uhci(4), usb(4), xorg.conf(5) (ports/x11/xorg), moused(8)
π AUTHORS π
the ums driver was written by Lennart Augustsson <augustss@cs.chalmers.se> for NetBSD, and was adopted for FreeBSD by MAEKAWA Masahide <bishop@rr.iij4u.or.jp>.
this manual page was written by Nick Hibma <n_hibma@FreeBSD.org> with input from Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>.
and that's the whole page, bestie π«Ά this one's brought to you by the Debian girlies, dated April 24, 2018 β shoutout to them for keeping the ums(4) lore alive all this time, we're obsessed πππ
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 1999 Nick Hibma <n_hibma@FreeBSD.org>. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms