Copied to the list:

More info on XFree hanging on startup when using Synaptics
touchpad on some laptops:

On Mon, 2003-08-04 at 19:23, [EMAIL PROTECTED] wrote: 
> Hi,
> 
> I'm not subscribed to the list so I apologize.  I have a Compaq Armada
> M300 and I have the exact same problem.  I'm using this as my mouse
> configuration in XF86Config:
> 
> Section "InputDevice"
>     Identifier "Mouse0"
>     Driver "mouse"
>     Option "Protocol" "PS/2"
>     Option "Device"  "/dev/psaux"
>     Option "Emulate3Buttons" "yes"
> EndSection

Hi,
Something really strange happened, and I cannot explain it. I
recompiled my kernel, and the problem went away! The most puzzling
feature was that I was recompiling the SAME kernel version, with
what I believed was the SAME configuration file I had used last
time (when it didn't work). And, I believe, the SAME compiler!

I now believe that XFree86 is not (solely) responsible for the
problems, there is some interaction with the /dev/psaux handling
code which is now merged into linux/drivers/char/pc_keyb.c.

I put some debugging spew in the XFree86 mouse driver and watched
it run; the problem seems to be with the timing of the "reset"
sequence. This as far as I could tell is what happens:

The driver seems to be sending the reset "FF", waiting for
a while, decides there is to be no response, sends another
reset "FF" (these are the hexadecimal representations of the bytes
on the wire). Meanwhile the touchpad is working away... It
sends an ACK(nowledgement) for the first reset ("FA"), and one for
the second. So the driver receives "FA FA" where it should receive
just the one "FA" followed by the data "AA 00". It then tries
yet another reset... I have the synaptics interface documentation which
is probably available somewhere on their website. It may be helpful
in fixing this - if it needs to be fixed - it specifies the PS/2
protocol and this reset sequence in detail including timing.

I just tried again... With my original kernel (Red Hat, 2.4.20-6),
there is a long wait on startup. With my recompiled kernel, everything
works! Maybe this is something to try.

> I **havn't** found a solution. But, If I disable the mouse and put:
> 
> Option "AllowMouseOpenFail" "true"
> 
> in the ServerLayout section, I get a *normal* startup of X.  It is fast.
> The numlock, scrolllock, capslock lights do not blink.  This is obviously
> isn't a solution, but a clue to what is causing the lockup.
> 
> Have you found out anything else?  Could you post this to the list for
> me...I'm going to subscribe when I get home form work.
> 
> Thanks,
> 
> 
> Ben


-- 

Peter Wainwright <[EMAIL PROTECTED]>
_______________________________________________
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86

Reply via email to