[gpm]New Synaptic patch
Peter Berg Larsen
pebl@math.ku.dk
Sun, 7 Apr 2002 22:27:44 +0200 (MET DST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--0-609696461-1018210221=:18125
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.OSF.4.21.0204072210521.18125@artin.math.ku.dk>
Hey,
This patch is a test to take care of some problems:
I have added edge definition options to the config file.
I have added some 4-way button code. Turn off stick_enable and turn on
four_way_button_enable. (Until I get a better way of descriminating
the packets.)
I have added an option to reset the synaptics (reset_on_error_enabled) if
a faulty packet is detected. This should be default off, because it is
better to detect the reset ack from the touchpad in gpm.c or finding out
why the touchpad changes mode in the first place.
I have added a new corner action: reset. This is intended as testing. My
touchpad sometimes sends reset ack and id code after a disable stream
command, and I do not understand at all why. Could someone test whether
their touchpad also do that?
And finally some cleaning of the code.
Peter
--
E-Mail: pebl@math.ku.dk
Real name: Peter Berg Larsen
Where: Department of Computer Science, Copenhagen Uni., Denmark
--0-609696461-1018210221=:18125
Content-Type: APPLICATION/OCTET-STREAM; NAME="diff_synaptics_c_4.gz"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.OSF.4.21.0204072210210.18125@artin.math.ku.dk>
Content-Description:
Content-Disposition: ATTACHMENT; FILENAME="diff_synaptics_c_4.gz"
H4sICE2FsTwAA2RpZmZfc3luYXB0aWNzX2NfNADtXG134kaW/tz+FRXnxAtG
YBD4PU6HtrHDGbftNTi92UmOjowEaFpIjCSMPR3/970vVZIKCbedSXa/LDOn
B6tKt27duvep+8bU63URPwX2PPFGsRX6TmP0brAIRHceCbEvWuZRu33UPhRm
s2lu1Gq1bDJM/BjKiQei1T7abR+ZHZ7444+iftAy9kQN/m21xI8/bojtbSE/
/UDY93HoLxJXzELHFcnUFTHQ/CzmUZiEo9AXXixsEXuzue+KeWymA4ZwH0fu
PMnT8xKcHrsB/C+QzlGf26PPbtIQ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