Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:GA
xf86-input-wacom
n_02-Log-PROXIMITY-LOW-LEVEL-events.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File n_02-Log-PROXIMITY-LOW-LEVEL-events.patch of Package xf86-input-wacom
From: Egbert Eich <eich@suse.com> Date: Sun Feb 16 09:30:42 2014 +0100 Subject: [PATCH 2/4]Log PROXIMITY LOW LEVEL events Patch-Mainline: never Git-commit: df73852a08ab8b8ab3c2b04b7dea8386cceb64eb Git-repo: git://linuxwacom.git.sourceforge.net/gitroot/linuxwacom/xf86-input-wacom References: FATE# Signed-off-by: Egbert Eich <eich@suse.com> Signed-off-by: Egbert Eich <eich@suse.com> --- src/wcmUSB.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/wcmUSB.c b/src/wcmUSB.c index e99960f..f0f8011 100644 --- a/src/wcmUSB.c +++ b/src/wcmUSB.c @@ -512,6 +512,8 @@ static void usbWcmInitPadState(InputInfoPtr pInfo) ds->device_type = PAD_ID; ds->device_id = PAD_DEVICE_ID; ds->serial_num = channel; + LOG(common, LOG_PROXIMITY_LOW, "Proximity in for %s PAD serial -1\n", + pInfo->name); } int usbWcmGetRanges(InputInfoPtr pInfo) @@ -1678,6 +1680,7 @@ static void usbDispatchEvents(InputInfoPtr pInfo) int channel; wcmUSBData* private = common->private; WacomDeviceState dslast = common->wcmChannel[private->lastChannel].valid.state; + int log_proximity; DBG(6, common, "%d events received\n", private->wcmEventCnt); @@ -1725,6 +1728,7 @@ static void usbDispatchEvents(InputInfoPtr pInfo) ds = &common->wcmChannel[channel].work; dslast = common->wcmChannel[channel].valid.state; + log_proximity = ds->proximity; if (ds->device_type && ds->device_type != private->wcmDeviceType) LogMessageVerbSigSafe(X_ERROR, 0, @@ -1739,10 +1743,16 @@ static void usbDispatchEvents(InputInfoPtr pInfo) /* all USB data operates from previous context except relative values*/ ds->relwheel = 0; ds->serial_num = private->wcmLastToolSerial; + if (log_proximity != ds->proximity) + LOG(common, LOG_PROXIMITY_LOW, "Proximity in for %s %s serial %d\n", + pInfo->name, + usbTypeName(ds->device_type), + private->wcmLastToolSerial); /* loop through all events in group */ for (i=0; i<private->wcmEventCnt; ++i) { + log_proximity = ds->proximity; event = private->wcmEvents + i; DBG(11, common, "event[%d]->type=%d code=%d value=%d\n", @@ -1795,6 +1805,12 @@ static void usbDispatchEvents(InputInfoPtr pInfo) usbParseKeyEvent(common, event, channel); usbParseBTNEvent(common, event, btn_channel); } + if (log_proximity != ds->proximity) + LOG(common, LOG_PROXIMITY_LOW, "Proximity %s for %s %s serial %d\n", + ds->proximity ? "in" : "out", + pInfo->name, + usbTypeName(ds->device_type), + private->wcmLastToolSerial); } /* next event */ /* DTF720 and DTF720a don't support eraser */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor