summaryrefslogtreecommitdiff
path: root/src/ps2comm.c
AgeCommit message (Collapse)Author
2012-08-10Use LogMessageVerbSigSafe on ABI 18Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2012-06-05ps2comm: use ErrorF from PS2DBG directlyPeter Hutterer
And switch a few current DBG messages to PS2DBG to have one ps/2 debugging output command. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-10Move synaptics.h leftovers to synapticsstr.h, drop synaptics.hPeter Hutterer
This leaves us with a duplicated define for the maxbuttons but I'll live with that for now. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-10Indent consistentlyPeter Hutterer
x-indent-all.sh from xorg/util/modular as of c2d630fab65dbe3409af3947f6f442782ddb026f Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2012-02-10Introduce SynapticsCopyHwState functionChase Douglas
Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-02-10Allocate SynapticsPrivate.comm->hwStateChase Douglas
This is needed for when SynapticsHwState can't be allocated on the stack. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-08-29On/Off hooks to return boolean so we can bail out of the callerAlexandr Shadchin
Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-08-25Use hardware time where possibleDerek Foreman
Rather than always setting hw->millis as the time when we received the event in our SIGIO handler, use the time provided by the kernel if applicable (i.e. if we're using evdev rather than PS/2 or similar). Signed-off-by: Derek Foreman <derek.foreman@collabora.co.uk> Reviewed-by: Daniel Stone <daniel@fooishbar.org> [from_timer is in preparation for a future patch, currently unused] Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-05-31Replace xf86Msg with xf86IDrvMsgPeter Hutterer
xf86IDrvMsg automatically logs driver and device name. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-18Revert "Add synaptics orientation support"Peter Hutterer
This patch needs more work before we can ship it. This reverts commit 049d5fb6037b34d94b24cb8300849cf4e3b67437. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-09Add synaptics orientation supportAapo Rantalainen
This patch allows usage of "synclient Orientation=0" (values from 0 to 3). It will rotate the touchpad similar to "xrandr -o". Original patch was extended for alps and ps2. Signed-off-by: Christoph Brill <egore911@egore911.de>
2011-03-01Rewrite mechanisn to detect Protocol and DeviceAlexandr Shadchin
Made SetDeviceAndProtocol() does not depend on the protocols, it will make it easier to add new backend. New behavior SetDeviceAndProtocol: 1) If not set Device or Protocol, then try AutoDevProbe 2) Otherwise, look for the appropriate protocol (Device and Protocol must be set) Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-01Remove arg proto_ops in ReadHwState()Alexandr Shadchin
Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-01Renamed SynapticsHwInfo in PS2SynapticsHwInfoAlexandr Shadchin
Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-01Move definition struct SynapticsHwInfo in ps2comm.hAlexandr Shadchin
Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-01Simplified mechanism for determining default sizeAlexandr Shadchin
Now SynapticsDefaultDimensions() called only once Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-09-01Use InputInfoPtr instead of LocalDevicePtr.Peter Hutterer
The latter is about to be removed from the server, InputInfoPtr has been around in all supported server versions. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-06-17Purge GuestMouse support.Peter Hutterer
Guest mouse dates back to quite a while ago, hasn't been tested for ages and the current synaptics interface guide claims the bit that we used to check if guestmouse is available is "reserved for future use. The host should ignore the values of reserved bits when reading the capability bits." Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-06-17Reshuffle default value initialization.Peter Hutterer
No functional changes, just code structure. The eventcomm backened is the only one with a real probe function right now. So provide a default query proc that reads the touchpad coordinates in. The values provided are the ones that then will give us the right edge settings in concordance with the default we had before. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-06-16Move some defines to where they belong.Peter Hutterer
These defines aren't used by anything but the ps2comm interface. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Fernando Carrijo <fcarrijo@yahoo.com.br>
2010-05-25Don't use libcwrappers for calloc and free.Peter Hutterer
The server has deprecated them now, so we get a lot of warnings for little benefit. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Matt Turner <mattst88@gmail.com>
2009-11-05Clean up debugging system, allow for --enable-debugPeter Hutterer
Add --enable-debug to list of configure options. Clean up the DBG macro to use xf86MsgVerb and supply the verbosity. Don't use ErrorF from the driver, use xf86Msg instead. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Adam Jackson <ajax@redhat.com>
2009-05-08Purge SynapticsHWInfo stuff, move it into proto_data.Peter Hutterer
This was only used in PS/2, on linux only on kernel 2.4 and it clobbered up the rest. Move it to the ps2comm parts only, keep it private there. This includes adding a "proto_data" field to the SynapticsPrivate. This patch removes the -h option for synclient. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Christoph Brill <egore911@egore911.de>
2009-05-04ps2comm: fix typo in debug statement.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-28PS/2 interface: sense multifinger taps on FingerHigh (#21427)Eygene Ryabinkin
Previously multifinger taps were sensed on the Z value > 0: this isn't very correct. Accorging to the specification, Z values below 30 correspond only to a very light taps or just floating fingers. I had run into the situation when I was clicking on the physical left button and that click was transformed to the right button click via ClickFinger2, but I wasn't tapping the touchpad at all. Investigations showed very small values of Z -- my other fingers were just floating above touchpad. This change also makes click (and finger) detection more consistent, because it uses FingerHigh to detect taps everywhere. X.Org Bug 21427 <http://bugs.freedesktop.org/show_bug.cgi?id=21427> Signed-off-by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Henrik Rydberg <rydberg@euromail.se>
2009-04-26Remove un-used DeviceOn/Off hooks.Peter Hutterer
And allow for them to be NULL without crashing the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-26Remove Synaptics SHM configuration bits.Peter Hutterer
The only thing we still export through SHM is the hardware state.
2009-03-05include xorg-server.h from all driver source files.Peter Hutterer
This fixes the 64-bit issues with 1.0.99.3. Not having xorg-server.h included in time means we miss out on _XSERVER64, which leads to different sizes of the LocalDeviceRec struct in the driver and the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2008-09-17ReadDevDimensions on opened deviceHenrik Rydberg
The auto-dev probing requires opening the device locally to determine the type of device, so that the right protocol can be assigned. However, all other setup work should be performed during initialization of the assigned and opened device. This patch moves the read-device-dimensions functionality from some special cases during the probe process to the initialization routine, where it can be used for all supported devices. Signed-off-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-09-09Pre-probe the device (eventcomm only).Peter Hutterer
For auto-dev, we'd probe the device node and get the axis ranges. If we specify the device however we didn't retrieve the axis ranges and thus got stuck with the defaults - losing out on automatic edge and accel calculation. This is an issue if the device is hotplugged, as HAL will specify the device node. This patch adds another hook to synproto_operations to pre-probe the device. This hook is only used by eventcomm and opens the FD, queries the axis range and closes the FD again.
2008-07-11Finally change the GPL headers to MIT onesChristoph Brill
2008-06-06Initial version that passes "make distcheck".Christoph Brill
This version is able to build against latest xorg git (including xinput changes for MPX). It incoperates many concepts stolen from xf86-input-evdev. I'm not sure about *BSD support, but from what I understood psmcomm is only used on *BSD whild eventcomm is only used on Linux. So I enabled the build of these only on the given operating system. Also fix some minor issues that are related to the old build system (VERSION_ID related).
2008-06-06Start reorganizing the source treeChristoph Brill
First let's move the source and header files to a seperate source directory. The structure of the new directory layout will be similar to xf86-input-evdev.