Giter Site home page Giter Site logo

how to debug this? about xf86-input-mtrack HOT 1 CLOSED

p2rkw avatar p2rkw commented on May 27, 2024
how to debug this?

from xf86-input-mtrack.

Comments (1)

p2rkw avatar p2rkw commented on May 27, 2024

First of all you can enable logging with macros, so if you want to debug gestures open file gestures.c and define DEBUG_GESTURES macro:

#ifdef DEBUG_GESTURES

You can also define it via ./configure script.
There are other logging macros in other files (enable logging in file you want to debug)
Logs will be printed to your Xorg.0.log file placed in /var/log/X11/ or ~/.local/. Search there for file Xorg.*.log (numer depends on your xorg instance id)

Then use xinput with --list-props and --set-prop to change configuration during runtime without need to restart X11.
Here are descriptions for props used by xinput:

#define MTRACK_PROP_TRACKPAD_DISABLE "Trackpad Disable Input"

Here is function called when you run xinput --set-prop:
int mprops_set_property(DeviceIntPtr dev, Atom property, XIPropertyValuePtr prop, BOOL checkonly) {

By reading this function you can track how props are mapped to values.

To test your changes, or simply to read new logs after you enable them, you have to recompile and install driver. I do it with dpkg-buildpackage -us -uc; and sudo dpkg -i ../xserver-xorg-input-mtrack*.deb
Then to test it I swap to new virtual console with Ctrl+Alt+Fn, log in as another user, and start new X11 instance with: startx -- :1
As a result I have two instances of X11 running: one with old driver, and second one with new changes.


I don't know whats wrong with your configuration, but maybe you can start with experimenting with Touch Pressure.

from xf86-input-mtrack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.