- Jul 25, 2011
-
-
Dmitry Torokhov authored
We were testing wrong bit in the extended capability query. Reported-by:
Daniel Kurtz <djkurtz@chromium.org> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Jul 13, 2011
-
-
Axel Lin authored
We only care about if there is a successful match from the table (or no match at all), so let's make dmi_check_system return immediately instead of iterating thorough the whole table. Signed-off-by:
Axel Lin <axel.lin@gmail.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Jul 09, 2011
-
-
Dmitry Torokhov authored
Newer Synaptics firmware allows to query minimum coordinates reported by the device, let's use this data. Acked-by:
Chase Douglas <chase.douglas@canonical.com> Acked-by:
Henrik Rydberg <rydberg@euromail.se> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Jul 07, 2011
-
-
Daniel Kurtz authored
AGM packets contain valid button bits, too. This patch refactors packet processing to parse button bits in AGM packets. However, they aren't actually used or reported. The point is to more completely process AGM packets, and prepare for future patches that may actually use AGM packet button bits. Signed-off-by:
Daniel Kurtz <djkurtz@chromium.org> Acked-by:
Chase Douglas <chase.douglas@canonical.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Daniel Kurtz authored
Signed-off-by:
Daniel Kurtz <djkurtz@chromium.org> Acked-by:
Chase Douglas <chase.douglas@canonical.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Daniel Kurtz authored
Synaptics touchpads indicate via a capability bit when they perform reduced filtering on position data. In such a case, use a non-zero fuzz value. Fuzz = 8 was chosen empirically by observing the raw position data reported by a clickpad indicating it had reduced filtering. Signed-off-by:
Daniel Kurtz <djkurtz@chromium.org> Acked-by:
Chase Douglas <chase.douglas@canonical.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Daniel Kurtz authored
Set resolution for MT_POSITION_X and MT_POSITION_Y to match ABS_X and ABS_Y, respectively. Signed-off-by:
Daniel Kurtz <djkurtz@chromium.org> Acked-by:
Chase Douglas <chase.douglas@canonical.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Jun 29, 2011
-
-
Hans-Christian Egtvedt authored
This patch updates the email address of the gpio_mouse, at32psif, and atmel-wm97xx drivers supported by me to an email account I will use on a more regular basis in the future. Signed-off-by:
Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Jun 27, 2011
-
-
Jesper Juhl authored
It was pointed out by 'make versioncheck' that some includes of linux/version.h are not needed in drivers/input/. This patch removes them. Signed-off-by:
Jesper Juhl <jj@chaosbits.net> Acked-by:
Mike Frysinger <vapier@gentoo.org> Acked-by:
Michael Hennerich <michael.hennerich@analog.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- May 19, 2011
-
-
Geert Uytterhoeven authored
Up and down movements were reversed, left and right buttons were swapped. Signed-off-by:
Geert Uytterhoeven <geert@linux-m68k.org>
-
Michael Schmitz authored
Atarimouse fails to load as a module (with ENODEV), due to a brown paper bag bug, misinterpreting the semantics of atari_keyb_init(). [geert] Propagate the return value of atari_keyb_init() everywhere Signed-off-by:
Michael Schmitz <schmitz@debian.org> Signed-off-by:
Geert Uytterhoeven <geert@linux-m68k.org>
-
Michael Schmitz authored
The Atari keyboard driver calls atari_mouse_interrupt_hook if it's set, not atari_input_mouse_interrupt_hook. Fix below. [geert] Killed off atari_mouse_interrupt_hook completely, after fixing another incorrect assignment in atarimouse.c. Signed-off-by:
Michael Schmitz <schmitz@debian.org> Signed-off-by:
Geert Uytterhoeven <geert@linux-m68k.org>
-
- May 16, 2011
-
-
Éric Piel authored
Apparently somewhere someone had a proprietary X driver. To get the multitouch info, it uses some hack on the normal API instead of using the multitouch protocol. Now that the multitouch info is transmitted correctly it makes not much sense to keep it. Especially because it's impossible to find this proprietary X driver anywhere, so the number of users must be very low. Signed-off-by:
Éric Piel <eric.piel@tremplin-utc.net> Reviewed-by:
Henrik Rydberg <rydberg@euromail.se> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Éric Piel authored
Multitouch info was reported only via a old protocol used by the proprietary X driver from elantech. Let's report the multitouch info also following the official MT protocol. It's semi-mt because the device only reports the lowest/highest coordinates. This was done following the multi-touch-protocol.txt documentation, and inspired by the bcm5974 and elantech implementations. Testing was light as there is not many applications using this protocol yet, but the X synaptics driver didn't complain and the X multitouch driver behaved correctly. Signed-off-by:
Éric Piel <eric.piel@tremplin-utc.net> Reviewed-by:
Henrik Rydberg <rydberg@euromail.se> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Éric Piel authored
Using the info of the Dell/Ubuntu driver, described in the protocol document, report both width and pressure when pressing 1 and 3 fingers, for the versions of the touchpad which support it. Signed-off-by:
Éric Piel <eric.piel@tremplin-utc.net> Reviewed-by:
Henrik Rydberg <rydberg@euromail.se> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Mar 31, 2011
-
-
Lucas De Marchi authored
Fixes generated by 'codespell' and manually reviewed. Signed-off-by:
Lucas De Marchi <lucas.demarchi@profusion.mobi>
-
Jan Beulich authored
'struct dmi_system_id' arrays must always have a terminator to keep dmi_check_system() from looking at data (and possibly crashing) it isn't supposed to look at. The issue went unnoticed until ef8313bb, but was introduced about a year earlier with 7705d548 (which also similarly changed lifebook.c, but the problem there got eliminated shortly afterwards). The first hunk therefore is a stable candidate back to 2.6.33, while the full change is needed only on 2.6.38. Signed-off-by:
Jan Beulich <jbeulich@novell.com> Cc: stable@kernel.org Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Mar 12, 2011
-
-
Andy Botting authored
This patch add multitouch support for the MacBookPro8,1 and MacBookPro8,2 models. Cc: stable@kernel.org Signed-off-by:
Andy Botting <andy@andybotting.com> Signed-off-by:
Henrik Rydberg <rydberg@euromail.se> Acked-by:
Jiri Kosina <jkosina@suse.cz> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Feb 27, 2011
-
-
Henrik Rydberg authored
With the current code, pressing the integrated button with an isolating tool does not result in any button report. Fixed with this this patch. Signed-off-by:
Henrik Rydberg <rydberg@euromail.se> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Feb 23, 2011
-
-
Dmitry Torokhov authored
Since Synaptics technical writers department is a bit slow releasing updated Synaptics interface guide, let's add some new bits (with their blessing) to the code so that they don't get lost. Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Feb 21, 2011
-
-
Mark Brown authored
There is a general move to convert drivers to dev_pm_ops rather than bus specific PM ops in order to facilitate core development. Do this converison for synaptics-i2c. Signed-off-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Jan 28, 2011
-
-
Alexandre Peixoto Ferreira authored
On some machines, like Dell Studio XPS 16 (1640), touchpad fails to respond to the standard query after first reset but may start responding later, so let's repeat reset sequence several (3) times. Signed-off-by:
Alexandre Peixoto Ferreira <alexandref75@gmail.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Alexandre Peixoto Ferreira authored
synaptics_set_advanced_gesture_mode() affect capabilities bits we should perform comparison after calling this function, otherwise they will never match and we will be forced to perform full reconnect. Signed-off-by:
Alexandre Peixoto Ferreira <alexandref75@gmail.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Jan 20, 2011
-
-
David Rientjes authored
The meaning of CONFIG_EMBEDDED has long since been obsoleted; the option is used to configure any non-standard kernel with a much larger scope than only small devices. This patch renames the option to CONFIG_EXPERT in init/Kconfig and fixes references to the option throughout the kernel. A new CONFIG_EMBEDDED option is added that automatically selects CONFIG_EXPERT when enabled and can be used in the future to isolate options that should only be considered for embedded systems (RISC architectures, SLOB, etc). Calling the option "EXPERT" more accurately represents its intention: only expert users who understand the impact of the configuration changes they are making should enable it. Reviewed-by:
Ingo Molnar <mingo@elte.hu> Acked-by:
David Woodhouse <david.woodhouse@intel.com> Signed-off-by:
David Rientjes <rientjes@google.com> Cc: Greg KH <gregkh@suse.de> Cc: "David S. Miller" <davem@davemloft.net> Cc: Jens Axboe <axboe@kernel.dk> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Robin Holt <holt@sgi.com> Cc: <linux-arch@vger.kernel.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
-
- Dec 23, 2010
-
-
Andres Salomon authored
OLPC has switched to a Synaptics touchpad. It turns out that it's pretty useless in absolute mode. This patch looks for an OLPC system (via DMI tables), and refuses to init Synaptics mode in that scenario (falling back to relative mode). Signed-off-by:
Andres Salomon <dilinger@queued.net> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Andres Salomon authored
Minor comment fixup for typos and grammar. Noticed while adding a separate workaround. Signed-off-by:
Andres Salomon <dilinger@queued.net> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Dec 22, 2010
-
-
Henrik Rydberg authored
In multitouch mode, at least one device (fw: 7.4 id: 0x1c0b1) sometimes sends a final main packet with x == 1. Since the normal values are above 1472, this is clearly bogus. At the same time, a two-finger touch is signaled, even though only one finger was on the pad to begin with. This patch ignores the packet altogether, removing the problem. Acked-by:
Chris Bagwell <chris@cnpbagwell.com> Acked-by:
Chase Douglas <chase.douglas@canonical.com> Acked-by:
Dmitry Torokhov <dtor@mail.ru> Signed-off-by:
Henrik Rydberg <rydberg@euromail.se>
-
- Dec 21, 2010
-
-
Henrik Rydberg authored
The Synaptics 2.7 series of touchpads support a mode for reporting two sets of X/Y/Pressure data (advanced gesture mode). By default, these devices report only single finger data, depriving userspace of the nowadays ubiquitous two-finger scroll gesture. Enabling advanced gesture mode also enables the multi-finger report, although the device does not claim that capability. Up to three fingers can be reported this way. While two or three fingers are touching, the normal packet is prepended by a reduced finger packet of lower resolution. From the two packets (which do not represent the actual fingers), the bounding rectangle of the individual contacts can be extracted. This information is sufficient to perform scaling gestures and a limited form of rotation gesture. The behavior has been coined semi-mt capability, and is signaled to userspace via the INPUT_PROP_SEMI_MT device property. Work to decode the advanced gesture packet: Takashi Iwai. Cleanup and testing of the original patch: Chase Douglas. Minor cleanup and testing: Chris Bagwell. Finalization and semi-mt support: Henrik Rydberg. Reported-by: Tobyn Bertram Signed-off-by:
Takashi Iwai <tiwai@suse.de> Signed-off-by:
Chase Douglas <chase.douglas@canonical.com> Signed-off-by:
Chris Bagwell <chris@cnpbagwell.com> Acked-by:
Dmitry Torokhov <dtor@mail.ru> Signed-off-by:
Henrik Rydberg <rydberg@euromail.se>
-
Henrik Rydberg authored
With the new input property interface, it is possible to report the special quirks of a device using ioctl/sysfs. This patch sets up the device as a pointer, and reports the clickpad functionality via the INPUT_PROP_BUTTONPAD property. Acked-by:
Chase Douglas <chase.douglas@canonical.com> Signed-off-by:
Henrik Rydberg <rydberg@euromail.se>
-
- Dec 01, 2010
-
-
Yan Li authored
Lenovo S10-3t's ClickPad is a 2-button ClickPad that reports BTN_LEFT and BTN_RIGHT as normal touchpad, unlike the 1-button ClickPad used in HP mini 210 that reports solely BTN_MIDDLE. In 0xc0-cap response, the 1-button ClickPad has the 20-bit set while 2-button ClickPad has the 8-bit set. This patch makes the kernel only handle 1-button ClickPad specially, and treat 2-button ClickPad in the same fashion as regular touchpads. This fixes kernel bug #18122 and MeeGo bug #4807. Signed-off-by:
Yan Li <yan.i.li@intel.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Nov 15, 2010
-
-
Edgar (gimli) Hucek authored
This patch adds support for the MacBookAir3,1 and MacBookAir3,2 models. [rydberg@euromail.se: touchpad range calibration] Cc: stable@kernel.org Signed-off-by:
Edgar (gimli) Hucek <gimli@dark-green.com> Signed-off-by:
Henrik Rydberg <rydberg@euromail.se> Signed-off-by:
Jiri Kosina <jkosina@suse.cz>
-
Paul Fox authored
Recent testing of this codepath showed that it wasn't working, perhaps due to changes within the input layer. This fixes it. Signed-off-by:
Daniel Drake <dsd@laptop.org> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Daniel Drake authored
Disable the recalibration guard where new recalibrations are triggered if we detect a packet too soon after calibrating - we found that this results in erroneous recalibrations, and if the recalibration failed then the rest of our badness-detection code will request another. Add a module option disabling all of the recalibration code, in case an OLPC deployment thinks all of the workarounds we have are doing more damage than good and wants to experiment with them all disabled. Based on work by Paul Fox. Signed-off-by:
Daniel Drake <dsd@laptop.org> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Daniel Drake authored
Based on work by Paul Fox. Signed-off-by:
Daniel Drake <dsd@laptop.org> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Nov 11, 2010
-
-
Daniel Drake authored
In addition to forcing recalibrations upon detection of cursor jumps (and performing them quicker than before), detect and discard errant 'jump' packets caused by a firmware bug, which are then repeated with each one being approximately half the delta of the one previously (as if it is averaging out) Based on original work by Paul Fox. Signed-off-by:
Daniel Drake <dsd@laptop.org> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Daniel Drake authored
The old implementation of spew detection simply tracked the overall position delta of the cursor over every 100 packets. We found that this causes occasional false positives in spew detection, and also that the conditions of the spewy packets are perhaps more fixed than we once thought. Rework the spew detection to look for packets of specific small delta, and only recalibrating if the overall movement delta stays within expected bounds. Also discard duplicate packets in the advanced mode, which appear to be very common. If we don't, the spew detection kicks in far too early. If we get a large spew of duplicates, request a recalibration straight up. Based on earlier work by Paul Fox. Signed-off-by:
Daniel Drake <dsd@laptop.org> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Daniel Drake authored
Add a "hgpk_mode" sysfs attribute that allows selection between 3 options: Mouse (the existing option), GlideSensor and PenTablet. GlideSensor is an enhanced protocol for the regular touchpad mode that additionally reports pressure and uses absolute coordinates. We suspect that it may be more reliable than mouse mode in some environments. PenTablet mode puts the touchpad into resistive mode, you must then use a stylus as an input. We suspect this is the most reliable way to drive the touchpad. The GlideSensor and PenTablet devices expose themselves with the intention of being combined with the synaptics X11 input driver. Based on earlier work by Paul Fox. Signed-off-by:
Daniel Drake <dsd@laptop.org> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Oct 31, 2010
-
-
Joe Perches authored
Signed-off-by:
Joe Perches <joe@perches.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Oct 18, 2010
-
-
Justin P. Mattock authored
The patch below updates broken web addresses in the kernel Signed-off-by:
Justin P. Mattock <justinmattock@gmail.com> Cc: Maciej W. Rozycki <macro@linux-mips.org> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Finn Thain <fthain@telegraphics.com.au> Cc: Randy Dunlap <rdunlap@xenotime.net> Cc: Matt Turner <mattst88@gmail.com> Cc: Dimitry Torokhov <dmitry.torokhov@gmail.com> Cc: Mike Frysinger <vapier.adi@gmail.com> Acked-by:
Ben Pfaff <blp@cs.stanford.edu> Acked-by:
Hans J. Koch <hjk@linutronix.de> Reviewed-by:
Finn Thain <fthain@telegraphics.com.au> Signed-off-by:
Jiri Kosina <jkosina@suse.cz>
-
- Oct 13, 2010
-
-
Dmitry Eremin-Solenikov authored
Some (rare) serio devices need to have multiple serio children. One of the examples is PS/2 multiplexer present on several TQC STKxxx boards, which connect PS/2 keyboard and mouse to single tty port. Signed-off-by:
Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-