lkml.org 
[lkml]   [2006]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Elo touch panel
On 2/7/06, Vojtech Pavlik <vojtech@suse.cz> wrote:
> On Mon, Feb 06, 2006 at 07:30:26PM -0700, Shaun Jackman wrote:
...
> > I then run...
> > $ inputattach -elo /dev/ttyS3
> > .. at which point dmesg says...
> > serio: Serial port ttyS3
> > but it never gives a message indicating that the Elo driver has been
> > attached to ttyS3. Is there anything else I must configure?
>
> Try to look at /proc/bus/input/devices. The elo_connect() function
> should get called at the point the port is created. Unfortunately, I
> never could test this driver, because I don't have any touchscreens
> anymore (ever had one and it broke when I was moving). So there may be
> problems in the driver. But I believe others had some success running
> it.
>
> Looking at the driver, one will probably need to set the panel type in
> inputattach ...

There's a bug in inputattach. The SERIO_RS232 constant is completely
mucking the bits that specify the protocol.

--- inputattach.c- 2006-02-07 14:37:04.000000000 -0700
+++ inputattach.c 2006-02-07 16:22:07.000000000 -0700
@@ -455,7 +455,7 @@
return 1;
}

- devt = SERIO_RS232 | input_types[type].type | (id << 8) | (extra << 16);
+ devt = input_types[type].type | (id << 8) | (extra << 16);

if(ioctl(fd, SPIOCSTYPE, &devt)) {
fprintf(stderr, "inputattach: can't set device type\n");
Cheers,
Shaun

APPENDIX A

You probably know this better than I do, but the .type above is
misnamed. It should really be .proto. It's impossible, as far as I can
tell, to specify the type (like SERIO_RS232) with a SPIOCSTYPE call.
-
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/

\
 
 \ /
  Last update: 2006-02-08 00:44    [W:0.301 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site