lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 26 Apr 2011 14:55:57 -0400 (EDT)
From:	Alan Stern <stern@...land.harvard.edu>
To:	Valdis.Kletnieks@...edu
cc:	Jiri Kosina <jkosina@...e.cz>, Greg Kroah-Hartman <gregkh@...e.de>,
	Dmitry Torokhov <dmitry.torokhov@...il.com>,
	<linux-kernel@...r.kernel.org>, <linux-usb@...r.kernel.org>,
	<linux-input@...r.kernel.org>
Subject: Re: Wonkiness with keyboard adapter - not sure if it's in USB or
 input systems

On Tue, 26 Apr 2011 Valdis.Kletnieks@...edu wrote:

> Running 2.6.39-rc1-mmotm at the moment on a Dell Latitude E6500, that wants an
> external USB keyboard/mouse and monitor when it's in its docking station in the
> office. I have an old Microsoft Natural keyboard that has a PS/2 connector, but
> I like the tactile feel so I didn't want to get rid of it.  So we recently got
> some PS2->USB adapters, which appear in lsusb as follows:
> 
> Bus 001 Device 006: ID 0e8f:0020 GreenAsia Inc. USB to PS/2 Adapter
> 
> Now, when I first power up the laptop in the docking station, it *does* see the
> keyboard just fine, and Grub is able to talk to it, and everything works (this
> particular boot, I was able to hit the space bar to get to the Grub menu, use
> arrow up/down to move between entries, all looked good).  So it isn't like the
> device needs any initialization above and beyond what the BIOS is doing at
> initial power-on.
> 
> However, when the Linux kernel starts up, it sees the adapter, but doesn't
> recognize key presses until I disconnect and then reconnect the keyboard:
> 
> [    5.733323] usb 1-4.2: new low speed USB device number 6 using ehci_hcd
> [    5.827679] usb 1-4.2: New USB device found, idVendor=0e8f, idProduct=0020
> [    5.827692] usb 1-4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
> [    5.827701] usb 1-4.2: Product: PS2toUSB Adapter
> [    5.827708] usb 1-4.2: Manufacturer: GASIA
> [    5.846069] input: GASIA PS2toUSB Adapter as /devices/pci0000:00/0000:00:1a.7/usb1/1-4/1-4.2/1-4.2:1.0/input/input12
> [    5.847894] generic-usb 0003:0E8F:0020.0002: input,hidraw1: USB HID v1.10 Keyboard [GASIA PS2toUSB Adapter] on usb-0000:00:1a.7-4.2/input0
> [    5.855346] input: GASIA PS2toUSB Adapter as /devices/pci0000:00/0000:00:1a.7/usb1/1-4/1-4.2/1-4.2:1.1/input/input13
> [    5.857351] generic-usb 0003:0E8F:0020.0003: input,hidraw2: USB HID v1.10 Mouse [GASIA PS2toUSB Adapter] on usb-0000:00:1a.7-4.2/input1
> [  134.879149] dracut: Scanning devices dm-0  for LVM volume groups
> 
> root VG is LUKS-encrypted, so the initrd waits till the passphrase is entered.
> That didn't work at 6-8 seconds in when I got the prompt - type keys, no
> response from dracut.  I gave it some time, then about 2 mins after boot I
> disconnected and reconnected the keyboard's PS2 connector from the adapter, and
> then it worked fine, and I was able to enter the passphrase and dracut was
> happy.
> 
> Not sure what to make of the fact that it registers the input devices right
> off, but I see nothing in the dmesg output that the keyboard was unplugged/
> replugged.
> 
> I have zero evidence that this device ever worked, as I only got it a few days
> ago and haven't had a chance to try anything older than 39-rc.
> 
> Any idea/suggestions?

Have you tried testing the adapter by plugging it in after the system 
is running?

Testing in an initrd environment is rather difficult...

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ