2002-10-02 16:47:59

by Ralf Gerbig

[permalink] [raw]
Subject: 2.5 input drivers Synaptics touchpad

Hi Vojtech,

I just tried 2.5.40 and could not get the Synaptics touchpad on an Acer
Travelmate 353 to work with either the synaptics driver for XFree
at http://www.mobilix.org/software/synaptics/ or tpconfig at
http://www.compass.com/synaptics/ gpm also does not like the synps2
protocol. Works as (im)ps/2 though.

I have tried with and without CONFIG_INPUT_MOUSE and CONFIG_MOUSE_PS2
using /dev/psaux and /dev/input/mice.

Below is the debug output of tpconfig on 2.4.18 with the 2.5.40
differences on the right:

putbyte: write 0xe6
PS2_write: 1 bytes
PS2_write: 0xe6
PS2_write: done
PS2_read: 1 bytes
PS2_read: 0xfa
PS2_read: read 1
ps2_read_byte: read 0xfa
putbyte: write 0xe8
PS2_write: 1 bytes
PS2_write: 0xe8
PS2_write: done
PS2_read: 1 bytes
PS2_read: 0xfa
PS2_read: read 1
ps2_read_byte: read 0xfa
putbyte: write 00
PS2_write: 1 bytes
PS2_write: 0
PS2_write: done
PS2_read: 1 bytes
PS2_read: 0xfa
PS2_read: read 1
ps2_read_byte: read 0xfa
putbyte: write 0xe8
PS2_write: 1 bytes
PS2_write: 0xe8
PS2_write: done
PS2_read: 1 bytes
PS2_read: 0xfa
PS2_read: read 1
ps2_read_byte: read 0xfa
putbyte: write 00
PS2_write: 1 bytes
PS2_write: 0
PS2_write: done
PS2_read: 1 bytes
PS2_read: 0xfa
PS2_read: read 1
ps2_read_byte: read 0xfa
putbyte: write 0xe8
PS2_write: 1 bytes
PS2_write: 0xe8
PS2_write: done
PS2_read: 1 bytes
PS2_read: 0xfa
PS2_read: read 1
ps2_read_byte: read 0xfa
putbyte: write 00
PS2_write: 1 bytes
PS2_write: 0
PS2_write: done
PS2_read: 1 bytes
PS2_read: 0xfa
PS2_read: read 1
ps2_read_byte: read 0xfa
putbyte: write 0xe8
PS2_write: 1 bytes
PS2_write: 0xe8
PS2_write: done
PS2_read: 1 bytes
PS2_read: 0xfa
PS2_read: read 1
ps2_read_byte: read 0xfa
putbyte: write 00
PS2_write: 1 bytes
PS2_write: 0
PS2_write: done
PS2_read: 1 bytes
PS2_read: 0xfa
PS2_read: read 1
ps2_read_byte: read 0xfa
putbyte: write 0xe9
PS2_write: 1 bytes
PS2_write: 0xe9
PS2_write: done
PS2_read: 1 bytes
PS2_read: 0xfa
PS2_read: read 1
ps2_read_byte: read 0xfa
PS2_read: 1 bytes
PS2_read: 0x6 PS2_read: 0x60
PS2_read: read 1
ps2_read_byte: read 0x6 ps2_read_byte: read 0x60
PS2_read: 1 bytes
PS2_read: 0x47 PS2_read: 0x3
PS2_read: read 1
ps2_read_byte: read 0x47 ps2_read_byte: read 0x3
PS2_read: 1 bytes
PS2_read: 0x14 PS2_read: 0xc8
PS2_read: read 1
ps2_read_byte: read 0x14 ps2_read_byte: read 0xc8
Found Synaptics Touchpad. sorry nope ;)
putbyte: write 0xe6 putbyte: write 0xe7
PS2_write: 1 bytes
PS2_write: 0xe6 PS2_write: 0xe7
PS2_write: done
PS2_read: 1 bytes
PS2_read: 0xfa
PS2_read: read 1
ps2_read_byte: read 0xfa
...
...
[query 00 => 0x6 0x47 0x14] [query 00 => 0x60 0x3 0xc8]
fatal:


2002-10-02 18:39:07

by Vojtech Pavlik

[permalink] [raw]
Subject: Re: 2.5 input drivers Synaptics touchpad

On Wed, Oct 02, 2002 at 06:24:54PM +0200, Ralf Gerbig wrote:

> Hi Vojtech,
>
> I just tried 2.5.40 and could not get the Synaptics touchpad on an Acer
> Travelmate 353 to work with either the synaptics driver for XFree
> at http://www.mobilix.org/software/synaptics/ or tpconfig at
> http://www.compass.com/synaptics/ gpm also does not like the synps2
> protocol. Works as (im)ps/2 though.
>
> I have tried with and without CONFIG_INPUT_MOUSE and CONFIG_MOUSE_PS2
> using /dev/psaux and /dev/input/mice.

Yes, for 2.5 I still have to write a synaptics touchpad kernel driver
for it to work properly.

> Below is the debug output of tpconfig on 2.4.18 with the 2.5.40
> differences on the right:
>
> putbyte: write 0xe6
> PS2_write: 1 bytes
> PS2_write: 0xe6
> PS2_write: done
> PS2_read: 1 bytes
> PS2_read: 0xfa
> PS2_read: read 1
> ps2_read_byte: read 0xfa
> putbyte: write 0xe8
> PS2_write: 1 bytes
> PS2_write: 0xe8
> PS2_write: done
> PS2_read: 1 bytes
> PS2_read: 0xfa
> PS2_read: read 1
> ps2_read_byte: read 0xfa
> putbyte: write 00
> PS2_write: 1 bytes
> PS2_write: 0
> PS2_write: done
> PS2_read: 1 bytes
> PS2_read: 0xfa
> PS2_read: read 1
> ps2_read_byte: read 0xfa
> putbyte: write 0xe8
> PS2_write: 1 bytes
> PS2_write: 0xe8
> PS2_write: done
> PS2_read: 1 bytes
> PS2_read: 0xfa
> PS2_read: read 1
> ps2_read_byte: read 0xfa
> putbyte: write 00
> PS2_write: 1 bytes
> PS2_write: 0
> PS2_write: done
> PS2_read: 1 bytes
> PS2_read: 0xfa
> PS2_read: read 1
> ps2_read_byte: read 0xfa
> putbyte: write 0xe8
> PS2_write: 1 bytes
> PS2_write: 0xe8
> PS2_write: done
> PS2_read: 1 bytes
> PS2_read: 0xfa
> PS2_read: read 1
> ps2_read_byte: read 0xfa
> putbyte: write 00
> PS2_write: 1 bytes
> PS2_write: 0
> PS2_write: done
> PS2_read: 1 bytes
> PS2_read: 0xfa
> PS2_read: read 1
> ps2_read_byte: read 0xfa
> putbyte: write 0xe8
> PS2_write: 1 bytes
> PS2_write: 0xe8
> PS2_write: done
> PS2_read: 1 bytes
> PS2_read: 0xfa
> PS2_read: read 1
> ps2_read_byte: read 0xfa
> putbyte: write 00
> PS2_write: 1 bytes
> PS2_write: 0
> PS2_write: done
> PS2_read: 1 bytes
> PS2_read: 0xfa
> PS2_read: read 1
> ps2_read_byte: read 0xfa
> putbyte: write 0xe9
> PS2_write: 1 bytes
> PS2_write: 0xe9
> PS2_write: done
> PS2_read: 1 bytes
> PS2_read: 0xfa
> PS2_read: read 1
> ps2_read_byte: read 0xfa
> PS2_read: 1 bytes
> PS2_read: 0x6 PS2_read: 0x60
> PS2_read: read 1
> ps2_read_byte: read 0x6 ps2_read_byte: read 0x60
> PS2_read: 1 bytes
> PS2_read: 0x47 PS2_read: 0x3
> PS2_read: read 1
> ps2_read_byte: read 0x47 ps2_read_byte: read 0x3
> PS2_read: 1 bytes
> PS2_read: 0x14 PS2_read: 0xc8
> PS2_read: read 1
> ps2_read_byte: read 0x14 ps2_read_byte: read 0xc8
> Found Synaptics Touchpad. sorry nope ;)
> putbyte: write 0xe6 putbyte: write 0xe7
> PS2_write: 1 bytes
> PS2_write: 0xe6 PS2_write: 0xe7
> PS2_write: done
> PS2_read: 1 bytes
> PS2_read: 0xfa
> PS2_read: read 1
> ps2_read_byte: read 0xfa
> ...
> ...
> [query 00 => 0x6 0x47 0x14] [query 00 => 0x60 0x3 0xc8]
> fatal:

--
Vojtech Pavlik
SuSE Labs

2002-10-02 20:26:10

by Ralf Gerbig

[permalink] [raw]
Subject: Re: 2.5 input drivers Synaptics touchpad

Hi Vojtech,

Am Mittwoch, 2. Oktober 2002 20:44 schrieb Vojtech Pavlik:
> On Wed, Oct 02, 2002 at 06:24:54PM +0200, Ralf Gerbig wrote:
> > Hi Vojtech,
> >
> > I just tried 2.5.40 and could not get the Synaptics touchpad on an Acer
> > Travelmate 353 to work with either the synaptics driver for XFree
> > at http://www.mobilix.org/software/synaptics/ or tpconfig at
> > http://www.compass.com/synaptics/ gpm also does not like the synps2
> > protocol. Works as (im)ps/2 though.

> Yes, for 2.5 I still have to write a synaptics touchpad kernel driver
> for it to work properly.

is there any kind of 'raw' psaux interface to those userspace drivers?
looks to me as a, at least stopgap, solution. With the disclamer that
I know nothing about the interface or the kernel, but i've read the
mantra 'userspace' many times (for values of userspace as in X and gpm).

Thanks,

Ralf

2002-10-02 20:37:54

by Vojtech Pavlik

[permalink] [raw]
Subject: Re: 2.5 input drivers Synaptics touchpad

On Wed, Oct 02, 2002 at 10:22:56PM +0200, Ralf Gerbig wrote:
> Hi Vojtech,
>
> Am Mittwoch, 2. Oktober 2002 20:44 schrieb Vojtech Pavlik:
> > On Wed, Oct 02, 2002 at 06:24:54PM +0200, Ralf Gerbig wrote:
> > > Hi Vojtech,
> > >
> > > I just tried 2.5.40 and could not get the Synaptics touchpad on an Acer
> > > Travelmate 353 to work with either the synaptics driver for XFree
> > > at http://www.mobilix.org/software/synaptics/ or tpconfig at
> > > http://www.compass.com/synaptics/ gpm also does not like the synps2
> > > protocol. Works as (im)ps/2 though.
>
> > Yes, for 2.5 I still have to write a synaptics touchpad kernel driver
> > for it to work properly.
>
> is there any kind of 'raw' psaux interface to those userspace drivers?
> looks to me as a, at least stopgap, solution. With the disclamer that
> I know nothing about the interface or the kernel, but i've read the
> mantra 'userspace' many times (for values of userspace as in X and gpm).

No, there isn't, but it should not be too hard to implement. Maybe
easier than a synaptics driver, but not really much easier.

--
Vojtech Pavlik
SuSE Labs