Disable moused on a FreeBSD Xen guest

Software

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:

moused_ums0_enable="NO"

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

Me!

Ruben Schade is a technical writer and infrastructure architect in Sydney, Australia who refers to himself in the third person. Hi!

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

If you found this post helpful or entertaining, you can shout me a coffee or send a comment. Thanks ☺️.