Disable moused on a FreeBSD Xen guest


I run FreeBSD instances on a cloud running Xen. Compared to the Linux instances, it performs better with less memory and has a better mascot, surprising nobody.

Looking through memory usage though, I saw this:

653 root 1 20 0 16628K 1940K select 0:00 0.00% moused    

I have a mouse, on a cloud instance? Sure enough, grepping dmesg:

ums0 <Endpoint1 Interrupt Pipe> on usbus0
ums0: 3 buttons and [Z] coordinates ID=0

From what I can tell, the hypervisor this instance is running on provides the default Xen USB mouse. This makes sense, after all you can run Windows instances or X11. FreeBSD detected this, and loaded moused.

Interestingly, adding the following to /etc/rc.conf had no effect:

echo moused_enable="NO"

This post on geektivities had the answer, by specifying the interface:


Now the mouse doesn't load and use memory, however small that may have been. If you don't need it, may as well not load it.

Author bio and support


Ruben Schade is a technical writer and IaaS engineer in Sydney, Australia who refers to himself in the third person in bios. Wait, not BIOS… my brain should be EFI by now.

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite cloud infrastructure provider.

You can leave me a comment by contacting me, and I might publish your thoughts. Please read the FAQs first though.

If you found this post helpful or entertaining, you can shout me a coffee or buy some silly merch. Thanks!