The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 4.0-R: Quick and Dirty USB Mouse support
Author: Benn Bollay 
Date:   20-03-00 06:42

Gentlebeings --

For your quick and dirty USB Mouse support, please following these easy steps:
1) Add the appropriate entries to your conf file
device uhci
device ohci
device usb
device ums

2) Add the approparite lines to your rc.conf file
moused_enable="NO"
moused_flags="/dev/ums0"
usbd_enable="YES"
usbd_flags="" (though I like -vv personally, just for the scroll factor)

3) Make sure your usbd.conf has these lines in it:
device "Mouse"
devname "ums[0-9]+"
attach "/usr/sbin/moued -p /dev/${DEVNAME} -l
/var/run/moused.${DEVNAME}.pid"

4) Create the device entry
cd /dev ; ./MAKEDEV ums0 ;

5) Rebuild your kernel and reboot. As always, I would recommend saving /kernel to /kernel.stable before trying out the new kernel. It's a handy thing to have around anyways.

I don't think I forgot anything, but if I did please let me know :)
--Benn

Reply To This Message
 
 References and Man Pages
Author: Benn Bollay 
Date:   20-03-00 06:49

Man Pages:
usb(4)
usbd(8)
usbd.conf(5)
usbdevs(8)
ums(4)

Hope this helps someone,
--Benn

P.S.
If you have X11 pointed at sysmouse, then this will work just fine, as well as support plugging/unplugging the mouse at runtime w/o the need of a manual -HUP.

Reply To This Message
 
 RE: 4.0-R: Quick and Dirty USB Mouse support
Author: Dan Langille 
Date:   20-03-00 11:10

Thanks. I've made this into an article. See <a href="http://www.freebsddiary.org/usb-mouse.html">http://www.freebsddiary.org/usb-mouse.html</a>

cheers.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org