linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alex Hudson <home@alexhudson.com>
To: Linux Input <linux-input@vger.kernel.org>
Subject: Driver problems: t213 on i8042 port
Date: Wed, 08 Dec 2010 10:33:08 +0000	[thread overview]
Message-ID: <1291804388.3052.11.camel@lapland.localdomain> (raw)

Hi all,

I'm having some trouble with the serio support for a touchit213 device,
and I'm hoping by describing what's going on someone can offer some
clues.

The PC in question is a tablet PC with the touchscreen apparently
connected to the fourth serial/ps2 port on the i8042 internally, rather
than ttyS0 or something.

The manufacturer provides an xf86 driver which is extremely ropey, and
requires raw access the port. This works:

	echo -n "serio_raw" > /sys/bus/serio/devices/serio4/drvctl

.. and /dev/serio_raw0 is created.

Now, there is a serio driver for the touchit213 series, but the obvious:

	echo -n "touchit213" > /sys/bus/serio/devices/serio4/drvctl

.. doesn't work. I don't see anything in the logs; whereas if I use
inputattach to connect the driver to ttyS0 (which doesn't have the
device, obviously) I can see that the driver is enabled
in /var/log/messages and a touch /dev/input/event device is created.

I've looked through the source for the touchit213 driver, and it's nice
simple code - and I'm assuming that it's failing somewhere in the
connect function. However, I'm struggling to get much further than this.

I guess the first question is, should this work? Attaching touchit213 to
a 'real' serial port appears to work, so I'm making the guess that this
is something to do with it being a port on the i8042. However, I don't
really know much serio and haven't been able to find any good
documentation about it - it could be I'm just missing an appropriate
incantation?

Second question is, if it's supposed to work - does anyone have some
good ideas for debugging this? I think otherwise I'm going to be
sprinkling kprintfs() in the driver and seeing what happens - are there
any better ways than this?

Thanks for any help you can offer,

Alex.


--
This message was scanned by Better Hosted and is believed to be clean.
http://www.betterhosted.com


             reply	other threads:[~2010-12-08 11:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-08 10:33 Alex Hudson [this message]
2010-12-11  7:15 ` Driver problems: t213 on i8042 port Dmitry Torokhov
2010-12-11  8:56   ` Alex Hudson
2010-12-13  9:10     ` Dmitry Torokhov
2010-12-13 10:12       ` Alex Hudson
2010-12-15  8:03         ` Dmitry Torokhov

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=1291804388.3052.11.camel@lapland.localdomain \
    --to=home@alexhudson.com \
    --cc=linux-input@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).