Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jan 2012 21:08:02 -0500
From:      Garance A Drosehn <gad@FreeBSD.org>
To:        Jeremy Chadwick <freebsd@jdc.parodius.com>
Cc:        freebsd-stable@FreeBSD.org, Schaich Alonso <alonsoschaich@gmx.de>
Subject:   Re: Problem with USB keyboard during boot screen
Message-ID:  <4F220702.6040308@FreeBSD.org>
In-Reply-To: <20120127001545.GA64476@icarus.home.lan>
References:  <4F21CD00.7090306@rpi.edu>	<201201270035.30878.alonsoschaich@gmx.de> <20120127001545.GA64476@icarus.home.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/26/12 7:15 PM, Jeremy Chadwick wrote:
> On Fri, Jan 27, 2012 at 12:35:30AM +0100, Schaich Alonso wrote:
>    
>> On 2012-01-26 (Thursday) 23:00:32 Garance A Drosihn wrote:
>>      
>>> After testing a variety of things, I put the machine in a small rack I
>>> have, and hooked up a different USB keyboard to it.  Once the machine
>>> has booted all the way up to a "login:" prompt, the newer USB keyboard
>>> also works fine.  It's from Logitech, and has illuminated keys (if that
>>> makes any difference).
>>>
>>> The thing is, the newer keyboard will not work during the initial boot
>>> screen.  I see the menu fine, but everything I type using the logitech
>>> keyboard is ignored.  If I plug in the Apple keyboard, that works fine
>>> during the bootup screen.
>>>        
> Fourthly, entering the system BIOS -- assuming this is a PC and not an
> Apple computer -- with a USB keyboard is completely and entirely
> possible, no matter what "class" of keyboard it is.  Furthermore, you
> correlate the lack of keyboard functionality in FreeBSD with "the system
> BIOS" -- this is simply not the case.
>    
This is a PC built by System76, the "Ratel":

http://www.system76.com/desktops/model/ratel

I used the mac keyboard during the initial install just because it was
the closest one within reach... (I have about 10 computers in here,
but most of them are serial. In fact, this is my first PC (non-Mac)
which has no serial ports on it). I bought the Ratel with no keyboard.

FWIW, If I do plug the Logitech keyboard into a USB port on my Mac,
System Profiler shows it connected to a "USB bus", with the info of:

USB Bus:

Host Controller Location: Expansion Slot
Host Controller Driver: AppleUSBOHCI
PCI Device ID: 0x0035
PCI Revision ID: 0x0043
PCI Vendor ID: 0x1033
Bus Number: 0x01

Logitech Illuminated Keyboard:

Product ID: 0xc318
Vendor ID: 0x046d (Logitech Inc.)
Version: 55.01
Speed: Up to 12 Mb/sec
Manufacturer: Logitech
Location ID: 0x01300000 / 2
Current Available (mA): 500
Current Required (mA): 300

If I plug in the Mac keyboard to the exact same USB port, I'm told it
is connected to a "USB High-Speed Bus", with this info. As you noted,
the info includes info about the USB hub which is in the keyboard. I
have nothing plugged into those extra ports on the keyboard:

USB High-Speed Bus:

Host Controller Location: Expansion Slot
Host Controller Driver: AppleUSBEHCI
PCI Device ID: 0x00e0
PCI Revision ID: 0x0004
PCI Vendor ID: 0x1033
Bus Number: 0x41

Keyboard Hub:

Product ID: 0x1006
Vendor ID: 0x05ac (Apple Inc.)
Version: 94.15
Serial Number: 000000000000
Speed: Up to 480 Mb/sec
Manufacturer: Apple, Inc.
Location ID: 0x41500000 / 2
Current Available (mA): 500
Current Required (mA): 300

Apple Keyboard:

Product ID: 0x0220
Vendor ID: 0x05ac (Apple Inc.)
Version: 0.69
Speed: Up to 1.5 Mb/sec
Manufacturer: Apple, Inc
Location ID: 0x41520000 / 3
Current Available (mA): 100
Current Required (mA): 20

> So, for the OP: can you please answer yes/no to the following questions:
>
> - If you power on the system with the Logitech keyboard attached, can
>    you successfully type at the loader prompt ("FreeBSD beastie logo")?
>    
As I mentioned in my original message: No.
That's exactly the part I'd like to get working if fixing it is easy.
(although it's also okay if I have to go buy another keyboard for this).
> - If you power on the system with the Apple keyboard attached, can you
>    successfully type at the loader prompt ("FreeBSD beastie logo")?
>    
Yes.
> - If you power on the system with the Logitech keyboard attached,
>    and let the FreeBSD kernel load, can you successfully type at
>    the 'login:' prompt?
>    
Yes.
> - If you power on the system with the Apple keyboard attached,
>    and let the FreeBSD kernel load, can you successfully type at
>    the 'login:' prompt?
>    
Yes.
> Yes/no answers to these 4 questions will provide enough insight to
> know where the problem lies.  Please DO NOT hot-swap keyboards during
> any of this testing.  Just stick to what I've described please, thanks.
>    
And to answer a question that Schaich asked, it turns out I can't break
into the bios-config screens using the newer keyboard. I would have
almost bet that I could, but I can't seem to do it right now. And in
thinking about the work I did, all of the BIOS-configs were done back
when I still had the Apple keyboard attached. I'll also say that it's
somewhat tricky timing getting into the BIOS with the Apple keyboard.
It often takes me two or three times to get the timing right.

I actually used a digital camera to take pictures of all my BIOS setting
screens, so I can review them without having to boot the system. There
is a setting there for "On-board Devices", which says the "Serial Port"
is "<Enabled>". Interesting when there is no serial port on the back!

Looking over BIOS settings, I now see that there was a "USB" subscreen
which I didn't realize was there (I thought it was just a heading, but
it is a "button" to enter a separate screen of BIOS settings). In that
screen there is an option "Backwards Compatibility Mode", which was
disabled. I tried Enabling that, but that didn't seem to change the
behavior of either keyboard (not even after powering off and back on
after having set that BIOS option). There's also an option called
"UBC Legacy" which is Enabled. That didn't sound like something which
would help by *disabling*, so I did not try disabling that.

If there's an easy fix for this, that'd be nice. But don't spend much
time worrying about it. It is interesting to see that some USB keyboards
work and other ones do not. I had hoped we would be past flakey behavior
like this once we got to USB hardware! Other people have sent me email
saying they also had trouble with one USB keyboard which went away when
they changed keyboards.

Thanks!

-- 
Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F220702.6040308>