mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* serio / atkbd / PS/2 Strangeness with Serial port adapter
@ 2009-08-06 20:15 Matt Causey
  2009-08-06 21:04 ` Gustavo Guillermo Perez
  2009-08-10  8:34 ` Dmitry Torokhov
  0 siblings, 2 replies; 6+ messages in thread
From: Matt Causey @ 2009-08-06 20:15 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 5216 bytes --]

Hello!

Apologies if this really is't the right forum (suggestions on the
right forum would be welcome).

We are switching from an old 2.4 kernel on our thin clients to 2.6
(2.6.28-gentoo-r5).

Things are working well - except for one problem.  One the new image,
some of the input devices don't work we expected.  We have a number of different
barcode scanners that attach to these terminals.  Many of the new ones
are USB HID compliant devices - which is great.  Most of them are
actually serial port devices, that connect to the terminal via a
serial --> PS/2 'wedge'.  The PS/2 wedge devices are the ones that
don't work correctly.

If we connect the scanner to the thin client, and boot the image, the
scanner does not work.  It does not show up at all as an input device:

blablahostname / # cat /proc/bus/input/devices
I: Bus=0003 Vendor=046d Product=c001 Version=0110
N: Name="Logitech USB Mouse"
P: Phys=usb-0000:00:03.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:03.0/usb2/2-1/2-1:1.0/input/input0
U: Uniq=
H: Handlers=mouse0 event0
B: EV=17
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103
B: MSC=10

I: Bus=0003 Vendor=03f0 Product=0024 Version=0110
N: Name="CHICONY HP Basic USB Keyboard"
P: Phys=usb-0000:00:03.1-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:03.1/usb3/3-2/3-2:1.0/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=120013
B: KEY=10000 7 ff9f207a c14057ff febeffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/devices/platform/pcspkr/input/input2
U: Uniq=
H: Handlers=kbd event2
B: EV=40001
B: SND=6

So, I enabled debugging on the contoller driver(serio.c), and I see
that the device generates noise when connected:

[  458.875614] drivers/input/serio/i8042.c: f2 -> i8042 (kbd-data) [444989]
[  458.908119] drivers/input/serio/i8042.c: fe <- i8042 (interrupt, 0,
1, timeout) [445022]
[  458.908144] drivers/input/serio/i8042.c: ed -> i8042 (kbd-data) [445022]
[  458.940151] drivers/input/serio/i8042.c: fe <- i8042 (interrupt, 0,
1, timeout) [445054]
[  458.940225] drivers/input/serio/i8042.c: d4 -> i8042 (command) [445054]
[  458.940234] drivers/input/serio/i8042.c: f2 -> i8042 (parameter) [445054]
[  458.972190] drivers/input/serio/i8042.c: fe <- i8042 (interrupt, 1,
12, timeout) [445086]
[  458.972204] drivers/input/serio/i8042.c: d4 -> i8042 (command) [445086]
[  458.972212] drivers/input/serio/i8042.c: ed -> i8042 (parameter) [445086]
[  459.004227] drivers/input/serio/i8042.c: fe <- i8042 (interrupt, 1,
12, timeout) [445118]
[20171.684870] drivers/input/serio/i8042.c: 0b <- i8042 (interrupt, 0,
1) [20162195]

However - the atkbd driver does not pick the device up at all.

So, I did find a workaround (which is NOT acceptable for this
deployment).  Remember the PS/2 'wedge' I mentioned?  Well, it has an
extra PS/2 port for your keyboard.  If I connect a PS/2 keyboard to
that thing, suddenly my scanner starts working.

We see some chatter from the controller driver, then one of these:

[23811.805578] input: AT Translated Set 2 keyboard as
/devices/platform/i8042/serio0/input/input6

Aaaand a new device is registered as an input device:

yayayayhostname# cat /proc/bus/input/devices
I: Bus=0003 Vendor=046d Product=c001 Version=0110
N: Name="Logitech USB Mouse"
P: Phys=usb-0000:00:03.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:03.0/usb2/2-1/2-1:1.0/input/input0
U: Uniq=
H: Handlers=mouse0 event0
B: EV=17
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103
B: MSC=10

I: Bus=0003 Vendor=03f0 Product=0024 Version=0110
N: Name="CHICONY HP Basic USB Keyboard"
P: Phys=usb-0000:00:03.1-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:03.1/usb3/3-2/3-2:1.0/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=120013
B: KEY=10000 7 ff9f207a c14057ff febeffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/devices/platform/pcspkr/input/input2
U: Uniq=
H: Handlers=kbd event2
B: EV=40001
B: SND=6

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input6
U: Uniq=
H: Handlers=kbd event3
B: EV=120013
B: KEY=4 2000000 3803078 f800d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

Here is an lsmod, and I've attached .config in case it's helpful:

Module                  Size  Used by
ppdev                   6276  0
parport_pc             26512  1
lp                      8560  0
parport                26824  3 ppdev,parport_pc,lp
pcspkr                  2176  0
atkbd                  15508  0
ohci_hcd               28308  0

So, I don't get it.  We had this all working fine with the (now
ancient version) LTSP configuration, linux 2.4, etc.  Did some drastic
things change in 2.6 with keyboard management?

I am completely out of ideas.  The only thing I can figure is that the
PS/2 wedge thing isn't doing the right thing, and as a result the 2.6
version of the atkbd driver isn't binding it?   Maybe there is some
udev magic I need to know?

Apologies if I've missed something obvious here.  Any help would be
much appreciated!
Thanks!

[-- Attachment #2: config.gz --]
[-- Type: application/x-gzip, Size: 13757 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: serio / atkbd / PS/2 Strangeness with Serial port adapter
  2009-08-06 20:15 serio / atkbd / PS/2 Strangeness with Serial port adapter Matt Causey
@ 2009-08-06 21:04 ` Gustavo Guillermo Perez
  2009-08-06 21:40   ` Matt Causey
  2009-08-10  8:34 ` Dmitry Torokhov
  1 sibling, 1 reply; 6+ messages in thread
From: Gustavo Guillermo Perez @ 2009-08-06 21:04 UTC (permalink / raw)
  To: linux-kernel

El Jueves, 6 de Agosto de 2009, escribió:
> Hello!
>
> Apologies if this really is't the right forum (suggestions on the
> right forum would be welcome).
>
> We are switching from an old 2.4 kernel on our thin clients to 2.6
> (2.6.28-gentoo-r5).
You missed the serial io port driver.

kernel/drivers/input/serio
> Things are working well - except for one problem.  One the new image,
> some of the input devices don't work we expected.  We have a number of
> different barcode scanners that attach to these terminals.  Many of the new
> ones are USB HID compliant devices - which is great.  Most of them are
> actually serial port devices, that connect to the terminal via a
> serial --> PS/2 'wedge'.  The PS/2 wedge devices are the ones that
> don't work correctly.
>
> If we connect the scanner to the thin client, and boot the image, the
> scanner does not work.  It does not show up at all as an input device:
>
> blablahostname / # cat /proc/bus/input/devices
> I: Bus=0003 Vendor=046d Product=c001 Version=0110
> N: Name="Logitech USB Mouse"
> P: Phys=usb-0000:00:03.0-1/input0
> S: Sysfs=/devices/pci0000:00/0000:00:03.0/usb2/2-1/2-1:1.0/input/input0
> U: Uniq=
> H: Handlers=mouse0 event0
> B: EV=17
> B: KEY=70000 0 0 0 0 0 0 0 0
> B: REL=103
> B: MSC=10
>
> I: Bus=0003 Vendor=03f0 Product=0024 Version=0110
> N: Name="CHICONY HP Basic USB Keyboard"
> P: Phys=usb-0000:00:03.1-2/input0
> S: Sysfs=/devices/pci0000:00/0000:00:03.1/usb3/3-2/3-2:1.0/input/input1
> U: Uniq=
> H: Handlers=kbd event1
> B: EV=120013
> B: KEY=10000 7 ff9f207a c14057ff febeffdf ffefffff ffffffff fffffffe
> B: MSC=10
> B: LED=7
>
> I: Bus=0010 Vendor=001f Product=0001 Version=0100
> N: Name="PC Speaker"
> P: Phys=isa0061/input0
> S: Sysfs=/devices/platform/pcspkr/input/input2
> U: Uniq=
> H: Handlers=kbd event2
> B: EV=40001
> B: SND=6
>
> So, I enabled debugging on the contoller driver(serio.c), and I see
> that the device generates noise when connected:
>
> [  458.875614] drivers/input/serio/i8042.c: f2 -> i8042 (kbd-data) [444989]
> [  458.908119] drivers/input/serio/i8042.c: fe <- i8042 (interrupt, 0,
> 1, timeout) [445022]
> [  458.908144] drivers/input/serio/i8042.c: ed -> i8042 (kbd-data) [445022]
> [  458.940151] drivers/input/serio/i8042.c: fe <- i8042 (interrupt, 0,
> 1, timeout) [445054]
> [  458.940225] drivers/input/serio/i8042.c: d4 -> i8042 (command) [445054]
> [  458.940234] drivers/input/serio/i8042.c: f2 -> i8042 (parameter)
> [445054] [  458.972190] drivers/input/serio/i8042.c: fe <- i8042
> (interrupt, 1, 12, timeout) [445086]
> [  458.972204] drivers/input/serio/i8042.c: d4 -> i8042 (command) [445086]
> [  458.972212] drivers/input/serio/i8042.c: ed -> i8042 (parameter)
> [445086] [  459.004227] drivers/input/serio/i8042.c: fe <- i8042
> (interrupt, 1, 12, timeout) [445118]
> [20171.684870] drivers/input/serio/i8042.c: 0b <- i8042 (interrupt, 0,
> 1) [20162195]
>
> However - the atkbd driver does not pick the device up at all.
>
> So, I did find a workaround (which is NOT acceptable for this
> deployment).  Remember the PS/2 'wedge' I mentioned?  Well, it has an
> extra PS/2 port for your keyboard.  If I connect a PS/2 keyboard to
> that thing, suddenly my scanner starts working.
>
> We see some chatter from the controller driver, then one of these:
>
> [23811.805578] input: AT Translated Set 2 keyboard as
> /devices/platform/i8042/serio0/input/input6
>
> Aaaand a new device is registered as an input device:
>
> yayayayhostname# cat /proc/bus/input/devices
> I: Bus=0003 Vendor=046d Product=c001 Version=0110
> N: Name="Logitech USB Mouse"
> P: Phys=usb-0000:00:03.0-1/input0
> S: Sysfs=/devices/pci0000:00/0000:00:03.0/usb2/2-1/2-1:1.0/input/input0
> U: Uniq=
> H: Handlers=mouse0 event0
> B: EV=17
> B: KEY=70000 0 0 0 0 0 0 0 0
> B: REL=103
> B: MSC=10
>
> I: Bus=0003 Vendor=03f0 Product=0024 Version=0110
> N: Name="CHICONY HP Basic USB Keyboard"
> P: Phys=usb-0000:00:03.1-2/input0
> S: Sysfs=/devices/pci0000:00/0000:00:03.1/usb3/3-2/3-2:1.0/input/input1
> U: Uniq=
> H: Handlers=kbd event1
> B: EV=120013
> B: KEY=10000 7 ff9f207a c14057ff febeffdf ffefffff ffffffff fffffffe
> B: MSC=10
> B: LED=7
>
> I: Bus=0010 Vendor=001f Product=0001 Version=0100
> N: Name="PC Speaker"
> P: Phys=isa0061/input0
> S: Sysfs=/devices/platform/pcspkr/input/input2
> U: Uniq=
> H: Handlers=kbd event2
> B: EV=40001
> B: SND=6
>
> I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
> N: Name="AT Translated Set 2 keyboard"
> P: Phys=isa0060/serio0/input0
> S: Sysfs=/devices/platform/i8042/serio0/input/input6
> U: Uniq=
> H: Handlers=kbd event3
> B: EV=120013
> B: KEY=4 2000000 3803078 f800d001 feffffdf ffefffff ffffffff fffffffe
> B: MSC=10
> B: LED=7
>
> Here is an lsmod, and I've attached .config in case it's helpful:
>
> Module                  Size  Used by
> ppdev                   6276  0
> parport_pc             26512  1
> lp                      8560  0
> parport                26824  3 ppdev,parport_pc,lp
> pcspkr                  2176  0
> atkbd                  15508  0
> ohci_hcd               28308  0
>
> So, I don't get it.  We had this all working fine with the (now
> ancient version) LTSP configuration, linux 2.4, etc.  Did some drastic
> things change in 2.6 with keyboard management?
>
> I am completely out of ideas.  The only thing I can figure is that the
> PS/2 wedge thing isn't doing the right thing, and as a result the 2.6
> version of the atkbd driver isn't binding it?   Maybe there is some
> udev magic I need to know?
>
> Apologies if I've missed something obvious here.  Any help would be
> much appreciated!
> Thanks!



-- 
Gustavo Guillermo Pérez
www.compunauta.com
Anuncios Gratis: http://anuncios.compunauta.net/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: serio / atkbd / PS/2 Strangeness with Serial port adapter
  2009-08-06 21:04 ` Gustavo Guillermo Perez
@ 2009-08-06 21:40   ` Matt Causey
  0 siblings, 0 replies; 6+ messages in thread
From: Matt Causey @ 2009-08-06 21:40 UTC (permalink / raw)
  To: Gustavo Guillermo Perez; +Cc: linux-kernel

> You missed the serial io port driver.
>
Missed it?  Do you mean it's missing from lsmod?  That's because its
in the kernel:

blah / # zgrep CONFIG_SERIO= /proc/config.gz
CONFIG_SERIO=y

Or did you mean something else?

--
Matt








> kernel/drivers/input/serio
>> Things are working well - except for one problem.  One the new image,
>> some of the input devices don't work we expected.  We have a number of
>> different barcode scanners that attach to these terminals.  Many of the new
>> ones are USB HID compliant devices - which is great.  Most of them are
>> actually serial port devices, that connect to the terminal via a
>> serial --> PS/2 'wedge'.  The PS/2 wedge devices are the ones that
>> don't work correctly.
>>
>> If we connect the scanner to the thin client, and boot the image, the
>> scanner does not work.  It does not show up at all as an input device:
>>
>> blablahostname / # cat /proc/bus/input/devices
>> I: Bus=0003 Vendor=046d Product=c001 Version=0110
>> N: Name="Logitech USB Mouse"
>> P: Phys=usb-0000:00:03.0-1/input0
>> S: Sysfs=/devices/pci0000:00/0000:00:03.0/usb2/2-1/2-1:1.0/input/input0
>> U: Uniq=
>> H: Handlers=mouse0 event0
>> B: EV=17
>> B: KEY=70000 0 0 0 0 0 0 0 0
>> B: REL=103
>> B: MSC=10
>>
>> I: Bus=0003 Vendor=03f0 Product=0024 Version=0110
>> N: Name="CHICONY HP Basic USB Keyboard"
>> P: Phys=usb-0000:00:03.1-2/input0
>> S: Sysfs=/devices/pci0000:00/0000:00:03.1/usb3/3-2/3-2:1.0/input/input1
>> U: Uniq=
>> H: Handlers=kbd event1
>> B: EV=120013
>> B: KEY=10000 7 ff9f207a c14057ff febeffdf ffefffff ffffffff fffffffe
>> B: MSC=10
>> B: LED=7
>>
>> I: Bus=0010 Vendor=001f Product=0001 Version=0100
>> N: Name="PC Speaker"
>> P: Phys=isa0061/input0
>> S: Sysfs=/devices/platform/pcspkr/input/input2
>> U: Uniq=
>> H: Handlers=kbd event2
>> B: EV=40001
>> B: SND=6
>>
>> So, I enabled debugging on the contoller driver(serio.c), and I see
>> that the device generates noise when connected:
>>
>> [  458.875614] drivers/input/serio/i8042.c: f2 -> i8042 (kbd-data) [444989]
>> [  458.908119] drivers/input/serio/i8042.c: fe <- i8042 (interrupt, 0,
>> 1, timeout) [445022]
>> [  458.908144] drivers/input/serio/i8042.c: ed -> i8042 (kbd-data) [445022]
>> [  458.940151] drivers/input/serio/i8042.c: fe <- i8042 (interrupt, 0,
>> 1, timeout) [445054]
>> [  458.940225] drivers/input/serio/i8042.c: d4 -> i8042 (command) [445054]
>> [  458.940234] drivers/input/serio/i8042.c: f2 -> i8042 (parameter)
>> [445054] [  458.972190] drivers/input/serio/i8042.c: fe <- i8042
>> (interrupt, 1, 12, timeout) [445086]
>> [  458.972204] drivers/input/serio/i8042.c: d4 -> i8042 (command) [445086]
>> [  458.972212] drivers/input/serio/i8042.c: ed -> i8042 (parameter)
>> [445086] [  459.004227] drivers/input/serio/i8042.c: fe <- i8042
>> (interrupt, 1, 12, timeout) [445118]
>> [20171.684870] drivers/input/serio/i8042.c: 0b <- i8042 (interrupt, 0,
>> 1) [20162195]
>>
>> However - the atkbd driver does not pick the device up at all.
>>
>> So, I did find a workaround (which is NOT acceptable for this
>> deployment).  Remember the PS/2 'wedge' I mentioned?  Well, it has an
>> extra PS/2 port for your keyboard.  If I connect a PS/2 keyboard to
>> that thing, suddenly my scanner starts working.
>>
>> We see some chatter from the controller driver, then one of these:
>>
>> [23811.805578] input: AT Translated Set 2 keyboard as
>> /devices/platform/i8042/serio0/input/input6
>>
>> Aaaand a new device is registered as an input device:
>>
>> yayayayhostname# cat /proc/bus/input/devices
>> I: Bus=0003 Vendor=046d Product=c001 Version=0110
>> N: Name="Logitech USB Mouse"
>> P: Phys=usb-0000:00:03.0-1/input0
>> S: Sysfs=/devices/pci0000:00/0000:00:03.0/usb2/2-1/2-1:1.0/input/input0
>> U: Uniq=
>> H: Handlers=mouse0 event0
>> B: EV=17
>> B: KEY=70000 0 0 0 0 0 0 0 0
>> B: REL=103
>> B: MSC=10
>>
>> I: Bus=0003 Vendor=03f0 Product=0024 Version=0110
>> N: Name="CHICONY HP Basic USB Keyboard"
>> P: Phys=usb-0000:00:03.1-2/input0
>> S: Sysfs=/devices/pci0000:00/0000:00:03.1/usb3/3-2/3-2:1.0/input/input1
>> U: Uniq=
>> H: Handlers=kbd event1
>> B: EV=120013
>> B: KEY=10000 7 ff9f207a c14057ff febeffdf ffefffff ffffffff fffffffe
>> B: MSC=10
>> B: LED=7
>>
>> I: Bus=0010 Vendor=001f Product=0001 Version=0100
>> N: Name="PC Speaker"
>> P: Phys=isa0061/input0
>> S: Sysfs=/devices/platform/pcspkr/input/input2
>> U: Uniq=
>> H: Handlers=kbd event2
>> B: EV=40001
>> B: SND=6
>>
>> I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
>> N: Name="AT Translated Set 2 keyboard"
>> P: Phys=isa0060/serio0/input0
>> S: Sysfs=/devices/platform/i8042/serio0/input/input6
>> U: Uniq=
>> H: Handlers=kbd event3
>> B: EV=120013
>> B: KEY=4 2000000 3803078 f800d001 feffffdf ffefffff ffffffff fffffffe
>> B: MSC=10
>> B: LED=7
>>
>> Here is an lsmod, and I've attached .config in case it's helpful:
>>
>> Module                  Size  Used by
>> ppdev                   6276  0
>> parport_pc             26512  1
>> lp                      8560  0
>> parport                26824  3 ppdev,parport_pc,lp
>> pcspkr                  2176  0
>> atkbd                  15508  0
>> ohci_hcd               28308  0
>>
>> So, I don't get it.  We had this all working fine with the (now
>> ancient version) LTSP configuration, linux 2.4, etc.  Did some drastic
>> things change in 2.6 with keyboard management?
>>
>> I am completely out of ideas.  The only thing I can figure is that the
>> PS/2 wedge thing isn't doing the right thing, and as a result the 2.6
>> version of the atkbd driver isn't binding it?   Maybe there is some
>> udev magic I need to know?
>>
>> Apologies if I've missed something obvious here.  Any help would be
>> much appreciated!
>> Thanks!
>
>
>
> --
> Gustavo Guillermo Pérez
> www.compunauta.com
> Anuncios Gratis: http://anuncios.compunauta.net/
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: serio / atkbd / PS/2 Strangeness with Serial port adapter
  2009-08-06 20:15 serio / atkbd / PS/2 Strangeness with Serial port adapter Matt Causey
  2009-08-06 21:04 ` Gustavo Guillermo Perez
@ 2009-08-10  8:34 ` Dmitry Torokhov
  2009-08-25  0:09   ` Matt Causey
  1 sibling, 1 reply; 6+ messages in thread
From: Dmitry Torokhov @ 2009-08-10  8:34 UTC (permalink / raw)
  To: Matt Causey; +Cc: linux-kernel

Hi Matt,

On Thu, Aug 06, 2009 at 09:15:01PM +0100, Matt Causey wrote:
> 
> So, I enabled debugging on the contoller driver(serio.c), and I see
> that the device generates noise when connected:
> 
> [  458.875614] drivers/input/serio/i8042.c: f2 -> i8042 (kbd-data) [444989]
> [  458.908119] drivers/input/serio/i8042.c: fe <- i8042 (interrupt, 0,
> 1, timeout) [445022]
> [  458.908144] drivers/input/serio/i8042.c: ed -> i8042 (kbd-data) [445022]
> [  458.940151] drivers/input/serio/i8042.c: fe <- i8042 (interrupt, 0,
> 1, timeout) [445054]
> [  458.940225] drivers/input/serio/i8042.c: d4 -> i8042 (command) [445054]
> [  458.940234] drivers/input/serio/i8042.c: f2 -> i8042 (parameter) [445054]
> [  458.972190] drivers/input/serio/i8042.c: fe <- i8042 (interrupt, 1,
> 12, timeout) [445086]
> [  458.972204] drivers/input/serio/i8042.c: d4 -> i8042 (command) [445086]
> [  458.972212] drivers/input/serio/i8042.c: ed -> i8042 (parameter) [445086]
> [  459.004227] drivers/input/serio/i8042.c: fe <- i8042 (interrupt, 1,
> 12, timeout) [445118]
> [20171.684870] drivers/input/serio/i8042.c: 0b <- i8042 (interrupt, 0,
> 1) [20162195]
> 
> However - the atkbd driver does not pick the device up at all.
> 

Your device is steadely refusing to say that it is a keyboard - and so
atkbd driver does not bind to it.

> So, I did find a workaround (which is NOT acceptable for this
> deployment).  Remember the PS/2 'wedge' I mentioned?  Well, it has an
> extra PS/2 port for your keyboard.  If I connect a PS/2 keyboard to
> that thing, suddenly my scanner starts working.
> 
> We see some chatter from the controller driver, then one of these:
> 
> [23811.805578] input: AT Translated Set 2 keyboard as
> /devices/platform/i8042/serio0/input/input6
> 

That happened because apparently the 'wedge' passes the inquirys to
the real keyboard and it answers propery.

I think the "i8042.dumbkbd" kernel parameter will solve your issue.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: serio / atkbd / PS/2 Strangeness with Serial port adapter
  2009-08-10  8:34 ` Dmitry Torokhov
@ 2009-08-25  0:09   ` Matt Causey
  2009-08-25  0:22     ` Dmitry Torokhov
  0 siblings, 1 reply; 6+ messages in thread
From: Matt Causey @ 2009-08-25  0:09 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-kernel

On Mon, Aug 10, 2009 at 1:34 AM, Dmitry
Torokhov<dmitry.torokhov@gmail.com> wrote:

>> [  459.004227] drivers/input/serio/i8042.c: fe <- i8042 (interrupt, 1,
>> 12, timeout) [445118]
>> [20171.684870] drivers/input/serio/i8042.c: 0b <- i8042 (interrupt, 0,
>> 1) [20162195]
>>
>> However - the atkbd driver does not pick the device up at all.
>>
>
> Your device is steadely refusing to say that it is a keyboard - and so
> atkbd driver does not bind to it.
>
>> So, I did find a workaround (which is NOT acceptable for this
>> deployment).  Remember the PS/2 'wedge' I mentioned?  Well, it has an
>> extra PS/2 port for your keyboard.  If I connect a PS/2 keyboard to
>> that thing, suddenly my scanner starts working.
>>
>> We see some chatter from the controller driver, then one of these:
>>
>> [23811.805578] input: AT Translated Set 2 keyboard as
>> /devices/platform/i8042/serio0/input/input6
>>
>
> That happened because apparently the 'wedge' passes the inquirys to
> the real keyboard and it answers propery.
>
> I think the "i8042.dumbkbd" kernel parameter will solve your issue.
>
> --
> Dmitry
>

That's great.  I think it's the only option that I did not try.  ;-)
Works great!

In case it matters:

blah blah/ # dmesg | grep i8042
[    0.000000] Kernel command line: initrd=ramdisk.gz
video="vesafb:mtrr,ywrap,1024x768-32@85" i8042.dumbkbd
BOOT_IMAGE=bzImage auto
[   14.046511] serio: i8042 KBD port at 0x60,0x64 irq 1
[   14.046578] serio: i8042 AUX port at 0x60,0x64 irq 12
[   15.804210] input: AT Translated Set 2 keyboard as
/devices/platform/i8042/serio0/input/input2
blah blah/ #

Looks like it just decides that there must be a keyboard there,
whether or not there really is one.

Are there any downsides to using this kernel parameter?

Thanks!

--
Matt

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: serio / atkbd / PS/2 Strangeness with Serial port adapter
  2009-08-25  0:09   ` Matt Causey
@ 2009-08-25  0:22     ` Dmitry Torokhov
  0 siblings, 0 replies; 6+ messages in thread
From: Dmitry Torokhov @ 2009-08-25  0:22 UTC (permalink / raw)
  To: Matt Causey; +Cc: linux-kernel

On Monday 24 August 2009 17:09:20 Matt Causey wrote:
> On Mon, Aug 10, 2009 at 1:34 AM, Dmitry
> Torokhov<dmitry.torokhov@gmail.com> wrote:
> 
> >> [  459.004227] drivers/input/serio/i8042.c: fe <- i8042 (interrupt, 1,
> >> 12, timeout) [445118]
> >> [20171.684870] drivers/input/serio/i8042.c: 0b <- i8042 (interrupt, 0,
> >> 1) [20162195]
> >>
> >> However - the atkbd driver does not pick the device up at all.
> >>
> >
> > Your device is steadely refusing to say that it is a keyboard - and so
> > atkbd driver does not bind to it.
> >
> >> So, I did find a workaround (which is NOT acceptable for this
> >> deployment).  Remember the PS/2 'wedge' I mentioned?  Well, it has an
> >> extra PS/2 port for your keyboard.  If I connect a PS/2 keyboard to
> >> that thing, suddenly my scanner starts working.
> >>
> >> We see some chatter from the controller driver, then one of these:
> >>
> >> [23811.805578] input: AT Translated Set 2 keyboard as
> >> /devices/platform/i8042/serio0/input/input6
> >>
> >
> > That happened because apparently the 'wedge' passes the inquirys to
> > the real keyboard and it answers propery.
> >
> > I think the "i8042.dumbkbd" kernel parameter will solve your issue.
> >
> > --
> > Dmitry
> >
> 
> That's great.  I think it's the only option that I did not try.  ;-)
> Works great!
> 
> In case it matters:
> 
> blah blah/ # dmesg | grep i8042
> [    0.000000] Kernel command line: initrd=ramdisk.gz
> video="vesafb:mtrr,ywrap,1024x768-32@85" i8042.dumbkbd
> BOOT_IMAGE=bzImage auto
> [   14.046511] serio: i8042 KBD port at 0x60,0x64 irq 1
> [   14.046578] serio: i8042 AUX port at 0x60,0x64 irq 12
> [   15.804210] input: AT Translated Set 2 keyboard as
> /devices/platform/i8042/serio0/input/input2
> blah blah/ #
> 
> Looks like it just decides that there must be a keyboard there,
> whether or not there really is one.
> 
> Are there any downsides to using this kernel parameter?
> 

The kernel will not control LEDs on the keyboard nor will it be able
to control hardware autorepeat parameters (software autorepeat should
still work fine).

-- 
Dmitry

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-08-25  0:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-06 20:15 serio / atkbd / PS/2 Strangeness with Serial port adapter Matt Causey
2009-08-06 21:04 ` Gustavo Guillermo Perez
2009-08-06 21:40   ` Matt Causey
2009-08-10  8:34 ` Dmitry Torokhov
2009-08-25  0:09   ` Matt Causey
2009-08-25  0:22     ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®