Main question: How to get the absolute finger position on the touchpad?I would like to get the absolute position (x, y coordinates) of a finger on a touchpad? I believe it is possible to extract it from the synaptics-family source code.Subquestion: How to get the synaptics.h header?I am trying to get synaptics.h so that I have access to the SynapticsHwState struct which allows to get the coordinates of a finger touching a touchpad.This is what I've done so far:I found out that I need to download linux headers, so I ran:sudo apt-get install linux-headers-`uname -r`The I found the header in /usr/src/linux-headers-3.16.0-4-686-pae/include/config/mouse/ps2/synaptics.h it was EMPTY however.It turns out that headers in the include/config path are usually empty files due to some kernel building optimisations.I'm stuck. I don't know how to get this header.Here is a link which might be helpful to answer my question. I don't understand much from what is written there however. I've tried to run make headers_install from /usr/src/linux-headers-3.16.0-4-686-pae but I got an error.My distribution is BunsenLabs i386 Linux (a successor of CrunchBang, Debian based) with a 3.16.0-4-686-pae kernel.
How to get the absolute position (x, y coordinates) of a finger on a touchpad?
kernel;linux kernel;drivers;touchpad;header file
I didn't manage to get the synaptics.h header however I found the way to get the position (x y coordinates) of a finger on a touchpad.The software is called evtest and the source code can be found here for example. There is a single evtest.c file and it is quite easy to modify it and extract the absolute finger position.After all, I needed the synaptics.h only to get the coordinates. Hence I'll mark this question as solved.