Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Getting a USB mouse to work under FreeBSD

created by xmatt

(idea) by xmatt (2.4 mon) (print)   ?   (I like it!) Sat Sep 01 2001 at 22:25:03

First, install FreeBSD 4.3-RELEASE (which is the latest release as of this writing, and supports USB mice out of the box). Once you get the box booting, login as root and do:

dmesg | grep usb

And make sure you see something like what I have:

usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered

Now, you need to load the USB mouse module, so it can attach to a mouse device that you connect. To do this, do:

kldload ums

...and plug in your mouse. Now do:

dmesg | grep ums

And you should see:

ums0: Logitech USB Mouse, rev 1.10/6.10, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.

Now, for the tricky part, getting it to run under the X Window System. This actually isn't too hard, assuming you're able to get XF86Setup working for you. First, in the shell prompt, still as root, do the following:

killall moused
moused -p /dev/ums0

Use XF86Setup to get the keyboard configuration all set, then proceed to the mouse section. Here, you want to set the mouse protocol as "sysmouse", and set the mouse device as "/dev/sysmouse". I know it's really /dev/ums0, but what moused does is translate the USB signals and map them to the more ubiquitous protocol of /dev/sysmouse, which makes the mouse accessible to X11. For the record, I had no problems getting this to work, and my mouse is even hot-swappable as any USB device ought to be.


printable version
chaos

Getting a USB mouse to work under Linux Windows XP Voice Recognition Software The one song I can't stand listening to How to use an XBox pad with your PC
Three Puerto Rican girls walked by like accordion music under the trees, looking like they'd accept nothing less than perfection. GPL is against my religion Why is the Linux mascot a Penguin? How to add a notepad entry to the file right click menu
Ubiquitous NATD
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Drink up!
jigsaw puzzle
breast massage
Moon River
Theodore Roosevelt
she named it killer and took it to the beach to play in the sand
52
tai chi
steampunk
Proclamation of the Irish Republic
online identities
National Negro Business League
mere words
Punch-Drunk Love
New Writeups
antigravpussy
One fly amongst many(person)
sam512
Moon Base Shackleton, 1978(fiction)
Pavlovna
toy boy(person)
XWiz
tear jerker(review)
Heitah
Anarchy is Order(idea)
jessicaj
July 26, 2008(dream)
Berek
ABBA(person)
devolution
k-hole(place)
Nadine_2
The Sound Of Madness(review)
SwimmingMonkey
Conversations with Fo Fo, the Loneliest dog in Purgatory(fiction)
locke baron
lynx(thing)
Simulacron3
Reality, Dimensions and the Natural Ontology(essay)
SubSane
Making Love to a 9-Foot Woman(person)
Ouzo
Thoughts(idea)
antigravpussy
I fall silent, listening. The breadcrumbs are talking about us(person)
This page courtesy of The Everything Development Company