]> git.hungrycats.org Git - linux/commitdiff
input: Allow Synaptics packet rate to be controlled by the
authorDmitry Torokhov <dtor_core@ameritech.net>
Wed, 21 Jan 2004 11:21:24 +0000 (12:21 +0100)
committerVojtech Pavlik <vojtech@ucw.cz>
Wed, 21 Jan 2004 11:21:24 +0000 (12:21 +0100)
       psmouse_rate= option.

drivers/input/mouse/psmouse.h
drivers/input/mouse/synaptics.c

index 9f27e93bec1cc35a8f5bfd09a8e082ff0cc7ac2f..883b8cedac2774453afd3b5fea44b50568430f4a 100644 (file)
@@ -67,6 +67,7 @@ struct psmouse {
 int psmouse_command(struct psmouse *psmouse, unsigned char *param, int command);
 
 extern int psmouse_smartscroll;
+extern unsigned int psmouse_rate;
 extern unsigned int psmouse_resetafter;
 
 #endif /* _PSMOUSE_H */
index 4ec85826aea95f418597dd2d2facf507e9fc8a8e..a41d90f55cb49a52669b1d4ed7030541063311c3 100644 (file)
@@ -214,7 +214,9 @@ static int synaptics_set_mode(struct psmouse *psmouse, int mode)
 {
        struct synaptics_data *priv = psmouse->private;
 
-       mode |= SYN_BIT_ABSOLUTE_MODE | SYN_BIT_HIGH_RATE;
+       mode |= SYN_BIT_ABSOLUTE_MODE;
+       if (psmouse_rate >= 80)
+               mode |= SYN_BIT_HIGH_RATE;
        if (SYN_ID_MAJOR(priv->identity) >= 4)
                mode |= SYN_BIT_DISABLE_GESTURE;
        if (SYN_CAP_EXTENDED(priv->capabilities))