Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:illuusio
xf86-input-evdev
u_04-add-debug-print.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File u_04-add-debug-print.patch of Package xf86-input-evdev
From cf70e528bfe0cf77dc6dc01e2ba2b91e45fc3721 Mon Sep 17 00:00:00 2001 From: Tuukka Pasanen <tuukka.pasanen@ilmi.fi> Date: Fri, 1 Oct 2021 09:19:32 +0300 Subject: [PATCH xf86-input-evdev] Add debug printing for finding out why scaling stop working In some point Y scaling can stop working on touch screen without any information to user --- src/evdev.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/evdev.c b/src/evdev.c index 6672cf9..05158b1 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -371,6 +371,8 @@ EvdevSwapAbsValuators(EvdevPtr pEvdev, ValuatorMask *mask) const struct input_absinfo *abs2 = libevdev_get_abs_info(pEvdev->dev, 1 - i); + xf86Msg(X_WARNING, "EvdevSwapAbsValuators: swap\n"); + swapped_isset[1 - i] = 1; swapped_values[1 - i] = xf86ScaleAxis(valuator_mask_get(mask, i), @@ -407,17 +409,35 @@ EvdevApplyCalibration(EvdevPtr pEvdev, ValuatorMask *mask) if (i == 0) { calib_min = pEvdev->calibration.min_x; calib_max = pEvdev->calibration.max_x; + xf86Msg(X_WARNING, "EvdevApplyCalibration: %d Calib X min: %d max: %d", i, pEvdev->calibration.min_x, pEvdev->calibration.max_x); } else { calib_min = pEvdev->calibration.min_y; calib_max = pEvdev->calibration.max_y; + xf86Msg(X_WARNING, "EvdevApplyCalibration: %d Calib Y min: %d max: %d", i, pEvdev->calibration.min_y, pEvdev->calibration.max_y); } + if (pEvdev->flags & EVDEV_CALIBRATED) + { + xf86Msg(X_WARNING, " val: %d ", val); + val = xf86ScaleAxis(val, abs->maximum, abs->minimum, calib_max, calib_min); + xf86Msg(X_WARNING, "scaled: %d event_abs_max: %d event_abs_min: %d", val, abs->maximum, abs->minimum); + } + else + { + xf86Msg(X_WARNING, "EvdevApplyCalibration: %d No calib %d", i, val); + } + + xf86Msg(X_WARNING, "\n"); + if ((i == 0 && pEvdev->invert_x) || (i == 1 && pEvdev->invert_y)) + { val = (abs->maximum - val + abs->minimum); + xf86Msg(X_WARNING, "EvdevApplyCalibration: %d invert %d\n", i, val); + } valuator_mask_set(mask, i, val); } @@ -777,6 +797,9 @@ EvdevProcessAbsoluteMotionEvent(InputInfoPtr pInfo, struct input_event *ev) EvdevPtr pEvdev = pInfo->private; int map; + xf86Msg(X_WARNING, "EvdevProcessAbsoluteMotionEvent %s\n", pInfo->name); + + /* Get the signed value, earlier kernels had this as unsigned */ value = ev->value; -- 2.33.0
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