Re: FreeBSD 5.1 USB Keyboard support
Hello, I had the same problem and solved it with an rc.d script: #!/bin/sh #Script to enable usb keyboard if attached case "$1" in start) if [ -e /dev/kbd1 ]; then /usr/sbin/kbdcontrol -r 250.38 -k /dev/kbd1 < /dev/conso le 2>&1 > /dev/null && echo -n ' usbkbd' fi ;; stop) if [ -e /dev/kbd1 ]; then /usr/sbin/kbdcontrol -r 250.38 -k /dev/kbd0 < /dev/conso le 2>&1 > /dev/null && echo -n ' usbkbd' fi ;; *) echo "Usage: `basename $0` { start | stop }" exit 64 ;; esac Basically, when initialising the system, this script checks to see if /dev/kbd1 exists, if so swops control to it, if not, nudda. Hope this helps. Matthew Faircliff On Fri, Oct 17, 2003 at 10:04:17AM +0200, Peter wrote: From: "Peter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Fri, 17 Oct 2003 10:04:17 +0200 X-Mailer: Microsoft Outlook Express 6.00.2800.1158 Subject: FreeBSD 5.1 USB Keyboard support Hi Im using FreeBSD 5.1 and I can't get my Logitech USB keyboard to work directly in the consol. I have search trough the net and found very little (either I searched wrong or there is very little info). In rc.conf I have added support for usb by usbd_enable="YES" >From the dmesg I can see that FreeBSD finds the keyboard and adds it like ukbd0: >Logitech USB Receiver, rev 1.10/17.00, addr 3, iclass 3/1 kbd1 at ukbd0 The Kernel is rebuilt and has support for USB. As the GENERIC had it. uhci0: port 0xc400-0xc41f irq 10 at device 16.0 on pci0 usb0: 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 uhub1: Texas Instruments TUSB2046 hub, class 9/0, rev 1.10/1.25, addr 2 uhub1: 4 ports with 4 removable, bus powered ukbd0: Logitech USB Receiver, rev 1.10/17.00, addr 3, iclass 3/1 kbd1 at ukbd0 ums0: Logitech USB Receiver, rev 1.10/17.00, addr 3, iclass 3/1 ums0: 7 buttons and Z dir. ugen0: Logitech Camera, rev 1.00/1.00, addr 4 ugen1: vendor 0x0f4d product 0x1000, rev 1.10/4.01, addr 5 ulpt0: hp deskjet 5550, rev 2.00/1.00, addr 6, iclass 7/1 ulpt0: using bi-directional mode uhci1: port 0xc800-0xc81f irq 11 at device 16.1 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci2: port 0xcc00-0xcc1f irq 7 at device 16.2 on pci0 usb2: on uhci2 usb2: USB revision 1.0 uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered This is what I found searching through Google that should work: kbdcontrol -k /dev/kbd1 < /dev/ttyv0 This works but I have to log through ssh from another comp and write that command and sometimes it adds a letter that I just had written. That tends to be anyoing. And it also doesnt start so that I can choose at the boot prompt. Another thing I found was to put the following into usbd.conf device "USB Keyboard" devname "ukbd0" attach "kbdcontrol -k /dev/kbd1 < /dev/ttyv0 > /dev/null" detach "kbdcontrol -k /dev/kbd0 < /dev/ttyv0 > /dev/null" This doesnt work at all for me nothing happens att all. Is there a way to add USB keyboard support when FreeBSD is running in singelusermode so that I have a chance of installing new kernels and upgrade the system right now I plug in an old PS/2 keyboard? My motherboard is Abit KD7-S with VIA KT400 and VT8235 chipset and the keyboard is Logitech Cordles Desktop Comfort. Thanks in Advance Peter ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD 5.1 USB Keyboard support
Have you had a look at the handbook? I got my (Microsoft :D) Keyboard working with the stuff from there. Peschmä Am Fri, 17 Oct 2003 10:04:17 +0200 schrieb Peter: > Hi Im using FreeBSD 5.1 and I can't get my Logitech USB keyboard to work > directly in the consol. I have search trough the net and found very > little (either I searched wrong or there is very little info). > > In rc.conf I have added support for usb by usbd_enable="YES" >>From the dmesg I can see that FreeBSD finds the keyboard and adds it like >>ukbd0: Logitech USB Receiver, rev 1.10/17.00, addr 3, iclass 3/1 > kbd1 at ukbd0 > The Kernel is rebuilt and has support for USB. As the GENERIC had it. > > uhci0: port 0xc400-0xc41f irq 10 at device > 16.0 on pci0 usb0: 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 uhub1: Texas Instruments TUSB2046 hub, > class 9/0, rev 1.10/1.25, addr 2 uhub1: 4 ports with 4 removable, bus > powered ukbd0: Logitech USB Receiver, rev 1.10/17.00, addr 3, iclass 3/1 > kbd1 at ukbd0 > ums0: Logitech USB Receiver, rev 1.10/17.00, addr 3, iclass 3/1 ums0: 7 > buttons and Z dir. > ugen0: Logitech Camera, rev 1.00/1.00, addr 4 ugen1: vendor 0x0f4d product > 0x1000, rev 1.10/4.01, addr 5 ulpt0: hp deskjet 5550, rev 2.00/1.00, addr > 6, iclass 7/1 ulpt0: using bi-directional mode > uhci1: port 0xc800-0xc81f irq 11 at device > 16.1 on pci0 usb1: on uhci1 usb1: USB revision > 1.0 > uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports > with 2 removable, self powered uhci2: port > 0xcc00-0xcc1f irq 7 at device 16.2 on pci0 usb2: controller> on uhci2 usb2: USB revision 1.0 > uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports > with 2 removable, self powered > > This is what I found searching through Google that should work: kbdcontrol > -k /dev/kbd1 < /dev/ttyv0 > This works but I have to log through ssh from another comp and write that > command and sometimes it adds a letter that I just had written. That > tends to be anyoing. And it also doesnt start so that I can choose at the > boot prompt. > > Another thing I found was to put the following into usbd.conf device "USB > Keyboard" > devname "ukbd0" > attach "kbdcontrol -k /dev/kbd1 < /dev/ttyv0 > /dev/null" detach > "kbdcontrol -k /dev/kbd0 < /dev/ttyv0 > /dev/null" > > This doesnt work at all for me nothing happens att all. > > Is there a way to add USB keyboard support when FreeBSD is running in > singelusermode so that I have a chance of installing new kernels and > upgrade the system right now I plug in an old PS/2 keyboard? > > My motherboard is Abit KD7-S with VIA KT400 and VT8235 chipset and the > keyboard is Logitech Cordles Desktop Comfort. > > Thanks in Advance > Peter > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions To > unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
FreeBSD 5.1 USB Keyboard support
Hi Im using FreeBSD 5.1 and I can't get my Logitech USB keyboard to work directly in the consol. I have search trough the net and found very little (either I searched wrong or there is very little info). In rc.conf I have added support for usb by usbd_enable="YES" >From the dmesg I can see that FreeBSD finds the keyboard and adds it like ukbd0: >Logitech USB Receiver, rev 1.10/17.00, addr 3, iclass 3/1 kbd1 at ukbd0 The Kernel is rebuilt and has support for USB. As the GENERIC had it. uhci0: port 0xc400-0xc41f irq 10 at device 16.0 on pci0 usb0: 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 uhub1: Texas Instruments TUSB2046 hub, class 9/0, rev 1.10/1.25, addr 2 uhub1: 4 ports with 4 removable, bus powered ukbd0: Logitech USB Receiver, rev 1.10/17.00, addr 3, iclass 3/1 kbd1 at ukbd0 ums0: Logitech USB Receiver, rev 1.10/17.00, addr 3, iclass 3/1 ums0: 7 buttons and Z dir. ugen0: Logitech Camera, rev 1.00/1.00, addr 4 ugen1: vendor 0x0f4d product 0x1000, rev 1.10/4.01, addr 5 ulpt0: hp deskjet 5550, rev 2.00/1.00, addr 6, iclass 7/1 ulpt0: using bi-directional mode uhci1: port 0xc800-0xc81f irq 11 at device 16.1 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci2: port 0xcc00-0xcc1f irq 7 at device 16.2 on pci0 usb2: on uhci2 usb2: USB revision 1.0 uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered This is what I found searching through Google that should work: kbdcontrol -k /dev/kbd1 < /dev/ttyv0 This works but I have to log through ssh from another comp and write that command and sometimes it adds a letter that I just had written. That tends to be anyoing. And it also doesnt start so that I can choose at the boot prompt. Another thing I found was to put the following into usbd.conf device "USB Keyboard" devname "ukbd0" attach "kbdcontrol -k /dev/kbd1 < /dev/ttyv0 > /dev/null" detach "kbdcontrol -k /dev/kbd0 < /dev/ttyv0 > /dev/null" This doesnt work at all for me nothing happens att all. Is there a way to add USB keyboard support when FreeBSD is running in singelusermode so that I have a chance of installing new kernels and upgrade the system right now I plug in an old PS/2 keyboard? My motherboard is Abit KD7-S with VIA KT400 and VT8235 chipset and the keyboard is Logitech Cordles Desktop Comfort. Thanks in Advance Peter ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"