Created
June 24, 2014 18:06
-
-
Save grafov/e8148f879356a1065048 to your computer and use it in GitHub Desktop.
Patch for synaptics.c for report finger width (still actual for 3.14.3). Taken from http://pastebin.com/rjGyM5pC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/drivers/input/mouse/synaptics.c | |
+++ b/drivers/input/mouse/synaptics.c | |
@@ -702,6 +702,8 @@ | |
input_report_abs(dev, ABS_MT_POSITION_X, hw->x); | |
input_report_abs(dev, ABS_MT_POSITION_Y, synaptics_invert_y(hw->y)); | |
input_report_abs(dev, ABS_MT_PRESSURE, hw->z); | |
+ if (hw->w >= 4) | |
+ input_report_abs(dev, ABS_TOOL_WIDTH, hw->w); | |
} | |
static void synaptics_report_mt_data(struct psmouse *psmouse, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment