2003-07-15 10:30:10

by Ricardo Galli

[permalink] [raw]
Subject: 2.6.0-test1: Synaptics driver makes touchpad unusable

The new synaptics driver doesn't work with Dell Latitude Touchpad, it doesn't
work any /dev/input/event?|mouse? and /dev/psaux neither (altough the same
configuration worked at least until 2.5.70).

I tried with gpm and the X's synaptics driver from
http://w1.894.telia.com/~u89404340/touchpad/index.html (as indicated in the
kernel documentation) and none worked, although "cat < /dev/input/event0"
showed garbage every time I touched the touchpad (no pun intended) iff evdev
was loaded.

$ dmesg
...
mice: PS/2 mouse device common for all mice
i8042.c: Detected active multiplexing controller, rev 1.1.
serio: i8042 AUX0 port at 0x60,0x64 irq 12
serio: i8042 AUX1 port at 0x60,0x64 irq 12
serio: i8042 AUX2 port at 0x60,0x64 irq 12
synaptics reset failed
synaptics reset failed
synaptics reset failed
Synaptics Touchpad, model: 1
Firware: 5.9
180 degree mounted touchpad
Sensor: 37
new absolute packet format
Touchpad has extended capability bits
-> multifinger detection
-> palm detection
input: Synaptics Synaptics TouchPad on isa0060/serio4
serio: i8042 AUX3 port at 0x60,0x64 irq 12
input: AT Set 2 keyboard on isa0060/serio0
serio: i8042 KBD port at 0x60,0x64 irq 1
...


$ cat /proc/bus/input/devices
I: Bus=0011 Vendor=0002 Product=0007 Version=0000
N: Name="Synaptics Synaptics TouchPad"
P: Phys=isa0060/serio4/input0
H: Handlers=event0
B: EV=1b
B: KEY=670000 0 0 0 0 0 0 0 0
B: ABS=1000003
B: MSC=4

I: Bus=0011 Vendor=0001 Product=0002 Version=ab83
N: Name="AT Set 2 keyboard"
P: Phys=isa0060/serio0/input0
H: Handlers=kbd event1
B: EV=120003
B: KEY=4 2000000 c061f9 fbc9d621 efdfffdf ffefffff ffffffff fffffffe
B: LED=7

$ cat /proc/bus/input/handlers
N: Number=0 Name=kbd
N: Number=1 Name=mousedev Minor=32
N: Number=2 Name=evdev Minor=64


Hope this helps.

Regards,

--
ricardo galli GPG id C8114D34


2003-07-15 12:50:38

by Peter Osterlund

[permalink] [raw]
Subject: Re: 2.6.0-test1: Synaptics driver makes touchpad unusable

Ricardo Galli <[email protected]> writes:

> The new synaptics driver doesn't work with Dell Latitude Touchpad, it doesn't
> work any /dev/input/event?|mouse? and /dev/psaux neither (altough the same
> configuration worked at least until 2.5.70).
>
> I tried with gpm and the X's synaptics driver from
> http://w1.894.telia.com/~u89404340/touchpad/index.html (as indicated in the
> kernel documentation) and none worked, although "cat < /dev/input/event0"
> showed garbage every time I touched the touchpad (no pun intended) iff evdev
> was loaded.
>
> $ dmesg
> ...
> mice: PS/2 mouse device common for all mice
> i8042.c: Detected active multiplexing controller, rev 1.1.
> serio: i8042 AUX0 port at 0x60,0x64 irq 12
> serio: i8042 AUX1 port at 0x60,0x64 irq 12
> serio: i8042 AUX2 port at 0x60,0x64 irq 12
> synaptics reset failed
> synaptics reset failed
> synaptics reset failed

You probably need this patch.

--- linux/drivers/input/mouse.resume/psmouse-base.c Sat Jul 5 23:39:14 2003
+++ linux/drivers/input/mouse/psmouse-base.c Sun Jul 6 00:23:17 2003
@@ -201,7 +201,7 @@
psmouse->cmdcnt = receive;

if (command == PSMOUSE_CMD_RESET_BAT)
- timeout = 2000000; /* 2 sec */
+ timeout = 4000000; /* 4 sec */

if (command & 0xff)
if (psmouse_sendbyte(psmouse, command & 0xff))

--
Peter Osterlund - [email protected]
http://w1.894.telia.com/~u89404340

2003-07-15 15:39:36

by Ricardo Galli

[permalink] [raw]
Subject: Re: 2.6.0-test1: Synaptics driver makes touchpad unusable

On Tuesday 15 July 2003 15:04, Peter Osterlund shaped the electrons to shout:
> Ricardo Galli <[email protected]> writes:
> > The new synaptics driver doesn't work with Dell Latitude Touchpad, it
> > doesn't work any /dev/input/event?|mouse? and /dev/psaux neither (altough
> > the same configuration worked at least until 2.5.70).
> >
> > I tried with gpm and the X's synaptics driver from
> > http://w1.894.telia.com/~u89404340/touchpad/index.html (as indicated in
> > the kernel documentation) and none worked, although "cat <
> > /dev/input/event0" showed garbage every time I touched the touchpad (no
> > pun intended) iff evdev was loaded.
> >
> > $ dmesg
> > ...
> > mice: PS/2 mouse device common for all mice
> > i8042.c: Detected active multiplexing controller, rev 1.1.
> > serio: i8042 AUX0 port at 0x60,0x64 irq 12
> > serio: i8042 AUX1 port at 0x60,0x64 irq 12
> > serio: i8042 AUX2 port at 0x60,0x64 irq 12
> > synaptics reset failed
> > synaptics reset failed
> > synaptics reset failed
>
> You probably need this patch.
>
> --- linux/drivers/input/mouse.resume/psmouse-base.c Sat Jul 5 23:39:14
> 2003 +++ linux/drivers/input/mouse/psmouse-base.c Sun Jul 6 00:23:17 2003
> @@ -201,7 +201,7 @@


Tried it, but still doesn't work. X server says cannot query/intialize de
device as before:

i8042.c: Detected active multiplexing controller, rev 1.1.
serio: i8042 AUX0 port at 0x60,0x64 irq 12
serio: i8042 AUX1 port at 0x60,0x64 irq 12
serio: i8042 AUX2 port at 0x60,0x64 irq 12
synaptics reset failed
synaptics reset failed
synaptics reset failed
Synaptics Touchpad, model: 1
Firware: 5.9
180 degree mounted touchpad
Sensor: 37
new absolute packet format
Touchpad has extended capability bits
-> multifinger detection
-> palm detection
input: Synaptics Synaptics TouchPad on isa0060/serio4




Thanks.

--
ricardo galli GPG id C8114D34

2003-07-15 18:59:29

by Dax Kelson

[permalink] [raw]
Subject: Re: 2.6.0-test1: Synaptics driver makes touchpad unusable

On Tue, 2003-07-15 at 04:44, Ricardo Galli wrote:
> The new synaptics driver doesn't work with Dell Latitude Touchpad, it doesn't
> work any /dev/input/event?|mouse? and /dev/psaux neither (altough the same
> configuration worked at least until 2.5.70).

I can replicate this problem with 2.6.0-test1 on a Dell Inspiron 4150
laptop as well.

Synaptics Touchpad, model: 1
Firware: 5.9
180 degree mounted touchpad
Sensor: 27
new absolute packet format
Touchpad has extended capability bits
-> multifinger detection
-> palm detection
input: Synaptics Synaptics TouchPad on isa0060/serio1

Dax Kelson

2003-07-15 22:10:12

by Peter Osterlund

[permalink] [raw]
Subject: Re: 2.6.0-test1: Synaptics driver makes touchpad unusable

Dax Kelson <[email protected]> writes:

> On Tue, 2003-07-15 at 04:44, Ricardo Galli wrote:
> > The new synaptics driver doesn't work with Dell Latitude Touchpad, it doesn't
> > work any /dev/input/event?|mouse? and /dev/psaux neither (altough the same
> > configuration worked at least until 2.5.70).
>
> I can replicate this problem with 2.6.0-test1 on a Dell Inspiron 4150
> laptop as well.
>
> Synaptics Touchpad, model: 1
> Firware: 5.9
> 180 degree mounted touchpad
> Sensor: 27
> new absolute packet format
> Touchpad has extended capability bits
> -> multifinger detection
> -> palm detection
> input: Synaptics Synaptics TouchPad on isa0060/serio1

This doesn't look like the same problem. There is no "reset failed"
message. Are you using the correct XFree86 driver:

http://w1.894.telia.com/~u89404340/touchpad/index.html

Also, note that the driver doesn't work with gpm yet.

--
Peter Osterlund - [email protected]
http://w1.894.telia.com/~u89404340

2003-07-15 22:10:29

by Peter Osterlund

[permalink] [raw]
Subject: Re: 2.6.0-test1: Synaptics driver makes touchpad unusable

Ricardo Galli <[email protected]> writes:

> On Tuesday 15 July 2003 15:04, Peter Osterlund shaped the electrons to shout:
> > Ricardo Galli <[email protected]> writes:
> > > The new synaptics driver doesn't work with Dell Latitude Touchpad, it
> > > doesn't work any /dev/input/event?|mouse? and /dev/psaux neither (altough
> > > the same configuration worked at least until 2.5.70).
> > >
> > > I tried with gpm and the X's synaptics driver from
> > > http://w1.894.telia.com/~u89404340/touchpad/index.html (as indicated in
> > > the kernel documentation) and none worked, although "cat <
> > > /dev/input/event0" showed garbage every time I touched the touchpad (no
> > > pun intended) iff evdev was loaded.
> > >
> > > $ dmesg
> > > ...
> > > mice: PS/2 mouse device common for all mice
> > > i8042.c: Detected active multiplexing controller, rev 1.1.
> > > serio: i8042 AUX0 port at 0x60,0x64 irq 12
> > > serio: i8042 AUX1 port at 0x60,0x64 irq 12
> > > serio: i8042 AUX2 port at 0x60,0x64 irq 12
> > > synaptics reset failed
> > > synaptics reset failed
> > > synaptics reset failed
> >
> > You probably need this patch.
> >
> > --- linux/drivers/input/mouse.resume/psmouse-base.c Sat Jul 5 23:39:14
> > 2003 +++ linux/drivers/input/mouse/psmouse-base.c Sun Jul 6 00:23:17 2003
> > @@ -201,7 +201,7 @@
>
>
> Tried it, but still doesn't work. X server says cannot query/intialize de
> device as before:

Does it help to make the timeout even longer? (15 seconds for example)
Does it help to disable the reset sequence altogether, like this?

diff -u -r -N linux-2.6.0-test1/drivers/input/mouse/synaptics.c linux-tmp/drivers/input/mouse/synaptics.c
--- linux-2.6.0-test1/drivers/input/mouse/synaptics.c Sat Jul 12 00:17:19 2003
+++ linux-tmp/drivers/input/mouse/synaptics.c Tue Jul 15 23:31:01 2003
@@ -81,6 +81,8 @@
{
unsigned char r[2];

+ return 0;
+
if (psmouse_command(psmouse, r, PSMOUSE_CMD_RESET_BAT))
return -1;
if (r[0] == 0xAA && r[1] == 0x00)

--
Peter Osterlund - [email protected]
http://w1.894.telia.com/~u89404340

2003-07-16 14:35:18

by Ricardo Galli

[permalink] [raw]
Subject: Re: 2.6.0-test1: Synaptics driver makes touchpad unusable

On Tuesday 15 July 2003 23:33, Peter Osterlund shaped the electrons to shout:
> Does it help to make the timeout even longer? (15 seconds for example)
> Does it help to disable the reset sequence altogether, like this?
>
> diff -u -r -N linux-2.6.0-test1/drivers/input/mouse/synaptics.c
> linux-tmp/drivers/input/mouse/synaptics.c ---
> linux-2.6.0-test1/drivers/input/mouse/synaptics.c Sat Jul 12 00:17:19 2003
> +++ linux-tmp/drivers/input/mouse/synaptics.c Tue Jul 15 23:31:01 2003 @@
> -81,6 +81,8 @@
> {
> unsigned char r[2];
>
> + return 0;
> +
> if (psmouse_command(psmouse, r, PSMOUSE_CMD_RESET_BAT))
> return -1;
> if (r[0] == 0xAA && r[1] == 0x00)


No, it didn't help. With the above patch, the x server gives the following
errors:
Query no Synaptics: 0000C8
(EE) TouchPad no synaptics touchpad detected and no repeater device
(EE) TouchPad Unable to query/initialize Synaptics hardware.




--
ricardo galli GPG id C8114D34

2003-07-16 14:50:01

by Peter Osterlund

[permalink] [raw]
Subject: Re: 2.6.0-test1: Synaptics driver makes touchpad unusable

Ricardo Galli <[email protected]> writes:

> On Tuesday 15 July 2003 23:33, Peter Osterlund shaped the electrons to shout:
> > Does it help to make the timeout even longer? (15 seconds for example)
> > Does it help to disable the reset sequence altogether, like this?
> >
> > diff -u -r -N linux-2.6.0-test1/drivers/input/mouse/synaptics.c
> > linux-tmp/drivers/input/mouse/synaptics.c ---
> > linux-2.6.0-test1/drivers/input/mouse/synaptics.c Sat Jul 12 00:17:19 2003
> > +++ linux-tmp/drivers/input/mouse/synaptics.c Tue Jul 15 23:31:01 2003 @@
> > -81,6 +81,8 @@
> > {
> > unsigned char r[2];
> >
> > + return 0;
> > +
> > if (psmouse_command(psmouse, r, PSMOUSE_CMD_RESET_BAT))
> > return -1;
> > if (r[0] == 0xAA && r[1] == 0x00)
>
>
> No, it didn't help. With the above patch, the x server gives the following
> errors:
> Query no Synaptics: 0000C8
> (EE) TouchPad no synaptics touchpad detected and no repeater device
> (EE) TouchPad Unable to query/initialize Synaptics hardware.

Looks like the wrong protocol is specified in the X driver
configuration. You must set "Device" to "/dev/input/eventX" and
"Protocol" to "event", where X is probably 0 in your case.

--
Peter Osterlund - [email protected]
http://w1.894.telia.com/~u89404340