From: Shaun Jackman <sjackman@gmail.com>
To: Dmitry Torokhov <dtor_core@ameritech.net>,
Vojtech Pavlik <vojtech@suse.cz>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] liyitec: Liyitec PS/2 touchscreen driver
Date: Fri, 3 Feb 2006 17:39:30 -0700 [thread overview]
Message-ID: <7f45d9390602031639k3c5ae010gbd52a8fdd8bb863b@mail.gmail.com> (raw)
In-Reply-To: <d120d5000602021512x42be2006h31e63cb6d78ac1b3@mail.gmail.com>
On 2/2/06, Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote:
> On 2/2/06, Shaun Jackman <sjackman@gmail.com> wrote:
> > [PATCH] liyitec: Liyitec PS/2 touchscreen driver
> >
> > Add an input driver for the Liyitec PS/2 touchscreen.
>
> I don't see any suibstantial differences from the older patch. I think
> it should be integrated into psmouse. Is there a way to query the
> device? What kind of boxes use this touchscreen? Maybe using DMI is an
> option, like lifebook does?
I've ran a number of experiments to attempt to detect the Liyitec
touch screen. I sent every PS/2 command from 0x00 to 0xff. It responds
in every way as a normal PS/2 mouse. To commands it doesn't
understand, it first responds with 0xfe (NAK), then if it also doesn't
understand the next command it responds with 0xfc (ERR).
I've tried setting every resolution (PS/2 command 0xe8) from 0x00 to
0xff. It responds to 0x00-0x03 with ACK. It responds to 0x04-0xff with
NAK/ERR.
I've tried setting every rate (PS/2 command 0xf3) from 0x00 to 0xff.
It responds to (10, 20, 40, 60, 80, 100, 200) with ACK. It responds to
every other rate with NAK/ERR.
I've even tried sending every valid rate "knock" sequence of length 3,
of which there are 7^3=343, and tried a get info (PS/2 command 0xe9)
and get ID (PS/2 command 0xf2). The get info command never returns
anything unusual, and the get ID command always returns 0 (standard
PS/2 mouse).
Liyitec provides a binary X11 driver for the touch screen. I set the
kernel to dump every byte going to and coming from /dev/psaux and ran
their binary. Their driver sends (enable, scale11, enable, rate, 200,
resolution, 2, enable) to /dev/psaux and nothing more.
So, after some heavy experimentation, I am now rather confident that
there is no trivial way to detect the touch panel's existence.
Although, I would love to hear any suggestions. If anyone's interested
in seeing the raw data, I'd be happy to send it on. In a previous
mail, I mentioned my particular hardware does not have any DMI data,
like the lifebook driver uses.
So, finally, assuming there is no way to detect the touch panel's
presence, should the driver still be rolled into psmouse? If so, how
should the user specify she wishes to use the liyitec driver, and
which serio (PS/2) port the liyitec touch screen is on?
My current patch implements the Liyitec driver as a serio driver that
grabs every available PS/2 port. Quite unfriendly, but works in the
typical case where the keyboard driver grabs the first port, and the
Liyitec driver grabs the psaux port.
Cheers,
Shaun
next prev parent reply other threads:[~2006-02-04 0:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-02 23:02 Shaun Jackman
2006-02-02 23:12 ` Dmitry Torokhov
2006-02-02 23:54 ` Shaun Jackman
2006-02-04 0:39 ` Shaun Jackman [this message]
2006-02-04 7:05 ` Vojtech Pavlik
2006-02-04 18:32 ` Shaun Jackman
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=7f45d9390602031639k3c5ae010gbd52a8fdd8bb863b@mail.gmail.com \
--to=sjackman@gmail.com \
--cc=dtor_core@ameritech.net \
--cc=linux-kernel@vger.kernel.org \
--cc=vojtech@suse.cz \
/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
all inboxes | Powered by JetHome®