Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
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(+) Index: xf86-input-wacom-0.28.0/src/wcmUSB.c =================================================================== --- xf86-input-wacom-0.28.0.orig/src/wcmUSB.c +++ xf86-input-wacom-0.28.0/src/wcmUSB.c @@ -517,6 +517,8 @@ static void usbWcmInitPadState(InputInfo 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) @@ -1697,6 +1699,7 @@ static void usbDispatchEvents(InputInfoP 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); @@ -1733,6 +1736,7 @@ static void usbDispatchEvents(InputInfoP 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, @@ -1747,10 +1751,16 @@ static void usbDispatchEvents(InputInfoP /* 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", @@ -1804,6 +1814,12 @@ static void usbDispatchEvents(InputInfoP 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