linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Cc: "linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [RFC][PATCH 4/5] input: serio: add support for Amstrad Delta serial keyboard port
Date: Wed, 24 Mar 2010 14:29:21 -0700	[thread overview]
Message-ID: <201003241429.21578.dmitry.torokhov@gmail.com> (raw)
In-Reply-To: <201003242221.24551.jkrzyszt@tis.icnet.pl>

On Wednesday 24 March 2010 02:21:22 pm Janusz Krzysztofik wrote:
> Hi Dmitry,
> 
> Wednesday 24 March 2010 17:16:04 Dmitry Torokhov wrote:
> > On Mon, Mar 22, 2010 at 10:07:47PM +0100, Janusz Krzysztofik wrote:
> > > Meanwhile, I've connected the Amstrad Delta keyboard to a PC. I can
> > > confirm it speaks PS/2 protocol and is automatically detected by
> > > atkbd/i8042 drivers. The initial handshake sequence actually looks
> > > exactly the same as that of a standard AT keyboard.
> > 
> > OK, since the device really speaks PS/2 protocol I withdraw my objection
> > of using serio + atkbd combo, however we should not be doing translation
> > in serio.
> 
> Sure, thank you.
> 
> > > The problem persists about different scancodes, giving
> > > wrong keystrokes.
> > 
> > This can be dealt with from userspace by loading correct keymap.
> 
> Sounds acceptable. I hope the machine's built-in matrix keypad won't be
> affected.
> 

The scan code to key code mapping is per-device so it should not. 

> > > Resuming, if there were a boot/module option to atkbd allowing for
> > > non-default scancode table, or another similiar possibility, both
> > > devices would work with a PC using exsisting drivers.
> > 
> > You can train UDEV to load proper keymap. What does teh device report as
> > 'version' in sysfs (output of 'cat
> > /sys/bus/serio/devices/serio0/input/input3/id/bustype', please adjust
> > serioX and inputX to match yours)?
> 
> When connected to a PC over a real 2-way i8042 port, the device identifies
> itself as:
> 
> # grep '' /sys/bus/serio/devices/serio0/input/input2/id/*
> /sys/bus/serio/devices/serio0/input/input2/id/bustype:0011
> /sys/bus/serio/devices/serio0/input/input2/id/product:0001
> /sys/bus/serio/devices/serio0/input/input2/id/vendor:0001
> /sys/bus/serio/devices/serio0/input/input2/id/version:ab41
> #
> 
> Unfortunatelly, it looks exactly the same as my standard AT keyboard.
>

:(
 
> Can you imagine any other possible way of distinguishing them?

Not automatically. I mean we could assume that if we see AT keyboard on
E3 we'd need special keymap but user would have to override if he
connects a regular one.


-- 
Dmitry

  reply	other threads:[~2010-03-24 21:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-11  2:36 [RFC][PATCH 4/5] input: serio: add support for Amstrad Delta serial keyboard port Dmitry Torokhov
2009-12-11  3:09 ` Janusz Krzysztofik
2009-12-11  8:01   ` Dmitry Torokhov
2009-12-12 20:34     ` Janusz Krzysztofik
2009-12-12 23:20       ` Dmitry Torokhov
2009-12-14  0:11         ` Janusz Krzysztofik
2009-12-17 15:36           ` [RFC][PATCH 4/5] input: serio: add support forAmstrad " witek mark
2009-12-17 16:37             ` [RFC][PATCH 4/5] input: serio: add supportforAmstrad " witek mark
2010-03-22 21:07           ` [RFC][PATCH 4/5] input: serio: add support for Amstrad " Janusz Krzysztofik
2010-03-24 16:16             ` Dmitry Torokhov
2010-03-24 21:21               ` Janusz Krzysztofik
2010-03-24 21:29                 ` Dmitry Torokhov [this message]
2010-03-25 13:58                   ` Janusz Krzysztofik
  -- strict thread matches above, loose matches on Subject: below --
2009-12-10 19:58 [RFC][PATCH 0/5] omap1: Amstrad Delta: add support for external keyboard Janusz Krzysztofik
2009-12-10 20:07 ` [RFC][PATCH 4/5] input: serio: add support for Amstrad Delta serial keyboard port Janusz Krzysztofik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201003241429.21578.dmitry.torokhov@gmail.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=jkrzyszt@tis.icnet.pl \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).