October 5th, 2003, 20:55
I am trying to install FreeBSD 5.1 on my machine which uses a USB Mouse and Keyboard. During the bootup off the CD I see that it recognizes both devices, however nothing works at the setup screen. If I plug in a PS2 keyboard I can use that, but that is not what I want to use. Is there something I may need to setup before I install this? I have checked the bios and USB IS enabled for both devices.
Any help would be appreciated.

October 5th, 2003, 21:09
I might be wrong on this but I think that FreeBSD just uses a serial/ps2 mouse by default until you get to the mouse setup portion of the install and tell it to use the USB one.

October 5th, 2003, 21:29

October 6th, 2003, 00:00
The usbd_enable was already set in my rc.conf
I read online someone saying that the kernal may need to be reconfigured with some added lines:

controller uhci0
controller ohci0
controller usb0
controller ukbd0

I would have thought by now this would be a standard option?

October 6th, 2003, 00:03
sometimes it matters in which the order you have them in your rc.conf..

usb is enabled in your kernel by default.

October 6th, 2003, 11:16
so should I move this up higher in the rc.conf?
What's weird is if I unplug the devices, I can see FreeBSD starts to unmount the devices. Then same thing when I plug it back in.

I really appreciate how quickly you guys are responding... This is great!

October 6th, 2003, 20:40
Does that mouse have the word Microsoft written across it?

October 6th, 2003, 22:46
HELL NO... Its a Logitech!!

October 7th, 2003, 00:46
I use usb mice, they work in 5.x with no problem. Just enable moused in rc.conf and usbd. They should work no problem.

As far as your X config goes here's my current X config which utilizes a usb mouse. Just copy the mouse section and you should be good.

I have no experience with usb keyboards :( I would think that as long as usb is enabled though it should just work.

October 7th, 2003, 00:54
Well I got the mouse working now, but for some reason it is still refusing the Keyboard. Whats really weird is that I can turn the NumLock on and off, but thats it!!

October 7th, 2003, 13:41
If the keyboard is detected then you need to use kbdcontrol to switch it to be the active device for input.

You can put something in usbd.conf like:

device "Keyboard"
devname "ukbd0"
attach "kbdcontrol -k /dev/kbd0 < /dev/ttyv0"

October 7th, 2003, 14:45
Ok great, that was not there, so I will try this out tonight and see what happens.

October 8th, 2003, 00:46
OK I added that into my usbd.conf. The keyboard works duing the bios part but as soon as FreeBSD is done loading, I get nothing. The numlock is the only key that responds. So I have to use a PS2 Keyboard until I get this going. Do you need me to post any other files so you can look at whats going on?

October 8th, 2003, 00:59
seems like this might help you out rob

That sounds like the issue you're having. Post up your dmesg. Make sure your bios setting are correct as this mailing suggests, and then log in remotely to your computer and run:

kbdcontrol -k /dev/kbd1 < /dev/console

See if your keyboard works then. If that's the case then the above link will solve your issue.

October 8th, 2003, 01:48
Yeah... It works.!! Thanks Elmore, man you don't know how nice it is to be able to use my normal keyboard again.. Man this is awesome.